ST ST7GEME4 User Manual

Full-speed USB MCU with smartcard firmware
Features
Clock, reset and supply management
– Low voltage reset – Halt power saving mode – PLL for generating 48 MHz USB clock
using a 4 MHz crystal
USB (Universal Serial Bus) interface
– USB 2.0 compliant – CCID V1.0 – Full speed, hubless – Bus-powered, low consumption
Serial RS232 interface
– Transmission rate: 9.6 Kbps to 115 Kbps – Format: 8-bit, no parity – Auto baud rate – CCID V1.0 on ser ial TTL link
ISO 7816-3 UART interface
– 4 Mhz clock generation – Synchronous/Asynchronous protocols
(T=0, T=1) – Automatic retry on parity error – Programmable baud rate from 372 to
11.625 clock pulses (D=32/F=372)
– Card insertion/removal detection
Smartcard power supply
– Selectable card V

Table 1. Device summary

Features
: 1.8 V, 3 V, and 5 V
CC
ST7GEME4
and EMV/non-EMV interface
24
1
VFQFPN24
– Internal Step-up converter for 5V supplied
Smartcards (with a cu rr en t of up to 55mA) using only two external components.
– Programmable smartcard internal voltage
regulator (1.8 to 3.0 V) with current overload protection and 4 kV ESD protection (Human Body Model) for all smartcard interface I/Os
Development tools
– Application note on PCB recommendations
and component bill of materials
– Full hardware/software kit for pe rformance
evaluation
Description
The ST7GEME4 is an 8-bit microcontroller dedicated to smartcard reading applications. It has been developed to be the core of smartcard readers communicating through a serial or USB link. It is pre-programmed using Gemplus software, and offers a single integrated circuit solution with very few external components.
Order codes
ST7GEME4M1 ST7GEME4U1
SO24(9U)
Program memory 16K ROM User RAM + USB data buffer (bytes) 512 + 256 Peripherals USB Full-Speed (7 Ep), TBU, Watchdog timer, ISO 7816-3 Interface Operating Supply 4.0 to 5.5V Package SO24 VFQFPN24 CPU Frequency 4 or 8 MHz Operating temperature 0 to +70 °C
September 2007 Rev 2.0 1/28
www.st.com
1
Contents ST7GEME4
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 ST7GEME4 implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1 Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Smartcard interface features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3 EMV versus PC/SC-ISO mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.1 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2 Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 Supply and reset characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4 Clock and timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4.1 General timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4.2 Crystal resonator oscillators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.5 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.6 Smartcard supply supervisor electrical characteristics . . . . . . . . . . . . . . 19
4.7 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.7.1 Functional EMS (electromagnetic susceptibility) . . . . . . . . . . . . . . . . . . 21
4.7.2 Electromagnetic interference (EMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.7.3 Absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . 23
4.8 Communication interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 24
5 Package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.1 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2/28
ST7GEME4 List of tables
List of tables
Table 1. Device summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 2. Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 3. Technical features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 4. Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 5. Thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 6. General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 7. Current injection on I/O port and control pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 8. Current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 9. I/O port pins characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 10. LED pins characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 11. Low voltage detector and supervisor characteristics (LVDS) . . . . . . . . . . . . . . . . . . . . . . . 16
Table 12. General timings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 13. External clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 14. Crystal resonator oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 15. Typical crystal resonator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 16. Recommended values for 4 MHz crystal resonator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 17. RAM and hardware registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 18. Smartcard supply supervisor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 19. EMS characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 20. EMI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 21. Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 22. Electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 23. USB DC electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 24. USB full speed electrical characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 25. 24-lead very thin fine pitch quad flat no-lead 5x5mm,0.65mm pitch, mechanical data. . . . 25
Table 26. 24-pin plastic small outline package- 300-mil width, mechanical data . . . . . . . . . . . . . . . . 26
Table 27. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3/28
List of figures ST7GEME4
List of figures
Figure 1. ST7GEME4 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 2. 24-lead VFQFPN package pinout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 3. 24-pin SO package pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 4. Smartcard interface reference application - 24-pin SO package . . . . . . . . . . . . . . . . . . . . . 9
Figure 5. Typical application with an external clock source. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 6. Typical application with a crystal resonator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 7. USB data signal rise and fall time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 8. 24-lead very thin fine pitch quad flat no-lead 5x5 mm 0.65 mm pitch, package outline . . . 25
Figure 9. 24-pin plastic small outline package- 300-mil width, package outline. . . . . . . . . . . . . . . . . 26
4/28
ST7GEME4 Introduction

1 Introduction

The ST7GEME4 device is a member of the ST7 microcont roller family designed for USB applications. All devices are based on a common industry-standard 8-bit core, featuring an enhanced instruction set.
The ST7GEME4 is factory-programmed ROM devices and as such ar e not reprogrammable.
It operates at a 4 MHz external oscillator frequency. Under software control, all devices can be placed in Halt mode, reducing power
consumption when the application is in idle or stand-by state. The enhanced instruction set and addressing modes of the ST7 offer both power and
flexibility to software developers, enabling the design of highly efficient and compact application code. In addition to standard 8-bit data management, all ST7 microcontrollers feature true bit manipulation, 8x8 unsigned multiplication and indirect addressing modes.
The ST7GEME4 includes an ST7 Core, up to 16 Kbytes of program memory, up to 512 bytes of user RAM and the following on-chip peripherals:
USB full speed interface with 7 endpoints, programmable in/out configuration and
embedded 3.3 V voltage regulator and transceivers (no external components are needed).
ISO 7816-3 UART interface with programmable baud rate from 372 clock pulses up to
11.625 clock pulses
Smartcard supply block able to provide programmable supply voltage and I/O voltage
levels to the smartcards
Low voltage reset ensuring proper power-on or power-off of the device (selectable by
option)
8-bit timer (TBU)
5/28
Introduction ST7GEME4

Figure 1. ST7GEME4 block diagram

OSCIN
OSCOUT
USBDP USBDM
USBVCC
PA6
V
4MHz
OSCILLATOR
PLL
48 MHz
PP
DIVIDER
USB
DATA
BUFFER
(256 bytes)
USB
8-BIT TIMER
CONTROL
8-BIT CORE
ALU
LVD
RAM
(512 Bytes)
PROGRAM
MEMORY
(16K Bytes)
8 MHz or 4 MHz
ADDRESS AND DATA BUS
PORT A
LED
ISO 7816 UART
SUPPLY
MANAGER
DC/DC
CONVERTER
3V/1.8V Vreg
PA[1:0]
LED0
DIODE SELF CRDVCC
CRDDET CRDIO CRDC4 CRDC8 CRDRST CRDCLK
6/28
ST7GEME4 Pin description

2 Pin description

Figure 2. 24-lead VFQFPN package pinout

GND
GNDA
DIODE
SELF
VDD
VDDA
2324
7 8 11 12
CRDVCC CRDRST CRDCLK
C4
CRDIO
C8
1
2
3
4
5
6
CRDDET
ICCDATA/WAKUP2/

Figure 3. 24-pin SO package pinout

DIODE
GNDA
GND
CRDVCC
CRDRST CRDCLK
CRDIO
CRDDET
ICCDATA/WAKUP2/
ICCCLK/WAKUP2/P
910
NC
ICCCLK/WAKUP2
1 2 3 4 5 6 7
C4
8 9
C8
10 11 12
OSCIN
19202122
18
17
16
15
14
13
OSCOUT
24 23 22 21 20 19 18 17 16 15 14 13
USBV DP DM LED0 PA6
VPP
SELF
V
DD
V
DDA
USBVcc DP DM LED0 PA6
V
PP
OSCOUT OSCIN NC
CC
7/28
Pin description ST7GEME4
Legend / Abbreviations
Type: I = input, O = output, S = supply
In/Output level: CT = CMOS 0.3VDD/0.7VDD with input trigger
Output level: HS = 10mA high sink (on N-buffer only)
Port and control configuration:
Input: float = floating, wpu = weak pull-up, int = interrupt, ana = analog – Output: OD = open drain, PP = push-pull
Table 2. Pin description
Pin number
Pin name
SO24
VFQFPN24
Type
Level
Input
supplied
Output
CARD
V
Port / Control Input Output
int
wpu
OD
Main
function
(after reset)
PP
2 5 CRDRST O CTX X Smartcard reset 3 6 CRDCLK O C 47C4 O C 5 8 CRDIO I/O C 69C8 O C
7 10 CRDDET I
811
912
PA0/WAKUP2/ ICCDATA
PA1/WAKUP2/ ICCCLK
11 14 OSCIN
C
T
I/O C
I/O C
C
T
12 15 OSCOUT C 13 16 V
PP
14 17 PA6 I
S Must be held low in normal operating mode.
C
T
X X Smartcard clock
T
X X Smartcard C4
T
X X X Smartcard I/O
T
X X Smartcard C8
T
X Smartcard detection
T
T
XXX XPort A0
XXX XPort A1
Input/output oscillator pins. These pins connect a 4 MHz parallel-resonant crystal, or
T
an external source to the on-chip oscillator.
PA6
Interrupt, In-circuit communication data input
Interrupt, In-circuit communication clock input
15 18 LED0 O HS X Constant current output 16 19 DM I/O C 17 20 DP I/O C
T T
18 21 USBVCC O C 19 22 V 20 23 V
DDA DD
S Power Supply voltage 4-5.5 V S Power Supply voltage 4-5.5 V
21 24 SELF O C
T
T
USB Data Minus line USB Data Plus line
3.3 V output for USB
An external inductance must be connected to these pins for the step up converter
Alternate function
22 1 DIODE S C
T
8/28
An external diode must be connected to this pin for the step up converter
ST7GEME4 Pin description
Table 2. Pin description (continued)
Pin number
Pin name
SO24
VFQFPN24
Type
Level
Input
Output
supplied
CARD
V
Port / Control
Input Output
int
wpu
OD
Main
function
(after reset)
PP
23 2 GNDA S
Ground
24 3 GND S
1 4 CDRVCC O C
X Smartcard supply pin
T

Figure 4. Smartcard interface reference application - 24-pin SO package

V
DD
C1
L1
D1
C4
C3
C5
C6
DIODE GNDA GND CRDVCC CRDRST CRDCLK C4
CRDIO C8
CRDDET PA0 PA1
SELF
V
DD
V
DDA
USBVcc
DP
DM LED0 PA6
V
PP
OSCOUT
OSCIN
NC
R
LED
V
DD
C2
D+ D-
V
DD
C
L1
C
L2
Alternate function
1. Mandatory values for the external components: C1 = 4.7 µF; C2 = 100 nF. C1 and C2 must be located close to the chip (refer to Section 4.4.2.). C3 = 1 nF; C4 = 4.7 µF ESR 0.5 Ω. C5 : 470 pF; C6 :
100 pF; R : 1.5kΩ; L1 : 10 µH, 2 Ω; Crystal 4.0 MHz; Impedance max100 D1: BAT42 SHOTTKY.
9/28
Loading...
+ 19 hidden pages