STMICROELECTRONICS ST8004_07

ST8004
Smartcard interface
General features
■
3V or 5V supply for the IC
■
Step-up converter for VCC generation
■
3 specific protected half duplex bi-directional
buffered I/O lines
■
Automatic activation and deactivation
sequences
■
Thermal and short-circuit protections on all
card contacts
■
26MHz integrated crystal oscillator
■
Clock generation for the card up to 20MHz with
synchronous frequency changes
■
ISO7816-3 compatible
■
Enhanced ESD protection on card side
■
SO-28 package
■
Under voltage lockout protection selectable to
3V or 2.2V
■
Supply supervisor integrated
SO-28
Description
The ST8004 is a complete low cost analog
interface for asynchronous 3V and 5V smart
cards. It can be placed between the card and the
microcontroller with few external components to
perform all supply protection and control
functions. Main applications are: smartcard
readers for Set Top Box, IC card readers for
banking, identification.
Order code
Part number
Temperature range
Package
Packaging
ST8004CDR
0 to 85 °C
SO-28 (Tape & Reel)
1000 parts per reel
January 2007
Rev 7
1/26
www.st.com
26
Contents
ST8004
Contents
1
Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2
Pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3
Maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5
Waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6
Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.1
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.2
Voltage supervisor (for VTHSEL = VDD or floating) . . . . . . . . . . . . . . . . . 15
6.3
Voltage supervisor (for VTHSEL = GND) . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.4
Clock circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.5
I/O Circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.6
Inactive state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.7
Activation sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.8
Active state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.9
Deactivation sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.10
Fault detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7
Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2/26
ST8004
Diagram
1
Diagram
Figure 1.
Block diagram
3/26
Pin configuration
ST8004
2
Pin configuration
Figure 2.
Pin connections
Table 1.
Pin description
Pin N°
Symbol
1
CLKDIV1
Control of CLK Frequency
2
CLKDIV2
Control of CLK Frequency
3
5V/3V
VCC selection pin.
4
PGND
Power Ground for Step-Up converter
5
C1+
External Cap. for Step-Up converter
6
VDDP
Power Supply for Step-Up converter
7
C1-
External Cap. Step-Up converter
8
VUP
Output of Step-Up converter
9
PRES
Card Presence Input (Active Low)
10
PRES
Card Presence Input (Active High)
11
I/O
12
AUX2
Auxiliary line to and from card (C8) (internal 10kΩ pull-up resistor connected to VCC)
13
AUX1
Auxiliary line to and from card (C4) (internal 10kΩ pull-up resistor connected to VCC)
14
CGND
Ground for card signal (C5)
15
CLK
Clock to card (C3)
16
RST
Card Reset (C2)
17
VCC
Supply Voltage for the card (C1)
18
VTHSEL
19
CMDVCC
4/26
Name and function
Data Line to and from card (C7) (internal 10kΩ pull-up resistor connected to VCC)
Deactivation threshold selector pin (under voltage lock-out)
Start activation sequence input (Active Low)
ST8004
Table 1.
Pin configuration
Pin description
Pin N°
Symbol
Name and function
20
RSTIN
21
VDD
Supply Voltage
22
GND
Ground
23
OFF
Interrupt to MCU (active Low)
24
XTAL1
Crystal or external clock input
25
XTAL2
Crystal connection (leave this pin open if external clock is used)
26
I/OUC
Data Line to and from MCU (internal 10kΩ pull-up resistor connected to VDD)
27
AUX1UC
Auxiliary line to and from MCU (internal 10kΩ pull-up resistor connected to VDD)
28
AUX2UC
Auxiliary line to and from MCU (internal 10kΩ pull-up resistor connected to VDD)
Card Reset Input from MCU
5/26
Maximum ratings
ST8004
3
Maximum ratings
Table 2.
Absolute maximum ratings
Symbol
Parameter
VDD, VDDP Supply voltage
Min
Max
Unit
-0.3
7
V
Vn1
Voltage on pins XTAL1, XTAL2, 5V/3V, RSTIN, AUX2UC,
AUX1UC, I/OUC, CLKDIV1, CLKDIV2, VTHSEL, CMDVCC,
PRES, PRES and OFF
-0.3
VDD + 0.3
V
Vn2
Voltage on card contact pins I/O, RST, AUX1, AUX2 and CLK
-0.3
VCC + 0.3
V
Vn3
Voltage on pins VUP, S1 and S2
9
V
ESD1
MIL-STD-883 class 3 on card contact pins, PRES and PRES
(Note 1, 2)
-6
6
KV
ESD2
MIL-STD-883 class 2 on µC contact pins and RSTIN (Note 1, 2)
-2
2
KV
Note:
Note:
Absolute Maximum Ratings are those values beyond which damage to the device may
occur. Functional operation under these conditions is not implied.
1
All card contacts are protected against any short with any other card contact.
2
Method 3015 (HBM, 1500 Ω, 100 pF) 3 positive pulses and 3 negative pulses on each pin
referenced to ground.
Table 3.
Thermal data
Symbol
RthJA
Table 4.
Symbol
TA
6/26
Parameter
Thermal resistance junction-ambient temperature
Condition
Value
Unit
In free air
70
°K/W
Recommended operating conditions
Parameter
Temperature range
Test Conditions
Min.
-25
Typ.
Max.
Unit
85
°C
ST8004
Electrical characteristics
4
Electrical characteristics
Table 5.
Electrical characteristics over recommended operating (VDD = 3.3V, VDDP = 5V, fXTAL =
10MHz, unless otherwise noted. Typical values are to TA = 25°C)
Symbol
Parameter
VDD
Supply voltage
VDDP
Supply voltage for the
voltage doubler
Output voltage on pin VUP
from step-up converter
VI(VUP)
Input voltage to be
applied on VUP in order to
block the step-up
converter
IP
Min.
VTHSEL = VDD or floating
Typ.
Max.
2.7
6.5
3.150
6.5
Unit
V
VTHSEL = GND
VO(VUP)
IDD
Test Conditions
4.5
5
6.5
V
To comply with VI(RIPPLE)(P-P) specifications
4.75
5.25
5.5
7
V
9
Inactive mode
1.2
Active mode; fCLK = fXTAL; CL = 30pF
1.5
Supply current
V
mA
Inactive mode
Supply current for step-up
Active mode; fCLK = fXTAL;
converter
CL = 30pF
0.1
ICC=0
18
ICC=65 mA
150
mA
Vth2
Threshold voltage on VDD VTHSEL = VDD or floating
2.2
2.4
V
Vth3
Threshold voltage on VDD VTHSEL = GND
2.9
3.08
V
50
150
mV
VHYS(th2) Hysteresis on Vth2
VTHSEL = VDD or floating
VHYS(th3) Hysteresis on Vth3
VTHSEL = GND
tW
∆THFIL
Pulse width of the internal
alarm pulse
Delay of internal filter
VTHSEL = GND
0
mV
6
20
ms
5
50
µs
7/26
Electrical characteristics
Table 6.
Symbol
VCC
ST8004
Card supply voltage characteristics (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz,
unless otherwise noted. Typical values are to TA = 25°C) (Note 1)
Parameter
Test Conditions
SR
Table 7.
Symbol
CEXT
fI(XTAL)
Max.
-0.1
0.1
Inactive mode; ICC = 1 mA
-0.1
0.4
Active Mode; VDDP = 5V ± 5% 5 V card
|ICC| < 65 mA DC
3 V card
4.75
5.25
2.85
3.15
5 V card
4.65
5.25
3 V card
2.85
3.15
5 V card
4.65
5.25
3 V card
2.76
3.15
Active Mode; current pulse
of 40 nAs with |ICC|<200mA
t < 400 ns
|ICC|
Typ.
Inactive mode
Output voltage including
ripple
Active Mode; single current
pulse of 100 mA; 2 µs
VI(RIPPLE) Peak to peak ripple
voltage on VCC
(P-P)
Min.
20 KHz to 200 MHz, VDDP = 5V ± 5%
350
From 0 to 5V or to 3V
65
VCC short circuit to GND
150
Output current
Slew rate
Unit
V
mV
mA
Up to down
0.11
0.22
V/µs
Crystal connection (pins XTAL1 and XTAL2) (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz,
unless otherwise noted. Typical values are to TA = 25°C)
Parameter
Test Conditions
Min.
Typ.
Max.
Unit
15
pF
2
26
MHz
External capacitors on pins Depending on specification of
XTAIL1, XTAIL2
crystal or resonator used
Crystal Input Frequency
VIH(XTAL)
High level input voltage on
XTAIL1
0.7 VDD
VDD
V
VIL(XTAL)
Low level input voltage on
XTAIL1
0
0.3 VDD
V
Table 8.
Symbol
Data lines (pins I/O, AUX1, AUX2, AUX1UC and AUX2UC) (VDD = 3.3V, VDDP = 5V, fXTAL
= 10MHz,unless otherwise noted. Typical values are to TA = 25°C)
Parameter
Delay between falling edge on pin I/O
tD(EDGE) and I/OUC and width of active pull-up
pulse
fI/O(MAX) Maximum frequency of data lines
CI
8/26
Input capacitance on data lines
Test Conditions
Min.
Typ.
Max.
200
Unit
ns
1
MHz
10
pF
ST8004
Table 9.
Symbol
Electrical characteristics
Data lines (pins I/O, AUX1 AND AUX2 WITH 10 kΩ Pull-up resistor connected to VCC
Internally (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted. Typical values
are to TA = 25°C)
Parameter
Test Conditions
VOH
High level output voltage on IOH = - 40µA
data lines
No Load
VOL
Low level output voltage on
data lines
VIH
High level input voltage on
data lines
VIL
Low level input voltage on
data lines
VINACTIVE
Voltage on data lines when
inactive
IEDGE
|IIH|
IIL
RPU(INT)
0.75 VCC
VCC
0.9 VCC
VCC+0.3
Unit
V
300
mV
1.8
VCC
V
-0.3
0.8
V
0.1
II/O = 1 mA
0.3
V
Current from data lines
V = 0.7 x VCC; CO = 80 pF
when active pull-up is active OH
-1
mA
Input leakage current when
high
VIH = VCC
10
µA
Low level input current
VIL = 0
600
µA
13
KΩ
1
µs
0.1
µs
10
pF
Internal pull-up resistance to
VCC
9
From VIL max to VIH min
tT(DO)
Output transition times
CO = 80 pF, no DC load;
0.4 V to 70% from 0 to VCC
Symbol
Max.
No Load
Input transition times
Table 10.
Typ.
IOL = 1 mA
tT(DI)
CI
Min.
Input capacitance
Data lines (pins I/OUC, AUX1UC AND AUX2UC with 10 kΩ Pull-up resistor connected
to VDD internally (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted.Typical
values are to TA = 25°C)
Parameter
VOH
High Level Output Voltage
VOL
Low Level Output Voltage
VIH
Test Conditions
Min.
IOH = - 40µA
0.75 VDD
No Load
0.9 VDD
Max.
VDD
Unit
V
0
300
mV
High Level Input Voltage
0.7 VDD
VDD
V
VIL
Low Level Input Voltage
0
0.3 VDD
V
|ILIH|
Input Leakage Current
when high
VIH = VDD
10
µA
IIL
Input Leakage Current
when low
VIL = 0
600
µA
13
KΩ
RPU(INT)
Internal pull-up resistance to
VDD
IOL = 1 mA
Typ.
9
11
9/26
Electrical characteristics
ST8004
Data lines (pins I/OUC, AUX1UC AND AUX2UC with 10 kΩ Pull-up resistor connected
to VDD internally (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted.Typical
values are to TA = 25°C)
Table 10.
Symbol
Parameter
Test Conditions
tT(DI)
Input transition times
From VIL max to VIH min
tT(DO)
Output transition times
CO = 30 pF, no DC load; 10% to
90% from 0 to VDD
CI
Symbol
fOSC(INT)
Table 12.
Symbol
Max.
Unit
1
µs
0.1
µs
10
pF
Internal oscillator (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted.Typical
values are to TA = 25°C)
Parameter
Test Conditions
Min.
Frequency of internal oscillator
Typ.
2.2
Max.
Unit
3.2
MHz
Reset output to the card (pin RST) (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless
otherwise noted. Typical values are to Ta = 25°C)
Parameter
Test Conditions
Min.
Typ.
Max.
IO = 1 mA
0
0.3
No Load
0
0.1
VO(INACTIVE)
Output Voltage in Inactive
Mode
tD(RSTIN-RST)
Delay between pins RSTN
and RST
RST Enable
VOL
Low Level Output Voltage
IOL = 200 µA
VOH
High Level Output Voltage
IOH = -200 µA
tR, tF
Rise and fall time
(10% to 90% of VCC)
CO = 250 pF
Symbol
Typ.
Input capacitance
Table 11.
Table 13.
Min.
Unit
V
2
µs
0
0.2
V
0.9 VCC
VCC
V
0.1
µs
Clock output to the card (pin CLK) (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless
otherwise noted. Typical values are to TA = 25°C)
Parameter
VO(INACTIVE) Output Voltage in Inactive Mode
Test Conditions
Min.
Typ.
Max.
IO = 1 mA
0
0.3
No Load
0
0.1
Unit
V
VOL
Low Level Output Voltage
IOL = 200 µA
0
0.3
V
VOH
High Level Output Voltage
IOH = -200 µA
0.9 VCC
VCC
V
tR, tF
Rise and fall time
(10% to 90% of VCC)
CO = 35 pF (Note 2)
8
ns
Duty cycle factor (except for
fXTALS) (See Note 4)
CO = 35 pF (Note 2)
45
55
%
Slew Rate (rise and fall edge)
CO = 35 pF
0.2
d
SR
10/26
V/ns
ST8004
Electrical characteristics
Table 14.
Symbol
Logic inputs (pins CLKDIV1, CLKDIV2, PRES, PRES, CMDVCC, RSTIN and 5V/3V,
VTHSEL (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted. Typical values
are to Ta = 25°C) (Note 3)
Parameter
Test Conditions
Min.
Typ.
Max.
Unit
VIL
Low Level Input Voltage
0
0.3 VDD
V
VIH
High Level Input Voltage
0.7 VDD
VDD
V
|ILIH|
Input Leakage Current
when high
VIL = 0 to VDD
5
µA
|ILIL|
Input Leakage Current
when low
VIH = 0 to VDD
5
µA
Table 15.
Symbol
OFF outputs (pin OFF is an open drain with an internal 20 kΩ Pull-up resistor to VDD);
(see note 5) (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted. Typical values
are to TA = 25°C)
Parameter
Test Conditions
VOL
Low Level Output Voltage
IOL = 2 mA
VOH
High Level Output Voltage
IOH = -15 µA
Table 16.
Symbol
ICC(SD)
Table 17.
Symbol
Typ.
Max.
Unit
0.4
V
0.75 VDD
V
Protection (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted. Typical values
are to TA = 25°C)
Parameter
Test Conditions
Min.
Shut down temperature
TSD
Typ.
Max.
135
Shut down current at VCC
Unit
°C
150
mA
Timing (VDD = 3.3V, VDDP = 5V, fXTAL = 10MHz, unless otherwise noted. Typical values are
to TA = 25°C)
Parameter
Test Conditions
Min.
(See Figure 5.)
tACT
Activation sequence duration
tDE
Deactivation sequence duration (See Figure 6.)
t3
Start of the windows to send
CLK to card
(See Figure 5.)
t5
End of the windows to send
CLK to card
(See Figure 5.)
Note:
Min.
60
Typ.
Max.
Unit
180
220
µs
80
100
µs
130
µs
140
1
To meet these specifications VCC should be decoupled to CGND using two ceramic
multiplier capacitors of low ESR with values of 100nF.
2
The transition time and duty cycle factor are shown in Figure 9.; d = t1/(t1+t2).
3
PRES and CMDVCC are active Low; RSTIN and PRES are active High
4
Referred to the paragraph "CLOCK CIRCUITRY"
5
See paragraph "FAULT DETECTION".
µs
11/26
Waveforms
5
12/26
ST8004
Waveforms
Figure 3.
Alarm as a function of VDD (tW = 10 ms), VTHSEL = VDD or floating
Figure 4.
Alarm as a function of VDD (tW = 10 ms), VTHSEL = GND
ST8004
Waveforms
Figure 5.
Activation sequence
Figure 6.
Deactivation sequence
13/26
Waveforms
14/26
ST8004
Figure 7.
Behavior of OFF, CMDVCC, PRES and VCC
Figure 8.
Emergency deactivation sequence
Figure 9.
Definition of output transition times
ST8004
6
Functional description
Functional description
Throughout this document it is assumed that the reader is familiar with iso7816 norm
terminology
6.1
Power supply
The supply pins for the IC are VDD and GND. VDD should be in the range of 2.7 to 6.5 V. All
interface signals with the microcontroller are referenced to VDD; therefore be sure the supply
voltage of the microcontroller is also at VDD. All card contacts remain inactive during
powering up or powering down. The sequencer is not activated until VDD reaches Vth2
+Vhys(th2) or Vth3 + Vhys(th3) when VTHSEL = GND. When VDD falls below Vth2 or Vth3, an
automatic deactivation of the contacts is performed. To generate a 5 V ±5% VCC supply to
the card, an integrated voltage doubler is incorporated. This step-up converter should be
separately supplied by VDDP and PGND (from 4.5 to 6.5 V). In order to satisfy the
VI(RIPPLE)(P-P) specifications, VDDP should be from 4.75V to 5.25V. Due to large transient
currents, the 2x100 nF capacitors of the step-up converter should have an ESR of less than
100 mΩ, and be located as near as possible to the IC. The supply voltages VDD and VDDP
may be applied to the IC in any time sequence. To get the correct deactivation of the card
VDDP is allowed to turn-off only when VDD is below the undervoltage threshold. If a voltage
between 7 and 9 V is available within the application, this voltage may be tied to pin VUP,
thus blocking the step-up converter. In this case, VDDP must be tied to VDD and the capacitor
between pins S1 and S2 may be omitted.
6.2
Voltage supervisor (for VTHSEL = VDD or floating)
This block surveys the VDD supply. A defined reset pulse of approximately 10 ms (tW) is
used internally for maintaining the IC in the inactive mode during powering up or powering
down of VDD (see Figure 3.). As long as VDD is less than Vth2 +Vhys(th2), the IC will remain
inactive whatever the levels on the command lines. This also lasts for the duration of tW after
VDD has reached a level higher than Vth2 +Vhys(th2).The system controller should not
attempt to start an activation sequence during this time. When VDD falls below Vth2, a
deactivation sequence of the contacts is performed.
6.3
Voltage supervisor (for VTHSEL = GND)
This block surveys the VDD supply. A defined reset pulse of approximately 10 ms (tW) is
used internally for maintaining the IC in the inactive mode during powering up or powering
down of VDD (see Figure 6.). If VDD is less than Vth3 during a time, longer than ∆THFIL (max
150µs), the IC will remain inactive whatever the levels on the command lines. The IC remain
inactive also for the duration of tw after VDD has reached a level higher than Vth3. The
system controller should not attempt to start an activation sequence during this time. When
VDD falls below Vth3 during time more than ∆THFIL, a deactivation sequence of the contacts
is performed.
15/26
Functional description
6.4
ST8004
Clock circuitry
The clock signal (CLK) to the card is either derived from a clock signal input on the pin
XTAL1 or from a crystal up to 26 MHz connected between pins XTAL1 and XTAL2.
The frequency may be chosen at fXTAL,1/2 fXTAL,1/4 fXTAL or 1/8 fXTAL via pins CLKDIV1 and
CLKDIV2 (see Table 18.). The frequency change is synchronous, which means that during
transition, no pulse is shorter than 45% of the smallest period and that the first and last clock
pulse around the change has the correct width.
In the case of fXTAL, the duty factors depend on the signal at XTAL1.
In order to reach a 45% to 55% duty factor on the pin CLK the input signal on XTAL1 should
have a duty factor of 48% to 52% and transition times of less than 5% of the input signal
period.If a crystal is used with fXTAL, the duty factor on pin CLK may be 45% to 55%
depending on the layout and on the crystal characteristics and frequency. In the other cases,
it is guaranteed between 45% and 55% of the period. The crystal oscillator runs as soon as
the IC is powered-up. If the crystal oscillator is used, or if the clock pulse on XTAL1 is
permanent, then the clock pulse will be applied to the card according to the timing diagram
of the activation sequence. If the signal applied to XTAL1 is controlled by the microcontroller, then the clock pulse will be applied to the card by the microcontroller after
completion of the activation sequence.
Table 18.
6.5
Clock circuitry
CLKDIV1
CLKDIV2
CLK
0
0
1/8 fXTAL
0
1
1/4 fXTAL
1
1
1/2 fXTAL
1
0
fXTAL
I/O Circuitry
The three data lines I/O, AUX1 and AUX2 are identical. The Idle state is realized by data
lines I/O and I/OUC being pulled HIGH via a 10k resistor (I/O to VCC and I/OUC to VDD). I/O
is referenced to VCC, and I/OUC to VDD, thus allowing operation with VCC ≠ VDD. The first
line on which a falling edge occurs becomes the master. An anti-latch circuit disables the
detection of falling edges on the other line, which then becomes the slave. After a time delay
td (edge) (approximately 200 ns), the N transistor on the slave line is turned on, thus
transmitting the logic 0 present on the master line.When the master line returns to logic 1,
the P transistor on the slave line is turned on during the time delay td (edge) and then both
lines return to their idle state. This active pull-up feature ensures fast LOW-to-HIGH
transitions; it is able to deliver more than 1 mA up to an output voltage of 0.9 VCC on a 80pF
load. At the end of the active pull-up pulse, the output voltage only depends on the internal
pull-up resistor, and on the load current. The maximum frequency on these lines is 1MHz.
16/26
ST8004
6.6
Functional description
Inactive state
After power-on reset, the circuit enters the inactive state. A minimum number of circuits are
active while waiting for the microcontroller to start a session.
6.7
●
All card contacts are inactive (approximately 200Ω to GND); I/OUC, AUX1UC and
AUX2UC are high impedance (10 kΩ pull-up resistor connected to VDD)
●
Voltage generators are stopped
●
XTAL oscillator is running
●
Voltage supervisor is active
Activation sequence
After power-on and, after the internal pulse width delay, the microcontroller may check the
presence of the card with the signal OFF (OFF = HIGH while CMDVCC is High means that
the card is present; OFF = LOW while CMDVCC is HIGH means that no card is present).
If the card is in the reader (which is the case if PRES or PRES is true), the microcontroller
may start a card session by pulling CMDVCC LOW. The following sequence then occurs (see
Figure 5.):
●
CMDVCC is pulled LOW (t0)
●
The voltage doubler is started (t1~t0)
●
VCC rises from 0 to 5 or 3V with a controlled slope (t2 = t1 +½3T)(I/O, AUX1 and AUX2
follow VCC with a slight delay); T is 64 times the period of the internal oscillator,
approximately 25µs
●
I/O, AUX1 and AUX2 are enabled (t3 = t1 +4T)
●
CLK is applied to the C3 contact (t4)
●
RST is enabled (t5 = t1 +7T).
The clock may be applied to the card in the following way: set RSTIN High before setting
CMDVCC Low, and reset it Low between t3 and t5; CLK will start at this moment. RST will
remain LOW until t5, where RST is enabled to be the copy of RSTIN. After t5, RSTIN has no
further action on CLK. This is to allow a precise count of CLK pulses before toggling RST. If
this feature is not needed, then CMDVCC may be set LOW with RSTIN Low. In this case,
CLK will start at t3, and after t5, RSTIN may be set High in order to get the Answer To
Request (ATR) from the card.
6.8
Active state
When the activation sequence is completed, the ST8004 will be in the active state. Data are
exchanged between the card and the microcontroller via the I/O lines. The ST8004 is
designed for cards without VPP (this is the voltage required to program or erase the internal
non-volatile memory).
Depending on the layout and on the application test conditions (for example with an
additional 1pF cross capacitance between C2/C3 and C2/C7) it is possible that C2 is
polluted with high frequency noise from C3. In this case, it will be necessary to connect a
220pF capacitor between C2 and CGND.
17/26
Functional description
ST8004
It is recommended to:
1.
Keep track C3 as far as possible from other tracks
2.
Have straight connection between CGND and C5 (the 2 capacitors on C1 should be
connected to this ground track)
3.
Avoid ground loops between CGND,PGND and GND
4.
Decoupled VDDP and VDD separately; if the 2 supplies are the same in the application,
then they should be connected in star on the main track.
With all these layout precautions, noise should be at an acceptable level, and jitter on C3
should be less than 100ps.
6.9
Deactivation sequence
When a session is completed, the microcontroller sets the CMDVCC line to the HIGH state.
The circuit then executes an automatic deactivation sequence by counting the sequencer
back and ends in the inactive state (see Figure 6.):
6.10
●
RST goes LOW →(t11 = t10)
●
CLK is stopped LOW →(t12 = t11 +½T) where T is approximately 25 µs
●
I/O, AUX1 and AUX2 are output into high-impedance state →(t13 = t11 +T)(10 kΩ pullup resistor connected to VCC)
●
VCC falls to zero →(t14 = t11 +½3T); the deactivation sequence is completed when VCC
reaches its inactive state
●
VUP falls to zero →(t15 = t11 +5T) and all card contacts become low-impedance to
GND;
●
I/OUC, AUX1UC and AUX2UC remain pulled up to VDD via a 10 kΩ resistor.
Fault detection
The following fault conditions are monitored by the circuit:
Short-circuit or high current on VCC
Removing card during transaction
VDD dropping
Overheating.
There are two different cases (Figure 7.)
18/26
1.
CMDVCC HIGH: (outside a card session) then, OFF is LOW if the card is not in the
reader, and HIGH if the card is in the reader. A supply voltage drop on VDD is detected
by the supply supervisor, which generates an internal power-on reset pulse, but does
not act upon OFF. The card is not powered-up, so no short-circuit or overheating is
detected.
2.
CMDVCC LOW: (within a card session) then, OFF falls LOW if the card is extracted, or if
a short-circuit has occurred on VCC, or if the temperature on the IC has become too
high. As soon as the fault is detected, an emergency deactivation is automatically
performed (see Figure 8.). When the system controller sets CMDVCC back to HIGH, it
may sense OFF again in order to distinguish between a hardware problem or a card
extraction. If a supply voltage drop on VDD is detected while the card is activated, then
an emergency deactivation will be performed and OFF goes LOW.
ST8004
Functional description
When OFF level falls low, the system controller must wait not less than 160µs before setting
high again the CMDVCC command.
Depending on the type of card presence switch within the connector (normally closed or
normal open), and on the mechanical characteristics of the switch, a bouncing may occur on
presence signals at card insertion or withdrawal. There is no debounce feature in the device,
so the software has to take it into account; however, the detection of card take off during
active phase, which initiates an automatic deactivation sequence is done on the first
True/False transition on PRES or PRES, and is memorized until the system controller sets
CMDVCC High. So, the software may take some time waiting for presence switches to be
stabilized without causing any delay on the necessary fast and normalized deactivation
sequence.
19/26
Functional description
Figure 10. ST8004 Sequencer
20/26
ST8004
ST8004
Functional description
Figure 11. Card control sequencer
CARD CONTROL
CM
CC
=1
CHANGE_OFF
DV
OFF = PRES or (not PRES_NEG)
que
nc
e
CM
ctiv
e
enc
equ
nS
atio
Ac
tiv
ce
en
qu
Se
atio
n Se
n
tio
iva
Dea
=1
DV
CC
act
De
d
an
er
ad low
re
he lled
n t pu
’t i is
isn CC
V
rd
Ca CMD
CMDVCC=0
OFF_temp = 0
CMDVCC=0
OFF_temp = 1
LOCK_OFF_HIGH
LOCK_OFF_LOW
OFF=1
OFF=0
Removing Card
after the
Activation Sequence
CMDVCC=0
OFF_temp = 0
OFF_temp = PRES or (not PRES_NEG)
21/26
Package mechanical data
7
ST8004
Package mechanical data
In order to meet environmental requirements, ST offers these devices in ECOPACK®
packages. These packages have a Lead-free second level interconnect. The category of
second level interconnect is marked on the package and on the inner box label, in
compliance with JEDEC Standard JESD97. The maximum ratings related to soldering
conditions are also marked on the inner box label. ECOPACK is an ST trademark.
ECOPACK specifications are available at: www.st.com
22/26
ST8004
Package mechanical data
SO-28 MECHANICAL DATA
mm.
inch
DIM.
MIN.
TYP
A
MAX.
MIN.
TYP.
2.65
MAX.
0.104
a1
0.1
0.3
0.004
0.012
b
0.35
0.49
0.014
0.019
b1
0.23
0.32
0.009
0.012
C
0.5
0.020
c1
45˚ (typ.)
D
17.70
18.10
0.697
0.713
E
10.00
10.65
0.393
0.419
e
1.27
0.050
e3
16.51
0.650
F
7.40
7.60
0.291
0.300
L
0.50
1.27
0.020
0.050
S
8 ˚ (max.)
0016023
23/26
Package mechanical data
ST8004
Tape & Reel SO-28 MECHANICAL DATA
mm.
inch
DIM.
MIN.
A
MAX.
MIN.
330
13.2
TYP.
MAX.
12.992
C
12.8
D
20.2
0.795
N
60
2.362
T
24/26
TYP
0.504
30.4
0.519
1.197
Ao
10.8
11.0
0.425
0.433
Bo
18.2
18.4
0.716
0.724
Ko
2.9
3.1
0.114
0.122
Po
3.9
4.1
0.153
0.161
P
11.9
12.1
0.468
0.476
ST8004
Revision history
8
Revision history
Table 19.
Revision history
Date
Revision
Changes
18-Mar-2004
5
Pag. 10, fig. 4, RSTIN ==> CLK.
04-May-2006
6
Order code has been updated and new template.
31-Jan-2007
7
Change values Vth3 Min. and Max. on Table 5.
25/26
ST8004
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZE REPRESENTATIVE OF ST, ST PRODUCTS ARE NOT DESIGNED,
AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS,
NOR IN PRODUCTS OR SYSTEMS, WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR
SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2007 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
26/26