ST ST7LCRE4U1, ST7LCRDIE6 User Manual

Full-speed USB MCU with smartcard interface
VFQFPN24(Y1)DIE
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) host interface
– USB 2.0 compliant – CCID v1.0 – Full speed, hubless – Bus-powered, low consumption
ISO7816-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 (V
CRDVCC
– Fixed supply voltage: 1.8 V or 3 V

Table 1. Device summary

)
ST7LCRE4U1
ST7LCRDIE6
Development tools
– Full hardware/software development
package.
– Fully compatible with Flash ST7FSCR
family for development purposes
ECOPACK
Description
ST7LCRE4U1 and ST7LCRDIE6 are 8-bit microcontrollers dedicated to smartcard reading applications. They have been developed to be the core of smartcard readers communicating through USB link. Optimized for mass-market applications, it offers a single integrated circuit solution with very few external components.
®
package
Order codes
Features
ST7LCRE4U1 ST7LCRDIE6
Program memory 16 Kbyte of ROM
User RAM + USB data buffer 512 + 256 bytes
Peripherals USB full-speed (7 Ep), TBU, watchdog timer, ISO7816-3 interface
Operating Supply 4.0 to 5.5 V
Package VFQFPN24 Die format (Refer to Die Specifications)
CPU Frequency 4 or 8 MHz
Operating temperature 0°C to +70 °C
February 2009 Rev 3 1/30
www.st.com
1
ST7LCRE4U1, ST7LCRDIE6
Contents
1 Device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 ST7LCR implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Smartcard interface features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.1 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.2 Current injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.3 Current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2.4 I/O port pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 Supply and reset characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4 Clock and timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4.1 General timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4.2 External clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4.3 Crystal resonator oscillators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.5 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.6 Smartcard supply supervisor electrical characteristics . . . . . . . . . . . . . . 18
4.7 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.7.1 Functional EMS (electromagnetic susceptibility) . . . . . . . . . . . . . . . . . . 20
4.7.2 Electromagnetic interference (EMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.7.3 Absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . 21
4.8 Communication interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 22
5 Package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.2 Recommended reflow oven profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6 Device configuration and ordering information . . . . . . . . . . . . . . . . . . 27
2/30
ST7LCRE4U1, ST7LCRDIE6
7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3/30
ST7LCRE4U1, ST7LCRDIE6
List of tables
Table 1. Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 2. Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 3. Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 4. Thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 5. General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 6. Current injection on I/O port and control pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 7. Current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 8. I/O port pins characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 9. Low voltage detector and supervisor (LVDs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 10. General timings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 11. External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 12. Crystal resonator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 13. Typical crystal resonator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 14. Recommended values for 4 MHz crystal resonator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 15. RAM and hardware registers characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 16. Smartcard supply supervisor electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 17. EMS characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 18. EMI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 19. Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 20. Electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 21. USB DC electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 22. USB full-speed electrical characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 23. 24-lead very thin fine pitch quad flat no-lead 5x5mm,0.65mm pitch, mechanical data. . . . 25
Table 24. Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Table 25. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4/30
ST7LCRE4U1, ST7LCRDIE6
List of figures
Figure 1. ST7LCR block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 2. 24-lead VFQFPN package pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 3. Smartcard interface reference application - VFQFPN24 pin block diagram . . . . . . . . . . . . 10
Figure 4. Typical application with an external clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 5. Typical application with a crystal resonator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 6. USB data signal rise and fall time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 7. 24-lead very thin fine pitch quad flat no-lead 5x5 mm 0.65 mm pitch, package outline . . . 25
Figure 8. ST7LCR option list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5/30

1 Device overview

The ST7LCRE4U1 and ST7LCRDIE6 devices are members 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.
ST7LCRE4U1 and ST7LCRDIE6 are factory-programmed ROM devices.
They operate at a 4 MHz external oscillator frequency.
Under software control, all devices can be placed in Halt mode, to reduce power consumption when the application is in idle or standby 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 devices include 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)
ISO7816-3 UART interface with programmable baud rate from 372 clock pulses up to
11.625 clock pulses
Internal voltage regulator able to provide a fixed supply voltage (V
smartcards. The voltage is selectable by option between 1.8 V and 3 V.
Low voltage reset ensuring proper power-on or power-off of the device (selectable by
option)
8-bit Timer (TBU)
ST7LCRE4U1, ST7LCRDIE6
CRDVCC
) to
6/30
ST7LCRE4U1, ST7LCRDIE6
8-bit CORE
ALU
ADDRESS AND DATA BUS
OSCIN
OSCOUT
4MHz
RAM
(512 bytes)
PROGRAM
(16 Kbytes)
MEMORY
8-bit TIMER
LVD
USBDP USBDM USBVCC
SUPPLY
MANAGER
PLL
OSCILLATOR
USB
USB
DATA
BUFFER
(256 bytes)
DIVIDER
8 MHz
3/1.8 V Vreg
DC/DC
CRDDET
CRDIO
C4
C8
CRDRST
CRDCLK
ISO7816 UART
CONVERTER
CRDVCC
or 4 MHz
48 MHz

Figure 1. ST7LCR block diagram

7/30

2 Pin description

4
3
5
6
78 1112
13
14
15
16
17
18
19202122
2
1
2324
910
C8
CRDDET
CRDRST
CRDCLK
C4
CRDIO
OSCOUT
NC
NC
NC
OSCIN
USBV
CC
DP
DM
NC
NC
GND
GND
GNDA
NC
NC
VDDV
DDA
CRDVCC

Figure 2. 24-lead VFQFPN package pinout

ST7LCRE4U1, ST7LCRDIE6
Table 2. Pin description
Pin
number
VFQFPN24
Pin name
Level
Typ e
Input
Output
Port/control
Input Output
supplied
CARD
int
wpu
V
OD
PP
Main function
(after reset)
1 CRDVCC O CTX Smartcard supply pin
2 CRDRST O C
3 CRDCLK O C
4C4OC
5 CRDIO I/O C
6C8OC
7 CRDDET I C
8 NC Not used
T
X X Smartcard reset
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
9 NC Not used
10 NC Not used
8/30
Alternate function
(1)
(1)
(1)
ST7LCRE4U1, ST7LCRDIE6
Table 2. Pin description (continued)
Pin
number
Pin name
VFQFPN24
11 OSCIN C
Level
Typ e
Input
Output
T
Port/control
Input Output
supplied
CARD
int
wpu
V
OD
PP
Main function
(after reset)
Alternate function
Input/Output oscillator pins. These pins
connect a 4 MHz parallel-resonant crystal, or
12 OSCOUT C
T
an external source to the on-chip oscillator.
13 GND S Must be held low in normal operating mode.
14 NC Not used
(1)
15 NC Not used
16 DM I/O C
17 DP I/O C
T
T
18 USBVCC O C
19 V
20 V
DDA
DD
S Power supply voltage 4-5.5 V
S Power supply voltage 4-5.5 V
T
USB Data Minus line
USB Data Plus line
3.3 V Output for USB
21 NC Not used
22 NC Not used
23 GNDA S
Ground
24 GND S
1. Pins 8,9,10, and 14 must be connected to ground.
Legend/abbreviations
Type: I = input, O = output, S = supply
In/Output level: C
Output level: HS = 10 mA 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
= CMOS 0.3VDD/0.7VDD with input trigger
T
9/30
Loading...
+ 21 hidden pages