Philips TDA8006H-C112, TDA8006H-C113, TDA8006H-C111, TDA8006H-C110, TDA8006AH-C218 Datasheet

...
DATA SH EET
Product specification Supersedes data of 1998 Aug 18 File under Integrated Circuits, IC02
2000 Feb 21
INTEGRATED CIRCUITS
TDA8006
2000 Feb 21 2
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
FEATURES
80C52 core with 16 kbyte ROM and 256 byte RAM
Extra 1 kbyte RAM outside the core for data storage
Control and communication through a standard RS232
full duplex interface or a parallel interface
Specific ISO 7816 UART withparallel access on I/O for automatic convention processing, variable baud rate through frequency or division ratio programming, error management at character level for T = 0, extra guard time register
VCCgeneration (5 V ±5% or 3 V ±5%, 65 mA maximum with controlled rise and fall times)
Card clock generation (up to 10 MHz) with two times synchronous frequency doubling
Card clock STOP HIGH, clock STOP LOW or 1.25 MHz (from internal oscillator) for card power-down mode
CLKOUToutputforclocking external devices with either f
xtal
,1⁄2f
xtal
or1⁄4f
xtal
Automaticactivationanddeactivationsequencethrough an independent sequencer
Supports the asynchronous protocols T = 0 and T = 1 in accordance with ISO 7816, Europay, Mastercard and Visa (EMV)
Supports synchronous cards
Short circuit current limiting
Special circuitry for killing spikes during power-on or off
Supply supervisor for power-on/off reset
Step-up converter (supply voltage from 4.2 to 6 V)
Power-down and sleep mode for low power
consumption
Enhanced ESD protection on card side (6 kV minimum)
Software library for easy integration within the
application.
APPLICATIONS
Smart card readers for multiprotocol applications (EMV banking, digital pay TV, access control, etc.).
GENERAL DESCRIPTION
It is assumed that the reader of this data sheet is familiar with ISO 7816.
TheTDA8006iscontrolled either through a standard serial interface or a parallel bus, it takes care of all ISO 7816, EMV and GSM11.11 requirements. It gives the card and the set a very high level of security due to its special hardware against ESD, short circuit, power failure, etc. Its integrated step-up converter allows operation within a supply voltage range of 4.2 to 6 V.
AspecialversionoftheTDA8006 is available which has its internal connections to the controller accessible through external pins. This allows easy development and evaluation when used with a 80CL580 microcontroller or a development tool. An emulation board is available.
A software library has been developed, taking care of all actions required for T = 0, T = 1 and synchronous protocols. This library may be either linked with the application software before masking, or masked in the internal ROM (see
“Application Note AN98106”
).
ORDERING INFORMATION
TYPE NUMBER
PACKAGE
NAME DESCRIPTION VERSION
TDA8006H/C1 QFP64 plastic quad flat package; 64 leads (lead length 1.95 mm);
body 14 × 20 × 2.8 mm
SOT319-2 TDA8006H/C2 TDA8006H/C3 TDA8006AH/C1 QFP44 plastic quad flat package; 44 leads (lead length 1.3 mm);
body 10 × 10 × 1.75 mm
SOT307-2 TDA8006AH/C2 TDA8006AH/C3
2000 Feb 21 3
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
QUICK REFERENCE DATA
Note
1. I
DD
in all configurations include the current at pins VDD, V
DDA
and V
DDRAM
.
SYMBOL PARAMETER CONDITIONS MIN. TYP. MAX. UNIT
V
DD
supply voltage 4.2 6V
I
DD(pd)
supply current in power-down mode VDD= 5 V; card inactive; note 1 −−250 µA
I
DD(sm)
supply current in sleep mode card powered but clock stopped;
note 1
−−1500 µA
V
CC
card supply voltage including static loads (5 V card) 4.75 5.0 5.25 V
with 40 nAs dynamic loads on 100 nF capacitor (5 V card)
4.6 5.4 V
including static loads (3 V card) 2.80 3.20 V with 24 nAs dynamic loads on
100 nF capacitor (3 V card)
2.75 3.25 V
I
CC
card supply current operating −−65 mA
overload detection 80 mA
SR slew rate (rise and fall) maximum load capacitor pin V
CC
400 nF (including typical 100 nF decoupling)
0.10 0.16 0.22 V/µs
t
de
deactivation cycle duration −−100 µs
t
act
activation cycle duration −−225 µs
f
xtal
crystal frequency 4 25 MHz
f
oper
operating frequency external frequency applied on
pin XTAL1
0 25 MHz
T
amb
operating ambient temperature 25 +85 °C
2000 Feb 21 4
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
BLOCK DIAGRAM
handbook, full pagewidth
MGR225
63, 64, 1 to 6 (43, 44, 1, 2)
(2)
19 to 12 (11 to 8)
(1)
58 (38) 59 (39) 60 (40) 53 (35) 54 (36)
TDA8006H
(TDA8006AH)
6
8
P40 to P47
MICROCONTROLLER
80C52 16-kbyte ROM 256-byte RAM
ANALOG
DRIVERS
AND
SEQUENCER
P20 to P27
P00 to P07
P30/RXD
P31/TXD
P33/INT1
P10/T2
P11/T2EX
23 (14)
V
DDRAM
24 (15)
GNDRAM
43 (30)
CLKOUT
7 (3) 8 (4)
61 (41)
11 (7)
62 (42)
PSEN
52 (34)
RESET
44 (31)
CDELAY
45 (32)
ALARM
ALE
P36/WR
P37/RD
(22) 32
(26) 39
VUP
C8
(25) 38
C4
(17) 27
CLK
(16) 26
RST
(23) 36
V
CC
(24) 37
I/O
(29) 42
PRES
XTAL2
9 (5)
K0 to K3
48 to 51
(3)
XTAL1
10 (6)
SUPPLY
AND
SUPERVISOR
1024
AUX
RAM
PERIPHERALS
CLOCK CIRCUITRY PORT EXTENSION
T = 0,1
ISO
UART
INTERNAL
OSCILLATOR
EA
INT0
STEP-UP
CONVERTER
C4
GND S1 S2
P34
C8
I/O OFF 3 V/5 V
CMDVCC
P35
V
DD
100 nF
100 nF
100 nF
31
(21)
29 (19)41(28) 40 (27)
AGND
V
DDA
30 (20)
28 (18)
Fig.1 Block diagram.
Minimum value for capacitor between V
DDA
and AGND is 2.2 µF. Pin numbers in parenthesis represent the TDA8006AH. (1) Ports P04 to P07 not applicable for QFP44 package. (2) Ports P24 to P27 not applicable for QFP44 package. (3) Ports K0 to K3 not applicable for QFP44 package.
2000 Feb 21 5
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
PINNING
SYMBOL
PIN
DESCRIPTION
QFP64 QFP44
P22 1 1 address 10/general purpose I/O port P23 2 2 address 11/general purpose I/O port P24 3 address 12/general purpose I/O port P25 4 address 13/general purpose I/O port P26 5 address 14/general purpose I/O port P27 6 address 15/general purpose I/O port PSEN 7 3 program store enable output ALE 8 4 address latch enable XTAL2 9 5 crystal connection XTAL1 10 6 crystal connection or external clock input EA 11 7 external access P07 12 address/data 7/general purpose I/O port P06 13 address/data 6/general purpose I/O port P05 14 address/data 5/general purpose I/O port P04 15 address/data 4/general purpose I/O port P03 16 8 address/data 3/general purpose I/O port P02 17 9 address/data 2/general purpose I/O port P01 18 10 address/data 1/general purpose I/O port P00 19 11 address/data 0/general purpose I/O port n.c. 20 12 not connected n.c. 21 13 not connected n.c. 22 not connected V
DDRAM
23 14 supply voltage for the auxiliary RAM GNDRAM 24 15 ground for the auxiliary RAM n.c. 25 not connected RST 26 16 card reset output (ISO contact C2) CLK 27 17 clock output to the card (ISO contact C3) AGND 28 18 ground for the analog part S1 29 19 contact 1 for the step-up converter (a ceramic capacitor of 100 nF must be
connected between S1 and S2)
V
DDA
30 20 analog supply voltage for the voltage doubler S2 31 21 contact 2 for the step-up converter (a ceramic capacitor of 100 nF must be
connected between S1 and S2)
VUP 32 22 output of the step-up converter; must be decoupled with a 100 nF ceramic
capacitor n.c. 33 not connected n.c. 34 not connected n.c. 35 not connected V
CC
36 23 card supply output voltage (ISO contact C1)
2000 Feb 21 6
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
I/O 37 24 data line to/from the card (ISO contact C7) C4 38 25 auxiliary I/O for ISO contact C4 (synchronous cards for example) C8 39 26 auxiliary I/O for ISO contact C8 (synchronous cards for example) GND 40 27 ground V
DD
41 28 supply voltage PRES 42 29 card presence contact input (active HIGH or LOW by mask option); see Table 12 CLKOUT 43 30 output for clocking external devices CDELAY 44 31 external capacitor connection for delayed reset signal ALARM 45 32 open drain reset output (active HIGH or LOW by mask option); see Table 12 TEST 46 33 test pin (must be left open-circuit in the application) INHIB 47 test pin (must be left open-circuit in the application) K0 48 output port from port extension (±2 mA push-pull) K1 49 output port from port extension (±2 mA push-pull) K2 50 output port from port extension (±2 mA push-pull) K3 51 output port from port extension (±2 mA push-pull) RESET 52 34 input for resetting the microcontroller (active HIGH) P10/T2 53 35 general purpose I/O port (connected to P10) P11/T2EX 54 36 general purpose I/O port (connected to P11) n.c. 55 37 not connected n.c. 56 not connected n.c. 57 not connected P30/RXD 58 38 general purpose I/O port or serial interface receive line P31/TXD 59 39 general purpose I/O port or serial interface transmit line P33/
INT1 60 40 general purpose I/O port or interrupt (connected to P33)
P36/
WR 61 41 general purpose I/O port or external data memory write strobe
P37/
RD 62 42 general purpose I/O port or external data memory read strobe P20 63 43 address 8/general purpose I/O port P21 64 44 address 9/general purpose I/O port
SYMBOL
PIN
DESCRIPTION
QFP64 QFP44
2000 Feb 21 7
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
handbook, full pagewidth
TDA8006H
MGR226
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16 17 18 19
P22 P23 P24 P25 P26 P27
ALE
P07 P06 P05 P04
XTAL2 XTAL1
K3 K2 K1 K0 INHIB TEST ALARM CDELAY
n.c. n.c. n.c.
51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
20
21
22
23
24
25
26
27
28
29
30
31
32
64
63
62
61
60
59
58
57
56
55
54
53
52
n.c.
n.c.
n.c.
n.c.
n.c.
n.c.
V
DDRAM
GNDRAM
n.c.
CLKOUT
V
DD
GND C8 C4
I/O P03 P02
P00
V
CC
PSEN
PRES
P20
P31/TXD
P30/RXD
P11/T2EX
P10/T2
RESET
P21
RST
CLK
AGND
V
DDA
S2
VUP
P01
S1
EA
P33/INT1
P36/WR
P37/RD
Fig.2 Pin configuration (QFP64).
2000 Feb 21 8
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
handbook, full pagewidth
1 2 3 4 5 6 7 8
9 10 11
33 32 31 30 29 28 27 26 25 24 23
12
13
14
15
16
17
18
19
20
21
22
44
43
42
41
40
39
38
37
36
35
34
TDA8006AH
MGR227
TEST ALARM CDELAY CLKOUT
V
DD
GND C8 C4 I/O
V
CC
P22 P23
PSEN
ALE XTAL2 XTAL1
P03 P02
P00
PRES
P20
P37/RD
P36/WR
P33/INT1
P31/TXD
P30/RXD
P11/T2EX
P10/T2
RESET
P21
n.c.
n.c.
V
DDRAM
GNDRAM
RST
CLK
AGND
V
DDA
S2
VUP
n.c.
S1
EA
P01
Fig.3 Pin configuration (QFP44).
2000 Feb 21 9
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
FUNCTIONAL DESCRIPTION Microcontroller
The microcontroller is an 80C52 with 16 kbytes of ROM, 256 byte RAM, timers 0, 1, 2 , and 5 I/O ports (port P0: open-drain; ports P1 to P3: weak pull-up). Port P4 is identical to 83CE560, except that precharge circuits ensurefastrisetimesatend of read mode (transition times <0.5 µs). The ROM code content can be tested by signature to avoid reading it out after masking; for security bit option, see Table 12. The CPU, timers 0 and 1, serial UART, parallel I/O ports, 256 byte RAM, 16 kbyte ROM and external bus are conventional C51 family library elements. Timer 2 is a conventional C52 element (interrupt enable bit ET2: bit 3 in register IEN1 at byte address E8H and interrupt priority bit PT2: bit 3 in register IP1 at byte address F8H.
Register PCON has an added feature: PCON.5 = RFI (reduced Radio Frequency Interference bit). When set to logic 1, pin ALE cannot be toggled. ALE clears on RESET.
If access is required to the external data memory via MOVXinstructions (see Table 1),setbit PCON.6 = ARD in the PCON register to logic 1.
For further information, please refer to the published specification of the 83CE560 in
“Data Handbook IC20;
80C51-Based 8-Bit Microcontrollers”
.
PortsP40 to P47, INT0 and P12 to P17 areusedinternally for controlling the smart card interface and the other peripherals. Ports P34 and P35 are used to control the auxiliary contacts C4 and C8.
The list of differences given in Table 1 may help the software developer of the dedicated emulation board for the TDA8006 or other devices.
Table 1 List of differences between TDA8006, CE560, CL580 and C52
FEATURES TDA8006 83CE560 CL580 INTEL C52
P4 address C0 C0 C1 no Timer 2 Intel Philips Intel Intel ROM size 16 kbytes 64 kbytes 6 kbytes 8 kbytes External 0 interrupt vector 0003H 0003H 0003H 0003H External 0 interrupt priority highest (1st) highest (1st) highest (1st) highest (1st) Timer 0 interrupt vector 000BH 000BH 000BH 000BH Timer 0 interrupt priority 2nd 2nd 4th 2nd External 1 interrupt vector 0013H 0013H 0013H 0013H External 1 interrupt priority 3th 3th 7th 3th Timer 1 interrupt vector 001BH 001BH 001BH 001BH Timer 1 interrupt priority 4th 4th 10th 4th Serial 0 interrupt vector 0023H 0023H 0023H 0023H Serial 0 interrupt priority 5th 5th 13th 5th Timer 2 interrupt vector 004BH 0033H, etc. (8) 0033H 002BH Timer 2 interrupt priority lowest (6th) miscellaneous 5th lowest (6th) I
2
C-bus no yes yes no ADC no yes yes no 32 kHz oscillator no yes no no PWM no yes yes no Watchdog no yes yes no Interrupts on P1 no no yes no Additional RAM 1 kbyte peripheral 2 kbyte MOVX no no Wake-up from
power-down mode
reset,
INT0, INT1 reset, INT0,
INT1 + other
reset, INT2 to INT8 reset
2000 Feb 21 10
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
Table 2 Special function register bit addresses X = don’t care.
REGISTER
BYTE
ADDRESS
(HEX)
BIT ADDRESS [HEX]
BIT RESET
VALUE
BIT FUNCTION
MSB LSB
IP1 F8 [FF] [FE] [FD] [FC] [FB] [FA] [F9] [F8]
−−−−PT2 −−− XXXX 0XXX
B F0 [F7] [F6] [F5] [F4] [F3] [F2] [F1] [F0]
−−−−−−−− 0000 0000
IEN1 E8 [EF] [EE] [ED] [EC] [EB] [EA] [E9] [E8]
−−−−ET2 −−− 0000 0000
ACC E0 [E7] [E6] [E5] [E4] [E3] [E2] [E1] [E0]
−−−−−−−− 0000 0000
PSW D0 [D7] [D6] [D5] [D4] [D3] [D2] [D1] [D0]
CY AC F0 RS1 RS0 OV F1 P 0000 0000
T2CON C8 [CF] [CE] [CD] [CC] [CB] [CA] [C9] [C8]
TF2 EXF2 RCLK TCLK EXEN2 TR2 C/T2N CP/RL2N 0000 0000
P4 C0 [C7] [C6] [C5] [C4] [C3] [C2] [C1] [C0]
−−−−−−−− 1111 1111
IP0 B8 [BF] [BE] [BD] [BC] [BB] [BA] [B9] [B8]
−−−PS0 PT1 PX1 PT0 PX0 XXX0 0000
P3 B0 [B7] [B6] [B5] [B4] [B3] [B2] [B1] [B0]
−−−−−−−− 1111 1111
IEN0 A8 [AF] [AE] [AD] [AC] [AB] [AA] [A9] [A8]
EA −−ES0 ET1 EX1 ET0 EX0 0XX0 0000
P2 A0 [A7] [A6] [A5] [A4] [A3] [A2] [A1] [A0]
−−−−−−−− 1111 1111
SCON 98 [9F] [9E] [9D] [9C] [9B] [9A] [99] [98]
SM0 SM1 SM2 REN TB8 RB8 TI RI 0000 0000
P1 90 [97] [96] [95] [94] [93] [92] [91] [90]
−−−−−−−− 1111 1111
TCON 88 [8F] [8E] [8D] [8C] [8B] [8A] [89] [88]
TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 0000 0000
P0 80 [87] [86] [85] [84] [83] [82] [81] [80]
−−−−−−−− 1111 1111
2000 Feb 21 11
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
Table 3 Other register byte addresses
Supply
The circuit operates within a supply voltage range of
4.2 to 6 V. The supply pins are VDD, V
DDA
, GND, AGND,
V
DDRAM
and GNDRAM. Pins V
DDA
and AGND supply the card analog drivers and have to be externally decoupled because of the large current spikes that the card and the step-up converter can create. V
DDRAM
and GNDRAM supply the auxiliary RAM and should be decoupled separately. VDD and GND supply the rest of the chip.
An integrated spike killer ensures the contacts to the card remain inactive during power-up or power-down. An internally generated voltage reference is used by the step-up converter, the voltage supervisor and the V
CC
generator. If VDD is too low to ensure proper operation, the voltage
supervisor generates an alarm pulse, whose length is defined by an external capacitor tied to the CDELAY pin, (1 ms per 1 nF typical). This pulse is used to reset the controller and is used in parallel with an external reset input which can come from the system controller. It is also used to either block any spurious on-card contacts during a controller reset or to force an automatic deactivation of the contacts in the event of supply drop-out (see Sections “Activation sequence” and “Deactivation sequence”). It is also fed to an external open-drain output (calledALARM)whichcanbe chosen active HIGH or LOW by mask option (see Table 12).
Step-up converter
Except for the VCC generator and the other card contact buffers, the whole circuit is powered by VDD, V
DDA
and
V
DDRAM
. If the supply voltage is 4.2 V, then a higher voltageisneededforthesupply to the ISO contacts. When a card session is requested by the controller, the sequencer first starts the step-up converter. This uses switched capacitors which are clocked at a frequency of approximately 2.5 MHz by an internal oscillator. The output voltage VUP is regulated at approximately 6 V and then fed to the VCCgenerator. VCCand GND are used as a reference for all other card contacts.
REGISTER
BYTE
ADDRESS
(HEX)
BIT RESET
VALUE
SP 81 0000 0111 DPL 82 0000 0000 DPH 83 0000 0000 PCON 87 0000 0000 TMOD 89 0000 0000 TL0 8A 0000 0000 TL1 8B 0000 0000 TH0 8C 0000 0000 TH1 8D 0000 0000 S0BUF 99 XXXX XXXX RCAP2L CA 0000 0000 RCAP2H CB 0000 0000 TL2 CC 0000 0000 TH2 CD 0000 0000
handbook, full pagewidth
MGR228
V
th(VDD)
V
DD
V
th(CDELAY)
CDELAY
ALARM
t
W
Fig.4 Voltage supervisor.
2000 Feb 21 12
Philips Semiconductors Product specification
Multiprotocol IC Card coupler TDA8006
ISO 7816 security
Thecorrectsequence during activation and deactivationof the card is ensured by a specific sequencer clocked at a frequency which is a division ratio of the internal oscillator.
Activation(bit CMDVCC within the portsextensionregister HIGH) is only possible if the card is present (pin PRES HIGH or LOW according to the mask option) and if the supply voltage is correct (ALARM signal inactive).
The presence of the card is signalled to the controller by the OFF bit (within the UART status register), generating an interrupt, if enabled, when toggling.
During a session, the sequencer performs an automatic emergency deactivation in the event of card take-off, supply voltage drop or short circuit. The OFF bit goes LOW, thereby warning the controller through the interrupt line INT0 and the status register.
Peripheral interface (see Figs 5 and 6) This block allows parallel communication with the four
peripherals (ISO 7816 UART, clock generator, on/off sequencer and auxiliary RAM) through an 8-bit data bus, 6-bit address and control bus and one interrupt line to the controller. The data bus consists of ports P40 (data bit 0) to P47 (data bit 7). The address bus consists of ports AD0 (P12), AD1 (P13), AD2 (P14) and AD3 (P15). The control lines are R/W (P16) and EN (P17). The interrupt line is INT0.
During a read operation, EN goes LOW allowing the controllertoreaddata on the bus. During awriteoperation, the data should be present on the bus before asserting EN LOW which allows the data to be written to the registers.
After resetting EN HIGH, the controller must release the bus by setting port P4 HIGH again (the transition times on port P4 are less than 500 ns).
The interrupt line is reset HIGH when reading out the status register.
READ OPERATION
Set port P4 to FFH
Select the register with AD0, AD1, AD2, AD3
Assert R/W HIGH
Assert EN LOW; the data is available on data bus P4
Read the data on port P4
Set EN HIGH; the bus is set to high impedance.
WRITE OPERATION
Select the correct register with AD0, AD1, AD2, AD3
Assert R/W LOW
Write data to the data bus port P4
Assert EN LOW; the data is written to the register
Set EN HIGH
Set port P4 to FFH; the bus is set to high impedance.
Integrated precharges allow fast rising edges on port P4 when changing from read mode to write mode, thus avoiding the need to trigger the active pull-ups on port P4.
handbook, full pagewidth
MGR229
P4 XX FF FF FFDATA
R/W
AD0 to AD3 X AD AD
read data cycle write data cycle
EN
DATA
Fig.5 Use of peripheral interface.
Loading...
+ 28 hidden pages