ST ST7GEME4 User Manual

ST7GEME4

Full-speed USB MCU with smartcard firmware and EMV/non-EMV interface

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 serial 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 VCC: 1.8 V, 3 V, and 5 V

Table 1. Device summary

24

1

VFQFPN24 SO24(9U)

Internal Step-up converter for 5V supplied Smartcards (with a current 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 performance 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.

Features

 

Order codes

 

 

 

ST7GEME4M1

 

ST7GEME4U1

 

 

 

 

 

 

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.5 V

 

 

 

 

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

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 microcontroller 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 are 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

ST ST7GEME4 User Manual

Introduction

ST7GEME4

 

 

Figure 1. ST7GEME4 block diagram

OSCIN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4MHz

 

 

 

 

 

 

 

 

 

 

PA[1:0]

OSCOUT

 

 

 

 

 

OSCILLATOR

 

 

 

PORT A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLL

 

 

 

 

 

 

 

 

 

48 MHz

 

 

8 MHz

 

DIVIDER

 

 

 

 

 

or 4 MHz

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

USB

DATA

BUFFER (256 bytes)

USBDP

USBDM USB USBVCC

8-BIT TIMER

BUS DATA AND ADDRESS

LED

 

 

 

 

 

LED0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ISO 7816 UART

SUPPLY

MANAGER

PA6

CONTROL

 

DIODE

 

 

 

 

DC/DC

SELF

VPP

8-BIT CORE

CRDVCC

CONVERTER

 

ALU

CRDDET

 

 

 

 

LVD

 

CRDIO

 

RAM

 

CRDC4

 

 

CRDC8

 

(512 Bytes)

 

 

PROGRAM

3V/1.8V Vreg

CRDRST

 

 

 

 

 

 

MEMORY

 

CRDCLK

 

(16K Bytes)

 

 

6/28

ST7GEME4

Pin description

 

 

2 Pin description

Figure 2. 24-lead VFQFPN package pinout

 

GND

GNDA

DIODE

SELF

VDD

VDDA

 

 

 

23

22

21

20

19

 

 

24

 

CRDVCC

1

 

 

 

 

18

USBVCC

CRDRST

2

 

 

 

 

17

DP

CRDCLK

3

 

 

 

 

16

DM

C4

4

 

 

 

 

15

LED0

CRDIO

5

 

 

 

 

14

PA6

C8

6

 

 

 

 

13

VPP

 

7

8

9

10

11

12

 

 

CRDDET

ICCDATA/WAKUP2/

ICCCLK/WAKUP2

NC

OSCIN

OSCOUT

 

 

 

 

 

 

 

 

 

 

 

Figure 3. 24-pin SO package pinout

 

 

 

 

 

DIODE

1

24

 

SELF

 

GNDA

2

23

 

VDD

 

 

GND

3

22

 

VDDA

 

 

CRDVCC

4

21

 

USBVcc

 

 

CRDRST

5

20

 

DP

 

 

CRDCLK

6

19

 

DM

 

 

C4

7

18

 

LED0

 

 

CRDIO

8

17

 

PA6

 

 

C8

9

16

 

VPP

 

 

CRDDET

10

15

 

OSCOUT

 

 

ICCDATA/WAKUP2/

11

14

 

OSCIN

 

 

ICCCLK/WAKUP2/P

12

13

 

NC

 

 

 

 

 

 

 

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

 

Level

supplied

Port / Control

function

Alternate function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Main

 

 

VFQFPN24

 

SO24

 

Type

Input

Output

V

wpu

int

OD

PP

 

 

 

 

 

 

 

 

 

 

Input

Output

 

 

 

 

 

 

 

 

 

 

CARD

 

 

 

 

(after reset)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

5

CRDRST

O

 

CT

X

 

 

 

X

Smartcard reset

 

3

 

6

CRDCLK

O

 

CT

X

 

 

 

X

Smartcard clock

 

4

 

7

C4

O

 

CT

X

 

 

 

X

Smartcard C4

 

5

 

8

CRDIO

I/O

CT

X

X

 

X

 

Smartcard I/O

 

6

 

9

C8

O

 

CT

X

 

 

 

X

Smartcard C8

 

7

 

10

CRDDET

I

C

 

 

X

 

 

 

Smartcard detection

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8

 

11

PA0/WAKUP2/

I/O

CT

 

X

X

X

X

Port A0

Interrupt, In-circuit

 

 

ICCDATA

 

communication data input

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

 

12

PA1/WAKUP2/

I/O

CT

 

X

X

X

X

Port A1

Interrupt, In-circuit

 

 

ICCCLK

 

communication clock input

 

11

 

14

OSCIN

 

C

 

 

 

 

 

 

Input/output oscillator pins. These pins

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

 

 

connect a 4 MHz parallel-resonant crystal, or

 

12

 

15

OSCOUT

 

 

CT

 

 

 

 

 

an external source to the on-chip oscillator.

 

 

 

 

 

 

 

 

 

 

 

 

13

 

16

VPP

S

 

 

 

 

 

 

 

Must be held low in normal operating mode.

 

14

 

17

PA6

I

C

 

 

 

 

 

 

PA6

 

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

18

LED0

O

 

HS

 

 

 

X

 

Constant current output

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16

 

19

DM

I/O

CT

 

 

 

 

 

USB Data Minus line

 

17

 

20

DP

I/O

CT

 

 

 

 

 

USB Data Plus line

 

18

 

21

USBVCC

O

 

CT

 

 

 

 

 

3.3 V output for USB

 

19

 

22

VDDA

S

 

 

 

 

 

 

 

Power Supply voltage 4-5.5 V

 

20

 

23

VDD

S

 

 

 

 

 

 

 

Power Supply voltage 4-5.5 V

 

21

 

24

SELF

O

 

CT

 

 

 

 

 

An external inductance must be connected to

 

 

 

 

 

 

 

 

these pins for the step up converter

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

22

 

1

DIODE

S

 

CT

 

 

 

 

 

An external diode must be connected to this

 

 

 

 

 

 

 

 

pin for the step up converter

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8/28

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ST7GEME4

 

 

 

 

 

 

 

 

 

 

Pin description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 2.

 

Pin description (continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Pin number

Pin name

 

Level

supplied

Port / Control

function

Alternate function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Main

 

 

VFQFPN24

 

SO24

 

Type

Input

Output

V

wpu

int

OD

PP

 

 

 

 

 

 

 

 

 

 

Input

Output

 

 

 

 

 

 

 

 

 

 

CARD

 

 

 

 

(after reset)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

2

GNDA

S

 

 

 

 

 

 

 

Ground

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

24

 

3

GND

S

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

4

CDRVCC

O

 

CT

X

 

 

 

 

Smartcard supply pin

 

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

C3

C4

C5

C6

VDD

C1

L1

D1

 

DIODE

SELF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VDD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GNDA

VDD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GND

VDDA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CRDVCC

USBVcc

 

 

 

 

 

 

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CRDRST

DP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CRDCLK

DM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D+

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D-

 

C4

LED0

 

 

 

 

 

 

LED VDD

 

CRDIO

PA6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C8

VPP

 

 

 

 

 

 

 

C

 

L1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CRDDET OSCOUT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PA0

OSCIN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PA1

NC

 

 

 

 

 

 

 

CL2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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