Professional Documents
Culture Documents
ST6210C/ST6220C
8-BIT MCUs WITH A/D CONVERTER,
TWO TIMERS, OSCILLATOR SAFEGUARD & SAFE RESET
Memories
1K, 2K or 4K bytes Program memory (OTP,
EPROM, FASTROM or ROM) with read-out
protection
64 bytes RAM
Clock, Reset and Supply Management
Enhanced reset system
Low Voltage Detector (LVD) for Safe Reset
Clock sources: crystal/ceramic resonator or
RC network, external clock, backup oscillator
(LFAO)
Oscillator Safeguard (OSG)
2 Power Saving Modes: Wait and Stop
Interrupt Management
4 interrupt vectors plus NMI and RESET
12 external interrupt lines (on 2 vectors)
12 I/O Ports
12 multifunctional bidirectional I/O lines
8 alternate function lines
4 high sink outputs (20mA)
2 Timers
Configurable watchdog timer
8-bit timer/counter with a 7-bit prescaler
Analog Peripheral
8-bit ADC with 4 or 8 input channels (except
on ST6208C)
PDIP20
SO20
SSOP20
CDIP20W
(See Section 11.5 for Ordering Information)
Instruction Set
8-bit data manipulation
40 basic instructions
9 addressing modes
Bit manipulation
Development Tools
Full hardware/software development package
Device Summary
Features
ST62T08C(OTP)/
ST62T09C(OTP)/
ST62T10C(OTP)/
ST62T20C(OTP)
ST62E20C(EPROM)
ST6208C(ROM)
ST6209C (ROM)
ST6210C (ROM)
ST6220C(ROM)
ST62P08C(FASTROM) ST62P09C(FASTROM) ST62P10C(FASTROM) ST62P20C(FASTROM)
Program memory
- bytes
1K
2K
RAM - bytes
64
Operating Supply
Analog Inputs
Clock Frequency
Operating
Temperature
Packages
4K
3.0V to 6V
-
8
8MHz Max
-40C to +125C
PDIP20/SO20/SSOP20
CDIP20W
Rev. 3.3
October 2003
1/104
Table of Contents
1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 MEMORY MAPS, PROGRAMMING MODES AND OPTION BYTES . . . . . . . . . . . . . . . . . . . . . . 9
3.1 MEMORY AND REGISTER MAPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1.2 Program Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1.3 Readout Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1.4 Data Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1.5 Stack Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1.6 Data ROM Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 PROGRAMMING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2.1 Program Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2.2 EPROM Erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.3 OPTION BYTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4 CENTRAL PROCESSING UNIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.2
MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3
CPU REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
20
21
22
22
23
RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.2 RESET Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.3 RESET Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.4 Watchdog Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.5 LVD Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24
24
25
26
26
27
5.5
5.6
5.7
5.8
PERIPHERAL INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.9
2/104
Table of Contents
6.2
WAIT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.3
STOP MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.4
7 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
7.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
7.2
FUNCTIONAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
7.5
REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
8 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
8.1 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
8.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1.3 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1.4 Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.1.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.2 8-BIT TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
42
43
43
44
44
45
46
8.2.1
8.2.2
8.2.3
8.2.4
8.2.5
8.2.6
8.2.7
8.3 A/D
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Counter/Prescaler Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
46
46
47
48
50
50
51
52
8.3.1
8.3.2
8.3.3
8.3.4
8.3.5
8.3.6
8.3.7
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
52
52
53
54
55
55
55
9 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
9.1 ST6 ARCHITECTURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
9.2
ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3/104
Table of Contents
9.3
INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.1 PARAMETER CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.1.1Minimum and Maximum Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.1.2Typical Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.1.3Typical Curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.1.4Loading Capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.1.5Pin Input Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.2 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
62
62
62
62
62
63
10.2.1Voltage Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.2.2Current Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.2.3Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.3 OPERATING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
63
63
63
64
66
67
70
71
71
72
10.5.1General Timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.2External Clock Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.3Crystal and Ceramic Resonator Oscillators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.4RC Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.5Oscillator Safeguard (OSG) and Low Frequency Auxiliary Oscillator (LFAO) . . . . .
10.6 MEMORY CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
72
72
73
74
75
76
77
78
80
81
10.8.1General Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
10.8.2Output Driving Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
10.9 CONTROL PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
10.9.1Asynchronous RESET Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
10.9.2NMI Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
10.10 TIMER PERIPHERAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
10.10.1Watchdog Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.10.28-Bit Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.11 8-BIT ADC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
104
11 GENERAL INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4/104
87
87
88
90
90
Table of Contents
11.2 THERMAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
11.3 SOLDERING AND GLUEABILITY INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
11.4 PACKAGE/SOCKET FOOTPRINT PROPOSAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
11.5 ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
11.6 TRANSFER OF CUSTOMER CODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
11.6.1FASTROM version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
11.6.2ROM VERSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12 DEVELOPMENT TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
13 ST6 APPLICATION NOTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
14 SUMMARY OF CHANGES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
15 TO GET MORE INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
5/104
ST6208C/ST6209C/ST6210C/ST6220C
1 INTRODUCTION
The ST6208C, 09C, 10C and 20C devices are low
cost members of the ST62xx 8-bit HCMOS family
of microcontrollers, which is targeted at low to medium complexity applications. All ST62xx devices
are based on a building block approach: a common core is surrounded by a number of on-chip
peripherals.
The ST62E20C is the erasable EPROM version of
the ST62T08C, T09C, T10C and T20C devices,
which may be used during the development phase
for the ST62T08C, T09C, T10C and T20C target
devices, as well as the respective ST6208C, 09C,
10C and 20C ROM devices.
OTP and EPROM devices are functionally identical. OTP devices offer all the advantages of user
programmability at low cost, which make them the
ideal choice in a wide range of applications where
frequent code changes, multiple code versions or
last minute programmability are required.
The ROM based versions offer the same functionality, selecting the options defined in the program-
VPP
NMI
PORT A
INTERRUPTS
PORT B
PROGRAM
:
MEMORY
(1K, 2K
or 4K Bytes)
DATA RAM
64 Bytes
POWER
SUPPLY
VDD VSS
8-BIT CORE
OSCILLATOR
RESET
OSCin OSCout
RESET
TIMER
WATCHDOG
TIMER
STACK LEVEL 1
STACK LEVEL 2
STACK LEVEL 3
STACK LEVEL 4
STACK LEVEL 5
STACK LEVEL 6
PB0..PB7 / Ain*
DATA ROM
USER
SELECTABLE
PC
6/104
TIMER
ST6208C/ST6209C/ST6210C/ST6220C
2 PIN DESCRIPTION
Figure 2. 20-Pin Package Pinout
VDD
TIMER
OSCin
OSCout
NMI
VPP
RESET
Ain*/PB7
Ain*/PB6
Ain*/PB5
1
2
3
4
5
6
7
8
9 it2
10
20
19
it1 18
17
16
15
14
it2 13
12
11
VSS
PA0/20mA Sink
PA1/20mA Sink
PA2/20mA Sink
PA3/20mA Sink
PB0/Ain*
PB1/Ain*
PB2/Ain*
PB3/Ain*
PB4/Ain*
Pin n
Pin Name
Type
Main Function
(after Reset)
Alternate Function
VDD
TIMER
I/O
OSCin
OSCout
NMI
VPP
RESET
I/O
PB7/Ain*
I/O
Pin B7 (IPU)
Analog input
PB6/Ain*
I/O
Pin B6 (IPU)
Analog input
10
PB5/Ain*
I/O
Pin B5 (IPU)
Analog input
11
PB4/Ain*
I/O
Pin B4 (IPU)
Analog input
12
PB3/Ain*
I/O
Pin B3 (IPU)
Analog input
13
PB2/Ain*
I/O
Pin B2 (IPU)
Analog input
14
PB1/Ain*
I/O
Pin B1 (IPU)
Analog input
15
PB0/Ain*
I/O
Pin B0 (IPU)
Analog input
16
I/O
Pin A3 (IPU)
17
I/O
Pin A2 (IPU)
18
I/O
Pin A1 (IPU)
7/104
Pin n
Pin Name
19
20
VSS
Type
ST6208C/ST6209C/ST6210C/ST6220C
I/O
S
Main Function
(after Reset)
Alternate Function
Pin A0 (IPU)
Ground
8/104
ST6208C/ST6209C/ST6210C/ST6220C
PROGRAM SPACE
000h
DATA SPACE
000h
RESERVED
03Fh
040h
PROGRAM
MEMORY
(see Figure 4
on page 10)
DATA ROM
WINDOW
07Fh
080h
081h
082h
083h
084h
X REGISTER
Y REGISTER
V REGISTER
W REGISTER
RAM
0BFh
0C0h
0FF0h
INTERRUPT &
RESET VECTORS
0FFFh
0FFh
HARDWARE
CONTROL
REGISTERS
(see Table 2)
ACCUMULATOR
9/104
ST6208C/ST6209C/ST6210C/ST6220C
ST6210C
0000h
ST6220C
0000h
RESERVED*
07Fh
080h
NOT IMPLEMENTED
NOT IMPLEMENTED
07FFh
0800h
RESERVED*
087Fh
0880h
USER
PROGRAM MEMORY
3872 BYTES
0AFFh
0B00h
0B9Fh
RESERVED*
USER
PROGRAM MEMORY
1824 BYTES
0BA0h
USER
PROGRAM MEMORY
1024 BYTES
0F9Fh
0FA0h
0FEFh
0FF0h
0FF7h
0FF8h
0FFBh
0FFCh
0FFDh
0FFEh
0FFFh
RESERVED*
INTERRUPT VECTORS
RESERVED*
NMI VECTOR
USER RESET VECTOR
0F9Fh
0FA0h
0FEFh
0FF0h
0FF7h
0FF8h
0FFBh
0FFCh
0FFDh
0FFEh
0FFFh
RESERVED*
INTERRUPT VECTORS
RESERVED*
NMI VECTOR
USER RESET VECTOR
10/104
0F9Fh
0FA0h
0FEFh
0FF0h
0FF7h
0FF8h
0FFBh
0FFCh
0FFDh
0FFEh
0FFFh
RESERVED*
INTERRUPT VECTORS
RESERVED*
NMI VECTOR
USER RESET VECTOR
ST6208C/ST6209C/ST6210C/ST6220C
11/104
ST6208C/ST6209C/ST6210C/ST6220C
Block
080h
to 083h
CPU
0C0h
0C1h
I/O Ports
Register
Label
Reset
Status
Remarks
X,Y,V,W
xxh
R/W
DRA 1) 2) 3)
DRB 1) 2) 3)
00h
00h
R/W
R/W
00h
00h
R/W
R/W
0C2h
0C3h
0C4h
0C5h
Register Name
Reserved (2 Bytes)
I/O Ports
DDRA 2)
DDRB 2)
0C6h
0C7h
0C8h
CPU
IOR
xxh
Write-only
0C9h
ROM
DRWR
xxh
Write-only
00h
00h
R/W
R/W
Read-only
Ro/Wo
0CAh
0CBh
0CCh
0CDh
Reserved (2 Bytes)
I/O Ports
ORA 2)
ORB 2)
0CEh
0CFh
0D0h
0D1h
ADC 4)
ADR
ADCR
xxh
40h
0D2h
0D3h
0D4h
Timer1
PSCR
TCR
TSCR
7Fh
0FFh
0D5h
to 0D7h
0D8h
0FEh
R/W
xxh
R/W
Reserved (3 Bytes)
Watchdog
Timer
WDGR
0D9h
to 0FEh
0FFh
00h
R/W
R/W
R/W
Watchdog Register
Reserved (38 Bytes)
CPU
Accumulator
Legend:
x = undefined, R/W = Read/Write, Ro = Read-only Bit(s) in the register, Wo = Write-only Bit(s)
in the register.
Notes:
1. The contents of the I/O port DR registers are readable only in output configuration. In input configuration, the values of the I/O pins are returned instead of the DR register contents.
2. The bits associated with unavailable pins must always be kept at their reset value.
3. Do not use single-bit instructions (SET, RES...) on Port Data Registers if any pin of the port is configured
in input mode (refer to Section 7 "I/O PORTS" on page 37 for more details)
4. Depending on device. See device summary on page 1.
12/104
ST6208C/ST6209C/ST6210C/ST6220C
0
-
040h
DATA ROM
64-BYTE
ROM 07Fh WINDOW
0FFFh
Bit 5:0 = DRWR[5:0] Data read-only memory Window Register Bits. These are the Data read-only
memory Window bits that correspond to the upper
bits of the data read-only memory space.
Caution: This register is undefined on reset, it is
write-only, therefore do not read it nor access it using Read-Modify-Write instructions (SET, RES,
INC and DEC).
0FFh
13/104
ST6208C/ST6209C/ST6210C/ST6220C
PROGRAM SPACE
0000h
040h
DATA
061h
OFFSET
21h
07Fh
0400h
OFFSET
0421h
64 bytes
DATA
10h
DRWR
0FFh
07FFh
DATA address in Program memory : 421h
DRWR content : 421h / 3Fh (64) = 10H data is located in 64-bytes window number 10h
64-byte window start address : 10h x 3Fh = 400h
Register (A, X,...)content : Offset = (421h - 400h) + 40h ( Data ROM Window start address in data space) = 61h
14/104
ST6208C/ST6209C/ST6210C/ST6220C
Description
0000h-0B9Fh
0BA0h-0F9Fh
0FA0h-0FEFh
0FF0h-0FF7h
0FF8h-0FFBh
0FFCh-0FFDh
0FFEh-0FFFh
Reserved
User ROM
Reserved
Interrupt Vectors
Reserved
NMI Interrupt Vector
Reset Vector
Description
0000h-087Fh
0880h-0F9Fh
0FA0h-0FEFh
0FF0h-0FF7h
0FF8h-0FFBh
0FFCh-0FFDh
0FFEh-0FFFh
Reserved
User ROM
Reserved
Interrupt Vectors
Reserved
NMI Interrupt Vector
Reset Vector
Description
0000h-007Fh
0080h-0F9Fh
0FA0h-0FEFh
0FF0h-0FF7h
0FF8h-0FFBh
0FFCh-0FFDh
0FFEh-0FFFh
Reserved
User ROM
Reserved
Interrupt Vectors
Reserved
NMI Interrupt Vector
Reset Vector
15/104
ST6208C/ST6209C/ST6210C/ST6220C
15
8
Reserved
Default
Value
16/104
EXT
CTL
LVD
PRONMI
TIM
OSC Res. Res.
TECT
PULL PULL
X
WD
ACT
OSG
EN
ST6208C/ST6209C/ST6210C/ST6220C
40 basic instructions
9 main addressing modes
Two 8-bit index registers
Two 8-bit short direct registers
Low power modes
Maskable hardware interrupts
6-level hardware stack
0
ACCUMULATOR
SIX LEVEL
STACK
0
X INDEX REGISTER
NORMAL FLAGS
CN
ZN
INTERRUPT FLAGS
CI
ZI
Y INDEX REGISTER
RESET VALUE = xxh
7
0
V SHORT INDIRECT
REGISTER
NMI FLAGS
CNMI ZNMI
PROGRAM COUNTER
RESET VALUE = RESET VECTOR @ 0FFEh-0FFFh
x = Undefined value
17/104
ST6208C/ST6209C/ST6210C/ST6220C
18/104
Z : Zero flag
This flag is set if the result of the last arithmetic or
logical operation was equal to zero; otherwise it is
cleared.
0: The result of the last operation is different from
zero
1: The result of the last operation is zero
Switching between the three sets of flags is performed automatically when an NMI, an interrupt or
a RETI instruction occurs. As NMI mode is automatically selected after the reset of the MCU, the
ST6 core uses the NMI flags first.
Stack. The ST6 CPU includes a true LIFO (Last In
First Out) hardware stack which eliminates the
need for a stack pointer. The stack consists of six
separate 12-bit RAM locations that do not belong
to the data space RAM area. When a subroutine
call (or interrupt request) occurs, the contents of
each level are shifted into the next level down,
while the content of the PC is shifted into the first
level (the original contents of the sixth stack level
are lost). When a subroutine or interrupt return occurs (RET or RETI instructions), the first level register is shifted back into the PC and the value of
each level is popped back into the previous level.
Figure 8. Stack manipulation
PROGRAM
COUNTER
ON RETURN
FROM
INTERRUPT,
OR
SUBROUTINE
LEVEL 1
LEVEL 2
ON
INTERRUPT,
OR
SUBROUTINE
CALL
LEVEL 3
LEVEL 4
LEVEL 5
LEVEL 6
ST6208C/ST6209C/ST6210C/ST6220C
Table 6 illustrates various possible oscillator configurations using an external crystal or ceramic
resonator, an external clock input, an external resistor (RNET), or the lowest cost solution using only
the LFAO.
For more details on configuring the clock options,
refer to the Option Bytes section of this document.
The internal MCU clock frequency (fINT) is divided
by 12 to drive the Timer, the Watchdog timer and
the A/D converter, by 13 to drive the CPU core and
the SPI and by 1 or 3 to drive the ARTIMER, as
shown in Figure 9.
With an 8 MHz oscillator, the fastest CPU cycle is
therefore 1.625s.
A CPU cycle is the smallest unit of time needed to
execute any operation (for instance, to increment
the Program Counter). An instruction may require
two, four, or five CPU cycles for execution.
: 13
OSG
filtering
CORE
8-BIT TIMER
0
Oscillator
MAIN
OSCILLATOR
Divider
fINT
: 12
WATCHDOG
1
ADC
LFAO
OSCOFF BIT
*
(ADCR REGISTER)
:1
8-BIT ARTIMER
:3
8-BIT ARTIMER
19/104
ST6208C/ST6209C/ST6210C/ST6220C
Crystal/Resonator Option1)
Crystal/Resonator Option1)
Hardware Configuration
External Clock
ST6
OSCin
OSCout
NC
EXTERNAL
CLOCK
Crystal/Resonator Clock 2)
ST6
OSCin
CL1
OSCout
LOAD
CAPACITORS 3)
CL2
RC Network Option1)
RC Network
ST6
OSCin
OSCout
NC
RNET
LFAO
ST6
OSCin
OSCout
NC
Notes:
1. To select the options shown in column 1 of the above
table, refer to the Option Byte section.
2.This schematic are given for guidance only and are subject to the schematics given by the crystal or ceramic resonator manufacturer.
3. For more details, please refer to the Electrical Characteristics Section.
20/104
ST6208C/ST6209C/ST6210C/ST6220C
fOSC<fOSG
fOSC
fOSG
fINT
MAIN OSCILLATOR
RESTARTS
fOSC
fLFAO
fINT
21/104
ST6208C/ST6209C/ST6210C/ST6220C
22/104
The Low Frequency Auxiliary Oscillator is automatically switched off as soon as the main oscillator starts.
5.1.4 Register Description
ADC CONTROL REGISTER (ADCR)
Address: 0D1h Read/Write
Reset value: 0100 0000 (40h)
7
ADCR ADCR ADCR ADCR ADCR
7
6
5
4
3
0
OSC
OFF
ADCR ADCR
1
0
ST6208C/ST6209C/ST6210C/ST6220C
RESET
23/104
ST6208C/ST6209C/ST6210C/ST6220C
5.3 RESET
5.3.1 Introduction
The MCU can be reset in three ways:
A low pulse input on the RESET pin
Internal Watchdog reset
Internal Low Voltage Detector (LVD) reset
5.3.2 RESET Sequence
The basic RESET sequence consists of 3 main
phases:
Internal (watchdog or LVD) or external Reset
event
A delay of 2048 clock (fINT) cycles
RESET vector fetch
The reset delay allows the oscillator to stabilise
and ensures that recovery has taken place from
the Reset state.
WATCHDOG
RESET
WATCHDOG UNDERFLOW
LVD
RESET
RESET PIN
INTERNAL
RESET
RUN
RUN
RESET
RUN
RESET
RUN
RESET
2048 CLOCK CYCLE (fINT) DELAY
24/104
ST6208C/ST6209C/ST6210C/ST6220C
RESET (Contd)
5.3.3 RESET Pin
The RESET pin may be connected to a device on
the application board in order to reset the MCU if
required. The RESET pin may be pulled low in
RUN, WAIT or STOP mode. This input can be
used to reset the internal state of the MCU and ensure it starts-up correctly. The pin, which is connected to an internal pull-up, is active low and features a Schmitt trigger input. A delay (2048 clock
cycles) added to the external signal ensures that
even short pulses on the RESET pin are accepted
as valid, provided VDD has completed its rising
phase and that the oscillator is running correctly
(normal RUN or WAIT modes). The MCU is kept in
the Reset state as long as the RESET pin is held
low.
2048
clock cycles
RPU
INTERNAL
RESET
COUNTER
VDD
fINT
RESET
RESD1)
WATCHDOG RESET
LVD RESET
25/104
ST6208C/ST6209C/ST6210C/ST6220C
RESET (Contd)
5.3.4 Watchdog Reset
The MCU provides a Watchdog timer function in
order to be able to recover from software hangups. If the Watchdog register is not refreshed before an end-of-count condition is reached, a
Watchdog reset is generated.
After a Watchdog reset, the MCU restarts in the
same way as if a Reset was generated by the RESET pin.
Note: When a watchdog reset occurs, the RESET
pin is tied low for very short time period, to flag the
reset phase. This time is not long enough to reset
external circuits.
For more details refer to the Watchdog Timer
chapter.
5.3.5 LVD Reset
Two different RESET sequences caused by the internal LVD circuitry can be distinguished:
Power-On RESET
Voltage Drop RESET
During an LVD reset, the RESET pin is pulled low
when VDD<VIT+ (rising edge) or VDD<VIT- (falling
edge).
For more details, refer to the LVD chapter.
Caution: Do not externally connect directly the
RESET pin to VDD, this may cause damage to the
component in case of internal RESET (Watchdog
or LVD).
Figure 15. Simple External Reset Circuitry
VDD
2048
CLOCK CYCLE
DELAY
INTERNAL
RESET
SELECT
NMI MODE FLAGS
PUT FFEh
ON ADDRESS BUS
YES
IS RESET STILL
PRESENT?
NO
LOAD PC
FROM RESET LOCATIONS
FFEh/FFFh
FETCH INSTRUCTION
RESET
26/104
RESET
VDD
R
Typical: R = 10K
C = 10nF
ST62xx
R > 4.7 K
ST6208C/ST6209C/ST6210C/ST6220C
5.4 INTERRUPTS
The ST6 core may be interrupted by four maskable interrupt sources, in addition to a Non Maskable Interrupt (NMI) source. The interrupt processing flowchart is shown in Figure 18.
Maskable interrupts must be enabled by setting
the GEN bit in the IOR register. However, even if
they are disabled (GEN bit = 0), interrupt events
are latched and may be processed as soon as the
GEN bit is set.
Each source is associated with a specific Interrupt
Vector, located in Program space (see Table 8). In
the vector location, the user must write a Jump in-
NMI
VECTOR #0
LATCH
CLEARED BY H/W
AT START OF VECTOR #0 ROUTINE
PA0...PA3
LATCH
0
VECTOR #1
CLEARED BY H/W
AT START OF
VECTOR #1 ROUTINE
LES BIT
(IOR REGISTER)
EXIT FROM
STOP/WAIT
PB0...PB7
VECTOR #2
LATCH
ESB BIT
(IOR REGISTER) CLEARED
BY H/W AT START OF
VECTOR #2 ROUTINE
TIMER
TMZ BIT
ETI BIT
VECTOR #3
(TSCR REGISTER)
A/D CONVERTER *
EAI BIT
EOC BIT
(ADCR REGISTER)
VECTOR #4
GEN BIT
(IOR REGISTER)
27/104
ST6208C/ST6209C/ST6210C/ST6220C
5.5 INTERRUPT
MANAGEMENT
RULES
AND
PRIORITY
28/104
ST6208C/ST6209C/ST6210C/ST6220C
This is due to the vector #2 circuitry.The workaround is to discard this first interrupt request in the
routine (using a flag for example).
Masking of One Interrupt by Another on Vector
#2.
When two or more port pins (associated with interrupt vector #2) are configured together as input
with interrupt (falling edge sensitive), as long as
one pin is stuck at '0', the other pin can never generate an interrupt even if an active edge occurs at
this pin. The same thing occurs when one pin is
stuck at '1' and interrupt vector #2 is configured as
rising edge sensitive.
To avoid this the first pin must input a signal that
goes back up to '1' right after the falling edge. Otherwise, in the interrupt routine for the first pin, deactivate the input with interrupt mode using the
port control registers (DDR, OR, DR). An active
edge on another pin can then be latched.
I/O port Configuration Spurious Interrupt on
Vector #2
If a pin associated with interrupt vector #2 is in input with pull-up state, a 0 level is present on the
pin and the ESB bit = 0, when the I/O pin is configured as interrupt with pull-up by writing to the
DDRx, ORx and DRx register bits, an interrupt is
latched although a falling edge may not have occurred on the associated pin.
In the opposite case, if the pin is in interrupt with
pull-up state , a 0 level is present on the pin and
the ESB bit =1, when the I/O port is configured as
input with pull-up by writing to the DDRx, ORx and
DRx bits, an interrupt is latched although a rising
edge may not have occurred on the associated
pin.
29/104
ST6208C/ST6209C/ST6210C/ST6220C
30/104
INSTRUCTION
FETCH
INSTRUCTION
EXECUTE
INSTRUCTION
WAS
THE INSTRUCTION
A RETI ?
LOAD PC FROM
INTERRUPT VECTOR
NO
CLEAR
INTERNAL LATCH *)
YES
IS THE CORE
ALREADY IN
NORMAL MODE?
YES
DISABLE
MASKABLE INTERRUPT
NO
ENABLE
MASKABLE INTERRUPTS
SELECT
NORMAL FLAGS
PUSH THE
PC INTO THE STACK
SELECT
INTERRUPT FLAGS
POP
THE STACKED PC
NO
IS THERE AN
AN INTERRUPT REQUEST
AND INTERRUPT MASK?
YES
*)
6 CPU cycles
Maximum
11 CPU cycles
ST6208C/ST6209C/ST6210C/ST6220C
0
LES
ESB
GEN
Source
Block
RESET
NMI
Description
Register
Label
Flag
Reset
Non Maskable Interrupt
N/A
N/A
N/A
N/A
Exit
from
STOP
yes
yes
N/A
N/A
TSCR
ADCR
N/A
N/A
TMZ
EOC
yes
yes
yes
no
NOT USED
Vector #1
Vector #2
Vector #3
Vector #4
Port A
Port B
TIMER
ADC*
Vector
Address
FFEh-FFFh
FFCh-FFDh
FFAh-FFBh
FF8h-FF9h
FF6h-FF7h
FF4h-FF5h
FF2h-FF3h
FF0h-FF1h
Priority
Order
Highest
Priority
Lowest
Priority
31/104
ST6208C/ST6209C/ST6210C/ST6220C
32/104
STOP
Low
POWER CONSUMPTION
ST6208C/ST6209C/ST6210C/ST6220C
On
No
N
RESET
N
INTERRUPT
OSCILLATOR
Restart
Yes
2048
CLOCK CYCLE
DELAY
OSCILLATOR
On
33/104
ST6208C/ST6209C/ST6210C/ST6220C
34/104
STOP
2048
CLOCK CYCLE
DELAY
RUN
STOP
INSTRUCTION
RESET
OR
INTERRUPT
FETCH
VECTOR
ST6208C/ST6209C/ST6210C/ST6220C
WATCHDOG
DISABLE
EXCTNL
VALUE 1)
0
LEVEL
ON
NMI PIN
OSCILLATOR
Clock to
Off
PERIPHERALS2)
Clock to CPU
No
No
N
OSCILLATOR
RESET
On
Clock to CPU
N
INTERRUPT 3)
Y
Y
OSCILLATOR
Restart
N
INTERRUPT
Yes
Y
RESET
2048
CLOCK CYCLE DELAY
OSCILLATOR
On
Yes
Notes:
1. EXCTNL is an option bit. See option byte section for more details.
2. Peripheral clocked with an external clock source can still be active.
3. Only some specific interrupts can exit the MCU from STOP mode (such as external interrupt). Refer to
the Interrupt Mapping table for more details.
35/104
ST6208C/ST6209C/ST6210C/ST6220C
36/104
ST6208C/ST6209C/ST6210C/ST6220C
7 I/O PORTS
7.1 INTRODUCTION
Each I/O port contains up to 8 pins. Each pin can
be programmed independently as digital input
(with or without pull-up and interrupt generation),
digital output (open drain, push-pull) or analog input (when available).
The I/O pins can be used in either standard or alternate function mode.
Standard I/O mode is used for:
Transfer of data through digital inputs and outputs (on specific pins):
External interrupt generation
Alternate function mode is used for:
Alternate signal input/output for the on-chip
peripherals
The generic I/O block diagram is shown in Figure
23.
7.2 FUNCTIONAL DESCRIPTION
Each port is associated with 3 registers located in
Data space:
Data Register (DR)
Data Direction Register (DDR)
Option Register (OR)
Each I/O pin may be programmed using the corresponding register bits in the DDR, DR and OR registers: bit x corresponding to pin x of the port. Table
9 illustrates the various port configurations which
can be selected by user software.
During MCU initialization, all I/O registers are
cleared and the input mode with pull-up and no interrupt generation is selected for all the pins, thus
avoiding pin conflicts.
7.2.1 Digital Input Modes
The input configuration is selected by clearing the
corresponding DDR register bit.
In this case, reading the DR register returns the
digital value applied to the external I/O pin.
Different input modes can be selected by software
through the DR and OR registers, see Table 9.
External Interrupt Function
Push-pull
VSS
VDD
Open-drain
VSS
Floating
37/104
ST6208C/ST6209C/ST6210C/ST6220C
RESET
VDD
VDD
DATA
DIRECTION
REGISTER
VDD
N-BUFFER
OPTION
REGISTER
P-BUFFER
CLAMPING
DIODES
CMOS
SCHMITT
TO INTERRUPT
TO ADC
TRIGGER
OR
DR
Mode
Input
Input
No pull-up, no interrupt
Input
Input
Output
Output
38/104
Option
ST6208C/ST6209C/ST6210C/ST6220C
Description
No effect on I/O ports. External interrupts
cause the device to exit from WAIT mode.
No effect on I/O ports. External interrupts
cause the device to exit from STOP mode.
WAIT
STOP
7.4 INTERRUPTS
The external interrupt event generates an interrupt
if the corresponding configuration is selected with
DDR, DR and OR registers (see Table 9) and the
GEN-bit in the IOR register is set.
011
Input
Analog
Input
pull-up (Reset
state)
000
001
Input
Output
Open Drain
100
101
Output
Open Drain
Output
Push-pull
110
111
Output
Push-pull
39/104
ST6208C/ST6209C/ST6210C/ST6220C
MODE
SCHEMATIC
VDD
Input
VDD
PA0-PA3
PB0-PB7
DDRx
ORx
DRx
Interrupt
Reset state
Digital Input
Data in
VDD
Input
VDD
PA0-PA3
with pull up
PB0-PB7
DDRx
ORx
DRx
Data in
Interrupt
Input
VDD
with pull up
VDD
PA0-PA3
with interrupt
Analog Input
PB0-PB7
DDRx
ORx
DRx
Interrupt
PB0-PB3
(ST6210C/20C
only)
Analog Input
DDRx
ORx
DRx
Data in
VDD
PB4-PB7
(All devices,
except ST6208C)
PB0-PB7
ADC
VDD
Data out
Digital output
ORx
DRx
0/1
PB0-PB7
VDD
Push-pull output (20 mA) PA0-PA3
DDRx
ORx
DRx
0/1
Note 1. Provided the correct configuration has been selected (see Table 9).
40/104
P-buffer disconnected
Data out
ST6208C/ST6209C/ST6210C/ST6220C
D7
D6
D5
D4
D3
D2
D1
D0
DD7
DD6
DD5
DD4
DD3
DD2
DD1
O7
O6
O5
O4
O3
O2
O1
O0
DD0
Register
Label
Reset Value
of all I/O port registers
0C0h
DRA
0C1h
0C4h
DRB
DDRA
0C5h
DDRB
0CCh
ORA
0CDh
ORB
MSB
LSB
MSB
LSB
MSB
LSB
41/104
ST6208C/ST6209C/ST6210C/ST6220C
8 ON-CHIP PERIPHERALS
8.1 WATCHDOG TIMER (WDG)
8.1.1 Introduction
The Watchdog timer is used to detect the occurrence of a software fault, usually generated by external interference or by unforeseen logical conditions, which causes the application program to
abandon its normal sequence. The Watchdog circuit generates an MCU reset on expiry of a programmed time period, unless the program refreshes the counters contents before the SR bit becomes cleared.
RESET
bit 7
fint /12
42/104
T1
T2
T3
T4
T5
7-BIT DOWNCOUNTER
CLOCK DIVIDER
256
SR
bit 0
ST6208C/ST6209C/ST6210C/ST6220C
SWITCH
NMI
I/O
VR02002
Max.
Min.
WDGR Register
initial value
FEh
02h
43/104
ST6208C/ST6209C/ST6210C/ST6220C
Description
No effect on Watchdog.
Behaviour depends on the EXTCNTL option in the Option bytes:
1. Watchdog disabled:
The MCU will enter Stop mode if a STOP instruction is executed.
2. Watchdog enabled and EXTCNTL option disabled:
If a STOP instruction is encountered, it is interpreted as a WAIT.
3. Watchdog and EXTCNTL option enabled:
If a STOP instruction is encountered when the NMI pin is low, it is interpreted as a WAIT. If, however, the
STOP instruction is encountered when the NMI pin is high, the Watchdog counter is frozen and the CPU enters STOP mode.
When the MCU exits STOP mode (i.e. when an interrupt is generated), the Watchdog resumes its activity.
8.1.6 Interrupts
None.
44/104
ST6208C/ST6209C/ST6210C/ST6220C
0
T1
T2
T3
T4
T5
SR
45/104
ST6208C/ST6209C/ST6210C/ST6220C
fINT/12
fCOUNTER
TCR
TCR7
REGISTER
TCR6
TCR5
fEXT
TCR4
TCR3
TCR2
TCR1
TCR0
LATCH
7
TMZ
0
ETI
TOUT
DOUT
PSI
PS2
PS1
TSCR
REGISTER
PS0
INTERRUPT
fPRESCALER
RELOAD
PSCR REGISTER
PROGRAMMABLE PRESCALER
46/104
/64
/32
/16
/8
/4
/2
/1
ST6208C/ST6209C/ST6210C/ST6220C
caler and the counter run at the rate of the selected clock source.
Counter and Prescaler Initialization
After RESET, the counter and the prescaler are initialized to 0FFh and 7Fh respectively.
The 7-bit prescaler can be initialized to 7Fh by
clearing the PSI bit. Direct write access to the
prescaler is also possible when PSI =1. Then, any
value between 0 and 7Fh can be loaded into it.
The 8-bit counter can be initialized separately by
writing to the TCR register.
8.2.3.1 8-bit Counting and Interrupt Capability
on Counter Underflow
Whatever the division factor defined for the prescaler, the Timer Counter works as an 8-bit downcounter. The input clock frequency is user selectable using the PS[2:0] bits.
When the downcounter decrements to zero, the
TMZ (Timer Zero) bit in the TSCR is set. If the ETI
(Enable Timer Interrupt) bit in the TSCR is also
set, an interrupt request is generated.
The Timer interrupt can be used to exit the MCU
from WAIT or STOP mode.
The TCR can be written at any time by software to
define a time period ending with an underflow
event, and therefore manage delay or timer functions.
TMZ is set when the downcounter reaches zero;
however, it may also be set by writing 00h in the
TCR register or by setting bit 7 of the TSCR register.
The TMZ bit must be cleared by user software
when servicing the timer interrupt to avoid undesired interrupts when leaving the interrupt service
routine.
Note: A write to the TCR register will predominate
over the 8-bit counter decrement to 00h function,
i.e. if a write and a TCR register decrement to 00h
occur simultaneously, the write will take precedence, and the TMZ bit is not set until the 8-bit
counter underflows again.
47/104
ST6208C/ST6209C/ST6210C/ST6220C
fEXT
Timer
Function
Application
External counter clock
source
COUNTER VALUE
Event Counter
(input)
Gated input
(input)
Output 0
(output)
Output signal
Output 1
(output)
xx1
VALUE 1
VALUE 2
xx2
generation
48/104
TIMER PIN
PULSE LENGTH
1
TIMER CLOCK
ST6208C/ST6209C/ST6210C/ST6220C
fPRESCALER
TIMER
TIMER
LATCH
COUNTER VALUE
XX1
TOUT
DOUT
VALUE 1
VALUE 2
FFh
TIMER PIN
TIMER PIN
1st downcount:
Default output value is 0
49/104
ST6208C/ST6209C/ST6210C/ST6220C
STOP
50/104
Description
No effect on timer.
Timer interrupt events cause the device to
exit from WAIT mode.
Timer registers are frozen except in Event
Counter mode (with external clock on TIMER pin).
8.2.6 Interrupts
Interrupt Event
Timer Zero
Event
Event
Flag
Enable
Bit
Exit
from
Wait
Exit
from
Stop
TMZ
ETI
Yes
Yes
ST6208C/ST6209C/ST6210C/ST6220C
0
TCR6
TCR5
TCR4
TCR3
TCR2
TCR1
TCR0
0
ETI
TOUT DOUT
PSI
PS2
PS1
PS0
PS1
0
0
1
1
0
0
1
1
PS0
0
1
0
1
0
1
0
1
Divided by
1
2
4
8
16
32
64
128
Register Label
PSCR
Reset Value
TCR
Reset Value
TSCR
Reset Value
PSCR7
0
TCR7
1
TMZ
0
PSCR6
1
TCR6
1
ETI
0
PSCR5
1
TCR5
1
TOUT
0
PSCR4
1
TCR4
1
DOUT
0
PSCR3
1
TCR3
1
PSI
0
PSCR2
1
TCR2
1
PS2
0
PSCR1
1
TCR1
1
PS1
0
PSCR0
1
TCR0
1
PS0
0
51/104
ST6208C/ST6209C/ST6210C/ST6220C
fINT
fADC
DIV 12
AD OSC AD AD
EAI EOC STA PDS CR3
OFF CR1 CR0
ADCR
I/O PORT
AIN0
AIN1
ANALOG TO DIGITAL
PORT
MUX
CONVERTER
AINx
DDRx
ORx
DRx
ADR
ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0
Note: ADC not present on some devices. See device summary on page 1.
52/104
ST6208C/ST6209C/ST6210C/ST6220C
53/104
ST6208C/ST6209C/ST6210C/ST6220C
54/104
Digital
Input
RINJ
VINJ
PBy/AINy
Leakage Current
if VINJ < VSS
Analog
Input
PBx/AINx
RADC
VAIN
I/O Port
(Digital I/O)
A/D
Converter
ST6208C/ST6209C/ST6210C/ST6220C
Description
No effect on A/D Converter. ADC interrupts
cause the device to exit from Wait mode.
A/D Converter disabled.
WAIT
STOP
Note: The A/D converter may be disabled by clearing the PDS bit. This feature allows reduced power
consumption when no conversion is needed.
8.3.6 Interrupts
Interrupt Event
Event
Flag
Enable
Bit
Exit
from
Wait
Exit
from
Stop
End of Conversion
EOC
EAI
Yes
No
EAI
EOC
STA
PDS
ADCR
3
OSC
OFF
ADCR ADCR
1
0
ADR7
ADR6 ADR5
ADR4
ADR3 ADR2
ADR1
ADR0
Register
Label
0D0h
ADR
Reset Value
ADR7
0
ADR6
0
ADR5
0
ADR4
0
ADR3
0
ADR2
0
ADR1
0
ADR0
0
0D1h
ADCR
Reset Value
EAI
0
EOC
1
STA
0
PDS
0
ADCR3
0
OSCOFF
0
ADCR1
0
ADCR0
0
(Hex.)
55/104
ST6208C/ST6209C/ST6210C/ST6220C
9 INSTRUCTION SET
9.1 ST6 ARCHITECTURE
The ST6 architecture has been designed for maximum efficiency while keeping byte usage to a
minimum; in short, to provide byte-efficient programming. The ST6 core has the ability to set or
clear any register or RAM location bit in Data
space using a single instruction. Furthermore, programs can branch to a selected address depending on the status of any bit in Data space.
9.2 ADDRESSING MODES
The ST6 has nine addressing modes, which are
described in the following paragraphs. Three different address spaces are available: Program
space, Data space, and Stack space. Program
space contains the instructions which are to be executed, plus the data for immediate mode instructions. Data space contains the Accumulator, the X,
Y, V and W registers, peripheral and Input/Output
registers, the RAM locations and Data ROM locations (for storage of tables and constants). Stack
space contains six 12-bit RAM cells used to stack
the return addresses for subroutines and interrupts.
Immediate. In immediate addressing mode, the
operand of the instruction follows the opcode location. As the operand is a ROM byte, the immediate
addressing mode is used to access constants
which do not change during program execution
(e.g., a constant used to initialize a loop counter).
Direct. In direct addressing mode, the address of
the byte which is processed by the instruction is
stored in the location which follows the opcode. Direct addressing allows the user to directly address
the 256 bytes in Data Space memory with a single
two-byte instruction.
Short Direct. The core can address the four RAM
registers X, Y, V, W (locations 80h, 81h, 82h, 83h)
in short-direct addressing mode. In this case, the
instruction is only one byte and the selection of the
location to be processed is contained in the opcode. Short direct addressing is a subset of direct
addressing mode. (Note that 80h and 81h are also
indirect registers).
Extended. In extended addressing mode, the 12bit address needed to define the instruction is obtained by concatenating the four least significant
bits of the opcode with the byte following the opcode. The instructions (JP, CALL) which use ex-
56/104
ST6208C/ST6209C/ST6210C/ST6220C
Addressing Mode
Short Direct
Short Direct
Short Direct
Short Direct
Short Direct
Short Direct
Short Direct
Short Direct
Direct
Direct
Indirect
Indirect
Indirect
Indirect
Immediate
Immediate
Bytes
Cycles
1
1
1
1
1
1
1
1
2
2
1
1
1
1
2
3
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
Flags
Z
C
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Legend:
X, Y Index Registers,
V, W Short Direct Registers
#
Immediate data (stored in ROM memory)
rr
Data space register
Affected
*
Not Affected
57/104
ST6208C/ST6209C/ST6210C/ST6220C
Affected
58/104
Addressing Mode
Indirect
Indirect
Direct
Immediate
Indirect
Indirect
Direct
Immediate
Short Direct
Direct
Inherent
Indirect
Indirect
Direct
Immediate
Short Direct
Short Direct
Short Direct
Short Direct
Direct
Direct
Indirect
Indirect
Short Direct
Short Direct
Short Direct
Short Direct
Direct
Direct
Indirect
Indirect
Inherent
Inherent
Indirect
Indirect
Direct
Immediate
Bytes
Cycles
1
1
2
2
1
1
2
2
2
3
1
1
1
2
2
1
1
1
1
2
2
1
1
1
1
1
1
2
2
1
1
1
2
1
1
2
2
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
Flags
Z
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
ST6208C/ST6209C/ST6210C/ST6220C
Bit Manipulation Instructions. These instructions can handle any bit in Data space memory.
One group either sets or clears. The other group
(see Conditional Branch) performs the bit test
branch operations.
Branch If
C=1
C=0
Z=1
Z=0
Bit = 0
Bit = 1
Bytes
Cycles
1
1
1
1
3
3
2
2
2
2
5
5
Notes:
b
3-bit address
e
5 bit signed displacement in the range -15 to +16
ee 8 bit signed displacement in the range -126 to +129
rr
Flags
Z
*
*
*
*
*
*
C
*
*
*
*
Addressing Mode
Bit Direct
Bit Direct
Bytes
Cycles
2
2
4
4
Flags
Z
*
*
C
*
*
Notes:
b
3-bit address
*
Not Affected
rr
Data space register
Bit Manipulation Instructions should not be used on Port Data Registers and any registers with read only and/or write only bits (see I/O port
chapter)
Addressing Mode
Inherent
Inherent
Inherent
Inherent
Inherent
Bytes
Cycles
1
1
1
1
1
2
2
2
2
2
Flags
Z
*
*
*
*
C
*
*
*
*
Notes:
1.
This instruction is deactivated and a WAIT is automatically executed instead of a STOP if the watchdog function is selected.
Affected
*Not Affected
Addressing Mode
Extended
Extended
Bytes
Cycles
2
2
4
4
Flags
Z
*
*
C
*
*
Notes:
abc 12-bit address
*
Not Affected
59/104
ST6208C/ST6209C/ST6210C/ST6220C
Opcode Map Summary. The following table contains an opcode map for the instructions used by the ST6
LOW
0
0000
HI
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
1
0001
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
CALL
abc
ext
60/104
2
0010
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
3
0011
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
5
3
JRR
b0,rr,ee
bt
JRS
b0,rr,ee
bt
JRR
b4,rr,ee
bt
JRS
b4,rr,ee
bt
JRR
b2,rr,ee
bt
JRS
b2,rr,ee
bt
JRR
b6,rr,ee
bt
JRS
b6,rr,ee
bt
JRR
b1,rr,ee
bt
JRS
b1,rr,ee
bt
JRR
b5,rr,ee
bt
JRS
b5,rr,ee
bt
JRR
b3,rr,ee
bt
JRS
b3,rr,ee
bt
JRR
b7,rr,ee
bt
JRS
b7,rr,ee
bt
4
0100
2
1
2
1
2
1
2
e
1
2
5
0101
JRZ
e NOP
pcr
JRZ 4
e
pcr 1
JRZ
e
pcr
JRZ 4
6
0110
2
x
sd 1
2
#
pcr 1
JRZ
e
1
2
sd 1
2
pcr
JRZ 4
e
1
2
pcr 1
JRZ
e
1
2
1
2
Legend:
#
Indicates Illegal Instructions
e
5-bit Displacement
b
3-bit Address
rr
1-byte Data space address
nn
1-byte immediate data
abc 12-bit address
ee
8-bit displacement
e
prc 1
JRC 4
e
sd 1
2
#
pcr
JRZ 4
prc 2
JRC 4
1
INC 2
w
pcr 1
JRZ
1
2
prc 1
JRC 4
sd 1
2
pcr
JRZ 4
e
prc
JRC 4
1
LD 2
prc 2
JRC 4
e
1
LD 2
a,w
pcr 1
prc 1
JRC
e
sd 1
AND
a,(x)
ind
ANDI
a,nn
imm
SUB
a,(x)
ind
SUBI
a,nn
imm
DEC
(x)
ind
#
prc
Cycles
Operands
Bytes
Addressing Mode
ind
#
a,v
LD
prc 1
JRC
JRC
e
prc
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
(x),a
a,nn
imm
CP
a,(x)
ind
CPI
a,nn
imm
ADD
a,(x)
ind
ADDI
a,nn
imm
INC
(x)
ind
#
ind
LDI
prc
JRC 4
1
INC 2
pcr 1
JRZ
1
2
prc 1
JRC
sd 1
2
pcr
JRZ 4
1
2
a,y
prc 2
JRC 4
1
LD 2
pcr 1
JRZ
1
2
prc 1
JRC 4
sd 1
2
pcr
JRZ 4
1
2
prc 2
JRC 4
1
INC 2
pcr 1
JRZ
1
2
prc 1
JRC 4
sd 1
2
pcr
JRZ 4
a,(x)
prc 2
JRC 4
1
LD 2
HI
LD
prc 1
JRC 4
e
a,x
1
2
JRC 4
1
INC 2
LOW
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111
Mnemonic
ST6208C/ST6209C/ST6210C/ST6220C
8
1000
HI
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
JRNZ
e
pcr
9
1001
4
A
1010
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
2
4
ext 1
JP 2
abc
ext 1
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
JRNC
e
pcr
B
1011
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
4
2
RES
b0,rr
b.d
SET
b0,rr
b.d
RES
b4,rr
b.d
SET
b4,rr
b.d
RES
b2,rr
b.d
SET
b2,rr
b.d
RES
b6,rr
b.d
SET
b6,rr
b.d
RES
b1,rr
b.d
SET
b1,rr
b.d
RES
b5,rr
b.d
SET
b5,rr
b.d
RES
b3,rr
b.d
SET
b3,rr
b.d
RES
b7,rr
b.d
SET
b7,rr
b.d
C
1100
2
D
1101
JRZ 4
e
1
2
pcr 3
JRZ 4
e
1
2
pcr 1
JRZ 4
e
1
2
e
1
2
E
1110
LDI 2
rr,nn
imm
DEC
x
sd
COM
a
pcr
JRZ 4
1
2
pcr 1
JRZ 2
sd 1
RETI 2
pcr 1
JRZ 4
inh 1
DEC 2
y
pcr 1
JRZ 2
sd 1
STOP 2
pcr 1
JRZ 4
inh 1
LD 2
1
2
y,a
pcr 1
JRZ 2
sd 1
RET 2
pcr 1
JRZ 4
inh 1
DEC 2
JRC
prc 1
JRC 4
prc 2
JRC 4
e
prc 1
JRC 4
e
pcr 1
JRZ 2
sd 1
WAIT 2
pcr 1
JRZ 4
inh 1
LD 2
prc 2
JRC 4
e
Legend:
#
Indicates Illegal Instructions
e
5-bit Displacement
b
3-bit Address
rr
1-byte Data space address
nn
1-byte immediate data
abc 12-bit address
ee
8-bit Displacement
prc 2
prc 2
JRC 4
prc 1
JRC 4
v,a
1
2
prc 2
JRC 4
inh 1
LD 2
1
2
prc 1
JRC 4
sd 1
RCL 2
a
1
2
prc 2
JRC 4
pcr 1
JRZ 4
1
2
prc 1
JRC 4
1
DEC 2
pcr 1
JRZ 4
1
2
dir
ADD
a,(y)
ind
ADD
a,rr
dir
INC
(y)
ind
INC
rr
dir
LD
(y),a
ind
LD
rr,a
dir
AND
a,(y)
ind
AND
a,rr
dir
SUB
a,(y)
ind
SUB
a,rr
dir
DEC
(y)
ind
DEC
rr
dir
pcr
JRZ 4
1
2
prc 2
JRC 4
sd 1
2
w,a
pcr 1
prc 1
JRC 4
e
sd 1
Cycles
Operands
Bytes
ind
CP
a,rr
pcr 1
JRZ
1
2
a,(y)
dir
CP
prc 1
JRC 4
e
1
2
ind
LD
a,rr
1
2
a,(y)
prc 2
JRC 4
1
LD 2
HI
LD
prc 1
JRC 4
e
x,a
1
2
JRC 4
1
2
LOW
F
1111
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111
Mnemonic
e
1
prc
Addressing Mode
61/104
ST6208C/ST6209C/ST6210C/ST6220C
10 ELECTRICAL CHARACTERISTICS
10.1 PARAMETER CONDITIONS
Unless otherwise specified, all voltages are referred to VSS.
10.1.1 Minimum and Maximum Values
Unless otherwise specified the minimum and maximum values are guaranteed in the worst conditions of ambient temperature, supply voltage and
frequencies by tests in production on 100% of the
devices with an ambient temperature at TA=25C
and TA=TAmax (given by the selected temperature
range).
Data based on characterization results, design
simulation and/or technology characteristics are
indicated in the table footnotes and are not tested
in production. Based on characterization, the minimum and maximum values refer to sample tests
and represent the mean value plus or minus three
times the standard deviation (mean3).
10.1.2 Typical Values
Unless otherwise specified, typical data are based
on TA=25C, VDD=5V (for the 4.5VVDD6.0V
voltage range) and VDD=3.3V (for the
3VVDD3.6V voltage range). They are given only
as design guidelines and are not tested.
10.1.3 Typical Curves
Unless otherwise specified, all typical curves are
given only as design guidelines and are not tested.
10.1.4 Loading Capacitor
The loading conditions used for pin parameter
measurement is shown in Figure 36.
62/104
ST6 PIN
CL
ST6 PIN
VIN
ST6208C/ST6209C/ST6210C/ST6220C
Ratings
Maximum value
Supply voltage
Unit
VSS-0.3 to VDD+0.3
VSS-0.3 to VDD+0.3
3500
Ratings
Maximum value
3)
IVDD
IVSS
IIO
IINJ(PIN) 2) & 4)
Unit
80
100
20
40
15
mA
Ratings
Storage temperature range
Value
Unit
-60 to +150
Notes:
1. Directly connecting the RESET and I/O pins to VDD or VSS could damage the device if an unintentional internal reset
is generated or an unexpected change of the I/O configuration occurs (for example, due to a corrupted program counter). To guarantee safe operation, this connection has to be done through a pull-up or pull-down resistor (typical: 4.7k
for RESET, 10k for I/Os). Unused I/O pins must be tied in the same way to VDD or VSS according to their reset configuration.
2. When the current limitation is not possible, the VIN absolute maximum rating must be respected, otherwise refer to
IINJ(PIN) specification. A positive injection is induced by VIN>VDD while a negative injection is induced by VIN<VSS.
3. Power (VDD) and ground (VSS) lines must always be connected to the external supply.
4. Negative injection disturbs the analog performance of the device. In particular, it induces leakage currents throughout
the device including the analog inputs. To avoid undesirable effects on the analog functions, care must be taken:
- Analog input pins must have a negative injection less than 1mA (assuming that the impedance of the analog voltage
is lower than the specified limits).
- Pure digital pins must have a negative injection less than 1mA. In addition, it is recommended to inject the current as
far as possible from the analog input pins.
63/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
VDD
Conditions
Supply voltage
fOSC
TA
Max
Unit
3.0
0 1)
VDD=3.0V, 3 Suffix
0 1)
0 1)
VDD=3.6V, 3 Suffix
0 1)
3.0
6.0
fOSC=4MHz, 3 Suffix
3.0
6.0
3.6
6.0
fOSC=8MHz, 3 Suffix
4.5
6.0
1 Suffix Version
70
6 Suffix Version
-40
85
3 Suffix Version
-40
125
see Figure 38
Oscillator frequency
VDD
Min
MHz
Notes:
1. An oscillator frequency above 1.2MHz is recommended for reliable A/D results.
2. Operating conditions with TA=-40 to +125C.
Figure 38. fOSC Maximum Operating Frequency Versus VDD Supply Voltage for OTP & ROM devices
fOSC [MHz]
1 & 6 suffix version
FUNCTIONALITY
NOT GUARANTEED
IN THIS AREA
8
7
6
5
4
3 suffix version
3
fOSG
2
fOSG Min
3
1
2
1
2.5
3.6
4.5
5.5
SUPPLY
VOLTAGE (VDD)
64/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Conditions
Vhys
VtPOR
tg(VDD)
VIT-
Min
Typ 1)
Max
3.9
4.1
4.3
3.6
3.8
50
300
700
Unit
VIT+-VIT-
mV
mV/s
30
ns
Notes:
1. LVD typical data are based on TA=25C. They are given only as design guidelines and are not tested.
2. The minimum VDD rise time rate is needed to insure a correct device power-on and LVD reset. Not tested in production.
3. Data based on characterization results, not tested in production.
fOSC [MHz]
DEVICE UNDER 8
RESET
IN THIS AREA 4
0
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2.5
3.5
FUNCTIONAL AREA
VIT-3.6
4.5
Thresholds [V]
4.2
4.2
3.8
3.6
SUPPLY
VOLTAGE [V]
Thresholds [V]
V
Vdd
IT+ up
V
Vdd
IT- down
5.5
vs.
VVdd
IT+ up
VVdd
IT- down
3.8
3.6
-40C
25C
95C
T [C]
125C
-40C
25C
95C
125C
T [C]
65/104
ST6208C/ST6209C/ST6210C/ST6220C
Typ 1)
Max 2)
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
0.5
1.3
1.6
2.2
3.3
0.7
1.7
2.4
3.3
4.8
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
0.3
0.6
0.9
1.0
1.8
0.4
0.8
1.2
1.5
2.3
Conditions
3)
IDD
Supply current in RUN mode 3)
(see Figure 42 & Figure 43)
3VVDD3.6V 4.5VVDD6.0V
Symbol
Unit
mA
Notes:
1. Typical data are based on TA=25C, VDD=5V (4.5VVDD6.0V range) and VDD=3.3V (3VVDD3.6V range).
2. Data based on characterization results, tested in production at VDD max. and fOSC max.
3. CPU running with memory access, all I/O pins in input with pull-up mode (no load), all peripherals in reset state; clock
input (OSCIN) driven by external square wave, OSG and LVD disabled, option bytes not programmed.
IDD [mA]
IDD [mA]
3.5
8MHz
1MHz
4MHz
32KHz
2MHz
2.5
3
8MHz
1MHz
4MHz
32KHz
2MHz
2
1.5
1
1
0.5
0
3
5
VDD [V]
66/104
0
-40
25
95
T[C]
125
ST6208C/ST6209C/ST6210C/ST6220C
IDD
3VVDD3.6V
ROM devices
3)
OTP devices
4.5VVDD6.0V
Typ 1)
Max 2)
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
330
350
370
410
480
550
600
650
700
800
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
18
26
41
57
70
60
80
120
180
200
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
190
210
240
280
350
300
350
400
500
600
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
80
90
100
120
150
120
140
150
200
250
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
5
8
16
18
20
30
40
50
60
100
fOSC=32kHz
fOSC=1MHz
fOSC=2MHz
fOSC=4MHz
fOSC=8MHz
60
65
80
100
130
100
110
120
150
210
Conditions
OTP devices
Parameter
ROM devices
Symbol
Unit
Notes:
1. Typical data are based on TA=25C, VDD=5V (4.5VVDD6.0V range) and VDD=3.3V (3VVDD3.6V range).
2. Data based on characterization results, tested in production at VDD max. and fOSC max.
3. All I/O pins in input with pull-up mode (no load), all peripherals in reset state; clock input (OSCIN) driven by external
square wave, OSG and LVD disabled.
67/104
ST6208C/ST6209C/ST6210C/ST6220C
IDD [A]
800
700
700
8MHz
1M
4MHz
32KHz
2MHz
8MHz
1MHz
4MHz
32KHz
2MHz
600
600
500
500
400
400
300
200
300
100
0
200
-40
VDD [V]
25
95
125
T[C]
Figure 45. Typical IDD in WAIT vs fCPU and Temperature for OTP devices with option bytes
programmed to 00H
IDD [A]
IDD [A]
120
90
100
8MHz
1M
4MHz
32KHz
80
2MHz
8MHz
1MHz
4MHz
32KHz
2MHz
70
80
60
60
50
40
40
30
20
20
0
10
3
5
VDD [V]
68/104
-20
25
T[C]
95
ST6208C/ST6209C/ST6210C/ST6220C
IDD [A]
600
450
500
8MHz
1M
8MHz
1MHz
4MHz
32KHz
4MHz
32KHz
400
2MHz
2MHz
350
400
300
300
250
200
200
100
150
100
3
5
VDD [V]
-20
25
95
125
T[C]
69/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Supply current in STOP mode 2)
(see Figure 47 & Figure 48)
IDD
Typ 1)
Conditions
OTP devices
0.3
ROM devices
0.1
Max
Unit
10 3)
20 4)
2 3)
20 4)
Notes:
1. Typical data are based on VDD=5.0V at TA=25C.
2. All I/O pins in input with pull-up mode (no load), all peripherals in reset state, OSG and LVD disabled, option bytes
programmed to 00H. Data based on characterization results, tested in production at VDD max. and fCPU max.
3. Maximum STOP consumption for -40C<Ta<90C
4. Maximum STOP consumption for -40C<Ta<125C
IDD [nA]
1200
1000
Ta=-40C
Ta=95C
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
Ta=25C
Ta=125C
1500
800
1000
600
400
500
200
0
3
5
VDD [V]
70/104
5
VDD [V]
ST6208C/ST6209C/ST6210C/ST6220C
source current consumption. To get the total device consumption, the two current values must be
added (except for STOP mode).
Parameter
Typ 1)
Conditions
IDD(CK)
fOSC=32 kHz,
fOSC=1 MHz
fOSC=2 MHz
fOSC=4 MHz
fOSC=8 MHz
VDD=5.0 V
fOSC=32 kHz,
fOSC=1 MHz
fOSC=2 MHz
fOSC=4 MHz
fOSC=8 MHz
VDD=3.3 V
fOSC=32 kHz,
fOSC=1 MHz
fOSC=2 MHz
fOSC=4 MHz
fOSC=8MHz
fOSC=32 kHz,
fOSC=1 MHz
fOSC=2 MHz
fOSC=4 MHz
fOSC=8 MHz
Unit
230
260
340
480
80
110
180
320
VDD=5.0 V
900
280
240
140
40
VDD=3.3 V
120
70
50
20
10
IDD(LFAO)
VDD=5.0 V
102
IDD(OSG)
VDD=5.0 V
40
IDD(LVD)
current 5)
VDD=5.0 V
170
LVD supply
Max 2)
Parameter
Conditions
fOSC=8 MHz
7)
fOSC=8 MHz
VDD=5.0
VDD=3.3
VDD=5.0
VDD=3.3
V
V
V
V
Typ 1)
Unit
170
100
80
50
Notes:
1. Typical data are based on TA=25C.
2. Data based on characterization results, not tested in production.
3. Data based on a differential IDD measurement between reset configuration (OSG and LFAO disabled) and LFAO running (also includes the OSG stand alone consumption).
4. Data based on a differential IDD measurement between reset configuration with OSG disabled and OSG enabled.
5. Data based on a differential IDD measurement between reset configuration with LVD disabled and LVD enabled.
6. Data based on a differential IDD measurement between reset configuration (timer disabled) and timer running.
7. Data based on a differential IDD measurement between reset configuration and continuous A/D conversions.
71/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Instruction cycle time
Interrupt reaction time
tv(IT) = tc(INST) + 6
Conditions
fCPU=8 MHz
2)
fCPU=8 MHz
Min
Typ 1)
Max
Unit
tCPU
3.25
6.5
8.125
11
tCPU
9.75
17.875
Max
Unit
Parameter
VOSCINH
VOSCINL
IL
Conditions
Min
See Figure 49
Typ
0.7xVDD
VDD
VSS
0.3xVDD
VSSVINVDD
V
A
Notes:
1. Data based on typical application software.
2. Time measured between interrupt event and interrupt vector fetch. tc(INST) is the number of tCPU cycles needed to finish
the current instruction execution.
10%
VOSCINL
Not connected
OSCOUT
fOSC
EXTERNAL
CLOCK SOURCE
OSCIN
IL
ST62XX
72/104
ST6208C/ST6209C/ST6210C/ST6220C
characterization results with specified typical external components. Refer to the crystal/ceramic
resonator manufacturer for more details (frequency, package, accuracy...).
Parameter
Conditions
Feedback resistor
fOSC=32 kHz,
Recommended load capacitances versus equiva- fOSC=1 MHz
fOSC=2 MHz
lent crystal or ceramic resonator frequency
fOSC=4 MHz
fOSC=8 MHz
CL1
CL2
Oscillator
Reference
Freq.
Characteristic
1)
455KHz fOSC=[0.5KHztolerance,0.3%Ta,0.5%aging]
1MHz fOSC=[0.5KHztolerance,0.3%Ta,0.5%aging]
CSB1000J
CSTCC2.00MG0H6 2MHz fOSC=[0.5%tolerance,0.5%Ta,0.3%aging]
CSTCC4.00MG0H6 4MHz fOSC=[0.5%tolerance,0.3%Ta,0.3%aging]
8MHz fOSC=[0.5%tolerance,0.3%Ta,0.3%aging]
CSTCC8.00MG
MURATA
Ceramic
CSB455E
Typ
Unit
120
47
33
33
22
pF
47
47
15
15
Notes:
1. Resonator characteristics given by the crystal/ceramic resonator manufacturer.
2. tSU(OSC) is the typical oscillator start-up time measured between VDD=2.8V and the fetch of the first instruction (with a
quick VDD ramp-up from 0 to 5V (<50s).
3. The oscillator selection can be optimized in terms of supply current using an high quality resonator with small RS value.
Refer to crystal/ceramic resonator manufacturer for more details.
OSCIN
RESONATOR
RF
FOSC
OSCOUT
CL2
ST62XX
73/104
ST6208C/ST6209C/ST6210C/ST6220C
fOSC
RNET
Parameter
Conditions
3VVDD3.6V 4.5VVDD6.0V
Symbol
RC oscillator frequency 1)
Min
Typ
Max
RNET=22 k
RNET=47 k
RNET=100 k
RNET=220 k
RNET=470 k
7.2
5.1
3.2
1.8
0.9
8.6
5.7
3.4
1.9
0.95
10
6.5
3.8
2
1.1
RNET=22 k
RNET=47 k
RNET=100 k
RNET=220 k
RNET=470 k
3.7
2.8
1.8
1
0.5
4.3
3
1.9
1.1
0.55
4.9
3.3
2
1.2
0.6
22
870
Unit
MHz
Notes:
1. Data based on characterization results, not tested in production. These measurements were done with the OSCin pin
unconnected (only soldered on the PCB).
2. RNET must have a positive temperature coefficient (ppm/C), carbon resistors should therefore not be used.
VDD
EXTERNAL RC
VDD
OSCOUT
MIRROR
CURRENT
RNET
VDD
fOSC
OSCIN
NC
CEX~9pF DISCHARGE
ST62XX
74/104
ST6208C/ST6209C/ST6210C/ST6220C
Rnet=22KOhm
12
Rnet=47KOhm
fosc [MHz]
Rnet=220KOhm
Rnet=22KOhm
Rnet=47KOhm
10
Rnet=100KOhm
10
Rnet=100KOhm
Rnet=220KOhm
Rnet=470KOhm
Rnet=470KOhm
-40
25
VDD [V]
95
125
Ta [C]
10.5.5 Oscillator Safeguard (OSG) and Low Frequency Auxiliary Oscillator (LFAO)
Symbol
Parameter
Conditions
fLFAO
fOSG
Min
Typ
Max
TA=25 C, VDD=5.0 V
200
350
800
TA=25 C, VDD=3.3 V
TA=25 C, VDD=4.5 V
86
150
340
TA=25 C, VDD=3.3 V
Unit
kHz
MHz
500
Ta=25C
400
Ta=125C
300
200
100
0
3
VDD [V]
Note:
1. Data based on characterization results.
75/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Conditions
Min
Data retention1)
VRM
Typ
Max
0.7
Unit
V
Parameter
Data retention
Conditions
2)
TA=+55C
Min
3)
Typ
Max
10
Unit
years
-30
-20 -10
10
20
30
40
50
60
70
80
90
Temperature [C]
Notes:
1. Minimum VDD supply voltage without losing data stored in RAM (in STOP mode or under RESET) or in hardware registers (only in STOP mode). Guaranteed by construction, not tested in production.
2. Data based on reliability test results and monitored in production. For OTP devices, data retention and programmability
must be guaranteed by a screening procedure. Refer to Application Note AN886.
3. The data retention time increases when the TA decreases, see Figure 55.
76/104
ST6208C/ST6209C/ST6210C/ST6220C
Symbol
Parameter
Conditions
Neg 1)
Pos 1)
VFESD
-2
VFFTB
-2.5
Unit
kV
Notes:
1. Data based on characterization results, not tested in production.
2. The suggested 10 F and 0.1 F decoupling capacitors on the power supply lines are proposed as a good price vs.
EMC performance tradeoff. They have to be put as close as possible to the device power supply pins. Other EMC recommendations are given in other sections (I/Os, RESET, OSCx pin characteristics).
VDD
POWER
SUPPLY
SOURCE
10 F 0.1 F
ST6
DIGITAL NOISE
FILTERING
(close to the MCU)
VDD
VSS
77/104
ST6208C/ST6209C/ST6210C/ST6220C
Ratings
Conditions
VESD(HBM)
TA=+25C
2000
VESD(MM)
TA=+25C
200
Notes:
1. Data based on characterization results, not tested in production.
CL=100pF
ST6
S2
HIGH VOLTAGE
PULSE
GENERATOR
ST6
CL=200pF
78/104
MACHINE MODEL
R=10k~10M
HIGH VOLTAGE
PULSE
GENERATOR
S1
R=1500
S2
ST6208C/ST6209C/ST6210C/ST6220C
Electrical Sensitivities
Symbol
LU
DLU
Parameter
Class 1)
Conditions
TA=+25C
TA=+85C
A
A
Notes:
1. Class description: A Class is an STMicroelectronics internal specification. All its limits are higher than the JEDEC specifications, that means when a device belongs to Class A it exceeds the JEDEC standard. B Class strictly covers all the
JEDEC criteria (international standard).
2. Schaffner NSG435 with a pointed test finger.
CS=150pF
ESD
GENERATOR 2)
RD=330
DISCHARGE TIP
VDD
VSS
HV RELAY
ST6
DISCHARGE
RETURN CONNECTION
79/104
ST6208C/ST6209C/ST6210C/ST6220C
VDD
(2a)
(3a)
(1)
OUT
(4)
IN
Main path
(2b)
(3b)
Path to avoid
VSS
VSS
VDD
(2a)
(3a)
(1)
OUT
(4)
IN
Main path
(3b)
VSS
80/104
(2b)
VSS
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Conditions
VIL
Vhys
VDD=5V
Schmitt trigger voltage hysteresis 3)
VDD=3.3V
0.3xVDD
VSSVINVDD
(no pull-up configured)
RPU
VIN=VSS
CIN
COUT
Max
0.7xVDD
tf(IO)out
Typ 1)
2)
VIH
IL
Min
200
400
200
400
Unit
V
mV
0.1
VDD=5V
40
110
350
VDD=3.3V
80
230
700
10
pF
10
pF
tr(IO)out
CL=50pF
Output low to high level rise time 5) Between 10% and 90%
tw(IT)in
30
35
1
ns
tCPU
Ta=25C
250
Ta=95C
Ta=125C
200
150
100
50
3
VDD [V]
Notes:
1. Unless otherwise specified, typical data are based on TA=25C and VDD=5V.
2. Data based on characterization results, not tested in production.
3. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
4. The RPU pull-up equivalent resistor is based on a resistive transistor. This data is based on characterization results,
not tested in production.
5. Data based on characterization results, not tested in production.
6. To generate an external interrupt, a minimum pulse width has to be applied on an I/O port pin configured as an external
interrupt source.
ST62XX
10k
ST62XX
81/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Conditions
VOL 1)
Output low level voltage for a high sink I/O pin
(see Figure 64 and Figure 67)
VDD=5V
Min
Max
IIO=+10A, TA125C
0.1
IIO=+3mA, TA125C
0.8
IIO=+5mA, TA85C
0.8
IIO=+10mA, TA85C
1.2
IIO=+10A, TA125C
0.1
IIO=+7mA, TA125C
0.8
IIO=+10mA, TA85C
0.8
IIO=+15mA, TA125C
1.3
IIO=+20mA, TA85C
1.3
IIO=+30mA, TA85C
Output high level voltage for an I/O pin
(see Figure 65 and Figure 68)
VOH 2)
Unit
IIO=-10A, TA125C
VDD-0.1
IIO=-3mA, TA125C
VDD-1.5
IIO=-5mA, TA85C
VDD-1.5
Notes:
1. The IIO current sunk must always respect the absolute maximum rating specified in Section 10.2.2 and the sum of IIO
(I/O ports and control pins) must not exceed IVSS.
2. The IIO current source must always respect the absolute maximum rating specified in Section 10.2.2 and the sum of
IIO (I/O ports and control pins) must not exceed IVDD. True open drain I/O pins does not have VOH.
1000
Ta=-40C
Ta=95C
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
0.8
800
Ta=25C
Ta=125C
0.6
600
0.4
400
0.2
200
0
0
4
Iio [mA]
82/104
10
8
Iio [mA]
12
16
20
ST6208C/ST6209C/ST6210C/ST6220C
4.5
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
3.5
-8
-6
-4
-2
Iio [mA]
Ta=-40C
Ta=95C
350
Ta=25C
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
700
Ta=125C
300
600
250
500
200
400
150
300
3
VDD [V]
VDD [V]
0.55
0.5
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
1.8
1.6
0.45
1.4
0.4
1.2
0.35
0.3
0.8
0.25
0.6
0.2
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
0.4
3
5
VDD [V]
VDD [V]
83/104
ST6208C/ST6209C/ST6210C/ST6220C
6
5
4
4
3
Ta=-40C
Ta=95C
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
Ta=25C
Ta=125C
1
3
5
VDD [V]
84/104
5
VDD [V]
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Conditions
Typ 1)
Min
2)
VIL
VIH
Vhys
Max
0.3xVDD
0.7xVDD
RON
VIN=VSS
RESD
VIN=VSS
200
400
VDD=5V
150
350
900
VDD=3.3V
300
730
1900
VDD=5V
2.8
VDD=3.3V
External pin or
internal reset sources
Unit
V
mV
k
k
tCPU
s
th(RSTL)in
tg(RSTL)in
ns
Notes:
1. Unless otherwise specified, typical data are based on TA=25C and VDD=5V.
2. Data based on characterization results, not tested in production.
3. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
4. The RON pull-up equivalent resistor is based on a resistive transistor. This data is based on characterization results,
not tested in production.
5. All short pulse applied on RESET pin with a duration below th(RSTL)in can be ignored.
6. The reset network protects the device against parasitic resets, especially in a noisy environment.
7. The output of the external reset circuit must have an open-drain output to drive the ST6 reset pad. Otherwise the device
can be damaged when the ST6 generates an internal reset (LVD or watchdog).
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
VDD [V]
85/104
ST6208C/ST6209C/ST6210C/ST6220C
V DD
0.1F
RPU
4.7k
fINT
STOP MODE
RESET
EXTERNAL
RESET
CIRCUIT 7)
RESD1)
0.1F
COUNTER
VDD
PT
IO
VDD
AL
INTERNAL
RESET
WATCHDOG RESET
LVD RESET
Parameter
Conditions
Typ 1)
Min
2)
VIL
VIH
Vhys
Rpull-up
Max
0.3xVDD
0.7xVDD
VIN=VSS
200
400
VDD=5V
40
100
350
VDD=3.3V
80
200
700
Unit
V
mV
k
Notes:
1. Unless otherwise specified, typical data are based on TA=25C and VDD=5V.
2. Data based on characterization results, not tested in production.
3. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
4. The Rpull-up equivalent resistor is based on a resistive transistor. This data is based on characterization results, not
tested in production.
Ta=-40C
Ta=95C
Ta=25C
Ta=125C
200
150
100
50
3
5
VDD [V]
86/104
ST6208C/ST6209C/ST6210C/ST6220C
tw(WDG)
Parameter
Conditions
Min
Typ
Max
Unit
3,072
196,608
tINT
fCPU=4MHz
0.768
49.152
ms
fCPU=8MHz
0.384
24.576
ms
Max
Unit
fINT/4
MHz
Parameter
Conditions
Min
0
VDD>4.5V
VDD=3V
Typ
125
ns
87/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Conditions
Clock frequency
Conversion range
voltage 2)
Typ 1)
Max
Unit
1.2
fOSC
MHz
VSS
VDD
10 3)
Min
tADC
tSTAB
Stabilization time 4)
fOSC=8MHz
fOSC=4MHz
70
140
fOSC=8MHz
ADI
ACIN
tCPU
3.25
6.5
1.0
pF
Notes:
1. Unless otherwise specified, typical data are based on TA=25C and VDD=5V.
2. The ADC refers to VDD and VSS.
3. Any added external serial resistor will downgrade the ADC accuracy (especially for resistance greater than 10k). Data
based on characterization results, not tested in production.
4. As a stabilization time for the AD converter is required, the first conversion after the enable can be wrong.
AINx
r150
VAIN
ADC
10pF
10M
ST62XX
Note: ADC not present on some devices. See device summary on page 1.
88/104
ST6208C/ST6209C/ST6210C/ST6220C
Parameter
Conditions
|ET|
EO
Offset error 1)
Gain Error
|ED|
Typ.
Max
1.2
2, fosc>1.2MHz
4, fosc>32KHz
Unit
0.72
VDD=5V 2)
fOSC=8MHz
1)
EG
|EL|
Min
-0.31
LSB
0.54
1)
Notes:
1. Negative injection disturbs the analog performance of the device. In particular, it induces leakage currents throughout
the device including the analog inputs. To avoid undesirable effects on the analog functions, care must be taken:
- Analog input pins must have a negative injection less than 1mA (assuming that the impedance of the analog voltage
is lower than the specified limits).
- Pure digital pins must have a negative injection less than 1mA. In addition, it is recommended to inject the current as
far as possible from the analog input pins.
2. Data based on characterization results over the whole temperature range, monitored in production.
EG
255
254
253
1LSB
IDE AL
V
V
DDA
SSA
= ----------------------------------------256
(2)
ET
(3)
(1)
6
5
4
EO
EL
ED
1 LSBIDEAL
1
0
1
VSSA
Vin (LSBIDEAL)
2
Note: ADC not present on some devices. See device summary on page 1.
89/104
ST6208C/ST6209C/ST6210C/ST6220C
11 GENERAL INFORMATION
11.1 PACKAGE MECHANICAL DATA
Figure 74. 20-Pin Plastic Dual In-Line Package, 300-mil Width
Dim.
A2
A1
mm
Min
Typ
c
eB
D1
b2
20
10
Typ
Max
5.33
0.210
0.38
0.015
A2
2.92
3.30
0.36
0.46
b2
1.14
1.52
0.20
0.25
D1
0.13
0.005
2.54
eB
E1
Min
A1
11
inches
Max
0.100
10.92
0.430
E1
6.10
6.35
2.92
3.30
Number of Pins
N
20
Dim.
mm
Min
Typ
3.63
Max
0.143
0.38
B1
0.015
E1
e
22.86
0.900
0.100
G1
G2
L
1.14
0.045
12.70
0.500
4.22
0.166
CDIP20W
Number of Pins
N
Typ
A1
D1
90/104
inches
Max Min
20
ST6208C/ST6209C/ST6210C/ST6220C
Dim.
h x 45
L
A1
mm
Min
Typ
inches
Max
Min
Typ
Max
2.35
2.65 0.093
0.104
A1
0.10
0.30 0.004
0.012
0.33
0.51 0.013
0.020
0.23
0.32 0.009
0.013
12.60
13.00 0.496
0.512
7.40
a
e
E H
7.60 0.291
1.27
0.299
0.050
10.00
10.65 0.394
0.419
0.25
0.75 0.010
0.030
0.40
1.27 0.016
0.050
Number of Pins
N
20
Dim.
L
A2
A1
c
h
mm
Min
inches
Max
Min
Typ
2.00
Max
0.079
A1
0.05
A2
1.65
0.22
0.38 0.009
0.015
0.09
0.25 0.004
0.010
6.90
7.20
7.40
7.80
E1
5.00
5.30
e
E1
Typ
0.002
1.75
0.65
0.55
0.75
0.026
8
Number of Pins
N
20
91/104
ST6208C/ST6209C/ST6210C/ST6220C
RthJA
PD
TJmax
Ratings
Package thermal resistance (junction to ambient)
DIP20
SO20
SSOP20
Value
60
80
115
Unit
C/W
Power dissipation 1)
500
mW
150
Notes:
1. The power dissipation is obtained from the formula PD = PINT + PPORT where PINT is the chip internal power (IDDxVDD)
and PPORT is the port power dissipation determined by the user.
2. The average chip-junction temperature can be obtained from the formula TJ = TA + PD x RthJA.
92/104
ST6208C/ST6209C/ST6210C/ST6220C
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Figure 78. Recommended Wave Soldering Profile (with 37% Sn and 63% Pb)
250
200
150
Temp. [C]
100
50
COOLING PHASE
(ROOM TEMPERATURE)
5 sec
SOLDERING
PHASE
80C
PREHEATING
PHASE
Time [sec]
0
20
40
60
80
100
120
140
160
Tmax=220+/-5C
for 25 sec
200
150
90 sec at 125C
Temp. [C]
100
50
ramp up
2C/sec for 50sec
Time [sec]
0
100
200
300
400
93/104
ST6208C/ST6209C/ST6210C/ST6220C
220-33-42
Same
Footprint
X
Socket Type
Textool
Same
Footprint
Socket Type
ENPLAS
OTS-20-1.27-04
Open Top
YAMAICHI
IC51-0202-714
Clamshell
EMU PROBE
SMD to DIP
Programming
Adapter
Logical Systems
Open Top
PA20SO1-08H-6
Same
Footprint
Socket Type
SSOP20
ENPLAS
OTS-20-0.65-01
Open Top
Programming
Adapter
Logical Systems
PA20SS-OT-6
Open Top
94/104
ST6208C/ST6209C/ST6210C/ST6220C
ST62T20CB6/CCC
ROM code
Temperature code:
1: Standard 0 to +70 C
3: Automotive -40 to +125 C
6: Industrial -40 to +85 C
Package type:
B: Plastic DIP
D: Ceramic DIP
M: Plastic SOP
N: Plastic SSOP
T: Plastic TQFP
Revision index:
B,C: Product Definition change
L: Low Voltage Device
ST6 Sub family
Version Code:
No char: ROM
E: EPROM
P: FASTROM
T: OTP
Family
95/104
ST6208C/ST6209C/ST6210C/ST6220C
T0
T1
T2
T3
Test ID
96/104
ST6208C/ST6209C/ST6210C/ST6220C
....
....
....
....
....
....
.....
.....
.....
.....
.....
.....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
.....
.....
.....
.....
.....
.....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
....
.....
.....
.....
.....
.....
.....
............
............
............
............
............
............
....
....
....
....
....
....
...
...
...
...
...
...
STMicroelectronics references:
Device:
[ ] ST6208C (1 KB)
[ ] ST6210C (2 KB)
[ ] ST62P08C (1 KB)
[ ] ST62P10C (2 KB)
Package:
Conditioning option:
Temperature Range:
[ ] ST6209C (1 KB)
[ ] ST6220C (4 KB)
[ ] ST62P09C (1 KB)
[ ] ST62P20C (4 KB)
Marking:
[ ] Standard marking
[ ] Special marking (ROM only):
PDIP20 (10 char. max): _ _ _ _ _ _ _ _ _ _
SO20 (8 char. max): _ _ _ _ _ _ _ _
SSOP20 (11 char. max): _ _ _ _ _ _ _ _ _ _ _
Authorized characters are letters, digits, '.', '-', '/' and spaces only.
Oscillator Safeguard:
Watchdog Selection:
Timer pull-up:
NMI pull-up:
Oscillator Selection:
Readout Protection:
[ ] Enabled
[ ] Disabled
[ ] Software Activation
[ ] Hardware Activation
[ ] Enabled
[ ] Disabled
[ ] Enabled
[ ] Disabled
[ ] Quartz crystal / Ceramic resonator
[ ] RC network
FASTROM:
[ ] Enabled
[ ] Disabled
ROM:
[ ] Enabled:
[ ] Fuse is blown by STMicroelectronics
[ ] Fuse can be blown by the customer
[ ] Disabled
[ ] Enabled
[ ] Enabled
[ ] Enabled
[ ] Disabled
[ ] Disabled
[ ] Disabled
Comments:
Oscillator Frequency in the application:
..............................................
Supply Operating Range in the application:
..............................................
Notes:
..........................................................................
Date:
..........................................................................
Signature:
..........................................................................
97/104
ST6208C/ST6209C/ST6210C/ST6220C
0.5s min
100 s max
4.7F
15
14V typ
10
100nF
5
VDD
VSS
VPP
150 s typ
PROTECT
14V
VPP
100nF
400mA
max
ZPD15
15V
4mA typ
t
VR02003
98/104
VR02001
ST6208C/ST6209C/ST6210C/ST6220C
12 DEVELOPMENT TOOLS
STMicroelectronics offers a range of hardware
and software development tools for the ST6 microcontroller family. Full details of tools available for
the ST6 from third party manufacturers can be obtain from the STMicroelectronics Internet site:
http://mcu.st.com.
Designation
ST Sales Type
ACTUM
STREALIZER-II
http://www.actum.com/
CEIBO
RAISONANCE
SOFTEC
http://www.ceibo.com/
http://www.raisonance.com/
http://www.softecmicro.com/
ADVANCED EQUIPMENT
http://www.aec.com.tw/
ADVANCED TRANSDATA
http://www.adv-transdata.com/
BP MICROSYSTEMS
http://www.bpmicro.com/
DATA I/O
http://www.data-io.com/
DATAMAN
http://www.dataman.com/
EE TOOLS
http://www.eetools.com/
ELNEC
http://www.elnec.com/
HI-LO SYSTEMS
http://www.hilosystems.com.tw/
ICE TECHNOLOGY
http://www.icetech.com/
LEAP
http://www.leap.com.tw/
LLOYD RESEARCH
http://www.lloyd-research.com/
LOGICAL DEVICES
http://www.chipprogrammers.com/
MQP ELECTRONICS
http://www.mqp.com/
NEEDHAMS
ELECTRONICS
http://www.needhams.com/
STAG PROGRAMMERS
http://www.stag.co.uk/
http://www.sg.com.tw
TRIBAL MICROSYSTEMS
http://www.tribalmicro.com/
XELTEK
http://www.xeltek.com/
Note 1: For latest information on third party tools, please visit our Internet site: http://mcu.st.com.
99/104
ST6208C/ST6209C/ST6210C/ST6220C
Programming Capability
No
ST6 EPROM
Programmer Board
No
Yes
Software Included
MCU CD ROM with:
Rkit-ST6 from Raisonance
ST6 Assembly toolchain
WGDB6 powerful Source Level
Debugger for Win 3.1, Win 95
and NT
Various software demo versions.
Windows Programming Tools
for Win 3.1, Win 95 and NT
100/104
ST622XC-KIT
ST62E2XC-EPB
ST6208C/ST6209C/ST6210C/ST6220C
DESCRIPTION
MOTOR CONTROL
AN392
AN414
AN416
AN422
AN863
IMPROVED SENSORLESS CONTROL WITH THE ST62 MCU FOR UNIVERSAL MOTOR
BATTERY MANAGEMENT
AN417
AN433
AN859
AN INTELLIGENT ONE HOUR MULTICHARGER FOR Li-Ion, NiMH and NiCd BATTERIES
HOME APPLIANCE
AN674
AN885
GRAPHICAL DESIGN
AN676
AN677
AN839
AN840
AN841
AN842
COST REDUCTION
AN431
AN594
AN672
AN673
DESIGN IMPROVEMENTS
AN420
AN432
AN434
AN435
AN669
AN670
AN671
AN911
AN975
AN1015
PERIPHERAL OPERATIONS
AN590
AN591
AN592
AN593
AN678
101/104
ST6208C/ST6209C/ST6210C/ST6220C
IDENTIFICATION
DESCRIPTION
AN913
AN914
AN1016
AN1050
AN1127
GENERAL
AN683
AN886
AN887
AN898
AN899
AN900
AN901
AN902
AN912
AN1181
102/104
ST6208C/ST6209C/ST6210C/ST6220C
14 SUMMARY OF CHANGES
Description of the changes between the current release of the specification and the previous one.
Revision
Main Changes
Date
3.3
October 03
103/104
ST6208C/ST6209C/ST6210C/ST6220C
Notes:
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
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 express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics.
All other names are the property of their respective owners
2003 STMicroelectronics - All rights reserved
STMicroelectronics GROUP OF COMPANIES
Australia Belgium - Brazil - Canada - China Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States
www.st.com
104/104