Document
ST72101/ST72212/ST72213
8-BIT MCU WITH 4 TO 8K ROM/OTP/EPROM, 256 BYTES RAM, ADC, WDG, SPI AND 1 OR 2 TIMERS
DATASHEET
s User Program Memory (ROM/OTP/EPROM): 4 to 8K bytes
s Data RAM: 256 bytes, including 64 bytes of
stack s Master Reset and Power-On Reset
t(s)s Run, Wait, Slow, Halt and RAM Retention modes
cs 22 multifunctional bidirectional I/O lines: du– 22 programmable interrupt inputs ro )– 8 high sink outputs P t(s– 6 analog alternate inputs te c– 10 to 14 alternate functions le u– EMI filtering ds Programmable watchdog (WDG) so ros One or two 16-bit Timers, each featuring: b P– 2 Input Captures - O te– 2 Output Compares ) le– External Clock input (on Timer A only) t(s o– PWM and Pulse Generator modes ss Synchronous Serial Peripheral Interface (SPI) c bs 8-bit Analog-to-Digital converter (6 channels) u O(ST72212 and ST72213 only) rod -s 8-bit Data Manipulation P t(s)s 63 Basic Instructions
s 17 main Addressing Modes
lete ucs 8 x 8 Unsigned Multiply Instruction ds True Bit Manipulation so ros Complete Development Support on PC/DOSb PWINDOWSTM Real-Time Emulator O tes Full Software Package on DOS/WINDOWSTM
(C-Compiler, Cross-Assembler, Debugger)
PSDIP32
CSDIP32W SO28
(See ordering information at the end of datasheet)
oleDevice Summary
bsFeatures OProgram Memory- bytes
ST72101G1 4K
ST72101G2 8K
ST72213G1 4K
ST72212G2 8K
RAM (stack) - bytes
256 (64)
16-bit Timers
one one one two
ADC
no no yes yes
Other Peripherals
Watchdog, SPI
Operating Supply
3 to 5.5 V
CPU Frequency
8MHz max (16MHz oscillator) - 4MHz max over 85°C
Temperature Range
- 40°C to + 125°C
Package
SO28 - SDIP32
Rev. 1.8
May 2001
1/85
1
Table of Contents
1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 EXTERNAL CONNECTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.4 MEMORY MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 CENTRAL PROCESSING UNIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.3 CPU REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 CLOCKS, RESET, INTERRUPTS & POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . 16
)3.1 CLOCK SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 t(s3.1.1 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
c3.2 RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 du3.2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 ro )3.2.2 External Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 P t(s3.2.3 Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.2.4 Power-on Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
lete uc4 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 d4.1 NON MASKABLE SOFTWARE INTERRUPT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 so ro4.2 EXTERNAL INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 b P4.3 PERIPHERAL INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 - O te4.4 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
) le4.4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 t(s so4.4.2 Slow Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 c b4.4.3 Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 u O4.4.4 Halt Mode . . . . . . . . . . . . . . . . . . . . . . . . .