KR19980068125A - IC card circuit and its test method - Google Patents

IC card circuit and its test method Download PDF

Info

Publication number
KR19980068125A
KR19980068125A KR1019970004577A KR19970004577A KR19980068125A KR 19980068125 A KR19980068125 A KR 19980068125A KR 1019970004577 A KR1019970004577 A KR 1019970004577A KR 19970004577 A KR19970004577 A KR 19970004577A KR 19980068125 A KR19980068125 A KR 19980068125A
Authority
KR
South Korea
Prior art keywords
data
card
input
test
predetermined
Prior art date
Application number
KR1019970004577A
Other languages
Korean (ko)
Other versions
KR100222576B1 (en
Inventor
김광원
김상범
Original Assignee
김광호
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 김광호, 삼성전자 주식회사 filed Critical 김광호
Priority to KR1019970004577A priority Critical patent/KR100222576B1/en
Publication of KR19980068125A publication Critical patent/KR19980068125A/en
Application granted granted Critical
Publication of KR100222576B1 publication Critical patent/KR100222576B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0095Testing the sensing arrangement, e.g. testing if a magnetic card reader, bar code reader, RFID interrogator or smart card reader functions properly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0722Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips comprising an arrangement for testing the record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer

Abstract

본 발명은 IC 카드의 생산시 완제품의 이상 유무를 테스트시 내부의 데이터 메모리 영역에 소정의 테스트 프로그램을 로딩하여 IC 카드의 테스트를 수행하는 IC 카드 회로 및 이의 테스트 방법에 관한 것으로, IC 카드 회로는 CPU와, 고속의 직렬입출력부와, 프로그램 메모리와, 데이터 메모리와, 인스트럭션입력부 및 플래그를 포함하여 구성된다. IC 카드 테스트시에 내부의 데이터 메모리를 프로그램 및 데이터 메모리 영역으로 설정하고, 외부로부터 소정의 테스트 프로그램을 그 영역으로 로딩하여 해당되는 테스트를 수행한다. 상기 데이터 메모리에서 출력되는 인스트럭션은 인스트럭션 입력부에 의해 인스트럭션 패치로 패스되어 출력된다. IC 카드가 정상인 경우 플레그를 정상모드로 설정하므로 이 후 전원 입력시에는 상기 데이터 메모리를 데이터 영역으로 하여 해당되는 소정의 IC 카드 제어 프로그램이 수행된다.The present invention relates to an IC card circuit and a test method thereof for loading a predetermined test program into an internal data memory area to test an IC card when testing an abnormality of a finished product during the production of an IC card. The CPU includes a CPU, a high speed serial input / output unit, a program memory, a data memory, an instruction input unit, and a flag. During the IC card test, the internal data memory is set to a program and a data memory area, and a predetermined test program is loaded into the area from the outside to perform a corresponding test. The instruction output from the data memory is passed to the instruction patch by the instruction input unit and output. When the IC card is normal, the flag is set to the normal mode, and accordingly, when the power is input, a corresponding IC card control program is executed with the data memory as the data area.

Description

아이씨 카드 회로 및 이의 테스트 방법IC card circuit and its test method

본 발명은 IC 카드(integrated circuit card)에 관한 것으로서, 구체적으로는 IC 카드의 생산시 완제품의 이상 유무를 테스트시 내부의 데이터 메모리 영역에 소정의 테스트 프로그램을 로딩하여 IC 카드의 테스트를 수행하는 IC 카드 회로 및 이의 테스트 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an integrated circuit card. Specifically, an IC for testing an IC card by loading a predetermined test program into an internal data memory area when testing for an abnormality of a finished product during production of an IC card. It relates to a card circuit and a test method thereof.

IC 카드란, 집적회로(integrated circuit)를 이용하여 얇은 휴대용 카드를 만든 것으로, 정보를 기억하는 용도로 주로 사용된다. 이는 컴퓨터의 소형화 및 기록매체의 소형화 추세에 따라 신기술로 부상하고 있다. 이러한 IC 카드의 사용은 예를 들어 개인의 인적사항을 기록하여 신분증으로 사용할 수 있는데 기존의 마그네틱 카드(magnetic card)와 유사하나 저장하는 데이터 용량이 훨씬 크다. 그러므로 IC 카드는 기존의 마그네틱 카드를 대체하고 있는 추세에 있으며 정보의 저장이 간편하며 그 저장 용량 또한 많고 보안성이 뛰어나 그 응용 범위가 넓다.An IC card is a thin portable card made of an integrated circuit, and is mainly used for storing information. This is emerging as a new technology according to the trend of miniaturization of computers and miniaturization of recording media. The use of such an IC card can be used as an identification card, for example, to record personal information of a person, which is similar to a conventional magnetic card, but has a much larger data capacity. Therefore, IC cards have been replacing the existing magnetic cards, and the information is easy to store, the storage capacity is high, and the security is excellent, so the application range is wide.

도 1은 종래의 IC 카드 회로의 회로도이다.1 is a circuit diagram of a conventional IC card circuit.

도 1에 도시된바와 같이, 종래의 IC 카드 회로는 크게 CPU(central processing unit)(100)와, 직렬입출력부(SIO; serial input output)(200)와, ROM(read only memory)으로 구성된 프로그램 메모리(program memory)(300)와, RAM(random access memory)(420) 또는 EEPROM(electrically erasable and programmable ROM)(440) 등으로 구성되는 데이터 메모리(data memory)(400)를 포함하여 구성된다. 통상 이러한 회로는 하나의 칩에 집적되어 단일 칩으로 제공되고 있다.As shown in FIG. 1, a conventional IC card circuit is largely composed of a central processing unit (CPU) 100, a serial input output (SIO) 200, and a read only memory (ROM). And a data memory 400 including a program memory 300, a random access memory (RAM) 420, an electrically erasable and programmable ROM (EEPROM) 440, and the like. Typically these circuits are integrated into one chip and provided as a single chip.

상기 프로그램 메모리(300)에는 IC 카드를 제어하기 위한 소정의 프로그램이 저장되어 있어 상기 CPU(100)에 의해 상기 프로그램이 수행된다. 상기 데이터 메모리(400)에는 상기 프로그램이 수행되면서 발생되는 데이터가 임시 저장되고, 상기 직렬입출력부(200)를 통해 입력되는 데이터를 저장하기도 한다.The program memory 300 stores a predetermined program for controlling the IC card so that the program is executed by the CPU 100. The data generated by the execution of the program is temporarily stored in the data memory 400, and may store data input through the serial input / output unit 200.

상기 직렬입출력부(200)는 외부핀을 통해 입력되는 직렬 데이터(serial data)를 병렬 데이터(parallel data)로 변환하여 내부 제공하고, 역으로 내부의 버스를 통해 입력되는 병렬 데이터를 직렬 데이터로 변환하여 외부핀으로 출력한다.The serial input / output unit 200 converts serial data input through an external pin into parallel data and provides the internal data, and conversely, converts parallel data input through an internal bus into serial data. Output to an external pin.

외부핀은 일반적으로 ISO(international standardization organization)의 규격인 ISO-7816의 규격에 의거하여 8핀으로 구성된다. 현재 이 8핀 중 5핀을 사용하며 이는 전원단자, 데이터(직렬) 입력단자, 클럭단자 등으로 사용된다.The external pin is generally composed of 8 pins according to the standard of ISO-7816, which is a standard of ISO (International Standardization Organization). Currently, 5 of these 8 pins are used, which are used as power terminals, data (serial) input terminals, and clock terminals.

한편, 이상과 같은 IC 카드는 제품 생산시 제품의 이상 유무를 테스트하는 단계를 거치게 된다. 일단 집적화된 IC 카드용 칩이 탑재되어 완제품화된 IC 카드를 테스트하기 위해서 구비된 5핀을 이용하여 데이터를 입출력하며 테스트를 수행해야 하는데 이 과정은 매우 복잡하고, 그에 따른 테스트 시간이 많이 소요된다. 그러므로 제품 생산률 저하의 주원인으로 작용하여 IC카드의 단가 상승 등의 부정적 영향을 발생시키는 문제점을 가지고 있었다.On the other hand, the IC card as described above goes through a step of testing for the presence of the product during product production. Once the integrated IC card chip is mounted, data must be input and output and tested using the 5-pin provided to test the finished IC card. This process is very complicated and the test time is very time-consuming. . Therefore, it has a problem of causing negative effects such as an increase in unit price of IC cards by acting as a main cause of the decrease in product production rate.

본 발명의 목적은 상술한 문제점을 해결하기 위해 제안된 것으로서, 단시간 내에 효율적으로 IC카드의 이상 유무를 테스트 할 수 있는 IC 카드 회로 및 이의 테스트 방법을 제공하는데 있다.SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems, and to provide an IC card circuit and a test method thereof capable of efficiently testing the presence or absence of an IC card in a short time.

도 1은 종래의 IC 카드 회로의 회로도,1 is a circuit diagram of a conventional IC card circuit,

도 2 내지 도 7은 본 발명의 바람직한 실시예에 따른 IC 카드 회로 및 이의 테스트 방법을 설명하기 위한 도면으로,2 to 7 are views for explaining the IC card circuit and its test method according to a preferred embodiment of the present invention,

도 2는 IC 카드 회로의 회로도,2 is a circuit diagram of an IC card circuit,

도 3은 도 2에 도시된 직렬입출력부의 상세 회로도,3 is a detailed circuit diagram of a series input / output unit shown in FIG. 2;

도 4는 도 2에 도시된 인스트럭션입력부의 상세 회로도,4 is a detailed circuit diagram of an instruction input unit shown in FIG. 2;

도 5A 및 도 5B는 정상모드와 테스트모드에 따른 메모리 영역의 구성을 보여주는 도면,5A and 5B are views illustrating a configuration of a memory area according to a normal mode and a test mode;

도 6은 IC 카드의 테스트 수행여부를 표시하기 위한 플레그를 보여주는 도면,6 is a view showing a flag for indicating whether or not a test of the IC card;

도 7은 IC 카드의 테스트 방법의 흐름도.7 is a flowchart of a test method for an IC card.

*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *

100 : CPU200, 500 : 직렬입출력부100: CPU200, 500: serial I / O unit

300 : 프로그램 메모리400 : 데이터 메모리300: program memory 400: data memory

420 : RAM440 : EEPROM420: RAM440: EEPROM

520 : 직/병렬 변환부540 : 멀티플렉서520: serial / parallel conversion unit 540: multiplexer

560, 620 : 레지스터580 : 데이터입력부560, 620: Register 580: Data input section

582 : 버퍼584 : 논리회로582: buffer 584: logic circuit

600 : 인스트럭션입력부640 : 스위칭부600: instruction input unit 640: switching unit

상술한 목적을 달성하기 위한 본 발명의 일 특징에 의하면, IC 카드 회로는 : IC 카드 회로의 전반적인 제어를 수행하는 IC 카드 제어부와; 소정의 외부핀과 내부와의 데이터 입출력 위한 인터페이스를 수행하며, IC 카드의 테스트를 수행하는 테스트 모드에서 정상 동작을 수행하는 정상 모드보다 빠른 입출력 인터페이스를 수행하는 직렬입출력부와; 소정의 IC 제어 프로그램이 저장되는 프로그램 메모리와; 정상 모드시 데이터 메모리 영역으로 설정되어 해당 데이터들이 저장되고, 테스트모드시 프로그램 및 데이터 영역으로 설정되어 외부로부터 소정의 테스트 프로그램이 로딩되는 데이터 메모리와; 테스트 모드시에 소정의 제어신호들을 입력받아 이에 응답하여 상기 데이터 메모리로부터 출력되는 데이터가 인스트럭션으로 패치되도록 하는 인스트럭션입력부와; 상기 IC 카드의 테스트 수행 여부를 표시하기 위한 플레그를 포함한다.According to one aspect of the present invention for achieving the above object, an IC card circuit includes: an IC card controller for performing overall control of the IC card circuit; A serial I / O unit which performs an interface for data input / output between a predetermined external pin and an inside, and performs an input / output interface faster than a normal mode in which a normal operation is performed in a test mode in which an IC card is tested; A program memory in which a predetermined IC control program is stored; A data memory set in a data memory area in the normal mode to store corresponding data, and set in a program and data area in the test mode to load a predetermined test program from the outside; An instruction input unit configured to receive predetermined control signals in a test mode, and in response thereto, to output data from the data memory into an instruction; And a flag for indicating whether or not the IC card is to be tested.

이 실시예에 있어서, 상기 직렬입출력부는 정상모드시 상기 외부핀으로부터 입력되는 직렬 데이터를 병렬데이터로 변환하여 내부로 제공하고, 내부로부터 입력된 병렬 데이터를 직렬 데이터로 변환하여 출력하는 직/병렬변환부와; 테스트 모드시 내부로부터 직렬 데이터를 입력받아 소정의 출력제어신호의 입력에 응답하여 출력하는 레지스터와; 소정의 선택신호의 입력에 응답하여 상기 직/병렬변환부의 출력 또는 상기 레지스터의 출력을 입력받고 그 중 선택된 입력을 상기 외부핀으로 출력하는 멀티플렉서와; 상기 선택신호 및 소정의 입력제어신호의 입력에 응답하여 상기 외부핀으로부터 입력되는 데이터를 내부로 제공하는 데이터입력부를 포함한다.In this embodiment, the serial input / output unit converts serial data input from the external pin into parallel data in the normal mode and provides the same internally, and converts the parallel data input from the internal data into serial data and outputs the serial data. Wealth; A register which receives serial data from the inside in a test mode and outputs in response to an input of a predetermined output control signal; A multiplexer configured to receive an output of the serial / parallel converter or an output of the register in response to an input of a predetermined selection signal, and output a selected one of the outputs to the external pin; And a data input unit configured to internally provide data input from the external pin in response to input of the selection signal and a predetermined input control signal.

이 실시예에 있어서, 상기 레지스터는 D 플립플롭으로 구성된다.In this embodiment, the register is comprised of D flip-flops.

이 실시예에 있어서, 상기 프로그램 메모리는 불휘발성 메모리로 구성된다.In this embodiment, the program memory is composed of a nonvolatile memory.

이 실시예에 있어서, 상기 데이터 메모리는 휘발성 메모리 및 재기입 가능한 불휘발성 메모리로 구성된다.In this embodiment, the data memory consists of a volatile memory and a rewritable nonvolatile memory.

이 실시예에 있어서, 상기 데이터입력부는 상기 외부핀으로부터 입력되는 데이터를 내부로 출력하는 버퍼와; 상기 선택신호 및 상기 입력제어신호를 입력받아 소정의 논리연산을 통해 해당되는 신호를 상기 버퍼로 제공하여 상기 버퍼를 인에이블/디스에이블되도록 하는 논리회로부를 포함한다.In this embodiment, the data input unit and a buffer for outputting the data input from the external pin therein; And a logic circuit unit configured to receive the selection signal and the input control signal and provide a corresponding signal to the buffer through a predetermined logic operation to enable / disable the buffer.

이 실시예에 있어서, 상기 논리회로부는 AND 게이트로 구성된다.In this embodiment, the logic circuit portion is composed of an AND gate.

이 실시예에 있어서, 상기 인스트럭션입력부는 테스트 모드시에 상기 데이터 메모리로부터 출력되는 데이터가 인스트럭션으로 패치되도록 하는 스위칭부와; 소정의 스위칭제어신호를 입력받고, 소정의 제어신호의 입력에 응답하여 상기 스위칭부로 상기 스위칭제어신호를 출력하는 레지스터를 포함한다.In this embodiment, the instruction input unit comprises: a switching unit configured to patch data output from the data memory into an instruction in a test mode; And a register configured to receive a predetermined switching control signal and output the switching control signal to the switching unit in response to the input of the predetermined control signal.

이 실시예에 있어서, 상기 레지스터는 D 플립플롭으로 구성된다.In this embodiment, the register is comprised of D flip-flops.

이 실시예에 있어서, 상기 플레그는 상기 데이터 메모리에 구비된 재기입 가능한 불휘발성 메모리의 일정 영역에 설정된다.In this embodiment, the flag is set in a predetermined area of the rewritable nonvolatile memory provided in the data memory.

본 발명의 다른 특징에 의하면 IC 카드 제어부와, 직렬입출력부와, 프로그램 메모리와, 데이터 메모리와, 인스트럭션입력부와 테스트 수행 여부를 판단하기 위한 플레그를 포함하는 IC 카드 회로의 테스트 방법은 : (a) IC 카드에 전원이 입력시 상기 플레그를 판단하여 테스트 모드인가를 판단하는 단계와; (b) 정상 모드인 경우, 상기 데이터 메모리를 데이터 메모리 영역으로 하여 소정의 IC 카드 제어 프로그램이 실행되는 단계와; (c) 테스트 모드인 경우, 상기 데이터 메모리를 프로그램 및 데이터 메모리 영역으로 설정하여 외부로부터 소정의 테스트 프로그램을 로딩하는 단계와; (d) 상기 로딩된 테스트 프로그램을 수행하여 소정의 IC 카드 테스트를 수행하는 단계를 포함한다.According to another aspect of the present invention, a test method of an IC card circuit including an IC card control unit, a serial input / output unit, a program memory, a data memory, an instruction input unit, and a flag for determining whether or not to perform a test is: (a) Judging whether the flag is in a test mode when power is input to the IC card; (b) in the normal mode, executing a predetermined IC card control program using the data memory as a data memory area; (c) in the test mode, setting the data memory as a program and a data memory area to load a predetermined test program from the outside; (d) performing a predetermined IC card test by executing the loaded test program.

이 실시예에 있어서, 상기 단계 (d)는 정상적으로 IC 카드의 테스트가 완료된 경우, 플레그를 정상 모드로 설정하는 단계를 포함한다.In this embodiment, the step (d) includes setting the flag to the normal mode when the test of the IC card is normally completed.

이상과 같은 본 발명에 의하면, IC 카드 테스트시에 내부의 데이터 메모리를 프로그램 및 데이터 메모리 영역으로 설정하고, 외부로부터 소정의 테스트 프로그램을 그 영역으로 로딩하여 해당되는 테스트를 수행한다. IC 카드가 정상인 경우 해당되는 플레그를 정상모드로 설정하여 이 후 전원 입력시에는 상기 데이터 메모리를 데이터 영역으로 하여 해당되는 소정의 IC 카드 제어 프로그램이 수행된다.According to the present invention as described above, during the IC card test, the internal data memory is set to a program and a data memory area, and a predetermined test program is loaded into the area from the outside to perform a corresponding test. If the IC card is normal, the corresponding flag is set to the normal mode, and when the power is input thereafter, the corresponding IC card control program is executed with the data memory as the data area.

(실시예)(Example)

이하 본 발명의 실시예를 첨부된 도면에 의거하여 상세히 설명한다.DETAILED DESCRIPTION Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

첨부 도면 도 2 내지 도 7은 본 발명의 바람직한 실시예에 따른 IC 카드 회로 및 이의 테스트 방법을 설명하기 위한 도면이다. 도 2에서 도 1에 도시된 구성부분과 동일한 기능을 갖는 구성부분은 동일한 참조번호를 병기하고 그 설명은 생략한다.2 to 7 are views for explaining an IC card circuit and a test method thereof according to a preferred embodiment of the present invention. In FIG. 2, components having the same functions as those shown in FIG. 1 denote the same reference numerals, and a description thereof will be omitted.

도 2는 본 발명의 실시예에 따른 IC 카드 회로의 회로도를 도시하고 있으며, 이 IC 카드 회로는 크게 CPU(100)와, 직렬입출력부(500)와, 프로그램메모리(300)와, 데이터메모리(400)와, 인스트럭션입력부(600)를 포함하고 있다.2 shows a circuit diagram of an IC card circuit according to an embodiment of the present invention. The IC card circuit is largely divided into a CPU 100, a serial input / output unit 500, a program memory 300, and a data memory ( 400 and an instruction input unit 600.

상기 직렬입출력부(500)는 IC 카드가 완제품화된 후 5개의 한정된 외부핀으로 빠른 테스트를 수행하기 위해 고속의 직렬 인터페이스(serial interface)로 구현한다. 이를 구현한 직렬입출력부(500)가 첨부도면 도 3에 도시되어 있다.The serial input / output unit 500 implements a high speed serial interface to perform a quick test with five limited external pins after the IC card is completed. A serial I / O unit 500 implementing this is shown in FIG. 3.

도 3은 도 2에 도시된 직렬입출력부(500)의 상세 회로도이다.3 is a detailed circuit diagram of the serial I / O unit 500 shown in FIG. 2.

도 3에 도시된바와 같이, 본 발명의 실시예예 따른 직렬입출력부(500)는 직병렬변환부(520)와, 멀티플렉서(multiplexer)(540)와, 레지스터(560)와, 데이터입력부(580)를 포함하여 구성된다.As shown in FIG. 3, the serial input / output unit 500 according to an embodiment of the present invention includes a serial-parallel converter 520, a multiplexer 540, a register 560, and a data input unit 580. It is configured to include.

상기 직병렬변환부(520)는 외부핀으로부터 직렬 데이터를 입력받아 병렬 데이터로 변환하여 내부로 제공하고, 외부핀으로 출력시에는 내부로부터 입력되는 병렬 데이터를 직렬 데이터로 변환하여 상기 멀티플렉서(540)를 통해 출력한다. 이는 IC 카드가 정상적인 동작을 수행하는 정상 모드일 때 외부핀을 통해 이루어지는 데이터 입출력 동작이다.The serial-to-parallel converter 520 receives serial data from an external pin and converts the serial data into parallel data and provides the internal data. When outputting to the external pin, the multiplexer 540 converts parallel data input from the internal data into serial data. Output through This is the data input / output operation through external pins when the IC card is in the normal mode to perform normal operation.

상기 레지스터(560)는 1비트(bit) 레지스터로서 D 플립플롭(D flip-flop)으로 구성할 수 있으며, 내부로부터 직렬 데이터를 입력받고 소정의 클럭신호(S1)의 입력에 응답하여 상기 직렬 데이터를 상기 멀티플렉서(540)로 제공하여 직렬 데이터의 출력이 이루어진다. 이는 IC 카드의 테스트를 수행하기 위한 테스트 모드 일 때 외부핀을 통해 이루어지는 데이터 출력 동작이다.The register 560 may be configured as a D flip-flop as a 1-bit register, and receives serial data from within and responds to input of a predetermined clock signal S1. Is provided to the multiplexer 540 to output serial data. This is a data output operation via external pins in the test mode for testing the IC card.

상기 멀티플렉서(540)는 소정의 선택신호(S3)의 입력에 응답하여 상기 직병렬변환부(520)의 입력 또는 상기 레지스터(560)의 입력중 해당되는 입력을 상기 외부핀으로 출력한다.The multiplexer 540 outputs a corresponding input of the input of the serial-to-parallel converter 520 or the input of the register 560 to the external pin in response to an input of a predetermined selection signal S3.

상기 데이터입력부(580)는 버퍼(582)와 논리회로(584)로 구성될 수 있으며, 상기 논리회로(584)는 AND 게이트(AND gate)로 구성될 수 있다. 상기 버퍼(582)는 상기 외부핀으로부터 입력되는 직렬 데이터를 내부로 제공한다. 상기 논리회로(584)는 상기 선택신호(S3)와 소정의 입력제어신호(S2)를 입력받아 해당 논리연산 결과를 상기 버퍼(582)로 제공하여 상기 버퍼(582)가 인에이블(enable) 또는 디스에이블(disable)이 되게 한다.The data input unit 580 may include a buffer 582 and a logic circuit 584, and the logic circuit 584 may include an AND gate. The buffer 582 provides internally the serial data input from the external pin. The logic circuit 584 receives the selection signal S3 and a predetermined input control signal S2 and provides a corresponding logic operation result to the buffer 582 so that the buffer 582 is enabled or enabled. Make it disable.

이는 IC 카드를 테스트하기 위한 테스트 모드의 경우, 상기 멀티플렉서(540)와 상기 논리회로(584)로 상기 선택신호(S3)가 하이레벨로 입력된다. 따라서 상기 멀티플렉서(540)는 상기 레지스터(560)의 입력을 상기 외부핀으로 출력 가능하게 된다.In the test mode for testing an IC card, the selection signal S3 is input to the multiplexer 540 and the logic circuit 584 at a high level. Therefore, the multiplexer 540 can output the input of the register 560 to the external pin.

이때, 상기 논리회로(584)로 상기 입력제어신호(S2)가 하이레벨로 입력되는 경우 상기 논리회로(584)의 출력은 하이레벨이 되어 상기 버퍼(582)가 인에이블 된다. 그러므로 상기 외부핀으로부터 직렬 데이터의 입력이 있는 경우는 상기 버퍼(582)를 통하여 내부로 제공된다. 내부로 제공된 직렬 데이터는 이를 병렬 데이터로 변환하기 위한 소정의 소프트웨어(software)에 의해 병렬 데이터로 변환되어 처리된다.At this time, when the input control signal S2 is input to the logic circuit 584 at a high level, the output of the logic circuit 584 is at a high level, and the buffer 582 is enabled. Therefore, when there is an input of serial data from the external pin, it is provided internally through the buffer 582. Serial data provided internally is converted into parallel data and processed by predetermined software for converting it into parallel data.

한편, 상기 인스트럭션입력부(600)의 상세 회로도가 도 4에 도시되어 있다.Meanwhile, a detailed circuit diagram of the instruction input unit 600 is shown in FIG. 4.

도 4에 도시된바와 같이, 본 발명의 실시예에 따른 인스트럭션입력부(600)는 레지스터(620)와, 스위칭부(640)를 포함하여 구성된다. 상기 레지스터(620)는 1비트 레지스터로서 D 플립플롭으로 구성될 수 있다.As shown in FIG. 4, the instruction input unit 600 according to the embodiment of the present invention includes a register 620 and a switching unit 640. The register 620 may be configured as a D flip-flop as a 1-bit register.

상기 레지스터(620)는 소정의 스위칭제어신호(S4)를 입력받고 소정의 클럭신호(S5)의 입력에 응답하여 상기 스위칭부(640)를 제어하기 위한 신호를 출력한다. 상기 스위칭부(640)는 상기 레지스터(620)의 출력에 응답하여 상기 데이터 메모리(400)에 로드된 소정의 테스트 프로그램의 실행에 따른 인스트럭션(instruction) 발생시 인스트럭션으로 패치(fetch)되는 패스(path)를 연결한다.The register 620 receives a predetermined switching control signal S4 and outputs a signal for controlling the switching unit 640 in response to an input of a predetermined clock signal S5. The switching unit 640 is a path that is fetched to an instruction when an instruction occurs according to an execution of a test program loaded in the data memory 400 in response to the output of the register 620. Connect it.

구체적으로, 도 5A를 참조하여, 상기 데이터 메모리(400)는 정상모드시 데이터의 저장을 위한 데이터 메모리 영역으로 설정되어 사용된다. 그러나 도 5B를 참조하여, 테스트 모드시에는 상기 데이터 메모리(400)가 프로그램 및 데이터 메모리 영역으로 설정되므로 테스트를 위한 소정의 프로그램이 상기 데이터 메모리(400)에 로드(load)되게 된다. 그러므로 로딩된 테스트 프로그램의 실행에 따라 IC 카드의 소정의 테스트가 수행된다.Specifically, referring to FIG. 5A, the data memory 400 is set and used as a data memory area for storing data in the normal mode. However, with reference to FIG. 5B, in the test mode, since the data memory 400 is set as a program and a data memory area, a predetermined program for a test is loaded into the data memory 400. Therefore, the predetermined test of the IC card is performed in accordance with the execution of the loaded test program.

도 6에 도시된바와 같이, 정상 모드와 테스트 모드의 설정은 상기 데이터 메모리(400)에 구비된 EEPROM(440)의 소정의 영역에 플레그(442)를 두고, 이 플레그(442)에 테스트 수행 여부를 표시한다. 그러므로 IC 카드에 전원이 입력되면 동작 초기에 상기 플레그(442)를 판단하여 테스트 모드 또는 정상 모드로 동작하게 된다. 또한 IC 카드의 테스트 완료 후에는 데이터 메모리(400)가 항상 데이터 메모리 영역으로 고정되므로, 의도적으로 정보를 고치기 위해 상기 데이터 메모리(400)를 프로그램 메모리 영역으로 전환하는 것을 방지할 수 있게 되므로 IC 카드의 보안성이 향상된다.As shown in FIG. 6, the normal mode and the test mode are set by placing a flag 442 in a predetermined region of the EEPROM 440 included in the data memory 400, and whether or not a test is performed on the flag 442. Is displayed. Therefore, when power is input to the IC card, the flag 442 is determined at the initial stage of operation to operate in the test mode or the normal mode. In addition, since the data memory 400 is always fixed to the data memory area after the test of the IC card is completed, it is possible to prevent the data memory 400 from being switched to the program memory area to intentionally correct the information. Security is improved.

다음은 도 7을 참조하여 IC 카드의 테스트 방법을 상세히 설명한다.Next, a test method of the IC card will be described in detail with reference to FIG. 7.

도 7은 IC 카드의 테스트 방법의 흐름도이다.7 is a flowchart of a test method for an IC card.

도 7을 참조하여, 단계 S100에서 IC 카드에 전원이 입력되면, 단계 S110에서는 테스트 모드인가를 판단한다. 즉, 상술한바와 같이, 상기 플레그(442)의 설정 상태를 판단하여 IC 카드가 테스트를 수행했는지 여부를 판단한다.Referring to FIG. 7, when power is input to the IC card in step S100, it is determined whether the test mode is in step S110. That is, as described above, it is determined whether the IC card has performed the test by determining the setting state of the flag 442.

테스트가 수행되어 정상 모드인 경우는 단계 S120으로 진행하여 데이터 메모리 영역을 설정하고, 단계 S130으로 진행하여 IC 카드의 해당되는 동작을 위한 사용자 프로그램을 실행한다. 즉, IC 카드의 고유 기능을 수행하기 위한 해당 사용자 프로그램이 수행된다. 이는 상술한바와 같이, 프로그램 메모리(300)를 구성하고 있는 ROM에 저장된 사용자 프로그램이 실행됨을 말한다.If the test is performed and is in the normal mode, the process proceeds to step S120 to set a data memory area, and the process proceeds to step S130 to execute a user program for a corresponding operation of the IC card. That is, the corresponding user program for performing the unique function of the IC card is performed. This means that the user program stored in the ROM constituting the program memory 300 is executed as described above.

한편, 테스트 모드인 경우는, 단계 S140으로 진행하여, 데이터 메모리 영역을 프로그램 및 데이터 메모리 영역으로 설정한다. 즉, 데이터 메모리(400)를 프로그램 및 데이터 메모리 영역으로 설정한다. 이어 단계 S150에서는 외부로부터 소정의 테스트 프로그램을 로딩한다. 즉, 상기 데이터 메모리(400)로 상기 테스트 프로그램을 로딩한다.On the other hand, in the test mode, the flow advances to step S140 to set the data memory area to a program and a data memory area. That is, the data memory 400 is set as a program and data memory area. In step S150, a predetermined test program is loaded from the outside. That is, the test program is loaded into the data memory 400.

그리고 단계 S160에서는 로딩된 테스트 프로그램을 수행하여 소정의 IC 카드 테스트가 수행된다. 그리고 정상적으로 IC 카드의 테스트가 완료된 경우는 상기 플레그(442)를 정상 모드로 설정하고 단계 S170으로 진행하여 종료된다. 즉, IC 카드의 테스트가 정상적으로 수행된 경우는 상기 플레그(442)를 정상모드로 설정하므로 이후 IC 카드에 전원이 입력되면 상기 단계 S120, S130이 수행된다.In operation S160, a predetermined IC card test is performed by executing the loaded test program. When the IC card has been successfully tested, the flag 442 is set to the normal mode, and the process proceeds to step S170, where it ends. That is, when the test of the IC card is normally performed, the flag 442 is set to the normal mode. When power is input to the IC card, the steps S120 and S130 are performed.

이상과 같이, IC 카드의 테스트를 위한 소정의 테스트 프로그램이 IC 카드의 메모리에 로딩되고, 로딩된 테스트 프로그램의 실행에 의해 테스트가 수행되므로 종래 보다 단시간 내에 IC 카드의 테스트가 수행된다.As described above, since the predetermined test program for testing the IC card is loaded into the memory of the IC card, and the test is performed by the execution of the loaded test program, the test of the IC card is performed in a shorter time than before.

이상과 같은 본 발명에 의하면, 종래와 같이 한정된 외부핀을 이용하여 복잡하고 장시간이 소요되는 테스트를 수행할 필요가 없으며, IC 카드의 메모리에 테스트를 위한 소정의 프로그램을 로딩하여 내부적으로 테스트를 수행하게 되므로 단시간 내에 테스트의 수행이 완료된다. 그러므로 종래와 같이 IC 카드의 테스트를 위한 테스트 모듈이 필요하지 않게 되며, IC 카드의 생산률이 증가되므로 이에 따른 원가 절감의 효과가 있다.According to the present invention as described above, it is not necessary to perform a complicated and time-consuming test using a limited external pin as in the prior art, and by performing a test internally by loading a predetermined program for testing in the memory of the IC card. The test is completed in a short time. Therefore, the test module for testing the IC card is not required as in the prior art, and the production rate of the IC card is increased, thereby reducing the cost.

Claims (12)

IC 카드 회로의 전반적인 제어를 수행하는 IC 카드 제어부(100)와;An IC card controller 100 which performs overall control of the IC card circuit; 소정의 외부핀과 내부와의 데이터 입출력 위한 인터페이스를 수행하며, IC 카드의 테스트를 수행하는 테스트 모드에서 정상 동작을 수행하는 정상 모드보다 빠른 입출력 인터페이스를 수행하는 직렬입출력부(500)와;A serial I / O unit 500 which performs an interface for data input / output between a predetermined external pin and an internal device, and performs an input / output interface faster than a normal mode in which a normal operation is performed in a test mode in which an IC card is tested; 소정의 IC 제어 프로그램이 저장되는 프로그램 메모리(300)와;A program memory 300 in which a predetermined IC control program is stored; 정상 모드시 데이터 메모리 영역으로 설정되어 해당 데이터들이 저장되고, 테스트모드시 프로그램 및 데이터 영역으로 설정되어 외부로부터 소정의 테스트 프로그램이 로딩되는 데이터 메모리(400)와;A data memory 400 set as a data memory area in the normal mode to store corresponding data, and set to a program and data area in the test mode to load a predetermined test program from the outside; 테스트 모드시에 소정의 제어신호들(S4, S5)을 입력받아 이에 응답하여 상기 데이터 메모리(400)로부터 출력되는 데이터가 인스트럭션으로 패치되도록 하는 인스트럭션입력부(600)와;An instruction input unit (600) for receiving predetermined control signals (S4, S5) in a test mode and causing the data output from the data memory (400) to be patched into an instruction in response thereto; 상기 IC 카드의 테스트 수행 여부를 표시하기 위한 플레그(422)를 포함하는 IC 카드 회로.And a flag (422) for indicating whether or not the IC card is to be tested. 제 1 항에 있어서,The method of claim 1, 상기 직렬입출력부(500)는 정상모드시 상기 외부핀으로부터 입력되는 직렬 데이터를 병렬데이터로 변환하여 내부로 제공하고, 내부로부터 입력된 병렬 데이터를 직렬 데이터로 변환하여 출력하는 직/병렬변환부(520)와;The serial input / output unit 500 converts the serial data input from the external pin into parallel data in the normal mode and provides the same to the internal data, and converts the parallel data input from the internal data into serial data and outputs the serial data. 520; 테스트 모드시 내부로부터 직렬 데이터를 입력받아 소정의 출력제어신호(S1)의 입력에 응답하여 출력하는 레지스터(560)와;A register 560 which receives serial data from the inside in the test mode and outputs in response to an input of a predetermined output control signal S1; 소정의 선택신호(S3)의 입력에 응답하여 상기 직/병렬변환부(520)의 출력 또는 상기 레지스터(560)의 출력을 입력받고 그 중 선택된 입력을 상기 외부핀으로 출력하는 멀티플렉서(540)와;A multiplexer 540 that receives an output of the serial / parallel conversion unit 520 or an output of the register 560 in response to an input of a predetermined selection signal S3 and outputs the selected input to the external pin; ; 상기 선택신호(S3) 및 소정의 입력제어신호(S2)의 입력에 응답하여 상기 외부핀으로부터 입력되는 데이터를 내부로 제공하는 데이터입력부(580)를 포함하는 IC 카드 회로.And a data input unit (580) for internally providing data input from the external pin in response to input of the selection signal (S3) and a predetermined input control signal (S2). 제 2 항에 있어서,The method of claim 2, 상기 레지스터(560)는 D 플립플롭으로 구성되는 IC 카드 회로.And the register (560) is configured as a D flip-flop. 제 1 항에 있어서,The method of claim 1, 상기 프로그램 메모리(300)는 불휘발성 메모리(ROM)로 구성되는 IC 카드 회로.The program memory 300 comprises a nonvolatile memory (ROM). 제 1 항에 있어서,The method of claim 1, 상기 데이터 메모리(400)는 휘발성 메모리(RAM, 420) 및 재기입 가능한 불휘발성 메모리(EEPROM, 440)로 구성되는 IC 카드 회로.The data memory (400) comprises an volatile memory (RAM) and a rewritable nonvolatile memory (EEPROM, 440). 제 2 항에 있어서,The method of claim 2, 상기 데이터입력부(580)는 상기 외부핀으로부터 입력되는 데이터를 내부로 출력하는 버퍼(582)와;The data input unit 580 includes a buffer 582 which outputs data input from the external pins therein; 상기 선택신호(S3) 및 상기 입력제어신호(S2)를 입력받아 소정의 논리연산을 통해 해당되는 신호를 상기 버퍼(582)로 제공하여 상기 버퍼(582)를 인에이블/디스에이블되도록 하는 논리회로부(584)를 포함하여 구성되는 IC 카드 회로.A logic circuit unit configured to receive the selection signal S3 and the input control signal S2 and provide a corresponding signal to the buffer 582 through a predetermined logical operation to enable / disable the buffer 582. IC card circuit including 584. 제 6 항에 있어서,The method of claim 6, 상기 논리회로부(584)는 AND 게이트로 구성되는 IC 카드 회로.And the logic circuit section (584) is composed of an AND gate. 제 1 항에 있어서,The method of claim 1, 상기 인스트럭션입력부(600)는 테스트 모드시에 상기 데이터 메모리(400)로부터 출력되는 데이터가 인스트럭션으로 패치되도록 하는 스위칭부(640)와;The instruction input unit 600 includes a switching unit 640 for patching data output from the data memory 400 into an instruction in a test mode; 소정의 스위칭제어신호(S4)를 입력받고, 소정의 제어신호(S5)의 입력에 응답하여 상기 스위칭부(640)로 상기 스위칭제어신호(S4)를 출력하는 레지스터(620)를 포함하는 IC 카드 회로.An IC card including a register 620 for receiving a predetermined switching control signal S4 and outputting the switching control signal S4 to the switching unit 640 in response to the input of the predetermined control signal S5. Circuit. 제 8 항에 있어서,The method of claim 8, 상기 레지스터(620)는 D 플립플롭으로 구성되는 IC 카드 회로.And the register (620) is configured as a D flip-flop. 제 1 항에 있어서,The method of claim 1, 상기 플레그(422)는 상기 데이터 메모리(400)에 구비된 재기입 가능한 불휘발성 메모리(EEPROM, 440)의 일정 영역에 설정되는 IC 카드 회로.The flag (422) is set in a predetermined region of the rewritable nonvolatile memory (EEPROM, 440) provided in the data memory (400). IC 카드 제어부(100)와, 직렬입출력부(500)와, 프로그램 메모리(300)와, 데이터 메모리(400)와, 인스트럭션입력부(600)와 테스트 수행 여부를 판단하기 위한 플레그(442)를 포함하는 IC 카드 회로의 테스트 방법에 있어서 :An IC card controller 100, a serial I / O unit 500, a program memory 300, a data memory 400, an instruction input unit 600, and a flag 442 for determining whether or not to perform a test. In the test method of the IC card circuit: (a) IC 카드에 전원이 입력시 상기 플레그(442)를 판단하여 테스트 모드인가를 판단하는 단계(S110)와;(a) determining whether the test mode is determined by determining the flag 442 when power is input to the IC card (S110); (b) 정상 모드인 경우, 상기 데이터 메모리(400)를 데이터 메모리 영역으로 하여 소정의 IC 카드 제어 프로그램이 실행되는 단계(S120, S130)와;(b) in the normal mode, executing a predetermined IC card control program using the data memory 400 as a data memory area (S120, S130); (c) 테스트 모드인 경우, 상기 데이터 메모리(400)를 프로그램 및 데이터 메모리 영역으로 설정하여 외부로부터 소정의 테스트 프로그램을 로딩하는 단계(S140, S150)와;(c) in the test mode, setting the data memory 400 as a program and a data memory area to load a predetermined test program from the outside (S140 and S150); (d) 상기 로딩된 테스트 프로그램을 수행하여 소정의 IC 카드 테스트를 수행하는 단계(S160)를 포함하는 것을 특징으로 하는 IC 카드 회로의 테스트 방법.(d) performing a predetermined IC card test by executing the loaded test program (S160). 제 1 항에 있어서,The method of claim 1, 상기 단계 (d)는Step (d) is 정상적으로 IC 카드의 테스트가 완료된 경우, 플레그(442)를 정상 모드로 설정하는 단계를 포함하는 것을 특징으로 하는 IC 카드 회로의 테스트 방법.And when the test of the IC card is completed normally, setting the flag (442) to the normal mode.
KR1019970004577A 1997-02-15 1997-02-15 Ic card circuit and test method KR100222576B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970004577A KR100222576B1 (en) 1997-02-15 1997-02-15 Ic card circuit and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970004577A KR100222576B1 (en) 1997-02-15 1997-02-15 Ic card circuit and test method

Publications (2)

Publication Number Publication Date
KR19980068125A true KR19980068125A (en) 1998-10-15
KR100222576B1 KR100222576B1 (en) 1999-10-01

Family

ID=19497119

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970004577A KR100222576B1 (en) 1997-02-15 1997-02-15 Ic card circuit and test method

Country Status (1)

Country Link
KR (1) KR100222576B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100453226B1 (en) * 2001-12-27 2004-10-15 한국전자통신연구원 Performance measurement method for smart card
KR100491462B1 (en) * 1999-09-03 2005-05-25 가부시키가이샤 어드밴티스트 Method and structure for testing embedded analog/mixed-signal cores in system-on-a-chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100491462B1 (en) * 1999-09-03 2005-05-25 가부시키가이샤 어드밴티스트 Method and structure for testing embedded analog/mixed-signal cores in system-on-a-chip
KR100453226B1 (en) * 2001-12-27 2004-10-15 한국전자통신연구원 Performance measurement method for smart card

Also Published As

Publication number Publication date
KR100222576B1 (en) 1999-10-01

Similar Documents

Publication Publication Date Title
US5103167A (en) Integrated circuit device provided with test mode function
US7016241B2 (en) Semiconductor device, nonvolatile semiconductor memory, system including a plurality of semiconductor devices or nonvolatile semiconductor memories, electric card including semiconductor device or nonvolatile semiconductor memory, and electric device with which this electric card can be used
JP3900863B2 (en) Data transfer control device, semiconductor memory device and information equipment
US6349397B1 (en) Signal processing apparatus having non-volatile memory and programming method of the non-volatile memory
JP2000122931A (en) Digital integrated circuit
US5142536A (en) Data processor
US7953941B2 (en) Data processor with memory controller having burst access operation
KR100825786B1 (en) Memory card and debugging method for the same
US5694611A (en) Microcomputer including internal and direct external control of EEPROM and method of making the microcomputer
US20080005799A1 (en) Program execution control circuit, computer system, and IC card
KR100222576B1 (en) Ic card circuit and test method
US20080093465A1 (en) Smart card and method of testing smart card
EP0721163A1 (en) Information processing apparatus with a mode setting circuit
US6948086B2 (en) Computer system
CN110109708A (en) A kind of method and its system of controller NandBoot mechanism
JPS622399B2 (en)
US7191323B2 (en) Information processing unit selecting one of reset vector addresses
US6240377B1 (en) Integrated circuit with embedded reprogrammable EEPROM and emulation method to facilitate debugging
US6587982B1 (en) Method of micro-architectural implementation of interface between bist state machine and tester interface to enable bist cycling
US6889299B1 (en) Semiconductor integrated circuit
KR0164792B1 (en) Automatic initial circuit of memory
US20030075716A1 (en) Semiconductor device with high speed switching of test modes
JP2004295943A (en) Memory test method for multi-chip module
KR0177749B1 (en) Testing method of counter having no-read port
KR940006075B1 (en) Semiconductor ic

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070612

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee