CN204206154U - The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement - Google Patents

The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement Download PDF

Info

Publication number
CN204206154U
CN204206154U CN201420541265.8U CN201420541265U CN204206154U CN 204206154 U CN204206154 U CN 204206154U CN 201420541265 U CN201420541265 U CN 201420541265U CN 204206154 U CN204206154 U CN 204206154U
Authority
CN
China
Prior art keywords
semiconductor
oxide
pole
port
described metal
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201420541265.8U
Other languages
Chinese (zh)
Inventor
何荣正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Centerm Information Co Ltd
Original Assignee
Fujian Centerm Information Co Ltd
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 Fujian Centerm Information Co Ltd filed Critical Fujian Centerm Information Co Ltd
Priority to CN201420541265.8U priority Critical patent/CN204206154U/en
Application granted granted Critical
Publication of CN204206154U publication Critical patent/CN204206154U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model provides the gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement, for MCU being connected to the IO pin of IC-card, comprise a receiving circuit and a transtation mission circuit, described receiving circuit is provided with a transmit port, the first output port and the first enable receiving port, described receiving circuit is provided with a receiving port, the second output port and the second enable receiving port, be connected to the IO pin of IC-card after described first output port is in parallel with described second output port, be convenient to the data interaction between MCU and IC-card.

Description

The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement
Technical field
The utility model relates to the gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement.
Background technology
Along with popularizing of IC-card card application, need to support that the equipment of ISO7816 Application of Interface also gets more and more, wherein, according to ISO7816 interface specification, IC-card is 8 contacts altogether, are respectively VCC, RST, CLK, GND, VPP, IO and two RFU pins, VCC is power pins, be connected directly to power supply needed for card, RST is reset pin, be connected to the general GPIO pin of MCU to connect, in order to control the reset of IC-card, CLK is IC-card clock input pin, be connected to the PWM output pin of MCU, GND be IC-card contiguously, VPP is program voltage, RFU is reserved pin, temporarily can not use, IO is the pin of IC-card data interaction signal, data format comprises: a start bit is low, 8 data bit, 1 base even parity bit, consistent with the data format of serial ports, be bidirectional data line unlike IC-card, for data receiver and transmission holding wire, and serial ports is dual signal line (RX and TX), perform data receiver and data sending terminal respectively, general MCU is less can directly support ISO7816 agreement, so conventional way is carry ISO7816 extended chip on the UART expansion interface that carries of general MCU, the corresponding increase of cost, another is then the GPIO Simulation with I SO7816 agreement adopting MCU, full software algorithm realizes, stability is a problem, and increases Software Coding design complexities.
Summary of the invention
The technical problems to be solved in the utility model, is the gate circuit conversion equipment providing a kind of universal serial port and ISO7816 agreement, is convenient to the data interaction between MCU and IC-card.
The utility model is achieved in that the gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement, for MCU being connected to the IO pin of IC-card, comprise a receiving circuit and a transtation mission circuit, described receiving circuit is provided with a transmit port, the first output port and the first enable receiving port, described receiving circuit is provided with a receiving port, the second output port and the second enable receiving port, is connected to the IO pin of IC-card after described first output port is in parallel with described second output port.
Further, described receiving circuit comprises resistance R1, R2, R5, metal-oxide-semiconductor Q1, Q2, one end of described resistance R1 is the first enable receiving port, the other end is connected to the D pole of described metal-oxide-semiconductor Q1, one end of described resistance R5 is transmit port, the other end is connected to the G pole of described metal-oxide-semiconductor Q1, the S pole ground connection of described metal-oxide-semiconductor Q1, the G pole of described metal-oxide-semiconductor Q2 is connected between described metal-oxide-semiconductor Q1 and resistance R1, the D pole of described metal-oxide-semiconductor Q2 is connected to power supply by resistance R2, the S pole ground connection of described metal-oxide-semiconductor Q2, the first output port is provided with between the D pole of described metal-oxide-semiconductor Q2 and described resistance R2.
Further, described receiving circuit comprises resistance R6, R3, R4, R7, metal-oxide-semiconductor Q3, Q4, Q5, one end of described resistance R7 is the second output port, the other end of described resistance R7 is connected to the G pole of described metal-oxide-semiconductor Q3, the D pole of described metal-oxide-semiconductor Q3 is connected to power supply by resistance R3, the S pole ground connection of described metal-oxide-semiconductor Q3, the G pole of described metal-oxide-semiconductor Q4 is connected between described metal-oxide-semiconductor Q3 and resistance R3, the D pole of described metal-oxide-semiconductor Q4 is connected to power supply by resistance R4, the S pole ground connection of described metal-oxide-semiconductor Q4, a receiving port is provided with between described metal-oxide-semiconductor Q4 and described resistance R4, one end of described resistance R6 is the second enable receiving port, the other end is connected to the G pole of described metal-oxide-semiconductor Q5, the S pole ground connection of described metal-oxide-semiconductor Q5, between the D pole that the D pole of described metal-oxide-semiconductor Q5 connects described metal-oxide-semiconductor Q3 respectively and resistance R3, and the G pole of described metal-oxide-semiconductor Q4.
Further, described first enable receiving port is connected with the second enable receiving port.
The utility model has the advantage of: the gate circuit conversion equipment of a kind of universal serial port of the utility model and ISO7816 agreement, can solve and realize ISO7816 Interface Expanding by exterior I SO7816 protocol chip, cost high problem, and the compatibility that can solve MCU GPIO Simulation with I SO7816 agreement is bad, software algorithm challenge.
Accompanying drawing explanation
The utility model is further described with reference to the accompanying drawings in conjunction with the embodiments.
Fig. 1 is the new circuit theory diagrams of this practicality.
Embodiment
Refer to shown in Fig. 1, the gate circuit conversion equipment of the utility model universal serial port and ISO7816 agreement, for MCU being connected to the IO pin of IC-card, comprise a receiving circuit and a transtation mission circuit, described receiving circuit is provided with a transmit port (i.e. UART_TX port in Fig. 1), first output port and the first enable receiving port, described receiving circuit is provided with a receiving port (i.e. UART_RX port in Fig. 1), second output port and the second enable receiving port, the IO pin of IC-card is connected to after described first output port is in parallel with described second output port, described first enable receiving port is connected with the second enable receiving port, UART_TX_EN port in Fig. 1 is after connection, wherein in Fig. 1, IO is the port of the IO pin connecting IC-card.
Refer to shown in Fig. 1, in the utility model, receiving circuit comprises resistance R1, R2, R5, metal-oxide-semiconductor Q1, Q2, one end of described resistance R1 is the first enable receiving port, the other end is connected to the D pole of described metal-oxide-semiconductor Q1, one end of described resistance R5 is transmit port, the other end is connected to the G pole of described metal-oxide-semiconductor Q1, the S pole ground connection of described metal-oxide-semiconductor Q1, the G pole of described metal-oxide-semiconductor Q2 is connected between described metal-oxide-semiconductor Q1 and resistance R1, the D pole of described metal-oxide-semiconductor Q2 is connected to power supply by resistance R2, the S pole ground connection of described metal-oxide-semiconductor Q2, the first output port is provided with between the D pole of described metal-oxide-semiconductor Q2 and described resistance R2.
Refer to shown in Fig. 1, in the utility model, receiving circuit comprises resistance R6, R3, R4, R7, metal-oxide-semiconductor Q3, Q4, Q5, one end of described resistance R7 is the second output port, the other end of described resistance R7 is connected to the G pole of described metal-oxide-semiconductor Q3, the D pole of described metal-oxide-semiconductor Q3 is connected to power supply by resistance R3, the S pole ground connection of described metal-oxide-semiconductor Q3, the G pole of described metal-oxide-semiconductor Q4 is connected between described metal-oxide-semiconductor Q3 and resistance R3, the D pole of described metal-oxide-semiconductor Q4 is connected to power supply by resistance R4, the S pole ground connection of described metal-oxide-semiconductor Q4, a receiving port is provided with between described metal-oxide-semiconductor Q4 and described resistance R4, one end of described resistance R6 is the second enable receiving port, the other end is connected to the G pole of described metal-oxide-semiconductor Q5, the S pole ground connection of described metal-oxide-semiconductor Q5, between the D pole that the D pole of described metal-oxide-semiconductor Q5 connects described metal-oxide-semiconductor Q3 respectively and resistance R3, and the G pole of described metal-oxide-semiconductor Q4.
Transmission data enable UART_TX_EN port in the utility model being connected to MCU controls pin, serial ports UART_TX port being connected to MCU sends pin, the serial ports that UART_RX end is connected to MCU receives pin, is held by IO specific implementation principle on the IO pin being connected to IC-card as follows:
1, MCU sends data to IC-card sheet end implementation method
I), when UART_TX_EN is high, when UART_TX data are high, namely Q1 metal-oxide-semiconductor Gate holds as high, metal-oxide-semiconductor conducting, Q1 D pin is dragged down, and now Q2 metal-oxide-semiconductor Gate holds as low, metal-oxide-semiconductor not conducting, IO pin is pulled to VCC power supply by resistance R2, and namely IO leg signal is high;
II) when UART_TX_EN is high, when UART_TX data are low, namely the Gate end of metal-oxide-semiconductor Q1 is for low, metal-oxide-semiconductor Q1 not conducting, the D pin of metal-oxide-semiconductor Q1 is pulled to UART_TX_EN signal end by resistance R1, and signal exports as high, and now the Gate end of metal-oxide-semiconductor Q2 is for high, metal-oxide-semiconductor Q2 conducting, IO pin is dragged down;
III) when UART_TX_EN is high, the Gate end of metal-oxide-semiconductor Q5 is for high, metal-oxide-semiconductor Q5 conducting, the D1 pin of metal-oxide-semiconductor Q5 is dragged down, the Gate end of synchronous metal-oxide-semiconductor Q4 is low, metal-oxide-semiconductor Q4 not conducting, and UART_RX signal is pulled to VCC by resistance R4, and remain height always, namely holding wire can not produce data;
IV) comprehensive above 3 points, when UART_TX_EN is high, UART_TX signal data is normally sent to I/O signal end, namely realizes data sending function.
2, MCU reads data implementation method from IC-card sheet end
I), when UART_TX_EN is low, no matter UART_TX is high or is low, and metal-oxide-semiconductor Q2 Gate end signal is low, and namely now UART_TX can not be sent to I/O signal end;
II) be low at UART_TX_EN, when IO is high, namely the Gate end of metal-oxide-semiconductor Q3 is for high, metal-oxide-semiconductor Q3 conducting, the D pin of metal-oxide-semiconductor Q3 is dragged down, and now the Gate end of metal-oxide-semiconductor Q4 is for low, metal-oxide-semiconductor Q4 not conducting, UART_RX pin is pulled to VCC power supply by resistance R4, and UART_RX leg signal is high;
III) be low at UART_TX_EN, when I/O data is low, namely the Gate end of metal-oxide-semiconductor Q3 is for low, metal-oxide-semiconductor Q3 not conducting, the D pin of metal-oxide-semiconductor Q3 is pulled to VCC power end by resistance R3, and the Gate end of metal-oxide-semiconductor Q4 is for high, metal-oxide-semiconductor Q4 conducting, UART_RX pin is dragged down;
IV) comprehensive above 3 points, when UART_TX_EN is low, I/O signal data are normally sent to UART_RX signal end, namely realize digital independent function.
The utility model has the advantage of: the gate circuit conversion equipment of a kind of universal serial port of the utility model and ISO7816 agreement, can solve and realize ISO7816 Interface Expanding by exterior I SO7816 protocol chip, cost high problem, and the compatibility that can solve MCU GPIO Simulation with I SO7816 agreement is bad, software algorithm challenge.
Although the foregoing describe embodiment of the present utility model; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present utility model; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present utility model and change, should be encompassed in scope that claim of the present utility model protects.

Claims (4)

1. the gate circuit conversion equipment of a universal serial port and ISO7816 agreement, for MCU being connected to the IO pin of IC-card, it is characterized in that: comprise a receiving circuit and a transtation mission circuit, described receiving circuit is provided with a transmit port, the first output port and the first enable receiving port, described receiving circuit is provided with a receiving port, the second output port and the second enable receiving port, is connected to the IO pin of IC-card after described first output port is in parallel with described second output port.
2. the gate circuit conversion equipment of a kind of universal serial port as claimed in claim 1 and ISO7816 agreement, it is characterized in that: described receiving circuit comprises resistance R1, R2, R5, metal-oxide-semiconductor Q1, Q2, one end of described resistance R1 is the first enable receiving port, the other end is connected to the D pole of described metal-oxide-semiconductor Q1, one end of described resistance R5 is transmit port, the other end is connected to the G pole of described metal-oxide-semiconductor Q1, the S pole ground connection of described metal-oxide-semiconductor Q1, the G pole of described metal-oxide-semiconductor Q2 is connected between described metal-oxide-semiconductor Q1 and resistance R1, the D pole of described metal-oxide-semiconductor Q2 is connected to power supply by resistance R2, the S pole ground connection of described metal-oxide-semiconductor Q2, the first output port is provided with between the D pole of described metal-oxide-semiconductor Q2 and described resistance R2.
3. the gate circuit conversion equipment of a kind of universal serial port as claimed in claim 1 or 2 and ISO7816 agreement, it is characterized in that: described receiving circuit comprises resistance R6, R3, R4, R7, metal-oxide-semiconductor Q3, Q4, Q5, one end of described resistance R7 is the second output port, the other end of described resistance R7 is connected to the G pole of described metal-oxide-semiconductor Q3, the D pole of described metal-oxide-semiconductor Q3 is connected to power supply by resistance R3, the S pole ground connection of described metal-oxide-semiconductor Q3, the G pole of described metal-oxide-semiconductor Q4 is connected between described metal-oxide-semiconductor Q3 and resistance R3, the D pole of described metal-oxide-semiconductor Q4 is connected to power supply by resistance R4, the S pole ground connection of described metal-oxide-semiconductor Q4, a receiving port is provided with between described metal-oxide-semiconductor Q4 and described resistance R4, one end of described resistance R6 is the second enable receiving port, the other end is connected to the G pole of described metal-oxide-semiconductor Q5, the S pole ground connection of described metal-oxide-semiconductor Q5, between the D pole that the D pole of described metal-oxide-semiconductor Q5 connects described metal-oxide-semiconductor Q3 respectively and resistance R3, and the G pole of described metal-oxide-semiconductor Q4.
4. the gate circuit conversion equipment of a kind of universal serial port as claimed in claim 1 and ISO7816 agreement, is characterized in that: described first enable receiving port is connected with the second enable receiving port.
CN201420541265.8U 2014-09-19 2014-09-19 The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement Active CN204206154U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201420541265.8U CN204206154U (en) 2014-09-19 2014-09-19 The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201420541265.8U CN204206154U (en) 2014-09-19 2014-09-19 The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement

Publications (1)

Publication Number Publication Date
CN204206154U true CN204206154U (en) 2015-03-11

Family

ID=52664065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201420541265.8U Active CN204206154U (en) 2014-09-19 2014-09-19 The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement

Country Status (1)

Country Link
CN (1) CN204206154U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019029190A1 (en) * 2017-08-10 2019-02-14 深圳市道通智能航空技术有限公司 Battery switching circuit, battery management system and unmanned aerial vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019029190A1 (en) * 2017-08-10 2019-02-14 深圳市道通智能航空技术有限公司 Battery switching circuit, battery management system and unmanned aerial vehicle

Similar Documents

Publication Publication Date Title
CN202134745U (en) Multifunctional USB OTG data line
CN103309408A (en) Function extension combination module for intelligent terminal
CN203278279U (en) Multifunctional mobile power supply
CN102270860B (en) Filling soon of intelligent mobile phone is put
CN103219042B (en) Circuit and the memory circuitry of burning program is realized by USB interface
CN204206154U (en) The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement
CN101753722A (en) Interface circuit meeting single wire protocol (SWP) on subscriber identity module (SIM) card chip
CN202798652U (en) Signal conversion circuit and interface switching equipment
CN204103190U (en) Multifunctional data line
CN204030193U (en) Connecting line with OTG function
CN202995719U (en) USB (universal serial bus) interface extension equipment and electronic terminal
CN105160862A (en) M-BUS (METER-BUS) slave communication circuit
CN206116826U (en) USB data line of compatible OTG function
CN103970706A (en) External expansion system of mobile device based on FT311D interface chip
JP3213811U (en) Alternative routing of wireless data to power
CN103311766A (en) Mobile equipment switching device and working mode switching method thereof
CN109960677B (en) Extension circuit for USB interface
CN204119319U (en) A kind of module supporting WIFI wireless image transmission and serial communication
CN103066986A (en) Positive-negative logic level conversion switching circuit
CN102364452A (en) Realization method for thermal plugging use of PS2 interface keyboard and mouse
CN203840344U (en) Serial data transmission system
CN203151466U (en) Positive-negative logic level conversion switching circuit
CN205282838U (en) USB -OTG automatic switching connecting wire
CN205160521U (en) Zigbee module
CN204230600U (en) Be applied to the connection line of terminal

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant