Rev. 1.2
December 2001 1/10
This ispreliminary information on a new product indevelopment or undergoing evaluation. Details aresubject to change without notice.
ST7SCR
8-BIT LOW-POWER, FULL-SPEED USB MCU WITH 16K
FLASH, 768 RAM, SMARTCARD I/F, TIMER
DATA BRIEFING
Memories
Up to 16K of ROM or High Density Flash (HD-
Flash) program memory with read/write pro-
tection
HDFlash In-Circuit and In-Application Pro-
gramming
Up to 768 bytes of RAM including up to 128
bytes stack and 256 bytes USB buffer
Clock, Reset and Supply Management
Low Voltage Reset
2 power saving modes: Halt and Wait modes
PLL for generating 48 MHz USB clock using a
4 MHz crystal
Interrupt Management
Nested Interrupt Controller
USB (Universal Serial Bus) Interface
256-byte buffer for full speed bulk,control and
interrupt transfer types compliant with USB
specification (version 2.0)
On-Chip 3.3V USB voltage regulator and
transceivers with software power-down
7 USB Endpoints:
One 8-byte Bidirectional Control Endpoint
One 64-byte In Endpoint,
One 64-byte Out Endpoint
Four 8-byte In Endpoints
35 or 4 I/O ports:
Up to 4 LED outputs with software program-
mable constant current (3 or 7 mA).
2 General purpose I/Os programmable as in-
terrupts
Upto 8 line inputs programmable as interrupts
Up to 20 Outputs
1 line assigned by default as static input after
reset
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 clockpuls-
es up to 11.625 clock pulses (D=32/F=372)
Card Insertion/Removal Detection
Smartcard Power Supply:
Selectable card VCC 1.8V, 3V, and 5V
Internal Step-up converter for 5V supplied
Smartcards (with a current of up to 55mA) us-
ing only two external components.
Programmable Smartcard Internal Voltage
Regulator(1.8V to 3.0V) with current overload
protection and 4 KV ESD protection (Human
Body Model) for all Smartcard Interface I/Os
One 8-bit Timer
Time Base Unit (TBU) for generating periodic
interrupts.
Development Tools
Full hardware/software development package
Table 1. Device Summary
TQFP64 14x14 SO24
Features ST7FSCRDIE ST7SCRDIE ST7FSCR1R4 ST7SCR1R4 ST7FSCR1E4 ST7SCR1E4
Program memory 16K FLASH 16K ROM 16K FLASH 16K ROM 16K FLASH 16K ROM
User RAM (stack) - bytes 768 (256)
Peripherals USB Full-Speed (7 Ep), TBU, Watchdog timer, ISO7816-3 Interface
Operating Supply 4.0 to 5.5V
Package DIE TQFP64 SO24
CPU Frequency 4 or 8 Mhz
Operating temperature 0°C to +70°C
1
ST7SCR
2/10
1 INTRODUCTION
The ST7SCR and ST7FSCR devices are mem-
bers ofthe ST7 microcontroller family designed for
USB applications. All devices are based on a com-
mon industry-standard 8-bit core, featuring an en-
hanced instruction set.
The ST7SCR ROM devices are factory-pro-
grammed and are not reprogrammable.
The ST7FSCR versions feature dual-voltage
Flash memory with Flash Programming capability.
They operate at a 4MHz external oscillator fre-
quency.
Under software control, all devices can be placed
in WAIT orHALT mode, reducingpower consump-
tion 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 micro-
controllers feature true bit manipulation, 8x8 un-
signed multiplication and indirect addressing
modes.
The devices include an ST7 Core,up to 16 Kbytes
of program memory, up to512 bytes of user RAM,
up to 35 I/O lines and the following on-chip periph-
erals:
USB full speed interface with 7 endpoints, pro-
grammable in/out configuration and embedded
3.3V voltage regulator and transceivers (no ex-
ternal components are needed).
ISO7816-3 UART interface with Programmable
Baud rate from 372 clock pulses up to 11.625
clock pulses
Smartcard Supply Block able to provide pro-
grammable supply voltage andI/O voltage levels
to the smartcards
Low voltage reset ensuring proper power-on or
power-off of the device (selectable by option)
Watchdog Timer
8-bit Timer (TBU)
1
ST7SCR
3/10
Figure 1. ST7SCR Block Diagram
8-BIT CORE
ALU
ADDRESSAND DATA BUS
OSCIN
OSCOUT
PA6
4MHz
CONTROL
RAM
(512 Bytes)
PROGRAM
(16K Bytes)
MEMORY
8-BIT TIMER
LVD
VPP
USBDP
USBDM
USBVCC
PORT C PC[7:0]
PB[7:0]
PA[5:0]
SUPPLY
MANAGER
PLL
OSCILLATOR
USB
PORT B
PORT A
USB
DATA
BUFFER
(256 bytes)
DIVIDER 8 MHz
3V/1.8V Vreg
DC/DC
CRDDET
CRDIO
CRDC4
CRDC8
CRDRST
CRDCLK
PD[7:0]
ISO7816 UART
PORT D
Converter CRDVCC
SELF
WATCHDOG
LED LED[3:0]
or 4 MHz
48 MHz
DIODE
1
ST7SCR
4/10
2 PIN DESCRIPTION
Figure 2. 64-Pin TQFP Package Pinout
WAKUP2/PA2
WAKUP2/PA3
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
OSCIN
OSCOUT
CRDDET
VDD
WAKUP2/ICCDATA/PA0
WAKUP2/ICCCLK/PA1
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
17 18 19 20 21 22 23 24 29 30 31 3225 26 27 28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
C4
CRDIO
C8
GND
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
NC
CRDCLK
NC PA6
VPP
PC7/WAKUP1
PC6/WAKUP1
PC5/WAKUP1
PC4/WAKUP1
PC3/WAKUP1
PC2/WAKUP1
PC1/WAKUP1
PC0/WAKUP1
GND
VDD
NC
DP
DM
LED0
SELF1
SELF2
PA5
PA4
NC
NC
LED3
LED2
LED1
VDD
VDDA
USBVcc
CRDVCC
GND
GNDA
DIODE
CRDRST
NC = Not Connected
1
ST7SCR
5/10
PIN DESCRIPTION (Cont’d)
Figure 3. 24-Pin SO Package Pinout
14
13
11
12
15
16
17
18 LED0
DM
DP
USBVcc
OSCIN
OSCOUT
VPP
1
2
3
4
5
6
7
8
9
10
DIODE
CRDCLK
CRDRST
CRDVCC
PA6
CRDIO
19
20
C8
CRDDET
ICCDATA/WAKUP2/PA0
VDDA
C4
GNDA
ICCCLK/WAKUP2/PA1 NC
GND 21
22
23
24 VDD
SELF
1
ST7SCR
6/10
PIN DESCRIPTION (Cont’d)
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= weakpull-up, int= in-
terrupt, ana = analog
Output:OD=opendrain,T = true opendrain, PP
= push-pull
Table 1. Pin Description
Pin n°
Pin Name
Type
Level
VCARD supplied
Port / Control
Main
Function
(after reset) Alternate Function
TQFP64
SO24
Input
Output
Input Output
wpu
int
OD
PP
1 5 CRDRST O CTX X Smartcard Reset
2 NC Not Connected
3 6 CRDCLK O CTX X Smartcard Clock
4 NC Not Connected
57C4 O C
TX X Smartcard C4
6 8 CRDIO I/O CTX X X Smartcard I/O
79C8 O C
TX X Smartcard C8
8 3 GND S Ground
9 PB0 O CTX X Port B0 1)
10 PB1 O CTX X Port B1 1)
11 PB2 O CTX X Port B2 1)
12 PB3 O CTX X Port B3 1)
13 PB4 O CTX X Port B4 1)
14 PB5 O CTX X Port B5 1)
15 PB6 O CTX X Port B6 1)
16 PB7 O CTX X Port B7 1)
17 10 CRDDET I CTX Smartcard Detection
18 VDD S Power Supply voltage 4V-5.5V
19 11 PA0/WAKUP2/
ICCDATA I/O CTX X X X Port A0 Interrupt, In-CircuitCommunication
Data Input
20 12 PA1/WAKUP2/
ICCCLK I/O CTX X X X Port A1 Interrupt, In-CircuitCommunication
Clock Input
21 PA2/WAKUP2 I/O CTX X X X Port A2 1) Interrupt
22 PA3/WAKUP2 I/O CTX X X X Port A3 1) Interrupt
23 PD0 O CTX X Port D0 1)
24 PD1 O CTX X Port D1 1)
1
ST7SCR
7/10
25 PD2 O CTX X Port D2 1)
26 PD3 O CTX X Port D3 1)
27 PD4 O CTX X Port D4 1)
28 PD5 O CTX X Port D5 1)
29 PD6 O CTX X Port D6 1)
30 PD7 O CTX X Port D7 1)
31 14 OSCIN CTInput/Output Oscillator pins. These pins connect a
4MHz parallel-resonant crystal, or an external source
to the on-chip oscillator.
32 15 OSCOUT CT
33 VDD S Power Supply voltage 4V-5.5V
34 GND S Ground
35 PC0/WAKUP1 I CTX X PC0 1) External interrupt
36 PC1/WAKUP1 I CTX X PC1 1) External interrupt
37 PC2/WAKUP1 I CTX X PC2 1) External interrupt
38 PC3/WAKUP1 I CTX X PC3 1) External interrupt
39 PC4/WAKUP1 I CTX X PC4 1) External interrupt
40 PC5/WAKUP1 I CTX X PC5 1) External interrupt
41 PC6/WAKUP1 I CTX X PC6 1) External interrupt
42 PC7/WAKUP1 I CTX X PC7 1) External interrupt
43 16 VPP SFlash programming voltage. Must be held low innor-
mal operating mode.
44 17 PA6 I CTPA6
45 18 LED0 O HS X Constant Current Output
46 19 DM I/O CTUSB Data Minus line
47 20 DP I/O CTUSB Data Plus line
48 NC Not Connected
49 21 USBVCC O CT3.3 V Output for USB
50 22 VDDA S power Supply voltage 4V-5.5V
51 23 VDD S power Supply voltage 4V-5.5V
52 LED1 O HS X Constant Current Output
53 LED2 O HS X Constant Current Output
54 LED3 O HS X Constant Current Output
55 NC Not Connected
56 NC Not Connected
Pin n°
Pin Name
Type
Level
VCARD supplied
Port / Control
Main
Function
(after reset) Alternate Function
TQFP64
SO24
Input
Output
Input Output
wpu
int
OD
PP
ST7SCR
8/10
Note 1: Keyboard interface
57 PA4 I/O CTX X X X Port A4
58 PA5 I/O CTX X X X Port A5
59 24 SELF2 O CTAn External inductance must be connected to these
pins for the step up converter
60 24 SELF1 O CT
61 1 DIODE S CTAn External diode must be connected to this pin for
the step up converter
62 2 GNDA S Ground
63 3 GND S
64 4 CDRVCC O CTX Smartcard Supply pin
Pin n°
Pin Name
Type
Level
VCARD supplied
Port / Control
Main
Function
(after reset) Alternate Function
TQFP64
SO24
Input
Output
Input Output
wpu
int
OD
PP
ST7SCR
9/10
3 PACKAGE CHARACTERISTICS
3.1 PACKAGE MECHANICAL DATA
Figure 4. 64-Pin Plastic Quad Flat Package
Figure 5. 24-Pin Plastic Small Outline Package, 300-mil Width
Dim. mm inches
Min Typ Max Min Typ Max
A3.40 0.134
A1 0.25 0.50 0.010 0.020
A2 2.50 2.70 2.90 0.098 0.106 0.114
b0.29 0.45 0.011 0.018
c0.11 0.23 0.004 0.009
D17.20 0.677
D1 14.00 0.551
D2 12.00 0.472
E17.20 0.677
E1 14.00 0.551
E2 12.00 0.472
e0.80 0.031
L0.73 0.88 1.03 0.029 0.035 0.041
Number of Pins
N64
0×-7×
1.60mm c
L
e
A
A2
A1
b
D
D1
D2
EE1E2
0×-7×
1.60mm c
L
e
b
D
D1
D2
E2
0×-7×
1.60mm c
L
e
A2
A1
b
D
D1
D2
Dim. mm inches
Min Typ Max Min Typ Max
A2.35 2.65 0.093 0.104
A1 0.10 0.30 0.004 0.012
B0.33 0.51 0.013 0.020
C0.23 0.32 0.009 0.013
D15.20 15.60 0.599 0.614
E7.40 7.60 0.291 0.299
e1.27 0.050
H10.00 10.65 0.394 0.419
h0.25 0.75 0.010 0.030
α0°8°0°8°
L0.40 1.27 0.016 0.050
Number of Pins
N24
Dim. mm inches
Min Typ Max Min Typ Max
Jedec Ref. MS-
C
hx45×
L
a
A
A1
e
B
D
HE
ST7SCR
10/10
Notes:
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of useof such information nor forany infringement ofpatents or other rights of third parties which may result from itsuse. No license isgranted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics
2002 STMicroelectronics - All Rights Reserved.
Purchase of I2C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an
I2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips.
STMicroelectronics Group of Companies
Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan
Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - U.S.A.
http://www.st.com