Académique Documents
Professionnel Documents
Culture Documents
Introduction
This is a Smartcard (ISO 7816) Serial Reader / Writer, also know as "Phoenix" Interface. This adapter must be connected to 9 PIN PC serial port
Electric Scheme
also connected:
pin 7=GND and pin 14=VCC of 74HC04N and 74LS04 Pin 9 and 10 of the smartcard connector are for card presence switch.
Components List
Designator C9 C8 R4 R1 R2 R3 R6 R5 Y1 U3 U4 U2 J1 JP1 DS1 DS2 P1 C4 C3 C2 C5 C7 C10 C6 C1 U1 S1 Capacitor Capacitor Resistor Resistor Resistor Resistor Resistor Resistor Crystal Oscillator Hex Buffer Hex Inverter Serial Connector Smartcard Connector Red LED Green LED 2-Conductor Plug Polarized Capacitor (Radial) Capacitor Capacitor Polarized Capacitor Polarized Capacitor Capacitor Polarized Capacitor Polarized Capacitor Positive Voltage Regulator Switch Description 27 pF 16V 27 pF 16V 22 KOhm 220 Ohm 220 Ohm 47 KOhm 2.2 KOhm 1 MOhm 3.579 MHz Quartz 74LS07N 74HC04N DSUB 9 PIN FEMALE ISO 7816 RED GREEN Power Plug +9V / +12V 1 uF 16V 0.1 uF 16V 0.33 uF 16V 1 uF 16V 1 uF 16V 100 pF 16V 1 uF 16V 470 uF 16V Elettr. 7805 +5V Voltage Regulator Single-Pole, Single-Throw Value
IC's Pinouts
Circuit Description
The MAX232 converts the RS-232 levels (about +10 and -10 V) to TTL voltage (0 and +5 V) and vice versa without requiring anything else than +5 V power supply. This chip contains two TTL->RS-232 and two RS-232->TTL drivers and needs four external 1 uF capacitors in order to generate the RS-232 voltage internally. The adapter electronic gets its power supply from the smartcard reader device VCC line or you can use an external 5 V supply if you wish. The card slot's RST line is connected using one of the TTL->RS-232 drivers in the MAX232 to DCD, so that the software and the reader can easily resynchronize in case of a protocol error.
The I/O line is a bidirectional half-duplex asynchronous TTL level serial port. We can connect this line to a MAX232 TTL input driver (which is connected to RxD and sends bytes to the PC) in order to receive data from the card. The TxD signal is converted in the MAX232 to TTL level and is connected with an hex buffer TTL to I/O. The R4 (a pull-up resistor to +5 V on I/O) guarantees that the adapter is in high impedance state if the TxD line is idle and delivers the correct voltage if the PC sends bytes and the smartcard is in reception mode. As we don't connect totem-pole or tristate outputs to I/O, a short circuit should be impossible in the adapter. Pay attention to the polarity of the capacitors (marked with a + in the diagram next to each capacitor)! The -->-- symbols in the MAX232 diagram above indicate the voltage converters inside the chip. The RED LED show you when the reader is powered. The GREEN LED shows you the I/O traffic. As a side effect of this simple interface design, every byte sent by the PC is at the same time also received by the PC. Consequently, you can test the circuit with a terminal emulator by switching off local echo: if you still see every typed character immediately on the screen, the interface should be all right. Software must be capable of dealing with this echo from the interface.
Software
A PC/SC Windows driver for this device can be found at http://www.ttfn.net/techno/dm.html. For other smartcard applications try to search using search engines or build your own software.
Sources