Dsa 495519
Dsa 495519
Dsa 495519
DATA SHEET
TDA8030; TDA8031
USB smart card reader
(OTP or ROM)
Product specification 2003 Jul 04
Philips Semiconductors Product specification
2003 Jul 04 2
Philips Semiconductors Product specification
1 FEATURES
• 83C51 core with 16 kbytes EPROM (ROM); 256 bytes
RAM; 512 bytes AUXRAM; Timer 0,1, 2 and enhanced
UART
• Full speed USB interface device which complies with
USB 1.1 specification; accessible with MOVX
instructions
• Control input and output; 1 generic input and output and
2 generic input end-points
• Compatible with bus powered and suspend mode • Current limitations on cards contacts and emergency
supply current requirements deactivation in case of over consumption or overheating
• Specific ISO7816 UART; accessible with MOVX • Special circuitry for killing spikes during power-on or
instructions for automatic convention processing; power-off
variable baud rate through frequency or division ratio • Supply supervisor for power-on or power-off reset
programming; error management at character level for • High efficiency inductive DC-to-DC converter for VCC
T = 0 protocol; extra guard time register generation
• VCC generation (5 or 3 V maximum current 55 mA or • Soft switch on for avoiding current inrush at plug in
1.8 V maximum current 35 mA) with controlled
• Enhanced ESD protections on cards contacts (6 kV
rise and fall times; current limitation and overload
detection at 100 mA minimum)
• Software library for easy integration within the
• Cards clock generation with three times synchronous
application.
frequency doubling (12, 6, 3 and 1.5 MHz)
• Cards clock STOP HIGH or LOW or 1.25 MHz (from an
integrated oscillator) for cards power reduction mode 2 APPLICATIONS
• Automatic activation and deactivation sequences • Smart card readers for PC’s or Set Top Boxes.
through an independent sequencer
• Supports the asynchronous protocols T = 0 and T = 1 in 3 GENERAL DESCRIPTION
accordance with ISO7816 and EMV
The TDA8030; TDA8031 is a bus powered full-speed USB
• Versatile 24-bit time-out counter for Answer To Reset
device. All analog and digital functions for an EMV
(ATR) and waiting times processing compliant Smart Card Reader are built-in. The embedded
• Supports synchronous cards 83C51 microcontroller has 16 kbytes EPROM (ROM for
• Specific Elementary Time Unit (ETU) counter for Block TDA8031), 256 bytes RAM and 512 bytes of AUXRAM.
Guard Time (BGT)
4 ORDERING INFORMATION
PACKAGE
TYPE NUMBER
NAME DESCRIPTION VERSION
TDA8030HL LQFP64 plastic low profile quad flat package; 64 leads; body 10 × 10 × 1.4 mm SOT314-2
TDA8031HL
2003 Jul 04 3
Philips Semiconductors Product specification
2003 Jul 04 4
Philips Semiconductors Product specification
6 BLOCK DIAGRAM
6.8 µH
CDELAY LX
31 24
7
RESET SUPPLY 23 VUP
SUPERVISOR
STEP-UP
1 µF
54 CONVERTER 25 STGND
EA/VPP TIME-OUT
52 8xC51 COUNTER
PSEN MICROCONTROLLER
53
ALE/PROG
20
16 kbytes EPROM VCC
ISO7816 21
63, 64, RST
1 to 6 256 bytes RAM UART 18
P10 to P17 ANALOG CGND
19
32 to 39 TIMER 0, 1, 2 DRIVERS CLK
13
P30 to P37 AND I/O
ENHANCED UART CLOCK SEQUENCER 17
C4
CIRCUITRY 15
C8
16
P32/INT0 P33/INT1 PRES
44 to 51
P20 to P27 TDA8030
62 to 55
P00 to P07
ALE
12
CPROG
P36/WR
42 3.3 V INTERFACE
VDDD P37/RD
CDEC LDO CONTROL
1 µF
43 512 bytes
DGND
AUXRAM
27 22
VDDU
TEST
POWER
28 SWITCH
UGND
26 CONTROL 41
VDD PLL XTAL XTAL1
10 µF OSCILLATOR 40
XTAL2
29
D+
30 USB USB INTERNAL
D−
ATX INTERFACE OSCILLATOR
10
DELATT
8 9 11 14
MGU881
2003 Jul 04 5
Philips Semiconductors Product specification
6.8 µH
CDELAY LX
31 24
7
RESET SUPPLY 23 VUP
SUPERVISOR
STEP-UP
1 µF
54 CONVERTER 25 STGND
EA TIME-OUT
52 8xC51 COUNTER
PSEN MICROCONTROLLER
53
ALE
20
16 kbytes EPROM VCC
ISO7816 21
63, 64, RST
1 to 6 256 bytes RAM UART 18
P10 to P17 ANALOG CGND
19
32 to 39 TIMER 0, 1, 2 DRIVERS CLK
13
P30 to P37 AND I/O
ENHANCED UART CLOCK SEQUENCER 17
C4
CIRCUITRY 15
C8
16
P32/INT0 P33/INT1 PRES
44 to 51
P20 to P27 TDA8031
62 to 55
P00 to P07
ALE
42
VDDD P36/WR
CDEC 3.3 V INTERFACE
P37/RD
1 µF LDO CONTROL
43
DGND
512 bytes
AUXRAM
27 22
VDDU
TEST
POWER
28 SWITCH
UGND
26 CONTROL 41
VDD PLL XTAL XTAL1
10 µF OSCILLATOR 40
XTAL2
29
D+
30 USB USB INTERNAL
D−
ATX INTERFACE OSCILLATOR
10
DELATT
12 8, 11 9, 14
MGU882
2 2
SCANEN RFU RFU
2003 Jul 04 6
Philips Semiconductors Product specification
7 PINNING
7.1 TDA8030
2003 Jul 04 7
Philips Semiconductors Product specification
2003 Jul 04 8
Philips Semiconductors Product specification
53 ALE/PROG
handbook, full pagewidth
62 P00/AD0
61 P01/AD1
60 P02/AD2
59 P03/AD3
58 P04/AD4
57 P05/AD5
56 P06/AD6
55 P07/AD7
51 P27/A15
50 P26/A14
49 P25/A13
54 EA/VPP
52 PSEN
64 P11
63 P10
P12 1 48 P24/A12
P13 2 47 P23/A11
P14 3 46 P22/A10
P15 4 45 P21/A9
P16 5 44 P20/A8
P17 6 43 DGND
RESET 7 42 VDDD
RFU 8 41 XTAL1
TDA8030
RFU 9 40 XTAL2
DELATT 10 39 P37/RD
RFU 11 38 P36/WR
CPROG 12 37 P35
I/O 13 36 P34
RFU 14 35 P33/INT1
C8 15 34 P32/INT0
PRES 16 33 P31/TxD
RST 21
VCC 20
TEST 22
VUP 23
LX 24
STGND 25
VDD 26
VDDU 27
UGND 28
D + 29
D− 30
CDELAY 31
P30/RxD 32
C4 17
CGND 18
CLK 19
MGU883
2003 Jul 04 9
Philips Semiconductors Product specification
7.2 TDA8031
2003 Jul 04 10
Philips Semiconductors Product specification
2003 Jul 04 11
Philips Semiconductors Product specification
62 P00/AD0
61 P01/AD1
60 P02/AD2
59 P03/AD3
58 P04/AD4
57 P05/AD5
56 P06/AD6
55 P07/AD7
51 P27/A15
50 P26/A14
49 P25/A13
handbook, full pagewidth
52 PSEN
53 ALE
64 P11
63 P10
54 EA
P12 1 48 P24/A12
P13 2 47 P23/A11
P14 3 46 P22/A10
P15 4 45 P21/A9
P16 5 44 P20/A8
P17 6 43 DGND
RESET 7 42 VDDD
RFU 8 41 XTAL1
TDA8031
RFU 9 40 XTAL2
DELATT 10 39 P37/RD
RFU 11 38 P36/WR
SCANEN 12 37 P35
I/O 13 36 P34
RFU 14 35 P33/INT1
C8 15 34 P32/INT0
PRES 16 33 P31/TxD
RST 21
VCC 20
TEST 22
VUP 23
LX 24
STGND 25
VDD 26
VDDU 27
UGND 28
D + 29
D− 30
CDELAY 31
P30/RxD 32
C4 17
CGND 18
CLK 19
MGU884
2003 Jul 04 12
Philips Semiconductors Product specification
8 FUNCTIONAL DESCRIPTION The registers within the ISO7816 UART may be written to
or read from by using the standard 83C51 MOVX
Throughout this specification, it is assumed that the reader
instructions. It should be noted, that only if pin P27/A15 is
is aware of ISO7816 and USB norms terminology.
HIGH, can the UART be accessed.
8.1 ISO7816 UART AND ASSOCIATED LOGIC When pin P27/A15 is HIGH, the demultiplexing of address
and data is done internally by means of the ALE signal.
This section describes how the integrated ISO7816 UART
A LOW pulse on pin P37/RD enables the selected register
operates, how it can be programmed by means of its
to be read, a LOW pulse on pin P36/WR enables the
control registers and how it is internally interfaced to the
selected register to be written to.
embedded microcontroller.
The ISO UART interrupt line is directly connected to the
8.1.1 INTERFACE CONTROL microcontrollers External Interrupt 0 input, pin P32/INT0.
For that reason, the External Interrupt 0 of the 83C51
The ISO7816 UART can be controlled via an 8-bit parallel
microcontroller must be enabled to ensure a proper
bus. This bus is directly (internally) connected to Port 0
function.
(P07 to P00) of the embedded 83C51 microcontroller.
handbook, fullALE
pagewidth
CS
RD
WR
MGU885
2003 Jul 04 13
Philips Semiconductors Product specification
8.1.2 CONTROL REGISTERS The Hardware Status Register (HSR) gives the status of
the supply voltage, of the hardware protections and of the
The TDA8030; TDA8031 has 1 analog interface for
card movements.
7 contacts cards. The data to and from the cards is fed into
an ISO UART. The USR and HSR give interrupts on pins INT when some
of their bits have been changed.
The Card Select Register (CSR) contains one bit for
resetting the ISO UART (RIU, active LOW). This bit is reset The MSR does not give interrupts and may be used in the
after power-on and must be set HIGH before starting any polling mode for some operations; when this is the case,
operation. It may be reset by software when necessary. the bit Transmit Buffer Empty/Receive Buffer Full
(TBE/RBF) within the USR may be masked.
The following dedicated registers enable the parameters
of the ISO UART and the ETU counters to be set: A 24-bit time-out counter may be started to provide an
• Programmable Divider Register (PDR) interrupt after a number of ETUs programmed in time-out
registers TOR1, TOR2 and TOR3. This will help the
• Guard Time Register (GTR)
microcontroller when processing different real-time tasks
• Two UART Control Registers (UCR1 and UCR2) (ATR, WWT and BWT etc.), mainly if the microcontrollers
• Clock Configuration Register (CCR) and cards clock are asynchronous.
• Time-Out Configuration Register (TOCR) This counter is configured with a Time-Out Counter
• Three Time-Out Registers (TOR1, TOR2 and TOR3). Configuration register (TOCC) and may be used as a
24-bit or as a 16 + 8-bit counter. Each counter may be set
There is also a dedicated Power Control Register (PCR) to start counting once data has been written, or on
for controlling the power to the card. detection of a start bit on the I/O or as autoreload.
When the specific parameters of the card have been
programmed, the UART may be used with the following 8.1.3 GENERAL REGISTERS
registers: 8.1.3.1 Card select register
• UART Receive Register (URR) The Card Select Register (CSR) is used for resetting the
• UART Transmit Register (UTR) ISO UART.
• UART Status Register (USR) The bit Reset ISO UART (RIU) must be set to logic 1 by
• Mixed Status Register (MSR). software before any action on the UART. When set to
logic 0, this bit resets a large part of the UART registers to
In the reception mode, a FIFO of 1 to 8 characters may be
their default value; see Table 1. A minimum pulse of 10 ns
used and is configured with the FIFO Control Register
is needed on RIU. This bit must be reset before any new
(FCR). This register may also be used for programming an
activation.
automatic repetition of NAKed characters in the
transmission mode.
Table 1 Card select register (address 00H; write and read); note 1
7 6 5 4 3 2 1 0
− − − − RIU − − −
Note
1. All bits are cleared after reset.
2003 Jul 04 14
Philips Semiconductors Product specification
Note
1. All bits are cleared after reset.
When either bits PRTL, PRL or PTL is logic 1, then pin INT0 is LOW. The bits having caused the interrupt are cleared
when the HSR has been readout (2 × fint cycles after the rising edge of RD).
At power-on, or after a supply voltage drop-out, SUPL is set and INT0 is LOW. INT0 will return HIGH at the end of the
internal Power-on reset pulse defined by the value of the capacitor connected to pin CDELAY. SUPL will be reset only
after a status register readout outside the Power-on reset pulse; see Fig.8.
In the event of emergency deactivation (by PRTL, SUPL, PRL and PTL), bit START will be automatically reset by
hardware.
Note
1. All bits are cleared after reset.
2003 Jul 04 15
Philips Semiconductors Product specification
Note
1. All bits are cleared after reset.
Note
1. All bits are cleared after reset.
Table 7 Time-out configuration register (address 08H; read and write); note 1
7 6 5 4 3 2 1 0
TOC7 TOC6 TOC5 TOC4 TOC3 TOC2 TOC1 TOC0
Note
1. All bits are cleared after reset.
2003 Jul 04 16
Philips Semiconductors Product specification
The time-out counter is very useful for processing the clock The minimum time interval between 2 successive write
counting during ATR, the Work Waiting Time (WWT) or the operations in TOCR is 2⁄31 or 2⁄32 ETU.
waiting times defined in T = 1 protocol. The 200 and
It is obvious that the counters may only be used once the
384 clock counter used during ATR is done by hardware
card has been activated.
when Start Session is set, a specific hardware takes care
of BGT in T = 1 protocol and a specific register is present Detailed examples of how to use these specific timers can
for processing the extra guard time. be found in Application Note “AN01012”.
It is not allowed to change the content of the TOR registers
whilst a counter is in software triggered mode, or in
autoreload mode. In these modes, it is mandatory to stop
the counters (TOCR = 00H or 05H) before updating the
count value in the TOR registers. In start bit triggered
mode, the value may be changed at any time; the new
count value will be taken into account on the next start bit.
2003 Jul 04 17
Philips Semiconductors Product specification
8.1.4 ISO UART REGISTERS • Does not start if the transmission of the previous
character is not completed.
8.1.4.1 UART transmit register
When the transmission is completed:
When the microcontroller wants to transmit a character to
the card, it writes the data in direct convention in this • In T = 0, bit TBE is set at 11.5 ETU, and bit PE in the
register. event of parity error
• In T = 1, bit TBE is set at 10.5 ETU.
The transmission:
• Starts at the end of this writing (2 clock cycles after the In the event of synchronous cards (bit SAN set within
rising edge of WR) if the previous character has been UCR2), UT0 is only relevant and is copied on the I/O of the
transmitted and if the extra guard time has expired card. It is possible to write within the UTR before setting
the transmission mode, which may be useful in some
• Starts at the end of the extra guard time if this one has
cases.
not expired
• Starts at 13.5 ETU in manual mode and 15 ETU in
automatic mode if the previous character has been
NAKed by the card; see Section 8.1.4.4
Note
1. All bits are cleared after reset.
8.1.4.2 UART receive register In both protocols, when a character has been stored, then
the bit RBF in the status register USR is set at 10.5 ETU.
When the microcontroller wants to read data from the card,
This bit is reset when the character has been read from the
it reads it from this register in direct convention.
URR.
In the event of synchronous cards, only UR0 is relevant
When the URR is empty, then bit FE (in the MSR) is set as
and is a copy of the state of the card I/O.
long as no character has been received.
In the event of parity error:
• The bit PE in the status register USR is set at 10.5 ETU
and INT0 falls LOW
• In protocol T = 0, the received byte is not stored in URR;
In protocol T = 1, the received byte is stored.
7 6 5 4 3 2 1 0
UR7 UR6 UR5 UR4 UR3 UR2 UR1 UR0
Note
1. All bits are cleared after reset.
2003 Jul 04 18
Philips Semiconductors Product specification
Note
1. Bits TBE/RBF are cleared after reset; bit FE is set after reset.
Note
1. No bits within the MSR have an effect on INT0.
2003 Jul 04 19
Philips Semiconductors Product specification
Note
1. All bits are cleared after reset.
2003 Jul 04 20
Philips Semiconductors Product specification
7 6 5 4 3 2 1 0
TO3 − TO1 EA PE OVR FER TBE/RBF
Note
1. All bits are cleared after reset.
2003 Jul 04 21
Philips Semiconductors Product specification
If any of the status bits FER, OVR, PE, EA, TO1 or TO3 8.1.5 CARDS REGISTERS
are set, then INT0 is LOW. The bit having caused the
When working with a card, the following registers may be
interrupt is reset 2 × fint cycles after the rising edge of RD
used for programming some specific parameters:
during a read operation of the USR. If TBE/RBF is set and
if the mask bit DISTBE/RBF within UCR2 is not set, then
8.1.5.1 Programmable divider register
INT0 is also LOW. TBE/RBF is reset 2 clock cycles after
data has been written into the UTR, or 2 clock cycles after The Programmable Divider Register (PDR) is used for
data has been read from the URR, or when changing from counting the cards clock cycles which form the ETU. It is
transmission mode to reception mode if the FIFO had not an autoreload 8-bit counter decounting from the
been left full when going to transmission mode. If the Last programmed value down to 0.
Character to Transmit (LCT) is used for transmitting the
last character, then TBE will not be set at the end of the
transmission.
Table 17 Programmable divider register (address 02H; read and write); note 1
7 6 5 4 3 2 1 0
PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0
Note
1. All bits are cleared after reset.
27 26 25 24 23 22 21 20
ENINT1 DISTBE/ − − SAN AUTOCONV CKU PSC
RBF
Note
1. All bits are cleared after reset.
2003 Jul 04 22
Philips Semiconductors Product specification
CKU
2003 Jul 04 23
Philips Semiconductors Product specification
8.1.5.3 Baud rate selection using F and D; card clock frequency fCLK = 3.58 MHz for PSC = 31 and 4.92 MHz for
PSC = 32 (31;12 means prescaler set to 31 and PDR set to 12)
F
D
0 1 2 3 4 5 6 9 10 11 12 13
1 31;12 31;12 31;18 31;24 31;36 31;48 31;60 32;16 32;24 32;32 32;48 32;64
9600 9600 6400 4 800 3200 2400 1920 9600 6400 4800 3200 2400
2 31;6 31;6 31;9 31;12 31;18 31;24 31;30 32;8 32;12 32;16 32;24 32;32
19200 19200 12800 9600 6400 4800 3840 19200 12800 9600 6400 4800
3 31;3 31;3 31;6 31;9 31;12 31;15 32;4 32;6 32;8 32;12 32;16
38400 38400 19200 12800 9600 7680 38400 25600 19200 12800 9600
4 31;3 31;6 32;2 32;3 32;4 32;6 32;8
38400 19200 76800 51300 38400 25600 19200
5 31;3 32;1 32;2 32;3 32;4
38400 153600 76800 51300 38400
6 32;1 32;2
153600 76800
8 31;1 31;1 31;2 31;3 31;4 31;5 32;2 32;4
115200 115200 57600 38400 28800 23040 76800 38400
9 31;3
38400
Table 20 Guard time register (address 05H; read and write); note 1
7 6 5 4 3 2 1 0
GT7 GT6 GT5 GT4 GT3 GT2 GT1 GT0
Note
1. All bits are cleared after reset.
Table 21 UART configuration register 1 (address 06H; read and write); note 1
7 6 5 4 3 2 1 0
− FIP FC PROT T/R LCT SS CONV
Note
1. All bits are cleared after reset.
2003 Jul 04 24
Philips Semiconductors Product specification
Table 23 Clock configuration register (address 01H; read and write); note 1
7 6 5 4 3 2 1 0
− − SHL CST SC AC2 AC1 AC0
Note
1. All bits are cleared after reset.
2003 Jul 04 25
Philips Semiconductors Product specification
Note
1. If fCLK = fXTAL, the duty cycle must be ensured by the incoming clock signal on XTAL1.
2003 Jul 04 26
Philips Semiconductors Product specification
Table 26 Power control register (address 07H; read and write); note 1
7 6 5 4 3 2 1 0
− − C8 C4 1.8V RSTIN 3/5V START
Note
1. All bits are cleared after reset.
2003 Jul 04 27
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
Philips Semiconductors
USB smart card reader (OTP or ROM)
VALUE
VALUE AT
NAME ADDR R/W 7 6 5 4 3 2 1 0 WHEN
RESET
RIU = 0
CSR 00H R/W − − − − RIU − − − XXXX0XXX XXXX0XXX
CCR 01H R/W − − SHL CST SC AC2 AC1 AC0 XX000000 XX000000
PDR 02H R/W PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 00000000 00000000
UCR2 03H R/W ENINT1 DISTBE/ − − SAN AUTOCO CKU PSC 00XX0000 00XX0000
RBF NV
GTR 05H R/W GT7 GT6 GT5 GT4 GT3 GT2 GT1 GT0 00000000 00000000
UCR1 06H R/W − FIP FC PROT T/R LCT SS CONV X0000000 X0000000
PCR 07H R/W − − C8 C4 1.8 V RSTIN 3/5 V START XX110000 XX110000
TOC 08H R/W TOC7 TOC6 TOC5 TOC4 TOC3 TOC2 TOC1 TOC0 00000000 00000000
TOR1 09H W TOL7 TOL6 TOL5 TOL4 TOL3 TOL2 TOL1 TOL0 00000000 00000000
TOR2 0AH W TOL15 TOL14 TOL13 TOL12 TOL11 TOL10 TOL9 TOL8 00000000 00000000
TOR3 0BH W TOL23 TOL22 TOL21 TOL20 TOL19 TOL18 TOL17 TOL16 00000000 00000000
MSR 0CH R CLKSW FE BGT − − PR − TBE/RBF 010XXXX0 010XXXX0
28
FCR 0CH W − PEC2 PEC1 PEC0 − FL2 FL1 FL0 X000X000 X000X000
UTR 0DH W UT7 UT6 UT5 UT4 UT3 UT2 UT1 UT0 00000000 00000000
URR 0DH R UR7 UR6 UR5 UR4 UR3 UR2 UR1 UR0 00000000 00000000
USR 0EH R TO3 − TO1 EA PE OVR FER TBE/RBF 0X000000 00000000
HSR 0FH R − − PRTL SUPL − PRL − PTL XX01X0X0 XX01X0X0
TDA8030; TDA8031
Product specification
Philips Semiconductors Product specification
• It is the reference voltage for the signalling pull-up The power efficiency is approximately 85% up to
resistor connected to pin D+. ICC = 55 mA. The current is limited at 100 mA during the
start-up phase to avoid spurious supply drop-outs.
If this voltage is used within the application, the current
should not exceed 10 mA. The DC-to-DC converter is transparent for a 3 V card.
LX VUP
clock N drive
reset P drive
low up
Vref MGU887
2003 Jul 04 29
Philips Semiconductors Product specification
8.2.4 SUPPLY SUPERVISOR This pulse is used as a Power-on reset pulse and also to
either block any spurious spikes on card contacts during
The switched supply voltage (VDD) is surveyed by a
microcontrollers reset, or to force an automatic
voltage supervisor, to ensure proper Power-on reset when
deactivation of the contacts in the event of supply
the reader is plugged into the USB-bus, to maintain all
drop-out; see Sections 8.3.3 and 8.3.4.
cards contacts inactive during power-on and also to
enforce an emergency deactivation sequence in case of After power-on, or after a voltage drop, bit SUPL is set
VDD drop-out or when the reader is unplugged from the within the Hardware Status Register (HSR) and remains
USB-bus. set until HSR is readout outside the alarm pulse. As long
as the Power-on reset is active, INT0 is LOW.
The voltage supervisor generates an alarm pulse, whose
length is defined by an external capacitor tied to the The same events occurs when the RESET pin has been
CDELAY pin, when VDD is too low to ensure proper set active; the RESET pin should be set HIGH for a
operation (1 ms per 2 nF typical). minimum of 100 µs for a proper reset.
Vth1
VDD
Vth2
CDELAY
RESET
tw tw tw
SUPL
INT0
MGU888
2003 Jul 04 30
Philips Semiconductors Product specification
2003 Jul 04 31
Philips Semiconductors Product specification
VUP
VCC
I/O
CLK
RST
t0 t1 t2 t3 t 4 = t act ATR
MGU889
2003 Jul 04 32
Philips Semiconductors Product specification
RST
CLK
I/O
VCC
VUP
t de
t 10 t 11 t 12 t 13 t 14 t 15 MGU890
2003 Jul 04 33
Philips Semiconductors Product specification
8.4 MICROCONTROLLER The 80C51 microcontroller has four 8-bit I/O ports, three
16-bit timer/event counters, a multi-source, 4-level priority
The embedded microcontroller is an 80C51RB+ with an
nested interrupt structure, an enhanced UART and on-chip
internal 16 kbyte EPROM (80C51FB with 16 kbyte ROM
oscillator and timing circuits. For systems that require
for the TDA8031), 256 RAM and 512 AUXRAM. It has the
extra memory capability up to 64 kbytes, it can be
same instruction set as the 80C51.
expanded by using standard TTL compatible memories
The embedded microcontroller is clocked by the frequency and logic.
present on pin XTAL1. 1. 80C51 Central Processing Unit (CPU)
The embedded microcontroller may be reset by an active 2. Full static operation
HIGH signal on pin RESET, but it is also reset by the 3. Security bits: ROM 2 bits
Power-on reset signal generated by the voltage
supervisor. 4. Encryption array of 64 bits
5. 4-level priority structure
The external interrupt INT0 is used by the ISO UART, by
the analog drivers and by the ETU counters. It must be left 6. 6 interrupt sources
open-circuit in the application. 7. Full duplex enhanced UART with framing error
detection and automatic address recognition
The external interrupt INT1 is used by the USB interface.
It must be left open-circuit in the application. 8. Power control modes (the clock can be stopped and
resumed in IDLE mode and power-down mode)
A general description, together with the added features, is
described below. 9. Wake-up from power-down by a falling edge on pins
INT0 and INT1; with an embedded delay counter
The added features to the 80C51 microcontroller are
10. Programmable clock output
similar to the 8XC51FB/RB+ microcontrollers, except for
the wake-up from power-down mode, which is enabled by 11. Second DPTR register
a falling edge on pin INT0 (card reader event) or on pin 12. Asynchronous port reset
INT1 due to the addition of an extra delay counter and
13. Low EMI (inhibit ALE).
enable configuration bits within the UCR2 register; see
Section 8.4.1. For further information please refer to the Table 28 gives a list of main features to get a better
published specification of the 8xC51RB + /FB in “Data understanding of the differences between a standard
Handbook IC20; 80C51-Based 8-bit Microcontrollers”. 80C51, an 8XC51RB+ and the embedded microcontroller
in the TDA8030; TDA8031.
Table 28 Principal blocks in the 80C51, 8XC51RB+ and the TDA8030; TDA8031
FEATURE 80C51 8XC51RB+ TDA8030; TDA8031
ROM/EPROM 4 kbytes 16 kbytes 16 kbytes
RAM 128 bytes 256 bytes 256 bytes
ERAM (MOVX) no 256 bytes 512 bytes
PCA no yes no
WDT no yes no
T0 yes yes yes
T1 yes yes yes
T2 no yes yes
lowest interrupt priority vector at 002BH
4 level priority interrupt no yes yes
enhanced UART no yes yes
delay counter no no yes
2003 Jul 04 34
Philips Semiconductors Product specification
8.4.1 LOW POWER MODES The bits in the Interface Engine (IE) must be enabled with
INT0 and INT1. Within the INT0 interrupt service routine,
Stop Clock Mode: The static design enables the clock
the microcontroller has to read out the Hardware Status
speed to be reduced down to 0 MHz (stopped). When the
Register (HSR at 0FH) and/or the UART Status register
oscillator is stopped, the RAM and Special Function
(USR at 0EH) by means of MOVX instructions in order to
Registers (SFRs) retain their values. This mode allows
establish the exact interrupt reason and to reset the
step-by-step utilization and permits reduced system power
interrupt source.
consumption by lowering the clock frequency down to any
value. The power-down mode is suggested for the lowest For enabling a wake-up by INT1, the bit ENINT1 within
power consumption. UCR2 must be set.
IDLE Mode: In the Idle mode, the CPU puts itself to sleep An integrated delay counter maintains INT0 and INT1
while all of the on-chip peripherals stay active. The LOW long enough to allow the oscillator to restart properly.
instruction to invoke the Idle mode is the last instruction A falling edge on pins INT0 and INT1 is enough to awaken
executed in the normal operating mode before the Idle the whole circuit.
mode is activated. The CPU contents, the on-chip RAM
Once the interrupt is serviced, the next instruction to be
and all of the special function registers remain intact during
executed after RETI will be the one following the
this mode. The Idle mode can be terminated either by any
instruction that put the device into power-down.
enabled interrupt (at which time the process is picked up
at the interrupt service routine and continued), or by a
8.5 USB INTERFACE
hardware reset which starts the processor in the same
manner as a Power-on reset. 8.5.1 END-POINTS
Power-down Mode: To save even more power, a The TDA8030; TDA8031 has 4 logic end-points which are
power-down mode can be invoked by software. In this listed in Table 29.
mode, the oscillator is stopped and the instruction that
Each physical end-point, except for the control ones, can
invoked the power-down is the last instruction executed.
be enabled or disabled. All enabled end-points generate
Either a hardware reset or external interrupt can be used interrupts to the microcontroller via INT1 when the
to exit from the power-down mode. Applying a reset end-point needs to be serviced.
redefines all of the SFRs but does not change the on-chip
The implementation of the function makes use of an SRAM
RAM. An external interrupt allows both the SFRs and the
for buffering the data.
on-chip RAM to retain their values.
Logic end-points can be accessed by the microcontroller
interface.
2003 Jul 04 35
Philips Semiconductors Product specification
2003 Jul 04 36
Philips Semiconductors Product specification
2003 Jul 04 37
Philips Semiconductors Product specification
Notes
1. The value written becomes the address.
2. A logic 1 enables the function.
After a bus reset, the address is reset to 000 0000. The enable bit is set. The device will respond on packets for function
address 000 0000, end-point 0 (default end-point).
2003 Jul 04 38
Philips Semiconductors Product specification
Note
1. The Device event bit is cleared by issuing the Get Device Status command.
2003 Jul 04 39
Philips Semiconductors Product specification
2003 Jul 04 40
Philips Semiconductors Product specification
2003 Jul 04 41
Philips Semiconductors Product specification
FUNCTION 7 6 5 4 3 2 1 0
Full or empty − − − − − − − 0
Stall − − − − − − 0 −
Set-up − − − − − 0 − −
Packet overwritten − − − − 0 − − −
Sent NAK − − − 0 − − − −
Reserved − − − − − − − −
FUNCTION DESCRIPTION
Full or empty If set to logic 1, the buffer of the selected end-point is full.
In the event of an output end-point, this bit is cleared by executing the Clear Buffer command, if
the buffer was not overwritten.
In the event of an input end-point, this bit is set by the Validate Buffer command.
Stall If set to logic 1, the selected end-point is stalled.
Set-up If set to logic 1, the last received packet for the selected end-point was a set-up packet. The
value of this bit is updated after each successfully received packet (i.e. an ACKED package on
that particular end-point).
Packet overwritten If set to logic 1, the previously received packet was overwritten by a set-up packet. The value of
this bit is cleared by the Select End-point command.
Sent NAK If set to logic 1, the device has sent a NAK. If the host sends an output packet to a filled output
buffer, the device returns a NAK. If the host sends an input token to an empty input buffer, the
device returns a NAK.
This bit is set when a NAK is sent and the Interrupt On Nak feature is enabled.
This bit is reset after the device has sent an ACK after an output packet or when the device has
seen an ACK after sending an input packet. It is only defined for the 2 physical control
end-points.
Notes
1. X = dont care.
2. def means that the bit can be set if the end-point is of the specified type.
2003 Jul 04 42
Philips Semiconductors Product specification
Table 45 Description of the Power-on value for Set end-point status bits
FUNCTION DESCRIPTION
Stall If set to logic 1, the end-point is stalled.
Disable If set to logic 1, the end-point is disabled. After a bus reset; each end-point is enabled, i.e. this
bit is set to logic 0.
Rate feedback If set to logic 0, the interrupt end-point is in toggle mode. If set to logic 1, the interrupt end-point
mode is in rate feedback mode.
Interrupt unmasked If set to logic 1, an event on the end-point causes an interrupt to the microcontroller.
Conditional stall If set to logic 1, both end-points zero are stalled; unless the set-up packet bit is set.
A stalled control end-point is automatically unstalled when it receives a SET-UP token,
regardless of the content of the packet. If the end-point stays in the stalled state, the
microcontroller should re-install it.
When a stalled end-point is unstalled (either by the Set end-point status command or by
receiving a Set-up token) it is also re-initialized. This flushes the buffer: in case of an output
buffer, it waits for a DATA 0 PID; in case of an input buffer, it writes a DATA 0 PID. Even when
unstalled, setting the stalled bit to logic 0 initializes the end-point.
When an end-point is stalled by the Set end-point status command, it is also re-initialized.
Notes
1. Bit 7 of Byte 0 indicates whether the packet in the buffer was received successfully over the USB-bus. When this bit
is set to logic 1, the packet was received successfully.
2. Bit 6 of Byte 0 indicates whether the packet in the buffer is a set-up packet.
BYTE 7 6 5 4 3 2 1 0
Byte 0 − − − − − − − 0
Byte 1 − number of data bytes in buffer
Byte 2 data byte 0
....
Byte n + 1 data byte n − 1
2003 Jul 04 43
Philips Semiconductors Product specification
2003 Jul 04 44
Philips Semiconductors Product specification
9 LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 60134).
SYMBOL PARAMETER CONDITIONS MIN. MAX. UNIT
VDDU bus supply voltage −0.5 +6.5 V
Vn input voltage on all pins −0.5 +6.5 V
Ptot total power dissipation − tbf mW
Tstg IC storage temperature −55 +150 °C
Tj junction temperature − 125 °C
Vesd electrostatic discharge voltage TDA8030; HBM JEDEC
pins I/O, VCC, RST, C4, C8, CLK and PRES −5 +5 kV
all other pins −1 +1 kV
MM JEDEC −50 +50 V
MM JEDEC −100 +100 V
Vesd electrostatic discharge voltage
pins I/O, VCC, RST, C4, C8, CLK and PRES TDA8031; HBM JEDEC −6 +6 kV
all other pins −1.5 +1.5 kV
Ilu latch-up free current on all pins JEDEC; maximum −100 +100 mA
voltage is 1.5/−0.5 supply
voltage of the block
10 THERMAL CHARACTERISTICS
2003 Jul 04 45
Philips Semiconductors Product specification
11 CHARACTERISTICS
VDDU = 5 V; Tamb = 25 °C; unless otherwise specified.
2003 Jul 04 46
Philips Semiconductors Product specification
2003 Jul 04 47
Philips Semiconductors Product specification
2003 Jul 04 48
Philips Semiconductors Product specification
2003 Jul 04 49
Philips Semiconductors Product specification
2003 Jul 04 50
Philips Semiconductors Product specification
2003 Jul 04 51
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
12 APPLICATION INFORMATION
Philips Semiconductors
USB smart card reader (OTP or ROM)
VDDD
1 3
R1 MICROCOSMOS
BP1
0Ω 2 4
C1 C2
DELATT
CPROG
RESET
J2 100 100
PRES
RFU
RFU
RFU
RFU
nF nF
P17
P16
P15
P14
P13
P12
I/O
C8
C5I C1I
C6I C2I
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
C7I C3I C4 P11
C8I C4I 17 64
CGND P10
CARD_READ_CCM0_2251 18 63
CLK P00/AD0
K1 19 62
K2 VCC P01/AD1
20 61
RST P02/AD2
VDDD 21 60
TEST P03/AD3
22 59
TP18 VUP P04/AD4
23 58
GND LX P05/AD5
24 IC1 57
STGND P06/AD6
25 TDA8030 56
VDD P07/AD7
52
D1 VDD 26 55
BAT54 L1 VDDU EA/VPP
27 54 VDDD
6.8 µH UGND ALE/PROG
28 53
D+ PSEN
C3 C5 C6 29 52
1 µF 10 µF 100 nF D− P27/A15
(10 V) 30 51
CDELAY P26/A14
R2 31 50
1.5 kΩ P30/RxD P25/A13
VDDU 32 49
C7 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
22 nF
P36/WR
P31/TXD
P32/INT0
P33/INT1
P34
P35
P37/RD
XTAL2
XTAL1
VDDD
GNDD
P20/A8
P21/A9
P22/A10
P23/A11
P24/A12
J1
VCC NDATA 2 R4
1
TDA8030; TDA8031
6 5 0Ω
GND 4 3 R3 C12
1 2
PDATA 0Ω
22 pF
Y1 C8
1 µF
Product specification
C13 12 MHz
1 2
22 pF VDDD MGU892
13 PACKAGE OUTLINE
LQFP64: plastic low profile quad flat package; 64 leads; body 10 x 10 x 1.4 mm SOT314-2
c
y
48 33
49 32 ZE
e
E HE A
A2
(A 3)
A1
wM
θ
bp Lp
pin 1 index L
64 17
1 16 detail X
ZD v M A
e wM
bp
D B
HD v M B
0 2.5 5 mm
scale
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
00-01-19
SOT314-2 136E10 MS-026
03-02-25
2003 Jul 04 53
Philips Semiconductors Product specification
2003 Jul 04 54
Philips Semiconductors Product specification
14.5 Suitability of surface mount IC packages for wave and reflow soldering methods
SOLDERING METHOD
PACKAGE(1)
WAVE REFLOW(2)
BGA, LBGA, LFBGA, SQFP, SSOP-T(3), TFBGA, VFBGA not suitable suitable
DHVQFN, HBCC, HBGA, HLQFP, HSQFP, HSOP, HTQFP, not suitable(4) suitable
HTSSOP, HVQFN, HVSON, SMS
PLCC(5), SO, SOJ suitable suitable
LQFP, QFP, TQFP not recommended(5)(6) suitable
SSOP, TSSOP, VSO, VSSOP not recommended(7) suitable
Notes
1. For more detailed information on the BGA packages refer to the “(LF)BGA Application Note” (AN01026); order a copy
from your Philips Semiconductors sales office.
2. All surface mount (SMD) packages are moisture sensitive. Depending upon the moisture content, the maximum
temperature (with respect to time) and body size of the package, there is a risk that internal or external package
cracks may occur due to vaporization of the moisture in them (the so called popcorn effect). For details, refer to the
Drypack information in the “Data Handbook IC26; Integrated Circuit Packages; Section: Packing Methods”.
3. These transparent plastic packages are extremely sensitive to reflow soldering conditions and must on no account
be processed through more than one soldering cycle or subjected to infrared reflow soldering with peak temperature
exceeding 217 °C ± 10 °C measured in the atmosphere of the reflow oven. The package body peak temperature
must be kept as low as possible.
4. These packages are not suitable for wave soldering. On versions with the heatsink on the bottom side, the solder
cannot penetrate between the printed-circuit board and the heatsink. On versions with the heatsink on the top side,
the solder might be deposited on the heatsink surface.
5. If wave soldering is considered, then the package must be placed at a 45° angle to the solder wave direction.
The package footprint must incorporate solder thieves downstream and at the side corners.
6. Wave soldering is suitable for LQFP, TQFP and QFP packages with a pitch (e) larger than 0.8 mm; it is definitely not
suitable for packages with a pitch (e) equal to or smaller than 0.65 mm.
7. Wave soldering is suitable for SSOP, TSSOP, VSO and VSSOP packages with a pitch (e) equal to or larger than
0.65 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm.
2003 Jul 04 55
Philips Semiconductors Product specification
16 DEFINITIONS 17 DISCLAIMERS
Short-form specification The data in a short-form Life support applications These products are not
specification is extracted from a full data sheet with the designed for use in life support appliances, devices, or
same type number and title. For detailed information see systems where malfunction of these products can
the relevant data sheet or data handbook. reasonably be expected to result in personal injury. Philips
Semiconductors customers using or selling these products
Limiting values definition Limiting values given are in
for use in such applications do so at their own risk and
accordance with the Absolute Maximum Rating System
agree to fully indemnify Philips Semiconductors for any
(IEC 60134). Stress above one or more of the limiting
damages resulting from such application.
values may cause permanent damage to the device.
These are stress ratings only and operation of the device Right to make changes Philips Semiconductors
at these or at any other conditions above those given in the reserves the right to make changes in the products -
Characteristics sections of the specification is not implied. including circuits, standard cells, and/or software -
Exposure to limiting values for extended periods may described or contained herein in order to improve design
affect device reliability. and/or performance. When the product is in full production
(status ‘Production’), relevant changes will be
Application information Applications that are
communicated via a Customer Product/Process Change
described herein for any of these products are for
Notification (CPCN). Philips Semiconductors assumes no
illustrative purposes only. Philips Semiconductors make
responsibility or liability for the use of any of these
no representation or warranty that such applications will be
products, conveys no licence or title under any patent,
suitable for the specified use without further testing or
copyright, or mask work right to these products, and
modification.
makes no representations or warranties that these
products are free from patent, copyright, or mask work
right infringement, unless otherwise specified.
2003 Jul 04 56
Philips Semiconductors – a worldwide company
Contact information
Printed in The Netherlands 613502/01/pp57 Date of release: 2003 Jul 04 Document order number: 9397 750 10125