KR0150058B1 - Card interface circuit - Google Patents

Card interface circuit

Info

Publication number
KR0150058B1
KR0150058B1 KR1019940027306A KR19940027306A KR0150058B1 KR 0150058 B1 KR0150058 B1 KR 0150058B1 KR 1019940027306 A KR1019940027306 A KR 1019940027306A KR 19940027306 A KR19940027306 A KR 19940027306A KR 0150058 B1 KR0150058 B1 KR 0150058B1
Authority
KR
South Korea
Prior art keywords
card
terminal
clock
unit
circuit
Prior art date
Application number
KR1019940027306A
Other languages
Korean (ko)
Other versions
KR960015270A (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 KR1019940027306A priority Critical patent/KR0150058B1/en
Publication of KR960015270A publication Critical patent/KR960015270A/en
Application granted granted Critical
Publication of KR0150058B1 publication Critical patent/KR0150058B1/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/0004Hybrid readers
    • 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
    • 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/01Details

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

1. 청구범위에 기재된 발명이 속한 기술분야: 카드단말기.1. Field of the invention to which the claims pertain: Card terminal.

2. 발명이 해결하려고 하는 기술적 과제: 특성이 다른 IC카드를 동일한 카드 단말기에서 판독할 수 있도록 하기 위한 인터페이싱회로의 필요성, 각종 상황에서 카드로부터의 안정적 데이터 취득 및 카드 보호 대책 마련.2. The technical problem to be solved by the invention: the need for an interfacing circuit to read IC cards of different characteristics in the same card terminal, the stable data acquisition from the card under various circumstances and the provision of card protection measures.

3. 발명의 해결 방법의 요지: 카드 상태단자, 카드 리세트단자, 카드 인에이블단자, 카드모드 변경단자 및 데이터 입출력단자를 통하여 카드단말기의 주제어부에 접속되며, 상기 주제어부에서 공급되는 제1클럭을 수신하는 카드 인터페이스회로에 있어서, 다수의 단자를 가지고, 카드가 투입되면 상기 카드와 실제로 접촉하여 상기 단자들을 상기 카드의 단자들과 접속하는 카드접촉부와, 소정의 제2클럭을 발생하는 제2클럭발생부와, 상기 주제어부에 의해 상기 카드모드 변경단자가 비동기모드로 설정되면 상기 카드로 상기 제2클럭을 공급하고, 동기모드로 설정되면 상기 제1클럭을 공급하기 위한 클럭선택부와, 상기 주제어부에 의해 상기 카드 인에이블단자가 특정 상태로 되면 상기 카드로 전원을 공급하기 위한 전원공급부와, 상기 주제어부에 의해 상기 카드 리세트단자가 특정 상태로 되면 상기 카드를 리세트 시키기 위한 리세트부로 구성함을 특징으로 한다.3. Summary of Solution of the Invention: The first control unit connected to the main control unit of the card terminal via a card status terminal, a card reset terminal, a card enable terminal, a card mode change terminal, and a data input / output terminal. A card interface circuit for receiving a clock, comprising: a card contact portion having a plurality of terminals, wherein the card contact portion actually contacts the card to connect the terminals with the terminals of the card when the card is inserted, and generates a predetermined second clock; A clock selector for supplying the second clock to the card when the card mode change terminal is set to the asynchronous mode by the main clock unit, and the first clock when the card mode change terminal is set to the asynchronous mode; A power supply for supplying power to the card when the card enable terminal is brought into a specific state by the main control unit, and To the card reset terminal it is characterized in that the configuration when a specific state reset portion for resetting the card.

4. 발명의 중요한 용도 출입통제기의 카드단말기에 사용할 수 있다.4. Significant Uses of the Invention Can be used in card terminals of access control units.

Description

카드 인터페이스회로Card interface circuit

제1도는 본 발명의 실시 예에 따른 카드 인터페이스회로의 구성도.1 is a block diagram of a card interface circuit according to an embodiment of the present invention.

스마트카드를 투입했을 때 본 발명의 실시 예에 따른 카드 인터페이스회로의 동작에 따른 각종 입출력신호들의 파형을 나타낸 도면.Figure showing the waveform of the various input and output signals according to the operation of the card interface circuit according to an embodiment of the present invention when the smart card is inserted.

제3도는 본 발명이 적용되는 카드단말기의 카드 판독 수순도.3 is a card reading procedure of a card terminal to which the present invention is applied.

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

OSC : 오실레이터 CON : 카드접촉단OSC: Oscillator CON: Card Contact

OPC : 옵토커플러 BD1∼BD3,BD10 : 비드OPC: Optocoupler BD1 to BD3, BD10: Bead

Q4 : 트랜지스터 D1∼D4 : 다이오드Q4: transistors D1 to D4: diodes

G1∼G6 : 노아게이트 G7 : 인버터G1 to G6: Noah gate G7: Inverter

C25,C26 : 콘덴서 C113∼C117 : 전해콘덴서C25, C26: capacitors C113 to C117: electrolytic capacitors

R1∼R3, R13∼R15, R27∼R29, R33∼R37, R108∼R112 : 저항R1 to R3, R13 to R15, R27 to R29, R33 to R37, R108 to R112: resistance

본 발명은 카드단말기에 관한 것으로, 특히 특성이 다른 두 종류의 IC카드를 동일한 카드단말기에서 판독할 수 있도록 하기 위한 카드 인터페이스회로에 관한 것이다.The present invention relates to a card terminal, and more particularly, to a card interface circuit for reading two types of IC cards having different characteristics from the same card terminal.

카드단말기에 장착된 카드 인터페이스회로에는 사용자가 투입한 IC카드가 접촉되는 부분이 있다. 그러므로 카드 인터페이스회로는 이 접촉부분을 체크하여 IC 카드의 투입이 감지되면 그 IC카드로 전원, 클럭, 데이터 등을 공급하거나 그 카드로부터 데이터를 읽어낸다.In the card interface circuit installed in the card terminal, there is a part where the IC card inserted by the user contacts. Therefore, the card interface circuit checks this contact part and, when an IC card is detected, supplies power, clock, data, etc. to the IC card or reads data from the card.

한편 IC카드로는 메모리카드(memory card)와 스마트카드(smart card)를 예로 들 수 있다. 스마트카드는 카드에 저장된 정보를 변경할 수 있다는 점에서 메모리 카드와 차이가 있다. 다시 말해서, 메모리카드는 서비스 정보를 저장하기 위한 메모리만을 가지므로 카드단말기와 데이터 통신을 할 수 없다. 결국 카드단말기에 의해 메모리카드 내부에 저장된 서비스 정보가 단순히 읽혀질 수 밖에 없는 것이다.The IC card may be a memory card and a smart card, for example. Smart cards differ from memory cards in that they can change the information stored on the card. In other words, since the memory card has only a memory for storing service information, data communication with the card terminal is not possible. As a result, the service information stored in the memory card is simply read by the card terminal.

그러나 스마트 카드는 이러한 메모리 외에 중앙처리장치를 더 가짐으로써 서비스 정보의 등록, 변경 및 삭제가 가능하다. 물론 이때 상기 중앙처리장치가 메모리를 억세스하는 것은 카드단말기에서 각종 제어신호를 공급해주기 때문에 가능한 것이며, 이렇게 제어신호를 공급받기 위해서 카드 인터페이스회로는 직렬입출력장치를 가진다. 이러한 스마트카드의 구성 예 및 그 동작에 관해서는 본원 출원인이 선출원한 바 있는 특허출원번호 제94-25042호, 제94-25043호 및 제94-25044호에 상세히 기재되어 있다.However, the smart card has a central processing unit in addition to the memory, it is possible to register, change and delete the service information. Of course, the central processing unit can access the memory because the card terminal supplies various control signals. In order to receive the control signals, the card interface circuit has a serial input / output device. A configuration example of such a smart card and its operation are described in detail in the patent applications Nos. 94-25042, 94-25043, and 94-25044, which the applicant has previously filed.

이러한 두가지 종류의 카드를 하나의 카드단말기에서 공히 사용할 수 있기위해서는 두 카드의 특성을 모두 만족시킬 수 있는 특별한 인터페이싱이 이루어져야 한다. 또한 불량 카드를 사용하는 경우 혹은 카드가 단락(short)된 경우 카드단말기나 카드를 보호할 대책이 필요하다. 또한 회로내에 잡음이 유입되는 경우에도 카드의 데이터를 안정적으로 취득할 수 있는 대책도 필요하다.In order to be able to use these two types of cards in one card terminal, special interfacing must be made to satisfy the characteristics of both cards. In addition, if a bad card is used or if the card is shorted, measures to protect the card terminal or the card are necessary. In addition, measures are required to reliably acquire card data even when noise enters the circuit.

따라서 본 발명의 목적은 특성이 다른 두 종류의 IC카드를 하나의 카드 단말기에서 공히 사용할 수 있도록 하기 위한 카드 인터페이스회로를 제공함에 있다.Accordingly, an object of the present invention is to provide a card interface circuit for allowing two types of IC cards having different characteristics to be used in one card terminal.

본 발명의 다른 목적은 불량 카드를 사용하는 경우 혹은 카드가 단락된 경우 카드단말기나 카드를 보호할 수 있는 카드 인터페이스회로를 제공함에 있다.It is another object of the present invention to provide a card interface circuit that can protect a card terminal or a card when a bad card is used or when a card is shorted.

본 발명의 또 다른 목적은 회로 내에 잡음이 유입되는 경우에도 카드의 데이터를 안정적으로 취득할 수 있는 카드 인터페이스회로를 제공함에 있다.Still another object of the present invention is to provide a card interface circuit capable of stably acquiring data of a card even when noise is introduced into the circuit.

상기한 목적을 달성하기 위한 본 발명은 카드 상태단자, 카드 리세트단자, 카드 인에이블단자, 카드모드 변경단자 및 데이터 입출력단자를 통하여 카드단말기의 주제어부에 접속되며, 상기 주제어부에서 공급되는 제1클럭을 수신하는 카드 인터페이스회로에 있어서, 다수의 단자를 가지고, 카드가 투입되면 상기 카드와 실제로 접촉하여 상기 단자들을 상기 카드의 단자들과 접속하는 카드접촉부와, 소정의 제2클럭을 발생하는 제2클럭발생부와, 상기 주제어부에 의해 상기 카드모드 변경단자가 비동기모드로 설정되면 상기 카드로 상기 제2클럭을 공급하고, 동기모드로 설정되면 상기 제1클럭을 공급하기 위한 클럭선택부와, 상기 주제어부에 의해 상기카드 인에이블단자가 특정 상태로 되면 상기 카드로 전원을 공급하기 위한 전원공급부와, 상기 주제어부에 의해 상기 카드 리세트단자가 특정 상태로 되면 상기 카드를 리세트시키기 위한 리세트부로 구성함을 특징으로 한다. 또한 전원 공급상태에서 카드가 단락되면 상기 카드로 공급되는 전원을 차단하기 위한 보호부 혹은 상기 카드로 안정된 레벨의 클럭을 공급하기 위한 안정화부 혹은 동작신호의 레벨을 트랜지스터 트랜지스터 로직 레벨로 제한하기 위한 신호 안정화부 혹은 회로내로 잡음이 유입되는 것을 방지하기 위한 잡음유입 방지부 중 일부 혹은 모두를 더 구비함을 특징으로 한다.The present invention for achieving the above object is connected to the main control unit of the card terminal through a card status terminal, a card reset terminal, a card enable terminal, a card mode change terminal and a data input / output terminal, A card interface circuit for receiving one clock, comprising: a card contact portion having a plurality of terminals, when the card is inserted, which actually contacts the card to connect the terminals with the terminals of the card, and generates a predetermined second clock; A clock selector for supplying the second clock to the card when the card mode change terminal is set to the asynchronous mode by the second clock generator and the main controller, and supplying the first clock when the card mode change terminal is set to the synchronous mode; And a power supply unit for supplying power to the card when the card enable terminal is brought into a specific state by the main control unit. And a reset section for resetting the card when the card reset terminal is brought to a specific state by a fisherman. In addition, when a card is shorted in a power supply state, a signal for limiting a transistor transistor logic level to a protection unit for shutting off power supplied to the card, a stabilizer for supplying a stable level clock to the card, or an operation signal level. It is characterized in that it further comprises some or all of the noise inflow prevention unit for preventing noise from flowing into the stabilizer or the circuit.

이하 본 발명의 바람직한 실시 예를 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

우선 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 한해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한 하기 설명에서는 구체적인 회로의 구성 소자, 신호상태, 데이터 전송속도 등과 같은 많은 특정(特定) 사항들이 나타나고 있는데, 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐 이러한 특정 사항들 없이도 본 발명이 실시될 수 있음은 이 기술분야에서 통상의 지식을 가진 자에게는 자명하다할 것이다. 그리고 본 발명의 실시 예를 설명함에 있어, 관련된 공지 기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.First, in adding reference numerals to the components of each drawing, it should be noted that the same reference numerals have the same reference numerals as much as possible even if displayed on different drawings. In addition, in the following description, many specific details such as components of a specific circuit, a signal state, a data transmission rate, and the like appear, which are provided to help a more comprehensive understanding of the present invention, and the present invention may be practiced without these specific details. It will be apparent to those skilled in the art. And in describing the embodiments of the present invention, if it is determined that the detailed description of the related known functions or configurations may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.

제1도는 본 발명의 실시 예에 따른 카드 인터페이스회로의 구성을 나타낸 것이다.1 illustrates a configuration of a card interface circuit according to an embodiment of the present invention.

카드접촉부(CON)는 카드단말기의 주제어부(도시하지 않았음.)와 카드 사이의 데이터 통신이 가능하도록 카드 상태단자(C-STA), (C-RST), 카드 인에이블단자(C-ENB), 카드모드 변경단자(C-SEL) 및 데이터 입출력단자(D I/O)와 접속되는 동시에 카드와는 실제로 접촉하는 부분이다. 제1클럭단자(CLOCK)는 카드단말기의 주제어부에서 공급하는 클럭을 수신하는 단자로서, 메모리카드의 판독을 위한 것이다. 제2클럭발생부는 오실레이터(OSC)로 이루어지며, 스마트카드의 판독을 위한 제2클럭을 발생한다.The card contact unit CON is a card status terminal (C-STA), (C-RST), and a card enable terminal (C-ENB) to enable data communication between the main controller (not shown) of the card terminal and the card. ), The card mode change terminal (C-SEL) and the data input / output terminal (DI / O) are connected to the card and the actual contact with the card. The first clock terminal CLOCK is a terminal for receiving a clock supplied from the main controller of the card terminal and is used to read a memory card. The second clock generator includes an oscillator (OSC), and generates a second clock for reading a smart card.

클럭선택부는 상기 카드모드 변경단자(C-SEL)와 상기 카드접촉부(CON) 사이 에 접속되며, 다수의 노아게이트(G1∼G4) 및 낸드게이트(G7)로 이루어진다. 상기클럭선택부는 상기 카드모드 변경단자(C-SEL)가 제1상태[예: 하이(high)상태]로 되면 상기 오실레이터(OSC)에서 발생되는 상기 제2클럭을 선택하고, 상기 카드모드 변경단자(C-SEL)제2상태[예: 로우(low)상태]로 되면 상기 제1클럭단자(CLOCK)를 통해 외부(카드단말기의 주제어부)에서 공급하는 상기 제1클럭을 선택한다. 이렇게 선택된 클럭은 상기 카드접촉부(CON)를 통해 카드로 공급된다.The clock selector is connected between the card mode change terminal C-SEL and the card contact CON, and includes a plurality of NOR gates G1 to G4 and a NAND gate G7. The clock selector selects the second clock generated by the oscillator OSC when the card mode change terminal C-SEL becomes a first state (for example, a high state), and the card mode change terminal. (C-SEL) When the second state (for example, a low state) is set to the first clock supplied from the outside (main controller of the card terminal) through the first clock terminal (CLOCK). The selected clock is supplied to the card through the card contact unit CON.

카드 인에이블단자(C-ENB)가 제2상태로 되면 상기 카드접촉부(CON)를 통해 카드로 소정의 전원(Vcc)이 공급된다.When the card enable terminal C-ENB is in the second state, a predetermined power supply Vcc is supplied to the card through the card contact unit CON.

카드 리세트단자(C-RST)가 제2상태로 되면 노아게이트(G6)과 저항(R8) 및 카드접촉부(CON)를 통해 상기 카드에 리셋신호가 전달되어 카드가 리셋된다.When the card reset terminal C-RST is in the second state, a reset signal is transmitted to the card through the NOA gate G6, the resistor R8, and the card contact unit CON to reset the card.

기본적인 동작을 위한 상기 구성 외에도 다음과 같은 부가적 기능을 위한 구성을 더 갖는다.In addition to the above configuration for the basic operation further has a configuration for the following additional functions.

첫째, 카드 내에서의 단락에 대비한 보호부가 있다. 만일 트랜지스터(Q4)의 에미터와 옵토커플러(OPC)의 발광다이오드의 애노드에 전원(Vcc)이 공급되고 있는 상태에서 카드 내에서 단락이 되면, 상기 발광다이오드의 캐소드는 그라운드 전위가 되어 상기 발광 다이오드가 턴온된다. 그 결과 수광 트랜지스터가 턴온되는데, 이 수광 트랜지스터의 에미터는 상기 트랜지스터(Q4)의 베이스와 접속되어 있어서 상기 트랜지스터(Q4)를 턴오프시키게 되어 카드로 더 이상 전원(Vcc)이 공급되지 않게 한다.First, there is protection against short circuits in the card. If a short circuit occurs in the card while the power supply Vcc is supplied to the emitter of the transistor Q4 and the anode of the light emitting diode of the optocoupler OPC, the cathode of the light emitting diode becomes a ground potential and the light emitting diode Is turned on. As a result, the light receiving transistor is turned on, and the emitter of the light receiving transistor is connected to the base of the transistor Q4 to turn off the transistor Q4 so that the power supply Vcc is no longer supplied to the card.

둘째,클럭 안정화부(200)가 있다. 카드 투입시 전압의 과다 혹은 부족 현상을 막아 카드로 안정된 레벨이 공급될 수 있도록 하기 위해 클럭선택부의 노아게이트(G4) 출력단과 상기 카드접촉부(CON) 사이에 풀 업 및 풀 다운(pull up, pull down) 저항(R2, R1)을 접속한다. 또한 상기 노아게이트(G4)와 상기 두 저항(R2, R1) 사이에 제동(damping) 저항(R111)을 부가적으로 접속할 수 있다.Second, there is a clock stabilizer 200. Pull-up and pull-down between pull-out and pull-out between the output terminal of the gate selector (G4) and the card contact (CON) in order to prevent the voltage from being excessive or short when the card is inserted. down) Connect the resistors R2 and R1. In addition, a damping resistor R111 may be additionally connected between the noble gate G4 and the two resistors R2 and R1.

셋째, 신호안정화부(150)를 가진다. 동작신호의 레벨을 트랜지스터 트랜지스터 로직(TTL) 레벨로 제한하기 위해 데이터 입출력 단자(D-I/O)와 두 노아게이트(G4, G6)와 카드접촉부(CON) 사이에 다이오드(D2∼D4)를 접속하여 구현한다.Third, the signal stabilizer 150 is provided. To limit the level of the operation signal to the transistor transistor logic (TTL) level, diodes D2 to D4 are connected between the data input / output terminals DI / O, two NOR gates G4 and G6, and the card contact CON. Implement

넷째, 잡음유입방지부를 가진다. 카드 인터페이스회로로 잡음이 유입되는 것을 막기 위해 비드(BD3,BD10)를 접속한다. 또한 콘덴서(C26)를 접속하여 카드 인터페이스회로로 서지(surge)성 잡음이 인가될 경우 카드 인터페이스회로의 프레임 그라운드(frame ground :F/G)와 연결되어 회로내로 잡음이 인가되지 못하게 한다.Fourth, it has a noise inflow prevention part. Connect beads BD3 and BD10 to prevent noise from entering the card interface circuit. In addition, when a surge noise is applied to the card interface circuit by connecting the capacitor C26, it is connected to the frame ground (F / G) of the card interface circuit to prevent noise from being applied into the circuit.

제2a∼제2g도는 스마트카드를 투입했을 때 본 발명의 실시 예에 따른 카드 인터페이스회로의 동작에 따른 각종 입출력신호들의 파형을 나타낸 것이다.2A to 2G illustrate waveforms of various input / output signals according to the operation of a card interface circuit according to an embodiment of the present invention when a smart card is inserted.

제2a도는 IC카드가 투입되었을 때 카드상태 단자(C-STA)가 로우상태로 되는것을 나타낸다. 이렇게 되면 카드단말기의 주제어부가 상기와 같은 단자의 상태 전환을 인식하여 IC카드가 투입되었다는 것을 감지한다.2A shows that the card state terminal C-STA goes low when the IC card is inserted. In this case, the main controller of the card terminal recognizes the state transition of the terminal as described above and detects that the IC card is inserted.

제2b도는 카드단말기의 주제어부가 IC카드의 투입을 감지하고 카드인에이블단자(C-ENB)를 로우상태로 전환하는 것을 나타낸다. 이렇게 되면 카드에 전원이 공급되게 된다.2B shows that the main controller of the card terminal senses the input of the IC card and switches the card enable terminal C-ENB to the low state. This will power up the card.

제2c도는 트랜지스터(Q4)가 턴온 상태인 구간을 나타낸다.2c illustrates a section in which the transistor Q4 is turned on.

제2d도는 카드단말기의 주제어부가 카드모드변경 단자(C-SEL)를 하이상태로 전환하는 것을 나타낸다. 이렇게 되면 오실레이터(OSC)에서 발생되는 클럭이 카드에 공급되게 된다.2D shows that the main control portion of the card terminal switches the card mode change terminal C-SEL to the high state. This allows the clock generated by the oscillator (OSC) to be supplied to the card.

제2e도는 상기 오실레이터(OSC)에서 발생되는 클럭을 나타낸 것이다.2e illustrates a clock generated by the oscillator OSC.

제2f도는 카드 리세트단자(C-RST)의 상태를 나타낸 것이다.2f shows the state of the card reset terminal C-RST.

제2g도는 노아게이트(G6)의 출력을 나타낸 것으로, 상기 카드단말기의 주제어부가 상기 카드리세트단자(C-RST)를 로우상태로 전환하면 상기 노아게이트(G6)의 출력이 도시한 바와 같이 하이 상태로 되어 카드에 내장된 중앙처리장치를 리세트시키게 된다.2g illustrates the output of the noble gate G6. When the main control unit of the card terminal switches the card reset terminal C-RST to a low state, the output of the noble gate G6 is high as shown. This will reset the central processing unit built into the card.

제2h도는 카드단말기의 주제어부가 카드로부터 취득하게 되는 직렬(serial) 데이터를 나타낸 것이다.2H shows serial data obtained by the main control unit of the card terminal from the card.

제3도는 본 발명이 적용되는 카드단말기의 카드 판독 순서를 나타낸 것이다. 임의의 카드가 투입되면, 제2a도에 도시한 바와 같이 카드 인터페이스회로의 카드상태 단자(C-STA)가 로우상태로 된다. 이렇게 되면 3a단계에서 카드단말기의 주제어부는 상기 카드상태 단자(C-STA)의 상태 전환을 감지함으로써 카드의 투입을 인식하게 된다.3 shows the card reading order of the card terminal to which the present invention is applied. When an arbitrary card is inserted, the card state terminal C-STA of the card interface circuit goes low as shown in FIG. 2A. In this case, in step 3a, the main control unit of the card terminal recognizes the card input by detecting the state change of the card state terminal C-STA.

그 결과 3b단계에서 상기 카드단말기의 주제어부는 카드인에이블 단자(C-ENB)를 제2b도에 도시한 바와 같이 로우상태로 전환한다. 이렇게 되면 트랜지스터(Q4)가 턴온되어 카드에 전원(Vcc)이 공급된다.As a result, in step 3b, the main control unit of the card terminal switches the card enable terminal C-ENB to a low state as shown in FIG. In this case, transistor Q4 is turned on to supply power Vcc to the card.

이후 3c단계에서 카드단말기의 주제어부는 투입된 IC카드가 메모리카드인지 아니면 스마트카드인지 그 종류를 확인하여 적절한 클럭이 선택적으로 공급될 수 있게 한다. 구체적으로, 상기 주제어부에서는 먼저 스마트카드인지 여부를 판단하기 위해서 카드모드변경 포트(C-SEL)를 하이(high) 상태로 한다. 이렇게 되면 카드에 외부 클럭 [오실레이터(OSC)에 의해 만들어지는 클럭]이 제공된다. 이후 카드로 부터의 응답을 수신하고 분석한다. 상기 분석 결과 ISO 7806에 정의된 포맷의 데이터이면 스마트카드로 인식한다. 반면에, ISO 7806에 정의된 포맷의 데이터가 아니면 메모리카드로 판단하고 상기 카드모드변경 포트(C-SEL)를 로우(low) 상태로 하여 외부 클럭의 공급은 차단하고 I/O포트를 통해서 발생시킨 클럭(CLOCK)을 카드에 제공하여 포맷을 확인한다. 카드로부터의 응답 분석 결과, 메모리카드 스펙(SPEC.)에 정의된 포맷의 데이터이면 메모리카드로 인식한다. 그러나 메모리카드 스펙에 정의된 포맷의 데이터가 아니면 인식할 수 없는 메모리카드로 간주하고 소정의 에러 처리를 한다.After that, in step 3c, the main controller of the card terminal checks the type of the inserted IC card or the smart card so that the appropriate clock can be selectively supplied. Specifically, in order to determine whether the main controller is a smart card, the card mode change port C-SEL is made high. This provides the card with an external clock (a clock produced by the oscillator (OSC)). It then receives and analyzes the response from the card. As a result of the analysis, data in the format defined in ISO 7806 is recognized as a smart card. On the other hand, if the data is not in the format defined in ISO 7806, it is regarded as a memory card, and the card mode change port (C-SEL) is turned low to block the supply of an external clock and occur through the I / O port. Provide the clock to the card to check the format. As a result of response analysis from the card, if the data is in the format defined in the memory card specification (SPEC.), It is recognized as a memory card. However, if the data is not in the format defined in the memory card specification, it is regarded as a memory card that cannot be recognized, and predetermined error processing is performed.

예를 들어 스마트카드를 투입한 경우라고 가정하면, 3c단계에서 상기 카드단말기의 주제어부는 카드모드변경 단자(C-SEL)를 제2d도에 도시한 바와 같이 하이 상태로 전환하게 될 것이다. 이렇게 되면 오실레이터(OSC)에서 발생되는 클럭, 즉 제2E도에 도시된 바와 같은 노아게이트(G2)의 출력이 카드에 공급될 것이다. 이후 3d단계에서 카드단말기의 주제어부가 카드 리세트 단자(C-RST)를 제2f도에 도시한바와 같이 로우 상태로 전환하면 상기 노아게이트(G6)의 출력이 제2g도에 도시한바와 같이 하이 상태로 되어 카드에 내장된 중앙처리장치를 리세트시킨다. 그리고 3e단계로 진행하여 상기 카드단말기의 주제어부는 카드로부터 제2h도에 도시한 바와 같이 직렬(serial) 데이터를 취득한다. 이때 데이터를 취득하는 속도는 예를 들어 9600bps 정도이다. 이상은 카드가 투입되어 카드단말기가 데이터를 취득하기까지의 기본적인 동작 과정이다.For example, assuming that a smart card is inserted, in step 3c, the main control unit of the card terminal will switch the card mode change terminal C-SEL to a high state as shown in FIG. In this case, the clock generated from the oscillator OSC, that is, the output of the noah gate G2 as shown in FIG. 2E, will be supplied to the card. Thereafter, when the main control unit of the card terminal switches the card reset terminal C-RST to a low state as shown in FIG. 2f in step 3d, the output of the noah gate G6 becomes high as shown in FIG. 2g. To reset the central processing unit built into the card. In step 3e, the main controller of the card terminal acquires serial data from the card as shown in FIG. At this time, the data acquisition speed is about 9600bps, for example. The above is the basic operation process until the card is inserted and the card terminal acquires the data.

본 실시 예와 같은 IC카드의 판독이 필요한 장치에는 여러 가지가 있으나 그 대표적인 예로 출입통제기를 들 수 있다.There are a number of devices that need to read the IC card as in the present embodiment, but a representative example is an access controller.

상술한 바와 같은 본 발명은 특성은 다른 두 종류의 IC카드를 하나의 카드단말기에서 공히 사용할 수 있도록 인터페이싱함으로써 경제적이다. 또한 불량카드의 투입으로 인한 카드단말기의 손상을 막고 카드의 단락 시 카드를 보호하며, 카드 인터페이스회로로 잡음이 유입되는 것을 방지함으로써 카드의 데이터를 안정적으로 취득할 수 있게 한다.The present invention as described above is economical by interfacing the two different types of IC cards so that they can be used in one card terminal. In addition, it prevents the card terminal from being damaged by the insertion of a bad card, protects the card when the card is short-circuited, and prevents noise from flowing into the card interface circuit so that the data of the card can be stably obtained.

한편 본 발명의 상세한 설명에서는 구체적인 실시 예에 관해 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론다. 특히 본 발명의 실시 예에서는 스마트카드의 경우를 예시하였으나, 카드 인터페이스회로와 통신 가능한 다른 카드에서도 동일한 방법으로 적용이 가능하다. 그러므로 본 발명의 범위는 설명된 실시 예에 국한되어 정해져서는 안되며 후술하는 특허 청구의 범위뿐 만 아니라 이 청구의 범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Particularly, in the embodiment of the present invention, the smart card is exemplified, but the same method may be applied to other cards that can communicate with the card interface circuit. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined not only by the appended claims, but also by the equivalents of the claims.

Claims (9)

카드단말기에서 주제어부에 접속되는 카드 인터페이스회로에 있어서, 카드 투입시 특정 상태로 전환되어 상기 주제어부가 카드 투입을 감지하게하는 카드 상태단자와, 상기 주제어부가 투입된 카드의 종류를 감지하기 위해 소정의 카드모드를 설정하는 카드모드 변경단자와, 상기 주제어부에서 공급되는 제1클럭을 수신하는 제1클럭수신단자와, 상기 주제어부가 카드로부터 데이터를 취독할 수 있도록 하는 데이터 입출력단자와, 상기 카드 상태단자, 카드모드 변경단자 및 데이터 입출력단자와 접속되는 동시에 상기 카드의 투입 시 상기 카드와 접촉하는 카드접촉부와, 소정의 제2클럭을 발생하는 제2클럭발생부와, 상기 카드모드 변경단자와 상기 카드접촉부 사이에 접속되며, 상기 주제어부에 의해 상기 카드모드 변경단자가 제1상태로 되면 상기 카드로 상기 제2클럭을 공급하고, 상기 카드모드 변경단자가 제2상태로 되면 상기 카드로 상기 제1클럭을 공급하기 위한 클럭선택부와, 상기 카드 인에이블단자와 상기 카드접촉부 사이에 접속되며, 상기 주제어부에 의해 상기 카드 인에이블단자가 제2상태로 되면 상기 카드로 전원을 공급하기 위한 전원공급부와, 상기 카드 리세트단자와 상기 카드접촉부 사이에 접속되며, 상기 주제어부에의해 상기 카드 리세트단자가 제2상태로 되면 상기 카드를 리세트시키기 위한 리세트부로 구성됨을 특징으로 하는 회로.In the card interface circuit connected to the main control unit in the card terminal, a card status terminal which is switched to a specific state when the card is inserted so that the main control unit detects the card input, and a predetermined card for detecting the type of the card into which the main control unit is inserted. A card mode changing terminal for setting a mode, a first clock receiving terminal for receiving a first clock supplied from the main controller, a data input / output terminal for allowing the main controller to read data from the card, and the card status terminal A card contact part connected to a card mode changing terminal and a data input / output terminal and contacting the card when the card is inserted, a second clock generating part generating a predetermined second clock, the card mode changing terminal and the card Is connected between the contact portions, and when the card mode change terminal is brought into the first state by the main control portion, And a clock selector for supplying the second clock and supplying the first clock to the card when the card mode change terminal is in the second state, and is connected between the card enable terminal and the card contact portion. When the card enable terminal is brought into the second state by the main control unit, a power supply unit for supplying power to the card is connected between the card reset terminal and the card contact unit. And a reset section for resetting the card when the set terminal is brought into the second state. 제1항에 있어서, 일측이 상기 카드접촉부에 접속되며, 전원 공급 상태에서 상기 카드가 단락 되면 상기 카드로 공급되는 전원을 차단하기 위한 보호부를 더 구비함을 특징으로하는 회로.The circuit of claim 1, further comprising: a protection unit connected to the card contact unit at one side and for shutting off power supplied to the card when the card is short-circuited in a power supply state. 제1항에 있어서, 상기 제2클럭발생부 혹은 상기 제1클럭수신단자와 상기 카드접촉부 사이에 접속되며, 상기 카드로 안정된 레벨의 클럭을 공급하기 위한 클럭 안정화부를 더 구비함을 특징으로 하는 회로.The circuit of claim 1, further comprising a clock stabilization unit connected between the second clock generation unit or the first clock receiving terminal and the card contact unit, and configured to supply a stable level clock to the card. . 제3항에 있어서, 상기 클럭 안정화부가 상기 클럭선택부에 접속된 풀업 및 풀다운 저항임을 특징으로 하는 회로.4. The circuit of claim 3, wherein the clock stabilizer is a pull-up and pull-down resistor connected to the clock selector. 제1항에 있어서, 상기 카드 상태단자 혹은 카드 리세트단자 혹은 상기 클럭선택부와 상기 카드접촉부 사이에 각각 접속되며, 동작신호의 레벨을 트랜지스터 트랜지스터 로직레벨로 제한하기 위한 신호안정화부를 더 포함함을 특징으로 하는 회로.2. The apparatus of claim 1, further comprising: a signal stabilization unit connected between the card state terminal or the card reset terminal or between the clock selector and the card contact unit, for limiting a level of an operation signal to a transistor transistor logic level. Characterized by a circuit. 제2항에 있어서, 상기 보호부가 옵토커플러임을 특징으로 하는 회로.The circuit of claim 2, wherein the protection unit is an optocoupler. 제1항에 있어서, 회로의 내부에 잡음이 유입되는 것을 방지하기 위한 잡음 유입 방지부를 더 구비함을 특징으로 하는 회로.The circuit according to claim 1, further comprising a noise inflow preventing part for preventing noise from flowing into the circuit. 제7항에 있어서, 상기 잡음 유입 방지부가 서지 잡음을 제거하기 위한 콘덴서임을 특징으로 하는 회로.8. The circuit of claim 7, wherein the noise inflow preventing unit is a capacitor for removing surge noise. 카드 상태단자, 카드 리세트단자, 카드 인에이블단자, 카드모드 변경단자 및 데이터 입출력단자를 통하여 카드단말기의 주제어부에 접속되며, 상기 주제어부에서 공급되는 제1클럭을 수신하는 카드 인터페이스회로에 있어서, 다수의 단자를 가지고 , 카드가 투입되면 상기 카드와 실제로 접촉하여 상기 단자들을 상기 카드의 단자들과 접속하는 카드접촉부와, 소정의 제2클럭을 발생하는 제2클럭발생부와, 상기 주제어부에 의해 상기 카드모드 변경단자가 비동기모드로 설정되면 상기 카드로 상기 제2클럭을 공급하고, 동기모드로 설정되면 상기 제1클럭을 공급하기 위한 클럭선택부와, 상기 주제어부에 의해 상기 카드 인에이블단자가 특정 상태로 되면 상기 카드로 전원을 공급하기 위한 전원공급부와, 상기 주제어부에 의해 상기 카드 리세트단자가 특정 상태로 되면 상기 카드를 리세트시키기 위한 리세트부와, 전원 공급 상태에서 카드가 단락되면 상기 카드로 공급되는 전원을 차단하기 위한 보호부와, 상기 카드로 안정된 레벨의 클럭을 공급하기 위한 클럭 안정화부와, 동작신호의 레벨을 트랜지스터 트랜지스터 로직 레벨로 제한하기 위한 신호 안정화부와, 회로의 내부에 잡음이 유입되는 것을 방지하기 위한 잡음 유입 방지부로 구성됨을 특징으로 하는 회로.In the card interface circuit which is connected to the main control unit of the card terminal through the card status terminal, the card reset terminal, the card enable terminal, the card mode change terminal and the data input / output terminal, and receives the first clock supplied from the main control unit. And a card contact portion for contacting the terminals with the terminals of the card by actually contacting the card when the card is inserted, a second clock generator for generating a predetermined second clock, and the main controller. And a clock selector for supplying the second clock to the card when the card mode change terminal is set to the asynchronous mode and the first clock when the card mode change terminal is set to the synchronous mode. When the enable terminal is in a specific state, a power supply unit for supplying power to the card, and the card reset terminal by the main control unit A reset section for resetting the card when the power is turned on; a protection section for shutting off power supplied to the card when the card is shorted in a power supply state; and a clock for supplying a stable level clock to the card. And a stabilizing unit, a signal stabilizing unit for limiting a level of an operation signal to a transistor transistor logic level, and a noise inflow preventing unit for preventing noise from flowing into the circuit.
KR1019940027306A 1994-10-25 1994-10-25 Card interface circuit KR0150058B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019940027306A KR0150058B1 (en) 1994-10-25 1994-10-25 Card interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019940027306A KR0150058B1 (en) 1994-10-25 1994-10-25 Card interface circuit

Publications (2)

Publication Number Publication Date
KR960015270A KR960015270A (en) 1996-05-22
KR0150058B1 true KR0150058B1 (en) 1998-10-15

Family

ID=19395841

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019940027306A KR0150058B1 (en) 1994-10-25 1994-10-25 Card interface circuit

Country Status (1)

Country Link
KR (1) KR0150058B1 (en)

Also Published As

Publication number Publication date
KR960015270A (en) 1996-05-22

Similar Documents

Publication Publication Date Title
US4658352A (en) Computer system with a back-up power supply
EP0861468B1 (en) Automatic voltage detection in multiple voltage applications
US8157180B2 (en) Integrated circuit device with multiple communication modes and operating method thereof
US8032777B2 (en) Memory card control apparatus and protection method thereof
US20020003740A1 (en) System for automatic generation of suitable voltage source on motherboard
US6430717B1 (en) Semiconductor integrated circuit device and method for monitoring its internal signal
KR20000000932A (en) Start-up circuit for reference voltage generator
KR100314413B1 (en) Internal Conditioning Device and Integrated Circuit Card
KR100205847B1 (en) Information processing apparatus with a mode setting circuit
US4504926A (en) Mode setting control system
KR0150058B1 (en) Card interface circuit
US6931234B1 (en) Data processing device and method of controlling operation of data processing device
US6796501B2 (en) Smart card reader circuit and method of monitoring
US20020179707A1 (en) Smart card reader circuit and insertion detection method
EP0617429A3 (en) Semiconductor memory device having test circuit.
GB2267164A (en) IC card input/output control circuit
KR0140026B1 (en) Reset circuit
US20020013023A1 (en) Electronic device, unit using the same, and system
KR200156524Y1 (en) Circuit for resetting on screen display in monitor
JP3562524B2 (en) IC card
JP3872779B2 (en) Oscillation circuit and semiconductor integrated circuit device
KR19980083379A (en) Smart Card with Auto Reset
KR200330112Y1 (en) A Micro memory card
KR100213266B1 (en) Semiconductor device having test circuit
KR960008250Y1 (en) Circuit for controlling input/output data for controller

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
FPAY Annual fee payment

Payment date: 20080513

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee