KR20060054566A - Integrated card outputing status information using direct memory access - Google Patents
Integrated card outputing status information using direct memory access Download PDFInfo
- Publication number
- KR20060054566A KR20060054566A KR1020040093168A KR20040093168A KR20060054566A KR 20060054566 A KR20060054566 A KR 20060054566A KR 1020040093168 A KR1020040093168 A KR 1020040093168A KR 20040093168 A KR20040093168 A KR 20040093168A KR 20060054566 A KR20060054566 A KR 20060054566A
- Authority
- KR
- South Korea
- Prior art keywords
- input
- block
- output
- counter
- processing unit
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/28—Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/067—Record 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/07—Record 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Systems (AREA)
Abstract
본 발명에 따른 집적 회로 카드는 상태 데이터를 저장하도록 구성된 전송 바이트 레지스터를 포함한다. 중앙 처리 장치는 입출력 블록으로 인가된 명령 데이터에 응답하여 작업을 수행한다. 판별 블록은 명령 데이터의 수신이 완료된 후 상기 중앙 처리 장치의 작업 시간이 소정의 작업 대기 시간에 도달하였는지 여부를 판별한다. 전송 바이트 레지스터는 판별 블록의 출력 신호에 응답하여 입력된 상태 데이터를 중앙 처리 장치의 개입 없이 입출력 블록을 통해 출력한다. An integrated circuit card according to the present invention includes a transfer byte register configured to store state data. The central processing unit performs a task in response to the command data applied to the input / output block. The determination block determines whether the work time of the central processing unit reaches a predetermined work waiting time after the reception of the command data is completed. The transfer byte register outputs the input state data in response to the output signal of the determination block through the input / output block without intervention of the central processing unit.
Description
도 1은 본 발명의 바람직한 실시예에 따른 집적회로 카드의 내부 구성도를 보인 것이다. 1 shows an internal configuration of an integrated circuit card according to a preferred embodiment of the present invention.
도 2는 본 발명의 바람직한 실시예에 따른 집적 회로 카드의 동작을 설명하기 위한 흐름도이다. 2 is a flowchart illustrating an operation of an integrated circuit card according to a preferred embodiment of the present invention.
*도면의 주요부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *
10 : 전송 제어 레지스터 20 : 16-비트 업 카운터10: transfer control register 20: 16-bit up counter
30 :16-비트 비교기 40 : 16-비트 기준 레지스터30: 16-bit comparator 40: 16-bit reference register
50 : 전송 바이트 레지스터 60 : 직접 메모리 접근 컨트롤러50: transfer byte register 60: direct memory access controller
70 : 입출력 포트 모드 제어 블럭 80 : 중앙 처리 장치70: input / output port mode control block 80: central processing unit
90 : 입출력 포트 110 : 범용 비동기화 송수신기 블럭90: input / output port 110: general purpose asynchronous transceiver block
본 발명은 집적 회로 카드에 관한 것으로, 더욱 상세하게는 직접 메모리 접근을 이용하여 일정시간이 되면 자동으로 상태 정보를 전송하는 집적회로 카드에 관한 것이다.The present invention relates to an integrated circuit card, and more particularly, to an integrated circuit card that automatically transmits status information when a predetermined time is reached by using direct memory access.
집적 회로 카드란 신용카드 크기의 플라스틱 카드에 집적 회로 기술을 사용하여 마이크로프로세서 및 기억 장치 등을 모아놓은 휴대용 카드를 말하는 것으로, 넓은 의미로는 집적회로가 내장되어 있는 카드 모두를 가리킨다. 집적 회로 카드는 암호 알고리즘을 내장하고 있어 카드 소유자의 신분 확인이나 상호 인증, 입출력 데이터의 암호화와 정보 저장 등이 가능하여 금융결제용, 프로그램 수납용, 공중전화용, 신분증명용 등 폭넓게 쓰이고 있다. An integrated circuit card refers to a portable card in which a microprocessor and a memory device are collected by using integrated circuit technology in a plastic card of a credit card size, and in a broad sense, refers to a card having an integrated circuit. Integrated circuit cards have built-in cryptographic algorithms that enable identification, mutual authentication, encryption of I / O data, and storage of information, making them widely used for financial settlement, program storage, public telephones, and identification.
집적 회로 카드는 ISO 표준 7816에 규정된 인터페이스 방식에 따라 데이터를 송수신한다. 특히, 집적 회로 카드의 전기 신호(electronic signals) 및 전송 프로토콜(transmission protocol)은 ISO 표준 7816-3에 정의되어 있다. ISO 표준 7816-3에 규정된 비동기 반이중 문자 전송 프로토콜(asynchronous half duplex character transmission protocol 이하 "T=0 전송 프로토콜"이라함)에 따르면, 인터페이스 장치가 집적 회로 카드로 명령을 전송하면, 집적 회로 카드는 정해진 시간(이하 "작업 대기 시간(work wating time)"이라 함)내에 응답을 인터페이스 장치로 전송하여야 한다. The integrated circuit card transmits and receives data according to the interface method specified in ISO standard 7816. In particular, the electronic signals and transmission protocols of integrated circuit cards are defined in ISO standard 7816-3. According to the asynchronous half duplex character transmission protocol ("T = 0 transmission protocol") specified in ISO standard 7816-3, when an interface device sends a command to an integrated circuit card, the integrated circuit card The response must be sent to the interface device within a predetermined time (hereinafter referred to as "work wating time").
커맨드 응용 프로토콜 데이터 단위(command APDU/ command application protocol data unit)에서 에러(error)가 발생하여, 완전한 데이터를 전달하지 못하면 카드는 계속 데이터를 전송을 기다린다. 그리고 작업 대기 시간이 지나면 인터페이스 장치와 집적 회로 카드 사이에 통신이 끊어지게 된다. 널리 알려진 바와 같이, 집적 회로 카드는 응용 프로그램에 의해 명령을 처리한다. 따라서 인터페이스 장치와 집적 회로 카드 사이에 통신 상태를 체크하여 상태 정보를 보내주기 위해서는 미리 코딩이 필요하며, 이는 프로그램 오버헤드(program overhead)를 유발하는 원인이 되고 있다. If an error occurs in the command APDU / command application protocol data unit, and the complete data cannot be delivered, the card continues to wait for data transmission. After a waiting time, communication is lost between the interface device and the integrated circuit card. As is well known, integrated circuit cards process commands by applications. Therefore, in order to check the communication state between the interface device and the integrated circuit card and send the state information, coding is required in advance, which causes a program overhead.
본 발명은 상술한 문제점을 해결하기 위하여 제안된 것으로, 본 발명의 목적은 직접 메모리 접근(DMA/direct memory access) 방식을 이용하여, 작업 대기 시간이 경과되기 전에 자동으로 상태 바이트를 전송할 수 있는 집적 회로 카드를 제공하는데 있다. SUMMARY OF THE INVENTION The present invention has been proposed to solve the above problems, and an object of the present invention is to use an integrated memory access (DMA / direct memory access) scheme, which is capable of automatically sending a status byte before the operation wait time has elapsed. To provide a circuit card.
상술한 기술적 과제를 달성하기 위한 본 발명에 따른 집적 회로 카드는 상태 데이터를 저장하도록 구성된 전송 바이트 레지스터와; 외부로부터 명령 데이터를 입력받는 입출력 블록과; 상기 입력된 명령 데이터에 응답하여 작업을 수행하는 중앙 처리 장치와; 상기 명령 데이터의 수신이 완료된 후 상기 중앙 처리 장치의 작업 시간이 소정의 작업 대기 시간에 도달하였는지 여부를 판별하는 판별 블록과; 그리고 상기 판별 블록의 출력 신호에 응답하여 상기 전송 바이트 레지스터에 입력된 상태 데이터를 상기 중앙 처리 장치의 개입 없이 상기 입출력 블록을 통해 출력하는 직접 메모리 접근 제어기를 포함한다. An integrated circuit card according to the present invention for achieving the above-described technical problem and a transfer byte register configured to store state data; An input / output block for receiving command data from the outside; A central processing unit that performs a job in response to the input command data; A determination block that determines whether a work time of the central processing unit reaches a predetermined work waiting time after the reception of the command data is completed; And a direct memory access controller for outputting state data input to the transfer byte register through the input / output block in response to the output signal of the determination block without the intervention of the central processing unit.
이 실시예에 있어서, 입출력 블록 모드 제어 블록을 더 포함하되, 상기 입출력 블록 모드 제어 블록은 상기 판별 블록의 출력 신호에 응답하여 상기 입출력 블록을 송신 모드로 설정한다. In this embodiment, further comprising an input / output block mode control block, wherein the input / output block mode control block sets the input / output block to a transmission mode in response to an output signal of the determination block.
이 실시예에 있어서, 상기 입출력 블록 모드 제어 블록은 상기 상태 데이터의 송신이 완료되면 상기 입출력 블록을 수신 모드로 설정한다. In this embodiment, the input / output block mode control block sets the input / output block to a reception mode when transmission of the state data is completed.
이 실시예에 있어서, 상기 판별 블록은 상기 명령 데이터의 수신이 완료될 때, 외부 클럭 신호를 인가받아 카운트 동작을 수행하는 카운터와; 상기 작업 대기 시간을 저장하도록 구성된 레지스터와; 그리고 상기 카운터의 카운트 값과 상기 레지스터에 저장된 값을 비교하여 상기 출력신호를 내보내는 비교기를 포함한다. The determination block may include: a counter configured to receive an external clock signal and perform a count operation when reception of the command data is completed; A register configured to store the working wait time; And a comparator for outputting the output signal by comparing the count value of the counter with the value stored in the register.
이 실시예에 있어서, 상기 카운터는 상기 명령 데이터의 수신이 완료될 때 초기화되거나 또는 상기 카운터의 카운트 시간이 상기 작업 대기 시간에 도달할 때 발생되는 상기 비교기의 출력 신호에 의하여 초기화된다. In this embodiment, the counter is initialized when the reception of the command data is completed or by the output signal of the comparator generated when the count time of the counter reaches the task waiting time.
이하, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여, 본 발명의 가장 바람직한 실시예를 첨부된 도면을 참조하여 설명하기로 한다.DETAILED DESCRIPTION Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings so that those skilled in the art may easily implement the technical idea of the present invention. do.
도 1은 본 발명의 바람직한 실시예에 따른 집적회로 카드의 내부 구성도를 보인 것이다. 1 shows an internal configuration of an integrated circuit card according to a preferred embodiment of the present invention.
본 발명에 따른 집적회로 카드는 전송 제어 레지스터(10), 16-비트 업 카운터(20), 16-비트 비교기(30), 16-비트 기준 레지스터(40), 전송 바이트 레지스터(50), 직접 메모리 접근(DMA/ direct memory access) 컨트롤러(60), 입출력 포트 모드 제어 블럭(70), 중앙처리장치(80), 입출력 포트(90) 및 범용 비동기화 송수신기(UART/ Universal Asynchronous Receiver Transmitter)를 포함한다. The integrated circuit card according to the invention comprises a
전송 제어 레지스터(10)는 시작 비트를 받아 작업이 시작되도록 하는 기능을 한다. 또한 전송 바이트 레지스터(50)는 상태 바이트를 기입할 수 있는 레지스터로 다양한 상태 바이트를 기입 및 독출하는 것이 가능하도록 구성된다. 또한 전송 바이트 레지스터(50)는 상태 바이트 대신에 다른 처리 바이트를 저장하도록 구성될 수도 있다. The transfer control register 10 functions to receive a start bit and start a task. The
16-비트 기준 레지스터(40)에는 기준 시간(예를 들면, 작업 대기 시간 또는 그 보다 짧은 시간)을 나타내는 값이 저장된다. 16-비트 업 카운터(20)는 전송 제어 레지스터(10)의 신호(counter clear)에 의하여 초기화되며, 스위치(11)를 통해 전달된 외부 클럭에 의하여 동기되어 카운트 동작을 수행한다. 즉, 16-비트 업 카운터(20)는 집적 회로 카드에 명령이 입력되는 시점부터 카운트 동작을 수행하는 것이다. 16-비트 비교기(30)는 16-비트 업 카운터(20)의 카운트 값이 16-비트 기준 레지스터(40)에 저장된 값에 도달되었는지 여부를 비교하는 기능을 한다. 16-비트 업 카운터(20)의 카운트 값이 16-비트 기준 레지스터(40)에 저장된 값에 도달되면, 16-비트 업 카운터(20)는 16-비트 업 카운터(20), 직접 메모리 접근 컨트롤러(60) 및 입출력 포트 모드 제어 블럭(70)으로 각각 신호를 출력한다. 16-비트 업 카운터(20)로 입력된 16-비트 비교기(30)의 출력은 16-비트 업 카운터(20)를 초기화시킨다. 또한 직접 메모리 접근 컨트롤러(60) 및 입출력 포트 모드 제어 블럭(70)으로 출력된 신호는 이후 상태 정보를 출력하도록 제어하는데 사용된다. 도 1에는 16 비트 업카운터, 비교기 및 기준 레지스터가 도시되었으나, 다른 비트를 이용하여 상기 장치를 구성할 수 있음은 본 발명이 속하는 분야의 통상의 지식을 가진 자에게 자명하다.
The 16-
도 2는 본 발명의 바람직한 실시예에 따른 집적 회로 카드의 동작을 설명하기 위한 흐름도이다. 도 1및 도 2를 참조하여 본 발명에 따른 집적 회로 카드의 동작을 상세하게 설명하고자 한다. 2 is a flowchart illustrating an operation of an integrated circuit card according to a preferred embodiment of the present invention. 1 and 2, the operation of the integrated circuit card according to the present invention will be described in detail.
전송 제어 레지스터(10)에는 전송할 데이터의 수와 작업 대기 시간이 기입되고, 전송 바이트 레지스터(50)에는 전송될 상태 데이터가 기입된다. 시작 비트가 입력되면 전송 제어 레지스터(10)의 출력 신호에 의하여, 16-비트 업 카운터(20)가 초기화되고, 인가되는 외부 클럭에 동기되어 16-비트 업 카운터(20)는 카운트 동작을 수행한다(S100). The
16-비트 비교기(30)는 16-비트 업 카운터(20)의 카운트 값이 16-비트 기준 레지스터(40)에 저장된 기준 시간 값(또는 기준 시간보다 짧은 시간 값)에 도달하는지를 판별한다(S200). 만약 16-비트 업 카운터(20)의 카운트 값이 16-비트 기준 레지스터(40)에 저장된 기준 시간 값(또는 기준 시간보다 짧은 시간 값)에 도달하면, 16-비트 비교기(30)는 출력 신호를 16-비트 업 카운터(20), 직접 메모리 접근 컨트롤러(60) 및 입출력 포트 모드 제어 블럭(70)으로 각각 출력한다. 이때 16-비트 업 카운터(20)의 카운트 값이 16-비트 기준 레지스터(40)에 저장된 기준 시간 값(또는 기준 시간보다 짧은 시간 값)에 도달하기 전에 데이터 전달이 이루어진다면 이것은 정상적으로 데이터 전송이 완료된 것이다. 따라서 이때에는 별도의 상태 정보를 인터페이스 장치에 전달할 필요가 없으며, 16-비트 업 카운터는 초기화된다. The 16-
16-비트 업 카운터(20)의 카운트 값이 16-비트 기준 레지스터(40)에 저장된 기준 시간 값(또는 기준 시간보다 짧은 시간 값)에 도달할 때 출력되는 신호는 16-비트 업 카운터를 초기화시킨다. 직접 메모리 접근 컨트롤러(60)는 16-비트 비교기(30)로부터 신호(I/O Request)를 입력받으면, 전송 바이트 레지스터(50)로 신호(I/O ACK)를 보낸다. 이 신호는 전송 바이트 레지스터(50)로부터 상태 정보를 나타내는 데이터를 전달받기 위한 신호이다. 또한 직접 메모리 접근 컨트롤러(60)는 중앙 처리 장치(80)에 버스(bus) 점유를 위한 신호(DMA Request)를 보낸다(S300). 중앙 처리 장치(80)로부터 버스 점유를 인가하는 신호(DMA Grant)를 받으면 직접 메모리 접근 컨트롤러(60)는 범용 비동기화 송수신기 블럭(110)을 통해 입출력 포트(90)로 상태 정보를 전송한다(S400). 널리 알려진 바와 같이 상태어(status word)는 2 바이트(bytes)의 단위로 출력된다. The output signal initializes the 16-bit up counter when the count value of the 16-bit up
16-비트 비교기(30)로부터 신호(output)를 입력받은 입출력 포트 모드 제어 블럭(70)은 입출력 포트(90)의 모드를 컨트롤하는 신호(I/O Port mode control)를 출력한다. 이 신호에 따라 입출력 포트는 송신 모드 상태를 유지하게 된다. The input / output port
범용 비동기화 송수신 블럭(110)으로 전달된 상태 정보를 전달이 완료되면, 범용 비동기화 송수신 블럭(110)은 중앙 처리 장치(80)로 데이터의 출력이 완료되었다는 신호(Data output completion)를 출력한다. 이 신호는 또한 입출력 포트 모드 제어 블럭(70)으로 인가되고, 입출력 포트 모드 제어 블럭(70)은 입출력 포트(90)가 다시 수신 모드로 유지되도록 신호(I/O Port mode control)를 출력한다. When the state information delivered to the general purpose asynchronous transmission and reception block 110 is completed, the general purpose asynchronous transmission and reception block 110 outputs a signal indicating that data output is completed to the
이후 중앙 처리 장치(80)에 의해서 수행되는 작업이 완료되었는지 여부가 판별된다(S500). 만약 작업이 완료되지 않았다면 상술한 절차들(S200, S300, S400 및 S500)이 상태 정보 신호를 출력하기 위하여 반복 수행될 것이다. Thereafter, it is determined whether a task performed by the
본 발명에 의하면 작업 대기 시간 동안 에러가 발생하여 데이터 전송이 완료되지 않은 경우 자동으로 상태 정보를 직접 메모리 접근 방식을 통하여 출력한다. According to the present invention, when an error occurs during a work waiting time and data transmission is not completed, status information is automatically output through a direct memory access method.
한편, 본 발명의 상세한 설명에서는 구체적인 실시예에 관하여 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 상술한 실시예에 국한되어 정해져서는 안되며 후술하는 특허청구범위 뿐만 아니라 이 발명의 특허청구범위와 균등한 것들에 의해 정해져야 한다.On the other hand, in the detailed description of the present invention has been described with respect to specific embodiments, various modifications are of course possible without departing from the scope of the invention. Therefore, the scope of the present invention should not be limited to the above-described embodiments, but should be defined by the equivalents of the claims of the present invention as well as the following claims.
상술한 바와 같이 본 발명에 의하면, 인터페이스 장치와 집적 회로 카드의 데이터 전송 시 작업 대기 시간 내에 상태 정보를 출력하여 양 장치간의 통신이 끊어지는 것을 방지할 수 있다. As described above, according to the present invention, it is possible to prevent the communication between the two devices from being disconnected by outputting the status information during the operation waiting time during the data transmission between the interface device and the integrated circuit card.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040093168A KR20060054566A (en) | 2004-11-15 | 2004-11-15 | Integrated card outputing status information using direct memory access |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040093168A KR20060054566A (en) | 2004-11-15 | 2004-11-15 | Integrated card outputing status information using direct memory access |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20060054566A true KR20060054566A (en) | 2006-05-23 |
Family
ID=37150889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020040093168A KR20060054566A (en) | 2004-11-15 | 2004-11-15 | Integrated card outputing status information using direct memory access |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20060054566A (en) |
-
2004
- 2004-11-15 KR KR1020040093168A patent/KR20060054566A/en not_active Application Discontinuation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1533914B1 (en) | Wireless communication apparatus and response data processing method therefor | |
JP2003526863A (en) | Method of communication between smart card and host station | |
EP2704021B1 (en) | SRAM handshake | |
EP1701244B1 (en) | Electronic device, control method thereof, host device, and control method thereof | |
CN213069787U (en) | Read-write control system of memory card | |
KR100782113B1 (en) | Memory card system and method transmitting host identification information thereof | |
CN107750358A (en) | Data processing method | |
US6125405A (en) | Memory card or chip card reader system | |
US7850082B1 (en) | Extended universal serial bus (USB) card reader | |
JP3655597B2 (en) | Electronic device, electronic card, and card identification method | |
US6058440A (en) | Programmable and adaptive resource allocation device and resource use recorder | |
CN112116054A (en) | Multi-chip integrated card | |
KR100562505B1 (en) | Integrated circuit card capable of automatically transmitting null byte information without intervention by cpu | |
CN116610623A (en) | Data reading method and device, electronic equipment and storage medium | |
US8172150B2 (en) | Integrated circuit card | |
EP3454279B1 (en) | Multi-use near field communication front end on a point of sale system | |
KR20060054566A (en) | Integrated card outputing status information using direct memory access | |
CN105159852A (en) | Dual-interface NFC label circuit and data transmission method thereof | |
CN113875162B (en) | Data exchange device between NFC reader and double-NFC interface responder | |
JP4904966B2 (en) | IC card with mode change function and IC card program | |
US6574697B2 (en) | Data transfer equipment that provides high speed data transmission between data terminal equipment and data circuit terminating equipment | |
JPH03276383A (en) | Communication system for ic card | |
JP7468754B1 (en) | ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RECEPTION BLOCK PROCESSING METHOD, AND PROGRAM | |
EP2570924B1 (en) | Anticipatory responses to commands | |
KR950004510B1 (en) | Interfacing unit and its metrhod between personal computer and photo disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WITN | Withdrawal due to no request for examination |