KR100193589B1 - Test Methods for Microcontrollers - Google Patents
Test Methods for Microcontrollers Download PDFInfo
- Publication number
- KR100193589B1 KR100193589B1 KR1019950041788A KR19950041788A KR100193589B1 KR 100193589 B1 KR100193589 B1 KR 100193589B1 KR 1019950041788 A KR1019950041788 A KR 1019950041788A KR 19950041788 A KR19950041788 A KR 19950041788A KR 100193589 B1 KR100193589 B1 KR 100193589B1
- Authority
- KR
- South Korea
- Prior art keywords
- test
- mode
- external
- program
- item
- Prior art date
Links
Abstract
테스트-모드 스위칭 레지스터를 포함하여 외부 명령을 판독함으로써 테스트 모드를 선택하는 마이크로 콘트롤러에 대한 테스트 방법으로서, 상기 테스트 방법은 외부 모드, 내부 모드 및 판독 응용 프로그램을 포함한다. 상술된 세 가지 방법에 의해, 테스트 받는 아이템 기능은 정상적으로 동작하는지 여부가 테스트되어 마이크로 콘트롤러의 테스트 효율성을 개선시킨다.A test method for a microcontroller that selects a test mode by reading an external command including a test-mode switching register, the test method including an external mode, an internal mode, and a read application. By the three methods described above, the item function under test is tested for normal operation to improve the test efficiency of the microcontroller.
Description
제1도는 IC (집적 회로)에 대한 종래 테스트 방법을 도시한 블럭도.1 is a block diagram showing a conventional test method for an integrated circuit (IC).
제2도는 IC에 대한 또다른 종래의 테스트 방법을 도시한 블럭도.2 is a block diagram illustrating another conventional test method for an IC.
제3도는 본 발명을 따른 테스트 시스템의 일 실시예를 도시한 블럭도.3 is a block diagram illustrating one embodiment of a test system in accordance with the present invention.
제4도는 본 발명을 따른 테스트 단계의 순서도.4 is a flowchart of test steps according to the invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
10 : 테스트 기계 12 : 테스트 될 아이템10: test machine 12: items to be tested
28 : 테스트 기계 Ⅱ 30 : 제어 회로-Ⅰ28: test machine II 30: control circuit-I
32 : 멀티플렉서 34 : 응용 프로그램 메모리32: Multiplexer 34: Application Memory
36 : 테스트 프로그램 메모리 38 : 테스트 제어 회로36: test program memory 38: test control circuit
40 : ROM 판독 출력 장치40: ROM readout device
42 : 테스트 모드 스위칭 레지스터42: test mode switching register
[발명의 배경][Background of invention]
[발명의 분야][Field of Invention]
본 발명은 IC (집적회로)에 대한 테스트 방법에 관한 것이며, 특히 마이크로 콘트롤러에 대한 테스트 방법에 관한 것이다. 상기 방법은 3개의 채널, 즉 외부 모드, 내부 모드 및 판독 응용 프로그램 모드(reading application program mode)를 포함하여 마이크로 콘트롤러의 테스트 효율성을 개선시킨다.The present invention relates to a test method for an integrated circuit (IC), and more particularly to a test method for a microcontroller. The method includes three channels, an external mode, an internal mode and a reading application program mode, to improve the test efficiency of the microcontroller.
[종래의 기술의 설명][Explanation of Conventional Technology]
일상 생활 아이템에서 고급 기술 아이템까지 IC 제품이 폭넓게 사용되고 있으며, IC 품질은 제품 기능과 밀접하게 관련되므로, IC 기능 테스팅 방법은 대단히 중요한 역할을 한다.As IC products are widely used in everyday life items to advanced technology items, and IC quality is closely related to product functions, the IC function testing method plays an important role.
종래 IC 테스트 방법은 두 가지 종류로 나눠진다. 제1도는 종래 IC 테스트 방법을 보여주는 블록도인데, 블록도 내의 테스트 기계(10)는 제어 신호를 테스트 되는 아이템(item)(12)에 송신하여 테스트를 수행하고, 다음 테스트 되는 아이템(12)이 신호를 테스트 기계(10)에 송신하여 소망값과 비교함으로써 상기 테스트 받는 아이템이 정상적인 기능을 갖고 있는지를 판단한다. 테스트 기계(10)는 테스트 되는 아이템(12)의 실제 동작을 시뮬레이션한다. 테스트 되는 아이템(12)이 테스트 되어야 할 기능이 더 있는 경우에는, 테스트 기계(10)에 설치되는 데스트 아이템은 더 증가되어야 하고, 따라서 전체 테스팅 시간을 연장시키고, 결국 비용을 증대시킨다.Conventional IC test methods are divided into two types. 1 is a block diagram showing a conventional IC test method, wherein the test machine 10 in the block diagram transmits a control signal to an item 12 to be tested to perform a test, and the next tested item 12 is The signal is transmitted to the test machine 10 and compared with the desired value to determine whether the item under test has a normal function. The test machine 10 simulates the actual operation of the item 12 being tested. If the item 12 to be tested has more functions to be tested, the test item installed in the test machine 10 should be further increased, thus extending the overall testing time and eventually increasing the cost.
테스트가 마이크로 콘트롤러 상에서 수행되면, 이 마이크로 콘트롤러의 소자들의 기능들은 내장 프로그램 유닛(built-in program units) 및 상태 기계(state machine)를 포함하는 소자들로 인해 내부 프로그램(internal program)으로 제어된다. 다시 말해서, 서로 다른 프로그램 동작은 서로 다른 출력을 갖는다. 제1도에 도시된 바와 같은 종래 테스트 방법이 사용되면, 마이크로 콘트롤러의 내장 프로그램이 변경되자마자 테스트 아이템 및 테스트 모드가 변경되어야 하기 때문에 테스트하기 어렵게 된다.When the test is performed on a microcontroller, the functions of the components of the microcontroller are controlled by an internal program due to the elements including built-in program units and a state machine. In other words, different program operations have different outputs. When the conventional test method as shown in FIG. 1 is used, it becomes difficult to test because the test item and the test mode have to be changed as soon as the built-in program of the microcontroller is changed.
마이크로 콘트롤러 테스트와 관계하여, 일부 제조자들은 한가지 테스트 문제를 개발하였는데, 즉 이 방법은 테스트를 수행하기 위해 테스트 기계가 각종 명령을 마이크로 콘트롤러에 전송하고, 다음, 마이크로 콘트롤러의 수행 결과를 테스트 기계에 다시 전송하여 비교하는 것이다. 그러나, 상술된 방법을 이용하면, 두 개의 신호 전송을 손쉽게 하도록 타이밍이 분리되어야 하고, 그 경우에, 시간이 낭비될 뿐만 아니라 타이밍이 실시간(real timing)과 서로 다르게 된다. 종종, 테스트 결과는 모두 정확한데 소자의 실제 기능은 장애가 초래되어 IC 품질에 영향을 미치는 경우가 있다.Regarding microcontroller testing, some manufacturers have developed a test problem, which means that the test machine sends various commands to the microcontroller to perform the test, and then returns the results of the microcontroller's performance to the test machine. To send and compare. However, using the method described above, the timing must be separated to facilitate two signal transmissions, in which case not only is time wasted but the timing is different from real timing. Often, the test results are all accurate, but the device's actual function can be disrupted and affect IC quality.
제2도는 IC에 대한 또다른 종래 테스트 방법을 도시한 블록도인데, 여기서는 테스트 받는 아이템(12)이 제어 회로(18)를 포함하여 명령을 디코딩하여 이 명령을 수행하고나서 신호를 테스트 기계-Ⅰ(14)에 송신한다. 원 제어 신호원(original control signal source((24)은 응용 프로그램을 기억하는데 사용된다. 제어 신호 발생기(22)는 테스트 프로그램을 기억하여 셀프-테스트(self-test)를 수행하는데 사용되며, 테스트 프로그램은 응용 프로그램이 변하여도 변경되지 않는다. 테스트 동안, 프로그램 메모리가 테스트 프로그램으로 스위칭되면, 제어 신호 발생기(22)는 테스트 받는 아이템이 내장 테스트 프로그램에 따라서 셀프-테스트를 수행하도록 하며, 테스트 결과 신호는 제어 회로(18)를 통해 테스트 기계-Ⅰ에 전송되어 디폴트 값(default value)과 비교됨으로써 테스트 받는 아이템 기능이 정상인지 여부를 검출한다. 상술된 테스트 방법에서, 제어 신호 발생기(22)의 내장 테스트 프로그램은 설계된 후엔 변경하기 어려운데, 즉, 테스트 유연성이 나쁘다(low test flexibility). 비용을 절감하기 위하여, 대부분의 프로그램 메모리 공간은 응용 프로그램을 기억하는데 사용되고 나머지 공간은 테스트 프로그램을 기억하는데 사용되며, 이 경우에, 아이템 테스트는 불완전하게 되어 이 아이템의 품질에 영향을 미친다.FIG. 2 is a block diagram illustrating another conventional test method for an IC, in which the item under test 12 includes a control circuit 18 to decode the command to perform this command and then signal the test machine-I. (14). The original control signal source (24) is used to store the application program. The control signal generator 22 is used to store the test program to perform a self-test, and the test program If the program memory is switched to the test program during the test, the control signal generator 22 causes the item under test to self-test according to the built-in test program, and the test result signal is It is transmitted to the test machine-I via the control circuit 18 and compared with a default value to detect whether the item function under test is normal.In the above-described test method, the built-in test of the control signal generator 22 The program is difficult to change after it's designed, ie low test flexibility. In order to reduce most of the program memory space is used for storing the application, the remaining space is used for storing the test program, in this case, the test items are poorly it affects the quality of the item.
상술된 설명에 따라, 마이크로 콘트롤러에 대한 종래 테스트 방법은 몇 가지 결점을 갖고 있고, 이는 개선되어야 한다.According to the above description, the conventional test method for the microcontroller has some drawbacks, which must be improved.
[발명의 요약][Summary of invention]
본 발명의 주목적은 마이크로 콘트롤러에 대한 테스트 방법을 제공하는 것으로, 이 방법은 외부 모드(outer mode), 내부 모드(inner mode) 및 판독 응용 프로그램 모드(reading application program mode)를 포함하는데, 즉 3개의 채널이 테스트를 수행하기 위한 명령을 전송하는데 사용됨으로써 테스트 시간을 짧게 하고 IC 품질에 영향을 미치는 불완전한 테스트를 방지하는 것이다. 서로 다른 IC를 테스트하여 이들 IC 기능이 정상인지 여부를 알기 위하여, 마이크로 콘트롤러 테스트 방법은 여러 채널 및 기능을 갖도록 설계되어 사용자가 적절한 한 가지를 선택하도록 한다. 테스트될 기능에 따라, 본 발명자는 서로 다른 기능 아이템을 설계할 수 있는데, 즉 부가적인 테스트 아이템이 사용자가 사용가능한 공간하에서 제공될 수 있다.The primary object of the invention is to provide a test method for a microcontroller, which includes an outer mode, an inner mode and a reading application program mode, i.e. three The channel is used to send commands to perform tests, which shortens test time and prevents incomplete tests that affect IC quality. To test different ICs to see if these IC functions are normal, the microcontroller test method is designed to have multiple channels and functions, allowing the user to choose the appropriate one. Depending on the functionality to be tested, the inventors can design different functional items, ie additional test items can be provided in the space available to the user.
[상세한 설명][details]
심사관이 본 발명의 목적, 특징 및 기능응 완전히 이해하도록 하기 위하여, 본 발명을 첨부한 도면을 참조로 상세히 설명한다.In order for the examiner to fully understand the object, features and functions of the present invention, the present invention will be described in detail with reference to the accompanying drawings.
제3도를 참조하면, 본 발명에 따라서 테스트 받는 아이템(12)은 테스트 모드 스위칭 레지스터(42) 및 테스트 제어 회로(38)를 포함하며, 그것은 외부 모드로 분류된다. 테스트 모드 스위칭 레지스터(42)는 테스트 기계-Ⅱ(28)와 같은 테스트 기구로부터 외부 명령을 수신하여 테스트 모드를 선택한다. 즉, 이 레지스터는 각종 테스트 모드 각각으로 스위칭할 수 있으며, 필요한 경우 테스트 모드들이 부가될 수 있다. 테스트 제어 회로(38)는 테스트 기구로부터 전송되는 외무 명령의 타이밍을 제어하는데 사용되고 ; 이와 같은 외부 명령은 또한 멀티플랙서(32)를 통해 제어 회로-Ⅰ(30)에 전송되며 ; 제어 회로-Ⅰ(30)는 명령을 디코딩하여 프로그램 명령을 실행하고 신호를 테스트 기계-Ⅱ(28)와 같은 테스트 기구에 전송하여 비교한다.Referring to FIG. 3, the item under test 12 according to the present invention includes a test mode switching register 42 and a test control circuit 38, which is classified as an external mode. The test mode switching register 42 receives an external command from a test instrument such as test machine-II 28 to select a test mode. That is, this register can switch to each of the various test modes, and test modes can be added if necessary. The test control circuit 38 is used to control the timing of the foreign command sent from the test instrument; This external command is also sent to the control circuit-I 30 via the multiplexer 32; Control circuit-I 30 decodes the instructions to execute program instructions and transmits the signals to a test instrument such as test machine-II 28 for comparison.
마이크로 콘트롤러의 원래 메모리는 응용 프로그램 메모리 및 테스트 프로그램 메모리의 두 부분으로 분할되며, 그것은 내부 모드로 분류된다. 응용프로그램 메모리(34)는 응용 프로그램을 기억하는데 사용되며 ; 테스트 프로그램 메모리(36)는 테스트 프로그램을 기억하는데 사용된다. 테스트 동안, 마이크로 콘트롤러의 메모리는 테스트 프로그램 메모리(36)로 스위칭되어 내장 테스트 프로그램에 의해 셀프-테스트를 수행한다. 테스트 프로그램은 모듈러 타입(modular type)으로 설계되는데, 즉 단일 테스트 기능들의 집합을 토대로 설계되어 유연한 테스트 기능을 제공한다. ROM 판독 장치(40)는 프로그램 메모리(34)로부터 프로그램 코드를 판독하는데 사용되어 응용 프로그램 메모리(34)가 적절히 판독되어서 상기 기억된 응용 프로그램이 실행될 수 있는지를 테스트한다. 본 발명은 3개의 채널에 의해 테스트를 수행할 수 있으며 ; 내부 모드가 충분한 테스트 기능을 제공하지 못하거나 쓸모가 없는 경우에는, 외부 모드가 대신 사용되어 불완전한 테스트 문제를 극복하며 ; 따라서, 본 발명에 따른 방법은 테스트 효율성을 개선할 뿐만 아니라 테스트 아이템의 범위가 증가된다.The microcontroller's original memory is divided into two parts, the application memory and the test program memory, which is classified as internal mode. Application memory 34 is used to store application programs; The test program memory 36 is used to store the test program. During the test, the memory of the microcontroller is switched to the test program memory 36 to perform self-test by the built-in test program. The test program is designed in a modular type, that is, based on a single set of test functions to provide flexible test functions. The ROM reading device 40 is used to read the program code from the program memory 34 to test whether the application program memory 34 is properly read so that the stored application program can be executed. The present invention can perform the test by three channels; If the internal mode does not provide enough test functionality or is useless, the external mode is used instead to overcome the incomplete test problem; Thus, the method according to the invention not only improves test efficiency but also increases the range of test items.
제4도는 본 발명을 따른 테스트 실시예의 순서도인데 ; 제1단계는 전원을 턴온 시키고(44) ; 다음 단계는 테스트가 수행되는지를 판단하며(46) ; 응답이 NO라면, 테스트 받는 아이템은 정상적으로 프로그램을 실행하는 단계로 진입하고(48) ; 만일 응답이 YES라면, 신호는 테스트 모드 스위칭 레지스터에 전송되어 외부 모드(50)를 실행하고 ; 다음, 스위칭 레지스터는 외부 명령 f를 판독하여 테스트 모드(52)를 선택한다. 외부 모드(50)가 선택되면, 이 모드의 제어 회로는 신호를 전송한다. 테스트가 완료되면, 신호는 외부 모드(50)의 테스트-모드 스위칭 레지스터로 복귀된다. 내부 모드(58)가 선택되면, 신호는 내부 모드(58)의 테스트 프로그램 메모리로 진입하여 테스트 기능을 선택한다. 테스트가 완료된 후, 신호는 외부 모드(50)의 테스트 모드 스위칭 레지스터로 복귀된다.4 is a flowchart of a test embodiment according to the present invention; The first step is to turn on the power (44); The next step is to determine if the test is performed (46); If the answer is NO, then the item under test enters into the normal execution of the program (48); If the response is YES, the signal is sent to the test mode switching register to execute the external mode 50; The switching register then reads external command f to select test mode 52. When the external mode 50 is selected, the control circuit in this mode transmits a signal. When the test is complete, the signal returns to the test-mode switching register of external mode 50. When the internal mode 58 is selected, the signal enters the test program memory of the internal mode 58 to select a test function. After the test is completed, the signal is returned to the test mode switching register of the external mode 50.
모든 테스트 기능이 외부 모드(50) 및 내부 모드(58)를 통해서 완료되면, 판독 응용 프로그램 모드(54)는 명령을 실행하는데 사용되고, 다음, 테스트는 종료된다(56).Once all test functions are completed via external mode 50 and internal mode 58, read application mode 54 is used to execute the command, and then the test ends 56.
그러나, 상술한 설명은 본 발명에 따른 바람직한 실시예에 대해서만 서술된 것으로, 거기에 제한되도록 해석되어서는 안 되며 ; 본 발명의 청구범위에 대한 어떠한 변경이나 수정도 본 발명의 청구범위에 속하는 것임을 알아야 한다.However, the above description is only described for the preferred embodiment according to the present invention, and should not be construed to be limited thereto; It should be understood that any change or modification to the claims of the present invention shall fall within the claims of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019950041788A KR100193589B1 (en) | 1995-11-17 | 1995-11-17 | Test Methods for Microcontrollers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019950041788A KR100193589B1 (en) | 1995-11-17 | 1995-11-17 | Test Methods for Microcontrollers |
Publications (2)
Publication Number | Publication Date |
---|---|
KR970028585A KR970028585A (en) | 1997-06-24 |
KR100193589B1 true KR100193589B1 (en) | 1999-06-15 |
Family
ID=66587834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019950041788A KR100193589B1 (en) | 1995-11-17 | 1995-11-17 | Test Methods for Microcontrollers |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100193589B1 (en) |
-
1995
- 1995-11-17 KR KR1019950041788A patent/KR100193589B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR970028585A (en) | 1997-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA1163721A (en) | Apparatus for the dynamic in-circuit testing of electronic digital circuit elements | |
US6668339B1 (en) | Microprocessor having a debug interruption function | |
KR960003365B1 (en) | Lsi testing method | |
KR100597771B1 (en) | Test circuit for memory | |
KR980006434A (en) | On-Chip Automated Procedure for Memory Test | |
US5802071A (en) | Micro-controller with a built-in test circuit and method for testing the same | |
KR950007886B1 (en) | Self-test circuit of informaiton processor | |
US20040163012A1 (en) | Multiprocessor system capable of efficiently debugging processors | |
KR920005233B1 (en) | Testing and maintenance apparatus for data processing systems | |
JP4992791B2 (en) | Scan control method and apparatus | |
KR100193589B1 (en) | Test Methods for Microcontrollers | |
US6119064A (en) | Vehicular control apparatus arranged for undergoing initial failure test after burn-in and method arranged therefor | |
KR100277770B1 (en) | Sequence control circuit | |
US4961191A (en) | Test circuit for logic circuits | |
GB2307568A (en) | Multi-mode testing of a micro-controller | |
US6311298B1 (en) | Mechanism to simplify built-in self test of a control store unit | |
KR100329880B1 (en) | Microcomputers and Burn-in Test Methods | |
US6425102B1 (en) | Digital signal processor with halt state checking during self-test | |
KR20060019609A (en) | Test device and program | |
JPH11258304A (en) | Circuit and method for test of system logic | |
JPH09146787A (en) | Test method for microprocessor | |
SU1621027A1 (en) | Microprogram control device | |
KR100253370B1 (en) | Programmable joint test access group emulator | |
EP0898282B1 (en) | Semiconductor integrated circuit and method for designing the same | |
CN1170877A (en) | Measuring method for micro controller function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
LAPS | Lapse due to unpaid annual fee |