Rev. 1.2, Aug. 2000 _____________________________________________________________________________________________ ML69240-C49 - Preliminary - _____________________________________________________________________________________________ Intelligent Microcontroller Driven Dual Smartcard Reader IC _____________________________________________________________________________________________ Designed and developed by Applied Card Technologies Ltd in association with Taiko Electronics _____________________________________________________________________________________________ General Description The ML69240-C49 can control two sockets for ISO7816-3 IC-cards. It is based on an 80C51type microcontroller-core. Multiple asynchronous and synchronous protocols are supported. In addition, other peripheral modules like keypad and LC-Display can be connected and controlled by ML69240-C49. Interfacing with the host is done via simple commands that are transferred over a RS232 serial port. Due to the simple structure of the command set and the full support of the peripheral components, the software and hardware design for a card reader system based on ML69240-C49 is easy to realise. Features Operating range Supply voltage Frequency Temperature Smartcard sockets +4.5~5.5 V 14.7456 MHz -40~+85°C 2 Jumper selectable ‘normally open’, ‘normally closed’ or ‘not present’ card detect switch Socket parameters dependent on type of socket used Smartcard supported Asynchronous Synchronous T=0, T=1 2 7816-Sync., Eurochip, GPM 416/896, I C Serial Port Speed Flow Control Hardware Reset RS232 9600, 19200, 38400 (software selectable) CTS controlled by reader RTS controlled by host LCD Interface Intelligent LCD module 8x1, 8x2, 16x1, 16x2, etc. e.g. RS 294-8774 Keypad 4x4 matrix scanning built in Can use standard 4x4 passive matrix numeric keypad e.g. RS 331-304 Digital I/O 4 software selectable TTL I/O ports Package 44-pin TQFP (TQFP44-P-1010-0.80-K): ML69240-C49TB 1 of 13 ML69240-C49 Software Support Windows 32bit DLL. Driver source code available (for other platforms) Sample host source code Trainer application (Windows based) (Note: Software developed by Applied Card Technologies Ltd) Notice: The ML69240-C49 was designed to conform to ISO/IEC 7816-3 second edition 1997 with the following limitations: 1) The ML69240-C49 operates under Class A (5V) only, hence the class indicator in the ATR is received but not examined. 2) The asynchronous clock provided is fixed at 3.5795 MHz and Clock stop is not supported. 3) The supported ICC data rate is fixed at 9600 baud. It is recommended that the host to IFD communication speed be kept at 19200 baud and above to avoid under or overruns. 4) The Vpp line is kept in the Pause state once the card is powered up under asynchronous conditions, but does not supply any programming power. 5) The ML69240-C49 uses the host to buffer the data, hence it supports the maximum block size, but requires the host to participate in error recovery and retransmission of T=1 blocks as well as the reception of blocks with the chaining flag set. 6) The NAD is fixed at 0. As OKI cannot guarantee proper operation with any type of IC-card, we strongly recommend to evaluate the functional and electrical characteristics in combination with the possible ICcards before design-in. 2 of 13 ML69240-C49 Block Diagram *) pin has multiple functions, refer to pin description 44-pin plastic TQFP 3 of 13 ML69240-C49 PIN FUNCTIONS No Name 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 P1.5 P1.6 P1.7 RESET RXD nc* TXD P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 XTAL2 XTAL1 VSS VSS A8 A9 A10 A11 A12 A13 A14 A15 PSEN* ALE* nc* EA AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 VCC nc* P1.0 P1.1 P1.2 P1.3 P1.4 LCD Keyscan Function Smartcard 1 Smartcard 2 Serial Host IF I/O D.DETECT1 E ENABLE ENABLE RX TX OUTPUT DETECT OUTPUT DETECT I/O1 I/O2 RTS CTS KC1 KC2 KC3 KC4 RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 CARDVCC RST CLKGATE CLK INPUT C4 C8 CARDVPP CARDVCC RST CLKGATE CLK INPUT C4 C8 CARDVPP KR4 KR3 KR2 KR1 I/O3 I/O4 D.DETECT2 SELECT1 SELECT2 *) leave open 4 of 13 ML69240-C49 PIN DESCRIPTIONS General No 4 Name RESET 14, 15 XTAL2 XTAL1 VSS A8 to A15 EA/(VCC) AD7 to AD0 16, 17 18 to 25 29 30 to 37 2, 3, 5, 7~13, 40, 41, 43, 44 38 1, 6, 26, 27, 28, 39, 42 Px.x Description Reset input. If “H” signal is applied for at least one machine cycle (0.81µs @ 14.7456 MHz) ML69240-C49 is reset. Power-on-reset function is achieved by connecting a capacitor between this pin and Vcc. Clock oscillator input/output. Connect 14.7456 MHz crystal. Power supply GND pin. Connect to 0V. I/O ports and higher 8 bits of external address bus. Connect to VCC (+5V). I/O ports and lower 8 bits of external address bus and 8 bit data bus. Control pins for connecting peripheral modules and general purpose I/O pins. VCC nc, PSEN, ALE Power supply pin. Connect to +5V Do not connect, leave open. Name E RS R/W DB7 to DB0 Description Enable output. Register Select output. Register/Write select output. Display data output/input. LCD No 2 22 23 30 to 37 Keyscan No 18 to 21 34 to 37 Name KC1 to KC4 KR4 to KR1 Description Column output for 4x4 keypad. Row input for 4x4 keypad. Smartcard1/2 No 1 3 8 9 18 19 20 21 22 23 24 25 42 43 44 Name D.DETECT1 ENABLE OUTPUT DETECT CARDVCC RST CLKGATE CLK INPUT C4 C8 CARDVPP D.DETECT2 SELECT1 SELECT2 Description Direct card detect input (without card slot selection) Enable output. Serial data from smartcard. Card detect input. “0” = card present, “1” = no card inserted Enable signal output for smartcard power supply. Reset signal output for smartcard. Clock control output for smartcard. Clock control output for smartcard. Serial data output to smartcard. (Contact 4.) (Contact 8.) (Programming voltage.) Direct card detect input (without card slot selection) Select output for card slot 1. Select output for card slot 2. 5 of 13 ML69240-C49 Serial Interface No 5 7 12 13 Name RX TX RTS CTS Description Serial data input from host MCU. Serial data output to host MCU. Reset request input. Flow control output. I/O Ports No 10, 11, 40, 41 Name I/O1 to I/O4 Description General purpose TTL input/output ports. 6 of 13 ML69240-C49 ELECTRICAL CHARACTERISTICS ABSOLUTE MAXIMUM RATINGS Parameter Supply Voltage Input Voltage Storage Temperature Symbol VCC VI TSTG Condition Ta = 25°C Ta = 25°C - Rating -0.5 to 7 -0.5 to VCC +0.5 -55 to +150 Unit V V °C Rating 4.5 to 5.5 14.7456 -40 to +85 Unit V MHz °C RECOMMENDED OPERATING CONDITIONS Parameter Supply Voltage Oscillation Frequency Ambient Temperature Symbol VCC fOSC Ta Condition 7 of 13 ML69240-C49 ELECTRICAL CHARACTERISTICS DC CHARACTERISTICS Parameter Input Low Voltage Input High Voltage Symbol VIL VIH Input High Voltage *1 Output Low Voltage *2 Output Low Voltage *1 Output High Voltage VIH1 VOL VOL1 VOH *2 VOH1 Output High Voltage (V CC =4.5 to 5.5V, V SS=0V, Clock = 14.7456MHz, Ta=-40 to +85°C) Condition Min. Typ. Max. Unit -0.5 0.2V CC -0.1 V Except XTAL1 and 0.2V CC +0.9 VCC +0.5 V RESET XTAL1 and RESET 0.7 VCC VCC +0.5 V IOL=1.6mA 0.45 V IOL=3.2mA 0.45 V IOH =-60µA 2.4 V IOH =-30µA 0.75V CC V IOH =-10µA 0.9V CC V IOH =-400µA -2.4 V VCC =5V±10% IOH =-150µA 0.75V CC V IOH =-40µA 0.9V CC V VI =0.45V / -5 -20 -80 µA VO=0.45V VI =2.0V -190 -500 µA Logical 0 Input Current/ IIL/IOH *1 Logical 1 Output Current Logical 1 to 0 Transistion ITL *1 Output Current Input Leakage Current ILI VSS < VI < VCC (AD0~7 floating) RESET Pull-down RRST Resistance Pin Capacitance (except CIO Ta=25°C, f=1MHz XTAL1) Power Supply Current ICC f=14.7456MHz Power Down Current IPD *1) E, ENABLE, TX, CTS, OUTPUT, I/O1~4, A8~15, SELECT1/2 *2) AD0~7 8 of 13 - - ±10 µA 20 40 125 kΩ - - 10 pF - 1 25 50 mA µA ML69240-C49 FUNCTIONAL DESCRIPTION OF INTERFACE SIGNALS LCD This interface can drive 8x1, 8x2, 16x1 or 16x2 (characters x lines) type LCD modules, e.g. RS294-8774. E 0 1 1 1 1 RS X 0 0 1 1 R/W X 0 1 0 1 Function disabled instruction register write instruction register read data register write data register read Write Read RS R/W 1ms* 1ms* E DBx Note: *) typical value at 14.75 MHz KEYSCAN This interface can drive a 4x4 standard passive matrix numeric keypad, e.g. RS331-304. KR4 KR3 KR2 KR1 KC1 KC2 KC3 KC4 Keypad 42µs* 30µs* ML69240-C49 3.2µs* KCn Notes: n = 1, 2, 3, 4 *) typical values at 14.75 MHz 9 of 13 ML69240-C49 SERIAL I/O This is a RS232 type serial interface for communication with the host MCU. Selectable speeds are 9.6, 19.2 and 38.4 kbps. For a detailed description, please refer to the document “OKI Dual Card Reader Interface Specification”. SMART CARD 1/2 This is the interface to the card slot modules 1 and 2 to provide the ISO7816-3 compliant function. For more details, please refer to the application note in the appendix and to the document “OKI Dual Card Reader Interface Specification”. I/O PORTS These are 4 general-purpose I/O ports. For a detailed description, please refer to the document “OKI Dual Card Reader Interface Specification”. 10 of 13 10uF 8.2K VCC 33pF 33pF I/O 1 2 3 4 POWER 14.7456MHz 11 of 13 GND VCC Application Circuit - Main Block - 2 3 42 1 43 44 10 11 40 41 8 9 4 14 15 29 VCC RTS CTS RX TX TX RX CTS RTS A8 A9 A10 A11 A12 A13 A14 A15 AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 SERIAL PORT ML69240-C49TS-K E ENABLE DIRECT DETECT2 DIRECT DETECT1 SELECT1 SELECT2 I/O1 I/O2 I/O3 I/O4 OUTPUT DETECT RESET XTAL2 XTAL1 (VCC) 7 5 13 12 18 19 20 21 22 23 24 25 37 36 35 34 33 32 31 30 10K 10K 10K 10K 10K 10K 10K 10K VCC 33pF 3.579545MHz 1M 74HC04 33pF 10K 74HC04 A[8…15] AD[0…7] 74HC04 DIRECT DETECT1 DETECT OUTPUT DIRECT DETECT2 DETECT OUTPUT Circuit developed by Applied Card Technologies in association with Taiko Electronics (UK) Ltd. SMART CARD 1 Reset Enable SELECT1 A[8…15] 3.578MHz Clock SMART CARD 2 Reset Enable SELECT2 A[8…15] 3.578MHz Clock KEYSCAN KR[1…4] KC[1…4] LCD E DB[0…7] RS,RW ML69240-C49 12 of 13 Enable Select1 (Select2) A[8…15] 3.578 MHz Clock 74HC04 Application Circuit - Card Connector - 74HC132 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 74HC373 OC G D0 D1 D2 D3 D4 D5 D6 D7 100K 1M VCC 4.7K 4.7K VCC 74HC02 BC856B 10 4.7K 74HC02 BSS84 VCC 0 0 74HC125 VCC VCC 0 0 Direct Detect Detect Output Card Connector 1 (2) Jumper SC Detect Level 3 2 1 74HC125 74HC125 VCC RST CLK IO C4 C8 VPP D.LEVEL DETECT GND Circuit developed by Applied Card Technologies in association with Taiko Electronics (UK) Ltd. Jumper SC Detect Level 3 2 1 18K 100 ML69240-C49 ML69240-C49 ADDRESSES & SEMICONDUCTOR WEB SITES OKI Electric Industry Co., Ltd., Silicon Solutions Company 10-3, Shibaura, 4-chome Minato-ku, Tokyo 108, Japan Tel.: +81-(0)3-5445-6327 Fax.: +81-(0)3-5445-6328 http://www.oki.co.jp/semi/ OKI Electric Europe GmbH, Head Office Europe Hellersbergstrasse 2 D-41460 Neuss Germany Tel: +49-(0)2131-15960, Fax: +49-(0)2131-103539 http://www.oki-europe.de/ Applied Card Technologies Ltd. Langley Gate Swindon Road Kington Langley Chippenham Wiltshire SN15 5SE UK Tel.: +44-(0)1249-751006 Fax.: +44-(0)1249-758110 http://www.card.co.uk/ Taiko Electronics (UK) Ltd. 4220 Nash Court Oxford Business Park Oxford OX4 2RU UK Tel: +44-(0)1856-771717 Fax: +44-(0)1865-771714 http://www.taiko-denki.co.jp/ Note: This device is supported in Europe/Israel only. 13 of 13