KR19990037579U - Smart card interface - Google Patents

Smart card interface Download PDF

Info

Publication number
KR19990037579U
KR19990037579U KR2019980003366U KR19980003366U KR19990037579U KR 19990037579 U KR19990037579 U KR 19990037579U KR 2019980003366 U KR2019980003366 U KR 2019980003366U KR 19980003366 U KR19980003366 U KR 19980003366U KR 19990037579 U KR19990037579 U KR 19990037579U
Authority
KR
South Korea
Prior art keywords
smart card
microprocessor
port
transmission
terminal
Prior art date
Application number
KR2019980003366U
Other languages
Korean (ko)
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 KR2019980003366U priority Critical patent/KR19990037579U/en
Publication of KR19990037579U publication Critical patent/KR19990037579U/en

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

본 고안은 스마트 카드 에이식부를 사용하지 않으므로 회로가 간단하여 경제성을 향상시키기 위한 스마트 카드 인터페이스에 관한 것이다.The present invention relates to a smart card interface for improving the economics because the circuit is simple because the smart card is not used.

본 고안의 스마트 카드 인터페이스는 마이크로 프로세서와 스마트 카드 컨넥터부, 기계적 스위치로서 상기 스마트 카드 컨넥터부에 스마트 카드의 존재 유무를 검출하는 카드 검출부, 상기 카드 검출부의 출력을 상기 마이크로 프로세서에 입력시키는 인터럽트 제어부, 상기 카드 검출부의 출력에 의해 개폐되고 상기 스마트 카드 컨넥터부의 클럭 단자에 클럭을 공급하는 발진부와, 상기 마이크로 프로세서와 스마트 카드 컨넥터부 사이에 위치하여 송신 또는 수신 연결 경로인 송수신 전송 경로 분리부를 포함하여 구성됨을 특징으로 한다.The smart card interface of the present invention includes a microprocessor, a smart card connector, and a mechanical switch that detects the presence of a smart card in the smart card connector, an interrupt controller for inputting the output of the card detector to the microprocessor; And an oscillation unit which is opened and closed by an output of the card detection unit and supplies a clock to a clock terminal of the smart card connector, and a transmission / reception transmission path separation unit located between the microprocessor and the smart card connector and configured as a transmission or reception connection path. It is characterized by.

Description

스마트 카드 인터페이스Smart card interface

본 고안은 스마트 카드 인터페이스에 관한 것으로, 특히 경제성을 향상시키는 스마트 카드 인터페이스에 관한 것이다.The present invention relates to a smart card interface, and more particularly to a smart card interface to improve the economics.

종래 기술에 따른 스마트 카드 인터페이스는 도 1에서와 같이, 인터럽트 포트(Interrupt Port)를 포함한 마이크로 프로세서(Micro Processor)(11), 스마트 카드 컨넥터(Smart Card Connector)부(12), 상기 마이크로 프로세서(11)와 스마트 카드 컨넥터부(12) 사이에 전용 인터페이스(Interface)인 스마트 카드 에이식(ASIC:Application Specific IC)부(13), 기계적 스위치로서 스마트 카드의 존재 유무를 검출하는 카드 검출부(14), 상기 스마트 카드 에이식부의 출력을 상기 마이크로 프로세서의 인터럽트 포트에 입력시키는 인터럽트 제어부(15)로 구성된다.The smart card interface according to the prior art is, as shown in Figure 1, a microprocessor (11) including an interrupt port (Interrupt Port), a smart card connector (Smart Card Connector) unit 12, the microprocessor 11 ) And a smart card application specific IC (ASIC) unit 13, which is a dedicated interface between the smart card connector unit 12, a card detection unit 14 for detecting the presence or absence of a smart card as a mechanical switch, And an interrupt controller 15 for inputting the output of the smart card aiding unit to an interrupt port of the microprocessor.

여기서, 상기 마이크로 프로세서(11)는 송신 포트와 수신 포트를 포함한 시리얼 인터페이스(Serial Interface)(16), 범용 포트와, 인터럽트 포트를 포함하여 구성된다.Here, the microprocessor 11 includes a serial interface 16 including a transmission port and a reception port, a general purpose port, and an interrupt port.

이어, 상기 스마트 카드 컨넥터부(12)는 입출력 단자, 클럭(Clock) 단자와, 리셋(Reset) 단자 그리고 전원전압(VCC)단자, 접지 단자와, 프로그램전압(VPP)단자를 포함하여 구성된다.The smart card connector 12 includes an input / output terminal, a clock terminal, a reset terminal, a power supply voltage (V CC ) terminal, a ground terminal, and a program voltage (V PP ) terminal. do.

그리고, 상기 스마트 카드 에이식부(13)는 상기 마이크로 프로세서(11)의 송신 포트, 수신 포트와, 범용 포트 그리고 상기 스마트 카드 컨넥터부(12)의 입출력 단자, 클럭 단자, 리셋 단자와, VPP단자 및 상기 카드 검출부(14)와 인터럽트 제어부(15)에 연결된다.The smart card receiver unit 13 includes a transmit port, a receive port, a general purpose port, and an input / output terminal, a clock terminal, a reset terminal, and a V PP terminal of the smart card connector 12. And the card detector 14 and the interrupt controller 15.

상기 스마트 카드 에이식부(13)와 상기 스마트 카드 컨넥터부(12)의 입출력 단자의 연결부위 그리고 VCC단자에 VCC가 연결된다.The V CC is connected to the connection portion of the input and output terminals of the smart card A-type unit 13 and the smart card connector 12 and the V CC terminal.

상기와 같이 구성된 종래 기술에 따른 스마트 카드 인터페이스의 동작 설명은 다음과 같다.The operation of the smart card interface according to the related art configured as described above is as follows.

먼저, 상기 카드 검출부(14)에서는 상기 스마트 카드 컨넥터부(12)에 스마트 카드의 삽입 상태를 검출한 후, 상기 스마트 카드 에이식부(13)를 통해 상기 인터럽트 제어부(15)에 출력한다.First, the card detection unit 14 detects an insertion state of a smart card in the smart card connector unit 12, and then outputs the smart card to the interrupt control unit 15 through the smart card user unit 13.

그리고, 상기 마이크로 프로세서(11)에서는 스마트 카드의 삽입 상태를 상기 인터럽트 제어부(15)를 통하여 인식하면 상기 스마트 카드 에이식부(13)를 통해 상기 시리얼 인터페이스(16)가 수신 상태로 설정되도록 상기 범용 포트를 제어한다.In addition, when the microprocessor 11 recognizes the insertion state of the smart card through the interrupt control unit 15, the general-purpose port is configured such that the serial interface 16 is set to the reception state through the smart card EAS unit 13. To control.

이때, 상기 스마트 카드 에이식부(13)에서 상기 카드 검출부(14)의 출력을 입력 받아 스마트 카드에 클럭을 공급하기 시작하며, 상기 스마트 카드에서는 클럭을 공급받아 초기와 정보를 입출력 단자와 상기 시리얼 인터페이스(16)의 수신 포트를 통하여 상기 마이크로 프로세서(11)에 출력한다.At this time, the smart card A-type unit 13 receives the output of the card detection unit 14 and starts supplying a clock to the smart card, and the smart card receives the clock and inputs initial and information input / output terminals and the serial interface. Output to the microprocessor 11 via the receiving port of (16).

상기와 같은 상태에서, 스마트 카드로 부터 표준 시리얼 데이터를 상기 마이크로 프로세서(11)에서 수신받을 경우에는 상기 스마트 카드 컨넥터부(12)의 입출력 단자와 상기 시리얼 인터페이스(16)의 수신 포트를 통하여 스톱비트(Stop Bit)를 포함한 수신데이터를 수신 받는다.In the above state, when receiving the standard serial data from the smart card in the microprocessor 11, the stop bit through the input and output terminals of the smart card connector 12 and the receiving port of the serial interface 16. Receive received data including (Stop Bit).

이때, 상기 마이크로 프로세서(11)에 수신된 데이터에 에러가 검출되었을 경우에는 상기 마이크로 프로세서(11)에서는 상기 스마트 카드 에이식부(13)를 통해 상기 시리얼 인터페이스(16)가 송신 상태로 설정되도록 상기 범용 포트를 제어한다.In this case, when an error is detected in the data received by the microprocessor 11, the microprocessor 11 may set the serial interface 16 to a transmission state through the smart card EAS unit 13. Control the port.

그리고, 상기 시리얼 인터페이스(16)의 송신 포트에서 모든 비트가 "1"인 데이터를 전송한 후, 상기 모든 비트가 "1"인 데이터의 초기 스톱비트가 상기 입출력 단자에 전송되면 다시 상기 마이크로 프로세서(11)에서는 상기 스마트 카드 에이식부(13)를 통해 상기 시리얼 인터페이스(16)가 수신 상태로 설정되도록 상기 범용 포트를 제어하여 계속해서 스마트 카드의 표준 시리얼 데이터를 수신 받는다.After the data of all bits is “1” is transmitted from the transmission port of the serial interface 16, when the initial stop bit of the data of all of the bits is “1” is transmitted to the input / output terminal, the microprocessor ( In 11), the serial port 16 is controlled through the smart card access unit 13 so that the serial interface 16 is set to a reception state, thereby continuously receiving standard serial data of the smart card.

이어, 상기 마이크로 프로세서(11)가 스마트 카드에 데이터를 전송할 경우에는 상기 마이크로 프로세서(11)에서는 상기 스마트 카드 에이식부(13)를 통해 상기 시리얼 인터페이스(16)가 송신 상태로 설정되도록 상기 범용 포트를 제어한 다음, 상기 시리얼 인터페이스(16)의 송신 포트와 상기 스마트 카드 컨넥터부(12)의 입출력 단자를 통하여 출력 데이터를 스마트 카드에 출력한다.Subsequently, when the microprocessor 11 transmits data to the smart card, the microprocessor 11 may set the universal port so that the serial interface 16 is set to a transmission state through the smart card EAS unit 13. After the control, the output data is output to the smart card through the transmission port of the serial interface 16 and the input / output terminal of the smart card connector 12.

이때, 상기 마이크로 프로세서(11)에서 송신된 데이터에 스마트 카드에서 에러가 검출되었을 경우에는 상기 마이크로 프로세서(11)에서는 상기 스마트 카드 에이식부(13)를 통해 상기 시리얼 인터페이스(16)가 수신 상태로 설정되도록 상기 범용 포트를 제어한다.At this time, when an error is detected in the smart card in the data transmitted from the microprocessor 11, the microprocessor 11 sets the serial interface 16 to a reception state through the smart card EAS unit 13. The universal port is controlled to be.

스마트 카드에서 상기 시리얼 인터페이스(16)의 수신 포트에 에러 신호를 전송하면 받고, 그후에 상기 마이크로 프로세서(11)에서는 상기 스마트 카드 에이식부(13)를 통해 상기 시리얼 인터페이스(16)가 송신 상태로 설정되도록 상기 범용 포트를 제어한다.When the smart card transmits an error signal to the receiving port of the serial interface 16, the microprocessor 11 receives the error signal. Then, the microprocessor 11 sets the serial interface 16 to be set to the transmission state through the smart card EAS unit 13. Control the universal port.

상기 수신된 에러 신호를 상기 마이크로 프로세서(11)에서 패리티 에러 발생 유무를 확인한 후, 다음 송신데이터를 계속해서 송신한다.After checking whether the received error signal is a parity error occurrence in the microprocessor 11, the next transmission data is continuously transmitted.

그러나 종래의 스마트 카드 인터페이스는 스마트 카드 에이식부를 사용하여 회로가 복잡하므로 경제성이 저하된다는 문제점이 있었다.However, the conventional smart card interface has a problem that the economic efficiency is lowered because the circuit is complicated by using a smart card ASI.

본 고안은 상기의 문제점을 해결하기 위해 안출한 것으로 스마트 카드 에이식부를 사용하지 않으므로 회로가 간단하여 경제성을 향상시키는 스마트 카드 인터페이스를 제공하는데 그 목적이 있다.The present invention has been made to solve the above problems, and the purpose of the present invention is to provide a smart card interface that improves the economic efficiency because the circuit is simple because the smart card is not used.

도 1은 종래 기술에 따른 스마트 카드 인터페이스를 나타낸 블록도1 is a block diagram showing a smart card interface according to the prior art

도 2는 본 고안의 실시예에 따른 스마트 카드 인터페이스를 나타낸 블록도2 is a block diagram showing a smart card interface according to an embodiment of the present invention

도 3은 본 고안의 실시예에 따른 스마트 카드 인터페이스의 마이크로 프로세서의 데이터 수신을 나타낸 타이밍도3 is a timing diagram illustrating data reception of a microprocessor of a smart card interface according to an embodiment of the present invention;

도 4는 본 고안의 실시예에 따른 스마트 카드 인터페이스의 마이크로 프로세서의 수신시 패리티 에러 검출을 나타낸 타이밍도4 is a timing diagram illustrating parity error detection upon reception of a microprocessor of a smart card interface according to an embodiment of the present invention;

도 5는 본 고안의 실시예에 따른 스마트 카드 인터페이스의 마이크로 프로세서의 데이터 송신 및 송신시 패리티 에러 검출을 나타낸 타이밍도5 is a timing diagram illustrating parity error detection during data transmission and transmission of a microprocessor of a smart card interface according to an embodiment of the present invention;

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

31: 마이크로 프로세서 32: 스마트 카드 컨넥터부31: microprocessor 32: smart card connector

33: 카드 검출부 34: 인터럽트 제어부33: card detector 34: interrupt controller

35: 발진부 36: 송수신 전송 경로 분리부35: oscillation unit 36: transmission and reception transmission path separation unit

37: 시리얼 인터페이스 38: 제 1 트랜스퍼 게이트37: serial interface 38: first transfer gate

39; 인버터 40: 제 2 트랜스퍼 게이트39; Inverter 40: second transfer gate

본 고안의 스마트 카드 인터페이스는 마이크로 프로세서와 스마트 카드 컨넥터부, 기계적 스위치로서 상기 스마트 카드 컨넥터부에 스마트 카드의 존재 유무를 검출하는 카드 검출부, 상기 카드 검출부의 출력을 상기 마이크로 프로세서에 입력시키는 인터럽트 제어부, 상기 카드 검출부의 출력에 의해 개폐되고 상기 스마트 카드 컨넥터부의 클럭 단자에 클럭을 공급하는 발진부와, 상기 마이크로 프로세서와 스마트 카드 컨넥터부 사이에 위치하여 송신 또는 수신 연결 경로인 송수신 전송 경로 분리부를 포함하여 구성됨을 특징으로 한다.The smart card interface of the present invention includes a microprocessor, a smart card connector, and a mechanical switch that detects the presence of a smart card in the smart card connector, an interrupt controller for inputting the output of the card detector to the microprocessor; And an oscillation unit which is opened and closed by an output of the card detection unit and supplies a clock to a clock terminal of the smart card connector, and a transmission / reception transmission path separation unit located between the microprocessor and the smart card connector and configured as a transmission or reception connection path. It is characterized by.

상기와 같은 본 고안에 따른 스마트 카드 인터페이스의 바람직한 실시예를 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다.When described in detail with reference to the accompanying drawings a preferred embodiment of the smart card interface according to the present invention as follows.

도 2는 본 고안의 실시예에 따른 스마트 카드 인터페이스를 나타낸 블록도이고, 도 3은 본 고안의 실시예에 따른 스마트 카드 인터페이스의 마이크로 프로세서의 데이터 수신을 나타낸 타이밍도이다.2 is a block diagram showing a smart card interface according to an embodiment of the present invention, Figure 3 is a timing diagram showing the data reception of the microprocessor of the smart card interface according to an embodiment of the present invention.

그리고, 도 4는 본 고안의 실시예에 따른 스마트 카드 인터페이스의 마이크로 프로세서의 수신시 패리티 에러 검출을 나타낸 타이밍도이고, 도 5는 본 고안의 실시예에 따른 스마트 카드 인터페이스의 마이크로 프로세서의 데이터 송신 및 송신시 패리티 에러 검출을 나타낸 타이밍도이다.4 is a timing diagram illustrating parity error detection upon reception of a microprocessor of a smart card interface according to an embodiment of the present invention, and FIG. 5 is a data transmission and transmission of a microprocessor of the smart card interface according to an embodiment of the present invention. A timing diagram showing parity error detection during transmission.

본 고안의 실시예에 따른 스마트 카드 인터페이스는 도 2에서와 같이, 마이크로 프로세서(31), 스마트 카드 컨넥터부(32), 기계적 스위치로서 스마트 카드의 존재 유무를 검출하는 카드 검출부(33), 상기 카드 검출부(33)의 출력을 상기 마이크로 프로세서(31)의 인터럽트 포트에 입력시키는 인터럽트 제어부(34), 상기 카드 검출부(33)의 출력에 의해 개폐되고 상기 스마트 카드 컨넥터부(32)의 클럭 단자에 클럭을 공급하는 발진부(35)와, 송수신 전송 경로 분리부(36)로 구성된다.Smart card interface according to an embodiment of the present invention, as shown in Figure 2, the microprocessor 31, the smart card connector 32, a card detector 33 for detecting the presence or absence of a smart card as a mechanical switch, the card An interrupt controller 34 which inputs an output of the detector 33 to an interrupt port of the microprocessor 31, and is opened and closed by an output of the card detector 33 and clocked to a clock terminal of the smart card connector 32. It consists of an oscillator 35 for supplying the transmission and reception transmission path separation unit 36.

여기서, 상기 마이크로 프로세서(31)는 스마트 카드의 입출력을 위해 송신 포트와 수신 포트를 포함한 시리얼 인터페이스(37), 상기 송수신 전송 경로 분리부(36)를 제어하기 위한 범용 포트와, 스마트 카드 삽입 표시 신호를 처리하기 위한 인터럽트 포트를 포함하여 구성된다.Here, the microprocessor 31 is a serial interface 37 including a transmission port and a reception port for input and output of a smart card, a general purpose port for controlling the transmission and reception transmission path separation unit 36, and a smart card insertion indication signal. It is configured to include an interrupt port for processing.

이어, 상기 스마트 카드 컨넥터부(32)는 입출력 단자, 클럭 단자와, 리셋 단자 그리고 VCC단자, 접지 단자와, VPP단자를 포함하여 구성된다.Subsequently, the smart card connector 32 includes an input / output terminal, a clock terminal, a reset terminal, a V CC terminal, a ground terminal, and a V PP terminal.

상기 리셋 단자와 접지 단자는 접지되어 있다.The reset terminal and the ground terminal are grounded.

상기 송수신 전송 경로 분리부(36)는 상기 스마트 카드 컨넥터(32)의 입출력 단자와 상기 마이크로 프로세서(31)의 시리얼 인터페이스(37) 사이에 송신과 수신데이터를 분리하는 회로로 저항을 통과한 VCC와 상기 범용 포트를 입력받는 제 1 트랜스퍼 게이트(38)와 상기 송신 포트와 인버터(39)를 통하여 반전된 범용 포트를 입력받는 제 2 트랜스퍼 게이트(40)로 구성된다.The transceiver transmitting path separation unit 36 V passed through the resistor in a circuit for separating the transmit and receive data between the serial interface 37 of the input-output terminal and the microprocessor 31 of the smart card connector (32) CC And a first transfer gate 38 receiving the universal port, and a second transfer gate 40 receiving the universal port inverted through the transmission port and the inverter 39.

상기 입출력 단자와 VCC사이에 연결된 풀-업(Pull-up)저항은 상기 스마트 카드 컨넥터부(32)와 마이크로 프로세서(31)가 모두 입력상태이면 항상"1"의 값을 갖도록 하기 위한 것이다.The pull-up resistor connected between the input / output terminal and V CC is intended to always have a value of "1" when both the smart card connector 32 and the microprocessor 31 are in an input state.

상기와 같이 구성된 본 고안의 실시예에 따른 스마트 카드 인터페이스의 동작 설명은 다음과 같다.Operation of the smart card interface according to the embodiment of the present invention configured as described above is as follows.

먼저, 상기 카드 검출부(33)에서 상기 스마트 카드 컨넥터부(32)에 스마트 카드의 삽입 상태를 검출한 후, 상기 인터럽트 제어부(34)와 발진부(35)에서 상기 카드 검출부(33)의 출력을 입력 받는다.First, the card detecting unit 33 detects an insertion state of the smart card into the smart card connector 32, and then inputs the output of the card detecting unit 33 from the interrupt control unit 34 and the oscillator 35. Receive.

그리고, 상기 마이크로 프로세서(31)에서는 스마트 카드의 삽입 상태를 상기 인터럽트 제어부(34)를 통하여 인식하면 상기 범용 포트를 로우(Low)로 제어하여 상기 제 1 트랜스퍼 게이트(38)를 턴-온(Turn-on)시키고 상기 제 2 트랜스퍼 게이트(40)를 턴-오프(Turn-off)시키므로 상기 시리얼 인터페이스(37)를 수신 상태로 설정한다.When the microprocessor 31 recognizes the insertion state of the smart card through the interrupt controller 34, the microprocessor 31 controls the universal port to low to turn on the first transfer gate 38. -on) and the second transfer gate 40 is turned off, thereby setting the serial interface 37 to a reception state.

이때, 상기 발진부(35)에서 상기 카드 검출부(33)의 출력을 입력 받아 스마트 카드에 클럭을 공급하기 시작하며, 스마트 카드에서는 상기 발진부(35)로부터 클럭을 공급받아 초기와 정보를 입출력 단자와 상기 시리얼 인터페이스(37)의 수신 포트를 통하여 상기 마이크로 프로세서(31)에 출력한다.At this time, the oscillator 35 receives the output of the card detector 33 and starts supplying a clock to the smart card, and the smart card receives the clock from the oscillator 35 to provide initial and information input and output terminals and the information. The microprocessor 31 is output to the microprocessor 31 through the receiving port of the serial interface 37.

상기와 같은 상태에서, 스마트 카드로 부터 표준 시리얼 데이터를 상기 마이크로 프로세서(31)에서 수신받을 경우에는 도 3에서와 같이, 상기 스마트 카드 컨넥터부(32)의 입출력 단자와 상기 시리얼 인터페이스(37)의 수신 포트를 통하여 스톱비트, 8비트데이터와 패리티비트(Parity Bit)의 수신데이터를 수신 받는다.In the above state, when receiving the standard serial data from the smart card in the microprocessor 31, as shown in Figure 3, the input and output terminals of the smart card connector 32 and the serial interface 37 Receive stop data, 8 bit data and parity bit received data through the receiving port.

여기서, 상기 수신데이터 각 비트의 etu(elementary time unit)는 9600bps이다.Here, the elementary time unit (etu) of each bit of the received data is 9600bps.

이때, 상기 마이크로 프로세서(31)에 수신된 데이터에 에러가 검출되었을 경우에는 도 4에서와 같이, 상기 마이크로 프로세서(31)에서 상기 범용 포트를 로우에서 하이(High)로 제어하여 상기 제 2 트랜스퍼 게이트(40)를 턴-온시키므로 상기 시리얼 인터페이스(37)를 송신 상태로 설정한다.In this case, when an error is detected in the data received by the microprocessor 31, as shown in FIG. 4, the second transfer gate is controlled by controlling the universal port from low to high in the microprocessor 31. 40 turns on the serial interface 37 to transmit.

그리고, 상기 시리얼 인터페이스(37)의 송신 포트에서 모든 비트가 "1"인 데이터를 전송한 후, 상기 모든 비트가 "1"인 데이터의 초기 스톱비트가 상기 입출력 단자에 전송되면 즉 2etu후에 다시 상기 제 1 트랜스퍼 게이트(38)를 턴-온시키므로 상기 시리얼 인터페이스(37)는 다시 수신 상태가 되어 계속해서 스마트 카드의 표준 시리얼 데이터를 수신 받는다.Then, after transmitting the data of all bits is "1" in the transmission port of the serial interface 37, if the initial stop bit of the data of all bits is "1" is transmitted to the input / output terminal, i.e. again after 2etu Since the first transfer gate 38 is turned on, the serial interface 37 is in a receiving state again and continues to receive standard serial data of the smart card.

여기서, 스마트 카드에서 상기 마이크로 프로세서(31)로부터 수신 받은 데이터가 모두 "1"이므로 짝수 패리티 에러가 발생한다.Here, even parity errors occur because all data received from the microprocessor 31 is "1" in the smart card.

이어, 상기 마이크로 프로세서(31)가 스마트 카드에 데이터를 전송할 경우에는 도 5에서와 같이, 상기 마이크로 프로세서(31)에서 상기 범용 포트를 로우에서 하이로 제어하여 상기 시리얼 인터페이스(37)를 송신 상태로 설정한 후, 상기 시리얼 인터페이스(370의 송신 포트와 상기 스마트 카드 컨넥터부(32)의 입출력 단자를 통하여 출력 데이터를 스마트 카드에 출력한다.Subsequently, when the microprocessor 31 transmits data to the smart card, as shown in FIG. 5, the microprocessor 31 controls the universal port from low to high to bring the serial interface 37 into a transmission state. After setting, the output data is output to the smart card through the transmission port of the serial interface 370 and the input / output terminals of the smart card connector 32.

이때, 상기 마이크로 프로세서(31)에서 송신된 데이터에 스마트 카드에서 에러가 검출되었을 경우에는 상기 마이크로 프로세서(31)에서 상기 범용 포트를 하이에서 로우로 제어하여 상기 시리얼 인터페이스(37)를 수신 상태로 설정한다.At this time, when an error is detected in the smart card in the data transmitted from the microprocessor 31, the microprocessor 31 controls the universal port from high to low to set the serial interface 37 to a reception state. do.

스마트 카드에서 상기 시리얼 인터페이스(37)의 수신 포트에 에러 신호를 전송하면 받고 1etu후에 상기 제 1 트랜스퍼 게이트(38)를 턴-오프시킨다.When the smart card transmits an error signal to the receiving port of the serial interface 37, the first transfer gate 38 is turned off after 1 etu.

상기 수신된 에러 신호는 상기 마이크로 프로세서(31)에서 패리티 에러 발생 유무를 확인한 후, 다음 송신데이터를 계속해서 송신한다.The received error signal confirms whether a parity error has occurred in the microprocessor 31, and then continuously transmits the next transmission data.

본 고안의 스마트 카드 인터페이스는 스마트 카드 에이식부 대신에 하나의 인버터와 두 개의 트랜스퍼 게이트로 구성된 송수신 전송 경로 분리부를 구성하고 또한 발진부를 포함하여 구성되므로, 스마트 카드 에이식부를 사용하지 않아 회로가 간단하여 경제성을 향상시키는 효과가 있다.The smart card interface of the present invention is configured to transmit and receive a transmission path separation unit consisting of one inverter and two transfer gates instead of the smart card EAS unit, and also includes an oscillator unit. It has the effect of improving economics.

Claims (3)

마이크로 프로세서와 스마트 카드 컨넥터부;A microprocessor and smart card connector; 기계적 스위치로서 상기 스마트 카드 컨넥터부에 스마트 카드의 존재 유무를 검출하는 카드 검출부;A card detector which detects the presence or absence of a smart card in the smart card connector as a mechanical switch; 상기 카드 검출부의 출력을 상기 마이크로 프로세서에 입력시키는 인터럽트 제어부;An interrupt controller for inputting the output of the card detector to the microprocessor; 상기 카드 검출부의 출력에 의해 개폐되고 상기 스마트 카드 컨넥터부의 클럭 단자에 클럭을 공급하는 발진부;An oscillator which is opened and closed by an output of the card detector and supplies a clock to a clock terminal of the smart card connector; 상기 마이크로 프로세서와 스마트 카드 컨넥터부 사이에 위치하여 송신 또는 수신 연결 경로인 송수신 전송 경로 분리부를 포함하여 구성됨을 특징으로 하는 스마트 카드 인터페이스.And a transmission and reception transmission path separation unit located between the microprocessor and the smart card connector, the transmission or reception connection path. 제 1 항에 있어서,The method of claim 1, 상기 마이크로 프로세서는 범용 포트, 인터럽트 포트 그리고 송신 포트와 수신 포트를 포함한 시리얼 인터페이스를 포함하여 구성되고, 상기 스마트 카드 컨넥터부는 입출력 단자, 클럭 단자, VPP단자와, VCC단자 그리고 접지된 리셋 단자와 접지 단자를 포함하여 구성됨을 특징으로 하는 스마트 카드 인터페이스.The microprocessor includes a general purpose port, an interrupt port, and a serial interface including a transmit port and a receive port. The smart card connector includes an input / output terminal, a clock terminal, a V PP terminal, a V CC terminal, and a grounded reset terminal. Smart card interface comprising a ground terminal. 제 1 항 또는 제 2 항에 있어서,The method according to claim 1 or 2, 상기 송수신 전송 경로 분리부는 상기 스마트 카드 컨넥터의 입출력 단자와 상기 마이크로 프로세서의 시리얼 인터페이스 사이에 송신과 수신데이터를 분리하는 회로로 상기 범용 포트와 VCC를 입력받는 제 1 트랜스퍼 게이트, 상기 범용 포트를 반전시키는 인버터와, 상기 송신 포트와 상기 인버터를 통하여 반전된 범용 포트를 입력받는 제 2 트랜스퍼 게이트로 구성됨을 특징으로 하는 스마트 카드 인터페이스.The transmission and reception transmission path separation unit is a circuit for separating transmission and reception data between the input / output terminal of the smart card connector and the serial interface of the microprocessor. The first transfer gate receiving the universal port and V CC is reversed. And a second transfer gate receiving the transmission port and the general purpose port inverted through the inverter.
KR2019980003366U 1998-03-09 1998-03-09 Smart card interface KR19990037579U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR2019980003366U KR19990037579U (en) 1998-03-09 1998-03-09 Smart card interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR2019980003366U KR19990037579U (en) 1998-03-09 1998-03-09 Smart card interface

Publications (1)

Publication Number Publication Date
KR19990037579U true KR19990037579U (en) 1999-10-15

Family

ID=69711521

Family Applications (1)

Application Number Title Priority Date Filing Date
KR2019980003366U KR19990037579U (en) 1998-03-09 1998-03-09 Smart card interface

Country Status (1)

Country Link
KR (1) KR19990037579U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020085273A (en) * 2001-05-07 2002-11-16 크로스반도체기술 주식회사 Smart card interface apparatus and method thereof
KR20030076910A (en) * 2002-03-23 2003-09-29 엘퍼스크 주식회사 Smart card and serial communication module interface device for smart card reader

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020085273A (en) * 2001-05-07 2002-11-16 크로스반도체기술 주식회사 Smart card interface apparatus and method thereof
KR20030076910A (en) * 2002-03-23 2003-09-29 엘퍼스크 주식회사 Smart card and serial communication module interface device for smart card reader

Similar Documents

Publication Publication Date Title
US5247163A (en) IC card having a monitor timer and a reset signal discrimination circuit
JP3357048B2 (en) Method and interface for interfacing a portable data carrier to a host processor
US6275526B1 (en) Serial data communication between integrated circuits
EP0287119B1 (en) Serial data processor capable of transferring data at a high speed
KR20030072203A (en) Interface between modem and subscriber interface module
JP2569194B2 (en) Microcomputer and non-contact IC card using the same
KR100495657B1 (en) Integrated circuit device with multiple communication modes and operating method thereof
US5854945A (en) Bar code scanner with keyboard simulation
US5333198A (en) Digital interface circuit
EP0009862B1 (en) Programmable mode of operation select by reset and data processor using this select
US5748034A (en) Combinational logic circuit, system and method for eliminating both positive and negative glitches
CN100504831C (en) Method and apparatus for recovering I2C bus locked by slave device
US9880895B2 (en) Serial interface with bit-level acknowledgement and error correction
KR19990037579U (en) Smart card interface
KR100387343B1 (en) Data processing device for switching between terminal mode and rf mode with a digital circuit
US5068820A (en) Data transfer system having transfer discrimination circuit
US6240520B1 (en) Power on/off control device for computer
EP0647898A1 (en) An apparatus for activating a logic device
US7172129B2 (en) Integrated circuit card capable of automatically transmitting NULL byte information without intervention by CPU
US6885217B2 (en) Data transfer control circuitry including FIFO buffers
US6745342B1 (en) Universal serial bus transceiver shortcut protection
KR100207482B1 (en) Parity checking device for smart card
KR100313532B1 (en) Curcuit for eliminating noise
KR920000388B1 (en) Apparatus detecting collision between data transmission
EP4340238A1 (en) Automatic hardware interface detection

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination