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 numberTemperature rangePackagePackaging
ST8004CDR0 to 85 °CSO-28 (Tape & Reel)1000 parts per reel
Table 15.OFF outputs (pin OFF is an open drain with an internal 20 kΩ Pull-up resistor to VDD);
(see note 5) (V
are to T
SymbolParameterTest ConditionsMin.Typ.Max.Unit
V
V
Low Level Output VoltageIOL = 2 mA0.4V
OL
High Level Output VoltageIOH = -15 µA0.75 V
OH
= 25°C)
A
= 3.3V, V
DD
DDP
= 5V, f
= 10MHz, unless otherwise noted. Typical values
XTAL
DD
V
Table 16.Protection (VDD = 3.3V, V
are to T
SymbolParameterTest ConditionsMin.Typ.Max.Unit
T
I
CC(SD)
Shut down temperature135°C
SD
Shut down current at V
= 25°C)
A
CC
DDP
= 5V, f
= 10MHz, unless otherwise noted. Typical values
XTAL
150mA
Table 17.Timing (VDD = 3.3V, V
to T
= 25°C)
A
SymbolParameterTest ConditionsMin.Typ.Max.Unit
DE
t
t
Activation sequence duration(See
Deactivation sequence duration (See
Start of the windows to send
3
CLK to card
End of the windows to send
5
CLK to card
t
ACT
t
DDP
= 5V, f
(See
(See
= 10MHz, unless otherwise noted. Typical values are
XTAL
Figure 5.
Figure 6.
Figure 5.
Figure 5.
)180220µs
)6080100µs
)130µs
)140µs
Note:1 To meet these specifications VCC should be decoupled to CGND using two ceramic
multiplier capacitors of low ESR with values of 100nF.
2The transition time and duty cycle factor are shown in
3 PRES
and CMDVCC are active Low; RSTIN and PRES are active High
Figure 9.
; d = t1/(t1+t2).
4 Referred to the paragraph "CLOCK CIRCUITRY"
5 See paragraph "FAULT DETECTION".
11/26
WaveformsST8004
5 Waveforms
Figure 3.Alarm as a function of VDD (tW = 10 ms), V
= VDD or floating
THSEL
Figure 4.Alarm as a function of V
(tW = 10 ms), V
DD
THSEL
= GND
12/26
ST8004Waveforms
Figure 5.Activation sequence
Figure 6.Deactivation sequence
13/26
WaveformsST8004
Figure 7.Behavior of OFF, CMDVCC, PRES and VCC
Figure 8.Emergency deactivation sequence
Figure 9.Definition of output transition times
14/26
ST8004Functional description
6 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 V
voltage of the microcontroller is also at V
. All card contacts remain inactive during
DD
powering up or powering down. The sequencer is not activated until V
+V
hys(th2)
or V
th3
+ V
hys(th3)
when V
= GND. When VDD falls below V
THSEL
automatic deactivation of the contacts is performed. To generate a 5 V ±5% V
the card, an integrated voltage doubler is incorporated. This step-up converter should be
separately supplied by V
V
I(RIPPLE)(P-P)
specifications, V
and PGND (from 4.5 to 6.5 V). In order to satisfy the
DDP
should be from 4.75V to 5.25V. Due to large transient
DDP
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 V
may be applied to the IC in any time sequence. To get the correct deactivation of the card
V
is allowed to turn-off only when VDD is below the undervoltage threshold. If a voltage
DDP
between 7 and 9 V is available within the application, this voltage may be tied to pin V
thus blocking the step-up converter. In this case, V
must be tied to VDD and the capacitor
DDP
between pins S1 and S2 may be omitted.
; therefore be sure the supply
DD
reaches V
DD
th2
or V
th3
supply to
CC
and V
DD
th2
, an
DDP
UP
,
6.2 Voltage supervisor (for V
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 V
DD
(see
Figure 3.
). As long as VDD is less than V
inactive whatever the levels on the command lines. This also lasts for the duration of t
V
has reached a level higher than V
DD
attempt to start an activation sequence during this time. When V
deactivation sequence of the contacts is performed.
6.3 Voltage supervisor (for V
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 V
150µs), the IC will remain inactive whatever the levels on the command lines. The IC remain
inactive also for the duration of t
system controller should not attempt to start an activation sequence during this time. When
V
falls below V
DD
is performed.
DD
(see
Figure 6.
th3
). If VDD is less than V
after VDD has reached a level higher than V
w
during time more than ∆T
THSEL
+V
th2
THSEL
= VDD or floating)
+V
th2
.The system controller should not
hys(th2)
, the IC will remain
hys(th2)
falls below V
DD
= GND)
during a time, longer than ∆T
th3
th3
, a deactivation sequence of the contacts
HFIL
, a
th2
HFIL
. The
after
W
(max
15/26
Functional descriptionST8004
6.4 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 f
CLKDIV2 (see
Table 18.
). The frequency change is synchronous, which means that during
XTAL
,1/2 f
XTAL
,1/4 f
XTAL
or 1/8 f
via pins CLKDIV1 and
XTAL
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 f
, the duty factors depend on the signal at XTAL1.
XTAL
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 f
, the duty factor on pin CLK may be 45% to 55%
XTAL
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.Clock circuitry
CLKDIV1CLKDIV2CLK
001/8 f
011/4 f
111/2 f
10f
XTAL
XTAL
XTAL
XTAL
6.5 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 V
is referenced to V
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
t
(edge) (approximately 200 ns), the N transistor on the slave line is turned on, thus
d
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 t
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 V
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
, and I/OUC to VDD, thus allowing operation with VCC ≠VDD. The first
CC
and I/OUC to VDD). I/O
CC
(edge) and then both
d
on a 80pF
CC
ST8004Functional description
6.6 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.
●All card contacts are inactive (approximately 200Ω to GND); I/OUC, AUX1UC and
AUX2UC are high impedance (10 kΩ pull-up resistor connected to V
●Voltage generators are stopped
●XTAL oscillator is running
●Voltage supervisor is active
DD
)
6.7 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
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
may start a card session by pulling CMDV
Figure 5.
●CMDV
●The voltage doubler is started (t1~t0)
●V
):
is pulled LOW (t0)
CC
rises from 0 to 5 or 3V with a controlled slope (t2 = t1 +½3T)(I/O, AUX1 and AUX2
CC
follow V
with a slight delay); T is 64 times the period of the internal oscillator,
CC
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).
(OFF = HIGH while CMDVCC is High means that
or PRES is true), the microcontroller
LOW. The following sequence then occurs (see
CC
The clock may be applied to the card in the following way: set RSTIN High before setting
CMDV
Low, and reset it Low between t3 and t5; CLK will start at this moment. RST will
CC
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 CMDV
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 V
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.
may be set LOW with RSTIN Low. In this case,
CC
(this is the voltage required to program or erase the internal
PP
17/26
Functional descriptionST8004
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 V
and VDD separately; if the 2 supplies are the same in the application,
DDP
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
●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Ω pull-
up resistor connected to V
●V
falls to zero → (t14 = t11 +½3T); the deactivation sequence is completed when VCC
CC
CC
reaches its inactive state
●V
falls to zero → (t15 = t11 +5T) and all card contacts become low-impedance to
UP
GND;
●I/OUC, AUX1UC and AUX2UC remain pulled up to V
Figure 6.
):
)
via a 10 kΩ resistor.
DD
6.10 Fault detection
The following fault conditions are monitored by the circuit:
Short-circuit or high current on V
Removing card during transaction
V
dropping
DD
Overheating.
There are two different cases (
1.CMDV
reader, and HIGH if the card is in the reader. A supply voltage drop on V
by the supply supervisor, which generates an internal power-on reset pulse, but does
not act upon OFF
detected.
2. CMDV
a short-circuit has occurred on V
high. As soon as the fault is detected, an emergency deactivation is automatically
performed (see
may sense OFF
extraction. If a supply voltage drop on V
an emergency deactivation will be performed and OFF
HIGH: (outside a card session) then, OFF is LOW if the card is not in the
CC
LOW: (within a card session) then, OFF falls LOW if the card is extracted, or if
CC
CC
Figure 7.
)
is detected
DD
. The card is not powered-up, so no short-circuit or overheating is
, or if the temperature on the IC has become too
CC
Figure 8.
). When the system controller sets CMDVCC back to HIGH, it
again in order to distinguish between a hardware problem or a card
is detected while the card is activated, then
DD
goes LOW.
18/26
ST8004Functional description
When OFF level falls low, the system controller must wait not less than 160µs before setting
high again the CMDV
command.
CC
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
CMDV
High. So, the software may take some time waiting for presence switches to be
CC
or PRES, and is memorized until the system controller sets
stabilized without causing any delay on the necessary fast and normalized deactivation
sequence.
19/26
Functional descriptionST8004
Figure 10. ST8004 Sequencer
20/26
ST8004Functional description
Figure 11. Card control sequencer
CARDCONTROL
1
=
CMDVCC
CMDVCC=0
Deactivation Sequence
OFF_temp = 1
LOCK_OFF_HIGH
OFF=1
CHANGE_OFF
OFF = PRES or (not PRES_NEG)
ctivation Sequence
A
Removing Card
after the
Activation Sequence
Card isn’t in t
CM
DVCC is pulled low
OFF_temp = 0
he re
ader and
CMDVCC=0
LOCK_OFF_L
OFF=0
D
ea
ct
ivation S
OW
CMDVCC=1
eq
uence
CMDVCC=0
OFF_temp = 0
OFF_temp = PRES or (not PRES_NEG)
21/26
Package mechanical dataST8004
7 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
ST8004Package mechanical data
SO-28 MECHANICAL DATA
DIM.
MIN.TYPMAX.MIN.TYP.MAX.
A2.650.104
a10.10.30.0040.012
b0.350.490.0140.019
b10.230.320.0090.012
C0.50.020
c145˚ (typ.)
D17.7018.100.6970.713
E10.0010.650.3930.419
e1.270.050
e316.510.650
F7.407.600.2910.300
L0.501.270.0200.050
S˚ (max.)
mm.inch
8
0016023
23/26
Package mechanical dataST8004
Tape & Reel SO-28 MECHANICAL DATA
mm.inch
DIM.
MIN.TYPMAX.MIN.TYP.MAX.
A33012.992
C12.813.20.5040.519
D20.20.795
N602.362
T30.41.197
Ao10.811.00.4250.433
Bo18.218.40.7160.724
Ko2.93.10.1140.122
Po3.94.10.1530.161
P11.912.10.4680.476
24/26
ST8004Revision history
8 Revision history
Table 19.Revision history
DateRevisionChanges
18-Mar-20045Pag. 10, fig. 4, RSTIN ==> CLK.
04-May-20066Order code has been updated and new template.
31-Jan-20077Change values V
Min. and Max. on
th3
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.