ST72324Jx ST72324Kx: 5V Range 8-Bit Mcu With 8 To 32K Flash, 10-Bit Adc, 4 Timers, Spi, Sci Interface
ST72324Jx ST72324Kx: 5V Range 8-Bit Mcu With 8 To 32K Flash, 10-Bit Adc, 4 Timers, Spi, Sci Interface
ST72324Jx ST72324Kx: 5V Range 8-Bit Mcu With 8 To 32K Flash, 10-Bit Adc, 4 Timers, Spi, Sci Interface
■ Memories
– 8 to 32K dual voltage High Density Flash (HD-
Flash) with read-out protection capability. In-
Application Programming and In-Circuit Pro-
gramming for HDFlash devices TQFP32
– 384 to 1K bytes RAM 7x7
– HDFlash endurance: 100 cycles, data reten- TQFP44
tion: 20 years at 55°C 10 x 10
■ Clock, Reset And Supply Management
– Enhanced low voltage supervisor (LVD) for
main supply with programmable reset thresh-
olds and auxiliary voltage detector (AVD) with
interrupt capability
SDIP42 SDIP32
– Clock sources: crystal/ceramic resonator os- 400 mil
cillators, internal RC oscillator, clock security 600 mil
system and bypass for external clock
– PLL for 2x frequency multiplication
– Four Power Saving Modes: Halt, Active-Halt,
Wait and Slow ■ 2 Communication Interfaces
■ Interrupt Management
– SPI synchronous serial interface
– Nested interrupt controller – SCI asynchronous serial interface
– 10 interrupt vectors plus TRAP and RESET ■ 1 Analog Peripheral (low current coupling)
– 9/6 external interrupt lines (on 4 vectors)
– 10-bit ADC with up to 12 robust input ports
■ Up to 32 I/O Ports
– 32/24 multifunctional bidirectional I/O lines
■ Instruction Set
– 22/17 alternate function lines
– 12/10 high sink outputs – 8-bit Data Manipulation
■ 4 Timers – 63 Basic Instructions
– 17 main Addressing Modes
– Main Clock Controller with: Real time base,
Beep and Clock-out capabilities – 8 x 8 Unsigned Multiply Instruction
– Configurable watchdog timer
– 16-bit Timer A with: 1 input capture, 1 output ■ Development Tools
compare, external clock input, PWM and
pulse generator modes – Full hardware/software development package
– 16-bit Timer B with: 2 input captures, 2 output – In-Circuit Testing capability
compares, PWM and pulse generator modes
Device Summary
ST72324J6 ST72324J4 ST72324J2
Features
ST72324K61 ST72324K41 ST72324JK21
Program memory -
Flash 32K Flash 16K Flash 8K
bytes
RAM (stack) - bytes 1024 (256) 512 (256) 384 (256)
Voltage Range 3.8V to 5.5V
Temp. Range up to -40°C to +125°C
Packages SDIP42, TQFP44 10x10,SDIP32, TQFP32 7x7
1For new designs in standard and industrial applications, use ST72324B(J/K) order codes, refer to separate datasheet
2/164
2
Table of Contents
8.4 ACTIVE-HALT AND HALT MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
8.4.1 ACTIVE-HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
8.4.2 HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
9 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.2 FUNCTIONAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.2.1 Input Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.2.2 Output Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.2.3 Alternate Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.3 I/O PORT IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
9.4 LOW POWER MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
9.5 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
9.5.1 I/O Port Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
10 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.3 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
10.1.4 How to Program the Watchdog Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
10.1.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
10.1.6 Hardware Watchdog Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
10.1.7 Using Halt Mode with the WDG (WDGHALT option) . . . . . . . . . . . . . . . . . . . . . . . 54
10.1.8 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
10.1.9 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
10.2 MAIN CLOCK CONTROLLER WITH REAL TIME CLOCK AND BEEPER (MCC/RTC) . 56
10.2.1 Programmable CPU Clock Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.2.2 Clock-out Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.2.3 Real Time Clock Timer (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.2.4 Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.2.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10.2.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10.2.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10.3 16-BIT TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.3.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.3.3 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.3.4 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
10.3.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
10.3.6 Summary of Timer modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
10.3.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.4 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.4.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.4.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.4.4 Clock Phase and Clock Polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 .... 83
10.4.5 Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
10.4.6 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
3/164
1
Table of Contents
10.4.7 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
10.4.8 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
10.5 SERIAL COMMUNICATIONS INTERFACE (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
10.5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
10.5.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
10.5.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
10.5.4 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
10.5.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
10.5.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
10.5.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
10.6 10-BIT A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
10.6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
10.6.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
10.6.3 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
10.6.4 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
10.6.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
10.6.6 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
11 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
11.1 CPU ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
11.1.1 Inherent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
11.1.2 Immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
11.1.3 Direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
11.1.4 Indexed (No Offset, Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
11.1.5 Indirect (Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
11.1.6 Indirect Indexed (Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
11.1.7 Relative mode (Direct, Indirect) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
11.2 INSTRUCTION GROUPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
12 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.1 PARAMETER CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.1.1 Minimum and Maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.2 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
12.2.1 Voltage Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
12.2.2 Current Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
12.2.3 Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
12.3 OPERATING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
12.3.1 Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
12.4 LVD/AVD CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
12.4.1 Operating Conditions with Low Voltage Detector (LVD) . . . . . . . . . . . . . . . . . . . . 119
12.4.2 Auxiliary Voltage Detector (AVD) Thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
12.5 SUPPLY CURRENT CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
12.5.1 CURRENT CONSUMPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 . . . 120
12.5.2 Supply and Clock Managers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
12.5.3 On-Chip Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
4/164
1
Table of Contents
12.6 CLOCK AND TIMING CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
12.6.1 General Timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
12.6.2 External Clock Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
12.6.3 Crystal and Ceramic Resonator Oscillators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
12.6.4 RC Oscillators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
12.6.5 PLL Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
12.7 MEMORY CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
12.7.1 RAM and Hardware Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
12.7.2 FLASH Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
12.8 EMC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
12.8.1 Functional EMS (Electro Magnetic Susceptibility) . . . . . . . . . . . . . . . . . . . . . . . . 130
12.8.2 Electro Magnetic Interference (EMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
12.8.3 Absolute Maximum Ratings (Electrical Sensitivity) . . . . . . . . . . . . . . . . . . . . . . . . 132
12.9 I/O PORT PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
12.9.1 General Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
12.9.2 Output Driving Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
12.10 CONTROL PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
12.10.1Asynchronous RESET Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
12.10.2ICCSEL/VPP Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
12.11 TIMER PERIPHERAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
12.11.116-Bit Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
12.12 COMMUNICATION INTERFACE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . 140
12.12.1SPI - Serial Peripheral Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
12.13 10-BIT ADC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
12.13.1Analog Power Supply and Reference Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
12.13.2General PCB Design Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
12.13.3ADC Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
13 PACKAGE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
13.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
13.2 THERMAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
13.3 SOLDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
14 ST72324 DEVICE CONFIGURATION AND ORDERING INFORMATION . . . . . . . . . . . . . . . 150
14.1 FLASH OPTION BYTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
14.2 FLASH DEVICE ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
14.3 SILICON IDENTIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
14.4 DEVELOPMENT TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
14.4.1 Socket and Emulator Adapter Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
14.5 ST7 APPLICATION NOTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
15 KNOWN LIMITATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
15.1 ALL DEVICES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
15.1.1 External RC option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
15.1.2 CSS Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
15.1.3 Safe Connection of OSC1/OSC2 Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
15.1.4 Unexpected Reset Fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 . . . 159
15.1.5 Clearing active interrupts outside interrupt routine . . . . . . . . . . . . . . . . . . . . . . . . 159
15.1.6 External Interrupt Missed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
5/164
1
Table of Contents
15.1.7 16-bit Timer PWM Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
15.1.8 SCI Wrong Break duration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
15.2 FLASH DEVICES ONLY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
15.2.1 Internal RC Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
16 IMPORTANT NOTES ON ST72F324B FLASH DEVICES: . . . . . . . . . . . . . . . . . . . . . . . . . . 162
16.1 RESET PIN LOGIC LEVELS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
16.2 WAKE-UP FROM ACTIVE HALT MODE USING EXTERNAL INTERRUPTS . . . . . . . 162
16.3 PLL JITTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
16.4 ACTIVE HALT POWER CONSUMPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
16.5 TIMER A REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
17 REVISION HISTORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Please also pay special attention to the Section “KNOWN LIMITATIONS” on page 159.
164
6/164
1
ST72324Jx ST72324Kx
WATCHDOG
OSC1
OSC
OSC2
ADDRESS AND DATA BUS
MCC/RTC/BEEP
PA7:3
PORT A (5 bits on J devices)
PORT F (4 bits on K devices)
PF7:6,4,2:0
(6 bits on J devices)
(5 bits on K devices) TIMER A
PB4:0
PORT B (5 bits on J devices)
BEEP (3 bits on K devices)
PORT E
PE1:0 PORT C
(2 bits)
SCI
TIMER B PC7:0
(8 bits)
PORT D
PD5:0 SPI
(6 bits on J devices)
(2 bits on K devices) 10-BIT ADC
VAREF
VSSA
7/164
3
ST72324Jx ST72324Kx
2 PIN DESCRIPTION
Figure 2. 42-Pin SDIP and 44-Pin TQFP Package Pinouts
VPP / ICCSEL
PE0 / TDO
PA7 (HS)
PA6 (HS)
PA5 (HS)
PA4 (HS)
RESET
VDD_2
VSS_2
OSC1
OSC2
44 43 42 41 40 39 38 37 36 35 34
RDI / PE1 1 33 VSS_1
PB0 2 32 VDD_1
PB1 3 ei0 31 PA3 (HS)
ei2
PB2 4 30 PC7 / SS / AIN15
PB3 5 29 PC6 / SCK / ICCCLK
(HS) PB4 6 ei3 28 PC5 / MOSI / AIN14
AIN0 / PD0 7 27 PC4 / MISO / ICCDATA
AIN1 / PD1 8 26 PC3 (HS) / ICAP1_B
AIN2 / PD2 9 25 PC2 (HS) / ICAP2_B
AIN3 / PD3 10 ei1 24 PC1 / OCMP1_B / AIN13
AIN4 / PD4 11 23 PC0 / OCMP2_B / AIN12
12 13 14 15 16 17 18 19 20 21 22
EXTCLK_A / (HS) PF7
VAREF
(HS) PF2
VDD_0
VSS_0
AIN5 / PD5
8/164
ST72324Jx ST72324Kx
PE0 / TDO
PE1 / RDI
PB4 (HS)
VDD_2
PB3
PB0
32 31 30 29 28 27 26 25
VAREF 1 24 OSC1
ei3 ei2
VSSA 2 23 OSC2
MCO / AIN8 / PF0 3 22 VSS_2
ei1
BEEP / (HS) PF1 4 21 RESET
OCMP1_A / AIN10 / PF4 5 20 VPP / ICCSEL
ICAP1_A / (HS) PF6 6 19 PA7 (HS)
EXTCLK_A / (HS) PF7 7 18 PA6 (HS)
AIN12 / OCMP2_B / PC0 8 ei0 17 PA4 (HS)
9 10 11 12 13 14 15 16
ICCCLK / SCK / PC6
ICAP2_B / (HS) PC2
ICAP1_B / (HS) PC3
AIN15 / SS / PC7
(HS) PA3
ICCDATA / MISO / PC4
AIN14 / MOSI / PC5
AIN13 / OCMP1_B / PC1
9/164
1
ST72324Jx ST72324Kx
function
TQFP44
TQFP32
Input Output
SDIP42
SDIP32
Output
(after
float
wpu
ana
reset)
OD
PP
int
10/164
1
ST72324Jx ST72324Kx
Type
function
TQFP44
TQFP32
Input Output
SDIP42
SDIP32
Output
Pin Name Alternate Function
Input
(after
float
wpu
ana
reset)
OD
PP
int
Timer B Out-
PC1/OCMP1_B/ ADC Analog
24 17 9 12 I/O CT X X X X X Port C1 put Com-
AIN13 Input 13
pare 1
25 18 10 13 PC2 (HS)/ICAP2_B I/O CT HS X X X X Port C2 Timer B Input Capture 2
26 19 11 14 PC3 (HS)/ICAP1_B I/O CT HS X X X X Port C3 Timer B Input Capture 1
SPI Master
PC4/MISO/ICCDA- ICC Data In-
27 20 12 15 I/O CT X X X X Port C4 In / Slave
TA put
Out Data
SPI Master
ADC Analog
28 21 13 16 PC5/MOSI/AIN14 I/O CT X X X X X Port C5 Out / Slave
Input 14
In Data
SPI Serial ICC Clock
29 22 14 17 PC6/SCK/ICCCLK I/O CT X X X X Port C6
Clock Output
SPI Slave
ADC Analog
30 23 15 18 PC7/SS/AIN15 I/O CT X X X X X Port C7 Select (ac-
Input 15
tive low)
31 24 16 19 PA3 (HS) I/O CT HS X ei0 X X Port A3
32 25 VDD_1 S Digital Main Supply Voltage
33 26 VSS_1 S Digital Ground Voltage
34 27 17 20 PA4 (HS) I/O CT HS X X X X Port A4
35 28 PA5 (HS) I/O CT HS X X X X Port A5
36 29 18 21 PA6 (HS) I/O CT HS X T Port A6 1)
37 30 19 22 PA7 (HS) I/O CT HS X T Port A7 1)
Must be tied low. In the flash pro-
gramming mode, this pin acts as the
38 31 20 23 VPP /ICCSEL I
programming voltage input VPP. See
Section 12.10.2 for more details.
39 32 21 24 RESET I/O CT Top priority non maskable interrupt.
40 33 22 25 VSS_2 S Digital Ground Voltage
41 34 23 26 OSC2 O Resonator oscillator inverter output
External clock input or Resonator os-
42 35 24 27 OSC1 I
cillator inverter input
43 36 25 28 VDD_2 S Digital Main Supply Voltage
44 37 26 29 PE0/TDO I/O CT X X X X Port E0 SCI Transmit Data Out
1 38 27 30 PE1/RDI I/O CT X X X X Port E1 SCI Receive Data In
Caution: Negative current
2 39 28 31 PB0 I/O CT X ei2 X X Port B0 injection not allowed on this
pin5)
3 40 PB1 I/O CT X ei2 X X Port B1
4 41 PB2 I/O CT X ei2 X X Port B2
5 42 29 32 PB3 I/O CT X ei2 X X Port B3
Notes:
1. In the interrupt input column, “eiX” defines the associated external interrupt vector. If the weak pull-up
11/164
1
ST72324Jx ST72324Kx
column (wpu) is merged with the interrupt column (int), then the I/O configuration is pull-up interrupt input,
else the configuration is floating interrupt input.
2. In the open drain output column, “T” defines a true open drain I/O (P-Buffer and protection diode to VDD
are not implemented). See See “I/O PORTS” on page 45. and Section 12.9 I/O PORT PIN CHARACTER-
ISTICS for more details.
3. OSC1 and OSC2 pins connect a crystal/ceramic resonator, or an external source to the on-chip oscil-
lator; see Section 1 INTRODUCTION and Section 12.6 CLOCK AND TIMING CHARACTERISTICS for
more details.
4. On the chip, each I/O port has 8 pads. Pads that are not bonded to external pins are in input pull-up con-
figuration after reset. The configuration of these pads must be kept at reset state to avoid added current
consumption.
5. For details refer to Section 12.9.1 on page 133
12/164
1
ST72324Jx ST72324Kx
0000h 0080h
HW Registers
Short Addressing
(see Table 2)
007Fh RAM (zero page)
0080h 00FFh
0100h
RAM 256 Bytes Stack
(1024,
01FFh
512 or 384 Bytes)
0200h
047Fh 16-bit Addressing
0480h
Reserved RAM
027Fh
7FFFh
8000h or 047Fh
8000h
Program Memory 32 KBytes
(32K, 16K or 8K) C000h
FFDFh 16 KBytes
FFE0h E000h
Interrupt & Reset Vectors 8 Kbytes
(see Table 8) FFFFh
FFFFh
13/164
1
ST72324Jx ST72324Kx
Register Reset
Address Block Register Name Remarks
Label Status
0012h
to Reserved Area (15 Bytes)
0020h
002Eh
to Reserved Area (3 Bytes)
0030h
14/164
1
ST72324Jx ST72324Kx
Register Reset
Address Block Register Name Remarks
Label Status
0058h
to Reserved Area (24 Bytes)
006Fh
0073h
Reserved Area (13 Bytes)
007Fh
15/164
1
ST72324Jx ST72324Kx
16/164
1
ST72324Jx ST72324Kx
17/164
1
ST72324Jx ST72324Kx
ICC Cable
APPLICATION BOARD
10kΩ
APPLICATION
I/O
RESET
ICCCLK
ICCDATA
OSC1
ICCSEL/VPP
OSC2
VSS
VDD
ST7
Notes:
1. If the ICCCLK or ICCDATA pins are only used sistor>1K, no additional components are needed.
as outputs in the application, no signal isolation is In all cases the user must ensure that no external
necessary. As soon as the Programming Tool is reset is generated by the application during the
plugged to the board, even if an ICC session is not ICC session.
in progress, the ICCCLK and ICCDATA pins are 3. The use of Pin 7 of the ICC connector depends
not available for the application. If they are used as on the Programming Tool architecture. This pin
inputs by the application, isolation such as a serial must be connected when using most ST Program-
resistor has to implemented in case another de- ming Tools (it is used to monitor the application
vice forces the signal. Refer to the Programming power supply). Please refer to the Programming
Tool documentation for recommended resistor val- Tool manual.
ues.
4. Pin 9 has to be connected to the OSC1 or OS-
2. During the ICC session, the programming tool CIN pin of the ST7 when the clock is not available
must control the RESET pin. This can lead to con- in the application or if the selected clock option is
flicts between the programming tool and the appli- not programmed in the option byte. ST7 devices
cation reset circuit if it drives more than 5mA at with multi-oscillator capability need to have OSC2
high level (push pull output or pull-up resistor<1K). grounded in this case.
A schottky diode can be used to isolate the appli-
cation RESET circuit in this case. When using a
classical RC network with R>1K or a reset man-
agement IC with open drain output and pull-up re-
18/164
1
ST72324Jx ST72324Kx
4.5 ICP (In-Circuit Programming) possible to download code from the SPI, SCI, USB
or CAN interface and program it in the Flash. IAP
To perform ICP the microcontroller must be mode can be used to program any of the Flash
switched to ICC (In-Circuit Communication) mode sectors except Sector 0, which is write/erase pro-
by an external controller or programming tool. tected to allow recovery in case errors occur dur-
Depending on the ICP code downloaded in RAM, ing the programming operation.
Flash memory programming can be fully custom-
ized (number of bytes to program, program loca- 4.7 Related Documentation
tions, or selection serial communication interface
for downloading). For details on Flash programming and ICC proto-
When using an STMicroelectronics or third-party col, refer to the ST7 Flash Programming Refer-
programming tool that supports ICP and the spe- ence Manual and to the ST7 ICC Protocol Refer-
cific microcontroller device, the user needs only to ence Manual.
implement the ICP hardware interface on the ap- 4.7.1 Register Description
plication board (see Figure 7). For more details on FLASH CONTROL/STATUS REGISTER (FCSR)
the pin locations, refer to the device pinout de-
scription. Read/Write
Reset Value: 0000 0000 (00h)
4.6 IAP (In-Application Programming)
7 0
This mode uses a BootLoader program previously
stored in Sector 0 by the user (in ICP mode or by
0 0 0 0 0 0 0 0
plugging the device in a programming tool).
This mode is fully controlled by user software. This
allows it to be adapted to the user application, (us- This register is reserved for use by Programming
er-defined strategy for entering programming Tool software. It controls the Flash programming
mode, choice of communications protocol used to and erasing operations.
fetch the data to be stored, etc.). For example, it is
Table 4. Flash Control/Status Register Address and Reset Value
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
FCSR
0029h
Reset Value 0 0 0 0 0 0 0 0
19/164
1
ST72324Jx ST72324Kx
7 0
ACCUMULATOR
RESET VALUE = XXh
7 0
X INDEX REGISTER
RESET VALUE = XXh
7 0
Y INDEX REGISTER
RESET VALUE = XXh
15 PCH 8 7 PCL 0
PROGRAM COUNTER
RESET VALUE = RESET VECTOR @ FFFEh-FFFFh
7 0
1 1 I1 H I0 N Z C CONDITION CODE REGISTER
RESET VALUE = 1 1 1 X 1 X X X
15 8 7 0
STACK POINTER
RESET VALUE = STACK HIGHER ADDRESS
X = Undefined Value
20/164
1
ST72324Jx ST72324Kx
21/164
1
ST72324Jx ST72324Kx
@ 0100h
SP
SP SP
Y
CC CC CC
A A A
X X X
PCH PCH PCH
SP SP
PCL PCL PCL
PCH PCH PCH PCH PCH
SP
@ 01FFh PCL PCL PCL PCL PCL
22/164
1
ST72324Jx ST72324Kx
LOW VOLTAGE
VSS DETECTOR
VDD (LVD)
AUXILIARY VOLTAGE
DETECTOR
(AVD)
23/164
1
ST72324Jx ST72324Kx
24/164
1
ST72324Jx ST72324Kx
VDD
RON
Filter INTERNAL
RESET
RESET
25/164
1
ST72324Jx ST72324Kx
VIT+(LVD)
VIT-(LVD)
th(RSTL)in tw(RSTL)out
EXTERNAL
RESET
SOURCE
RESET PIN
WATCHDOG
RESET
WATCHDOG UNDERFLOW
26/164
1
ST72324Jx ST72324Kx
VDD
Vhys
VIT+
VIT-
RESET
27/164
1
ST72324Jx ST72324Kx
VDD
Early Warning Interrupt
(Power has dropped, MCU not
not yet in reset)
Vhyst
VIT+(AVD)
VIT-(AVD)
VIT+(LVD)
AVD INTERRUPT
REQUEST
IF AVDIE bit = 1
INTERRUPT PROCESS INTERRUPT PROCESS
LVD RESET
28/164
1
ST72324Jx ST72324Kx
6.4.3.1 Interrupts
The AVD interrupt event generates an interrupt if
the AVDIE bit is set and the interrupt mask in the
CC register is reset (RIM instruction).
Enable Exit Exit
Event
Interrupt Event Control from from
Flag
Bit Wait Halt
AVD event AVDF AVDIE Yes No
29/164
1
ST72324Jx ST72324Kx
30/164
1
ST72324Jx ST72324Kx
7 INTERRUPTS
PENDING Y Y
RESET TRAP
INTERRUPT
Y
“IRET”
31/164
1
ST72324Jx ST72324Kx
INTERRUPTS (Cont’d)
Servicing Pending Interrupts vector is loaded in the PC register and the I1 and
As several interrupts can be pending at the same I0 bits of the CC are set to disable interrupts (level
time, the interrupt to be taken into account is deter- 3). These sources allow the processor to exit
mined by the following two-step process: HALT mode.
■ TRAP (Non Maskable Software Interrupt)
– the highest software priority interrupt is serviced,
This software interrupt is serviced when the TRAP
– if several interrupts have the same software pri-
instruction is executed. It will be serviced accord-
ority then the interrupt with the highest hardware
ing to the flowchart in Figure 17.
priority is serviced first.
■ RESET
Figure 18 describes this decision process.
The RESET source has the highest priority in the
Figure 18. Priority Decision Process ST7. This means that the first current routine has
the highest software priority (level 3) and the high-
PENDING
est hardware priority.
INTERRUPTS
See the RESET chapter for more details.
Maskable Sources
Maskable interrupt vector sources can be serviced
Same Different
SOFTWARE if the corresponding interrupt is enabled and if its
PRIORITY own interrupt software priority (in ISPRx registers)
is higher than the one currently being serviced (I1
and I0 in CC register). If any of these two condi-
HIGHEST SOFTWARE tions is false, the interrupt is latched and thus re-
PRIORITY SERVICED mains pending.
■ External Interrupts
HIGHEST HARDWARE
External interrupts allow the processor to exit from
PRIORITY SERVICED
HALT low power mode. External interrupt sensitiv-
ity is software selectable through the External In-
When an interrupt request is not serviced immedi- terrupt Control register (EICR).
ately, it is latched and then processed when its External interrupt triggered on edge will be latched
software priority combined with the hardware pri- and the interrupt request automatically cleared
ority becomes the highest one. upon entering the interrupt service routine.
If several input pins of a group connected to the
Note 1: The hardware priority is exclusive while same interrupt line are selected simultaneously,
the software one is not. This allows the previous these will be logically ORed.
process to succeed with only one interrupt.
■ Peripheral Interrupts
Note 2: RESET and TRAP can be considered as
having the highest software priority in the decision Usually the peripheral interrupts cause the MCU to
process. exit from HALT mode except those mentioned in
the “Interrupt Mapping” table. A peripheral inter-
Different Interrupt Vector Sources rupt occurs when a specific flag is set in the pe-
Two interrupt source types are managed by the ripheral status registers and if the corresponding
ST7 interrupt controller: the non-maskable type enable bit is set in the peripheral control register.
(RESET,TRAP) and the maskable type (external The general sequence for clearing an interrupt is
or from internal peripherals). based on an access to the status register followed
by a read or write to an associated register.
Non-Maskable Sources Note: The clearing sequence resets the internal
These sources are processed regardless of the latch. A pending interrupt (i.e. waiting for being
state of the I1 and I0 bits of the CC register (see serviced) will therefore be lost if the clear se-
Figure 17). After stacking the PC, X, A and CC quence is executed.
registers (except for RESET), the corresponding
32/164
1
ST72324Jx ST72324Kx
INTERRUPTS (Cont’d)
7.3 INTERRUPTS AND LOW POWER MODES 7.4 CONCURRENT & NESTED MANAGEMENT
All interrupts allow the processor to exit the WAIT The following Figure 19 and Figure 20 show two
low power mode. On the contrary, only external different interrupt management modes. The first is
and other specified interrupts allow the processor called concurrent mode and does not allow an in-
to exit from the HALT modes (see column “Exit terrupt to be interrupted, unlike the nested mode in
from HALT” in “Interrupt Mapping” table). When Figure 20. The interrupt hardware priority is given
several pending interrupts are present while exit- in this order from the lowest to the highest: MAIN,
ing HALT mode, the first one serviced can only be IT4, IT3, IT2, IT1, IT0. The software priority is giv-
an interrupt with exit from HALT mode capability en for each interrupt.
and it is selected through the same decision proc- Warning: A stack overflow may occur without no-
ess shown in Figure 18. tifying the software of the failure.
Note: If an interrupt, that is not able to Exit from
HALT mode, is pending with the highest priority
when exiting HALT mode, this interrupt is serviced
after the first one serviced.
Figure 19. Concurrent Interrupt Management
TRAP
SOFTWARE
I1 I0
IT2
IT1
IT4
IT3
IT0
PRIORITY
LEVEL
HARDWARE PRIORITY
SOFTWARE
I1 I0
IT0
IT2
IT1
IT4
IT3
PRIORITY
LEVEL
USED STACK = 20 BYTES
HARDWARE PRIORITY
TRAP 3 1 1
IT0 3 1 1
IT1 IT1 2 0 0
IT2 IT2 1 0 1
IT3 3 1 1
RIM
IT4 IT4 3 1 1
MAIN MAIN 3/0
11 / 10 10
33/164
1
ST72324Jx ST72324Kx
INTERRUPTS (Cont’d)
34/164
1
ST72324Jx ST72324Kx
INTERRUPTS (Cont’d)
Note: During the execution of an interrupt routine, the HALT, POPCC, RIM, SIM and WFI instructions change the current
software priority up to the next IRET instruction or one of the previously mentioned instructions.
35/164
1
ST72324Jx ST72324Kx
INTERRUPTS (Cont’d)
Table 8. Interrupt Mapping
Exit
from
Source Register Priority Address
N° Description HALT/
Block Label Order Vector
ACTIVE
HALT1)
RESET Reset yes FFFEh-FFFFh
N/A
TRAP Software interrupt no FFFCh-FFFDh
0 Not used FFFAh-FFFBh
1 MCC/RTC Main clock controller time base interrupt MCCSR Higher yes FFF8h-FFF9h
2 ei0 External interrupt port A3..0 Priority yes FFF6h-FFF7h
3 ei1 External interrupt port F2..0 yes FFF4h-FFF5h
N/A
4 ei2 External interrupt port B3..0 yes FFF2h-FFF3h
5 ei3 External interrupt port B7..4 yes FFF0h-FFF1h
6 Not used FFEEh-FFEFh
7 SPI SPI peripheral interrupts SPICSR yes FFECh-FFEDh
8 TIMER A TIMER A peripheral interrupts TASR no FFEAh-FFEBh
9 TIMER B TIMER B peripheral interrupts TBSR no FFE8h-FFE9h
10 SCI SCI Peripheral interrupts SCISR Lower no FFE6h-FFE7h
11 AVD Auxiliary Voltage detector interrupt SICSR Priority no FFE4h-FFE5h
Notes:
1. In Flash devices only a RESET or MCC/RTC interrupt can be used to wake-up from Active Halt mode.
36/164
1
ST72324Jx ST72324Kx
IS20 IS21
PAOR.3
PADDR.3
SENSITIVITY ei0 INTERRUPT SOURCE
PA3
CONTROL
IPA BIT
IS20 IS21
PFOR.2
PFDDR.2
SENSITIVITY PF2
PF2 PF1 ei1 INTERRUPT SOURCE
CONTROL
PF0
IS10 IS11
PBOR.3
PBDDR.3
SENSITIVITY PB3
PB3 ei2 INTERRUPT SOURCE
CONTROL PB2
PB1
PB0
IPB BIT
IS10 IS11
PBOR.4
PBDDR.4
SENSITIVITY ei3 INTERRUPT SOURCE
PB4 CONTROL
37/164
1
ST72324Jx ST72324Kx
INTERRUPTS (Cont’d)
38/164
1
ST72324Jx ST72324Kx
INTERRUPTS (Cont’d)
Table 9. Nested Interrupts Register Map and Reset Values
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
ei1 ei0 MCC + SI
0024h ISPR0 I1_3 I0_3 I1_2 I0_2 I1_1 I0_1
Reset Value 1 1 1 1 1 1 1 1
SPI ei3 ei2
0025h ISPR1 I1_7 I0_7 I1_6 I0_6 I1_5 I0_5 I1_4 I0_4
Reset Value 1 1 1 1 1 1 1 1
AVD SCI TIMER B TIMER A
0026h ISPR2 I1_11 I0_11 I1_10 I0_10 I1_9 I0_9 I1_8 I0_8
Reset Value 1 1 1 1 1 1 1 1
39/164
1
ST72324Jx ST72324Kx
RUN fCPU
SLOW fOSC2
MCCSR
CP1:0 00 01
WAIT
SMS
SLOW WAIT
NORMAL RUN MODE
NEW SLOW REQUEST
FREQUENCY
ACTIVE HALT REQUEST
HALT
Low
POWER CONSUMPTION
40/164
1
ST72324Jx ST72324Kx
OSCILLATOR ON
PERIPHERALS ON
CPU ON
I[1:0] BITS XX 1)
Note:
1. Before servicing an interrupt, the CC register is
pushed on the stack. The I[1:0] bits of the CC reg-
ister are set to the current software priority level of
the interrupt routine and recovered when the CC
register is popped.
41/164
1
ST72324Jx ST72324Kx
8.4 ACTIVE-HALT AND HALT MODES pending on option byte). Otherwise, the ST7 en-
ters HALT mode for the remaining tDELAY period.
ACTIVE-HALT and HALT modes are the two low-
est power consumption modes of the MCU. They Figure 25. ACTIVE-HALT Timing Overview
are both entered by executing the ‘HALT’ instruc-
tion. The decision to enter either in ACTIVE-HALT ACTIVE 256 OR 4096 CPU
or HALT mode is given by the MCC/RTC interrupt RUN HALT CYCLE DELAY 1) RUN
enable flag (OIE bit in MCCSR register).
RESET
MCCSR Power Saving Mode entered when HALT OR
OIE bit instruction is executed HALT INTERRUPT
INSTRUCTION FETCH
0 HALT mode [MCCSR.OIE=1] VECTOR
1 ACTIVE-HALT mode
Figure 26. ACTIVE-HALT Mode Flow-chart
8.4.1 ACTIVE-HALT MODE OSCILLATOR ON
ACTIVE-HALT mode is the lowest power con- HALT INSTRUCTION PERIPHERALS 2) OFF
sumption mode of the MCU with a real time clock (MCCSR.OIE=1) CPU OFF
I[1:0] BITS 10
available. It is entered by executing the ‘HALT’ in-
struction when the OIE bit of the Main Clock Con-
troller Status register (MCCSR) is set (see Section N
RESET
10.2 on page 56 for more details on the MCCSR
register). N Y
INTERRUPT 3)
The MCU can exit ACTIVE-HALT mode on recep- OSCILLATOR ON
tion of either an MCC/RTC interrupt, a specific in- PERIPHERALS OFF
terrupt (see Table 8, “Interrupt Mapping,” on Y
CPU ON
page 36) or a RESET. When exiting ACTIVE- I[1:0] BITS XX 4)
HALT mode by means of an interrupt, no 256 or
4096 CPU cycle delay occurs. The CPU resumes
256 OR 4096 CPU CLOCK
operation by servicing the interrupt or by fetching
CYCLE DELAY
the reset vector which woke it up (see Figure 26).
When entering ACTIVE-HALT mode, the I[1:0] bits
OSCILLATOR ON
in the CC register are forced to ‘10b’ to enable in-
PERIPHERALS ON
terrupts. Therefore, if an interrupt is pending, the
CPU ON
MCU wakes up immediately.
I[1:0] BITS XX 4)
In ACTIVE-HALT mode, only the main oscillator
and its associated counter (MCC/RTC) are run- FETCH RESET VECTOR
ning to keep a wake-up time base. All other periph- OR SERVICE INTERRUPT
erals are not clocked except those which get their
clock supply from another clock generator (such Notes:
as external or auxiliary oscillator). 1. This delay occurs only if the MCU exits ACTIVE-
The safeguard against staying locked in ACTIVE- HALT mode by means of a RESET.
HALT mode is provided by the oscillator interrupt. 2. Peripheral clocked with an external clock source
can still be active.
Note: As soon as the interrupt capability of one of 3. Only the MCC/RTC interrupt and some specific
the oscillators is selected (MCCSR.OIE bit set), interrupts can exit the MCU from ACTIVE-HALT
entering ACTIVE-HALT mode while the Watchdog mode (such as external interrupt). Refer to
is active does not generate a RESET. Table 8, “Interrupt Mapping,” on page 36 for more
This means that the device cannot spend more details.
than a defined delay in this power saving mode. 4. Before servicing an interrupt, the CC register is
CAUTION: When exiting ACTIVE-HALT mode fol- pushed on the stack. The I[1:0] bits of the CC reg-
lowing an interrupt, OIE bit of MCCSR register ister are set to the current software priority level of
must not be cleared before tDELAY after the inter- the interrupt routine and restored when the CC
register is popped.
rupt occurs (tDELAY = 256 or 4096 tCPU delay de-
42/164
1
ST72324Jx ST72324Kx
43/164
1
ST72324Jx ST72324Kx
44/164
1
ST72324Jx ST72324Kx
9 I/O PORTS
45/164
1
ST72324Jx ST72324Kx
ALTERNATE
REGISTER 1
OUTPUT VDD P-BUFFER
ACCESS
(see table below)
0
ALTERNATE PULL-UP
ENABLE (see table below)
DR VDD
DDR
PULL-UP
PAD
CONDITION
OR
DATA BUS
If implemented
OR SEL
N-BUFFER
DIODES
(see table below)
DDR SEL
ANALOG
INPUT
CMOS
SCHMITT
DR SEL
1 TRIGGER
0
ALTERNATE
INPUT
EXTERNAL
INTERRUPT
SOURCE (eix)
Legend: NI - not implemented Note: The diode to VDD is not implemented in the
Off - implemented not activated true open drain pads. A local protection between
On - implemented and activated the pad and VSS is implemented to protect the de-
vice against positive stress.
46/164
1
ST72324Jx ST72324Kx
ALTERNATE INPUT
EXTERNAL INTERRUPT
SOURCE (eix)
INTERRUPT
CONDITION
ANALOG INPUT
I/O PORTS
RPU
DR R/W
REGISTER DATA BUS
PAD
ALTERNATE ALTERNATE
ENABLE OUTPUT
I/O PORTS
RPU
DR R/W
REGISTER DATA BUS
PAD
ALTERNATE ALTERNATE
ENABLE OUTPUT
Notes:
1. When the I/O port is in input configuration and the associated alternate function is enabled as an output,
reading the DR register will read the alternate function output status.
2. When the I/O port is in output configuration and the associated alternate function is enabled as an input,
the alternate function reads the pin status given by the DR register content.
47/164
1
ST72324Jx ST72324Kx
48/164
1
ST72324Jx ST72324Kx
MODE DDR OR
floating input 0 0
pull-up interrupt input 0 1
open drain output 1 0
push-pull output 1 1
49/164
1
ST72324Jx ST72324Kx
50/164
1
ST72324Jx ST72324Kx
10 ON-CHIP PERIPHERALS
RESET
fOSC2
MCC/RTC
WATCHDOG CONTROL REGISTER (WDGCR)
DIV 64 WDGA T6 T5 T4 T3 T2 T1 T0
12-BIT MCC
RTC COUNTER WDG PRESCALER
TB[1:0] bits DIV 4
MSB LSB
(MCCSR
11 6 5 0
Register)
51/164
1
ST72324Jx ST72324Kx
3F
38
30
28
CNT Value (hex.)
20
18
10
08
00
1.5 18 34 50 65 82 98 114 128
Watchdog timeout (ms) @ 8 MHz. fOSC2
52/164
1
ST72324Jx ST72324Kx
IF CNT ≤ MSB
------------- THEN t max = t max0 + 16384 × CNT × t osc2
4
Note: In the above formulae, division results must be rounded down to the next integer value.
Example:
With 2ms timeout selected in MCCSR register
Min. Watchdog Max. Watchdog
Value of T[5:0] Bits in
Timeout (ms) Timeout (ms)
WDGCR Register (Hex.)
tmin tmax
00 1.496 2.048
3F 128 128.552
53/164
1
ST72324Jx ST72324Kx
54/164
1
ST72324Jx ST72324Kx
55/164
1
ST72324Jx ST72324Kx
10.2 MAIN CLOCK CONTROLLER WITH REAL TIME CLOCK AND BEEPER (MCC/RTC)
The Main Clock Controller consists of three differ- external devices. It is controlled by the MCO bit in
ent functions: the MCCSR register.
■ a programmable CPU clock prescaler CAUTION: When selected, the clock out pin sus-
■ a clock-out signal to supply external devices
pends the clock during ACTIVE-HALT mode.
■ a real time clock timer with interrupt capability
10.2.3 Real Time Clock Timer (RTC)
Each function can be used independently and si- The counter of the real time clock timer allows an
multaneously. interrupt to be generated based on an accurate
real time clock. Four different time bases depend-
10.2.1 Programmable CPU Clock Prescaler ing directly on fOSC2 are available. The whole
The programmable CPU clock prescaler supplies functionality is controlled by four bits of the MCC-
the clock for the ST7 CPU and its internal periph- SR register: TB[1:0], OIE and OIF.
erals. It manages SLOW power saving mode (See When the RTC interrupt is enabled (OIE bit set),
Section 8.2 SLOW MODE for more details). the ST7 enters ACTIVE-HALT mode when the
The prescaler selects the fCPU main clock frequen- HALT instruction is executed. See Section 8.4 AC-
cy and is controlled by three bits in the MCCSR TIVE-HALT AND HALT MODES for more details.
register: CP[1:0] and SMS. 10.2.4 Beeper
10.2.2 Clock-out Capability The beep function is controlled by the MCCBCR
The clock-out capability is an alternate function of register. It can output three selectable frequencies
an I/O port pin that outputs the fCPU clock to drive on the BEEP pin (I/O port alternate function).
BC1 BC0
MCCBCR
BEEP
BEEP SIGNAL
SELECTION
MCO
56/164
1
ST72324Jx ST72324Kx
57/164
1
ST72324Jx ST72324Kx
0 0 Off
0 1 ~2-KHz
Output
1 0 ~1-KHz Beep signal
~50% duty cycle
1 1 ~500-Hz
58/164
1
ST72324Jx ST72324Kx
59/164
1
ST72324Jx ST72324Kx
fCPU
MCU-PERIPHERAL INTERFACE
8 high 8 low
8-bit 8 8 8 8 8 8 8 8
buffer
high
high
high
high
low
low
low
low
EXEDG
16
OVERFLOW
OUTPUT COMPARE EDGE DETECT ICAP1
DETECT
CIRCUIT CIRCUIT1 pin
CIRCUIT
LATCH1 OCMP1
pin
ICF1 OCF1 TOF ICF2 OCF2 TIMD 0 0
(Control/Status Register) LATCH2 OCMP2
CSR pin
ICIE OCIE TOIE FOLV2 FOLV1 OLVL2 IEDG1 OLVL1 OC1E OC2E OPM PWM CC1 CC0 IEDG2 EXEDG
(See note)
TIMER INTERRUPT Note: If IC, OC and TO interrupt requests have separate vectors
then the last OR is not present (See device Interrupt Vector Table)
60/164
1
ST72324Jx ST72324Kx
61/164
1
ST72324Jx ST72324Kx
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
Note: The MCU is in reset state when the internal reset signal is high, when it is low the MCU is running.
62/164
1
ST72324Jx ST72324Kx
63/164
1
ST72324Jx ST72324Kx
TIMER CLOCK
ICAPi PIN
ICAPi FLAG
64/164
1
ST72324Jx ST72324Kx
65/164
1
ST72324Jx ST72324Kx
66/164
1
ST72324Jx ST72324Kx
TIMER CLOCK
TIMER CLOCK
67/164
1
ST72324Jx ST72324Kx
68/164
1
ST72324Jx ST72324Kx
ICAP1
Figure 45. Pulse Width Modulation Mode Timing Example with 2 Output Compare Functions
COUNTER 34E2 FFFC FFFD FFFE 2ED0 2ED1 2ED2 34E2 FFFC
69/164
1
ST72324Jx ST72324Kx
70/164
1
ST72324Jx ST72324Kx
10.3.5 Interrupts
Enable Exit Exit
Event
Interrupt Event Control from from
Flag
Bit Wait Halt
Input Capture 1 event/Counter reset in PWM mode ICF1 Yes No
ICIE
Input Capture 2 event ICF2* Yes No
Output Compare 1 event (not available in PWM mode) OCF1 Yes No
OCIE
Output Compare 2 event (not available in PWM mode) OCF2* Yes No
Timer Overflow event TOF TOIE Yes No
Note: The 16-bit Timer interrupt events are connected to the same interrupt vector (see Interrupts chap-
ter). These events generate an interrupt if the corresponding Enable Control Bit is set and the interrupt
mask in the CC register is reset (RIM instruction).
* In Flash devices, the ICF2 and OCF2 bits are forced by hardware to 0 in Timer A, hence there is no in-
terrupt event for these flags.
10.3.6 Summary of Timer modes
TIMER RESOURCES
MODES
Input Capture 1 Input Capture 2 Output Compare 1 Output Compare 2
Input Capture (1 and/or 2) Yes Yes2)5) Yes Yes4)
5)
Output Compare (1 and/or 2) Yes Yes Yes Yes4)
Not
One Pulse Mode No No Partially 2)
Recommended1)5)
Not
PWM Mode No No No
Recommended3)5)
71/164
1
ST72324Jx ST72324Kx
72/164
1
ST72324Jx ST72324Kx
73/164
1
ST72324Jx ST72324Kx
74/164
1
ST72324Jx ST72324Kx
75/164
1
ST72324Jx ST72324Kx
76/164
1
ST72324Jx ST72324Kx
77/164
1
ST72324Jx ST72324Kx
1
In Flash devices, these bits are not used in Timer A and must be kept cleared.
2 In Flash devices, these bits are forced by hardware to 0 in Timer A
3
In Flash devices, the TAOC2HR and TAOC2LR Registers are write only, reading them will return unde-
fined values
4
In Flash devices, the TAIC2HR and TAIC2LR registers are not present.
78/164
1
ST72324Jx ST72324Kx
Data/Address Bus
SPIDR Read
Interrupt
request
Read Buffer
MOSI
7 SPICSR 0
MISO 8-Bit Shift Register
SPIF WCOL OVR MODF 0 SOD SSM SSI
Write
SOD
bit 1
SS
SPI 0
SCK STATE
CONTROL
7 SPICR 0
SERIAL CLOCK
GENERATOR
SS
79/164
1
ST72324Jx ST72324Kx
MASTER SLAVE
MSBit LSBit MSBit LSBit
MISO MISO
8-BIT SHIFT REGISTER 8-BIT SHIFT REGISTER
MOSI MOSI
SPI
SCK SCK
CLOCK
GENERATOR
SS SS
+5V
Not used if SS is managed
by software
80/164
1
ST72324Jx ST72324Kx
Master SS
Slave SS
(if CPHA=0)
Slave SS
(if CPHA=1)
SSM bit
SSI bit 1
SS internal
SS external pin 0
81/164
1
ST72324Jx ST72324Kx
82/164
1
ST72324Jx ST72324Kx
SCK
(CPOL = 0)
SS
(to slave)
CAPTURE STROBE
CPHA =0
SCK
(CPOL = 1)
SCK
(CPOL = 0)
SS
(to slave)
CAPTURE STROBE
Note: This figure should not be used as a replacement for parametric information.
Refer to the Electrical Characteristics chapter.
83/164
1
ST72324Jx ST72324Kx
RESULT
2nd Step Read SPIDR SPIF =0
WCOL=0
Read SPICSR
1st Step
RESULT Note: Writing to the SPIDR regis-
ter instead of reading it does not
2nd Step Read SPIDR WCOL=0 reset the WCOL bit
84/164
1
ST72324Jx ST72324Kx
SS SS SS SS
SCK SCK SCK SCK
Slave Slave Slave Slave
MCU MCU MCU MCU
MOSI MISO
SCK
Ports
Master
MCU
5V SS
85/164
1
ST72324Jx ST72324Kx
86/164
1
ST72324Jx ST72324Kx
87/164
1
ST72324Jx ST72324Kx
88/164
1
ST72324Jx ST72324Kx
89/164
1
ST72324Jx ST72324Kx
90/164
1
ST72324Jx ST72324Kx
TDO
RDI
CR1
R8 T8 SCID M WAKE PCE PS PIE
WAKE
TRANSMIT UP RECEIVER RECEIVER
CONTROL UNIT CONTROL CLOCK
CR2 SR
TIE TCIE RIE ILIE TE RE RWU SBK TDRE TC RDRF IDLE OR NF FE PE
SCI
INTERRUPT
CONTROL
TRANSMITTER
CLOCK
TRANSMITTER RATE
CONTROL
fCPU
/16 /PR
BRR
SCP1 SCP0 SCT2 SCT1 SCT0 SCR2 SCR1SCR0
RECEIVER RATE
CONTROL
91/164
1
ST72324Jx ST72324Kx
Start
Idle Frame Bit
Start
Idle Frame Bit
92/164
1
ST72324Jx ST72324Kx
93/164
1
ST72324Jx ST72324Kx
94/164
1
ST72324Jx ST72324Kx
TRANSMITTER
CLOCK
EXTENDED PRESCALER TRANSMITTER RATE CONTROL
SCIETPR
EXTENDED TRANSMITTER PRESCALER REGISTER
SCIERPR
EXTENDED RECEIVER PRESCALER REGISTER
RECEIVER
CLOCK
EXTENDED PRESCALER RECEIVER RATE CONTROL
EXTENDED PRESCALER
fCPU
TRANSMITTER RATE
CONTROL
/16 /PR
SCIBRR
SCP1 SCP0 SCT2 SCT1 SCT0 SCR2 SCR1SCR0
RECEIVER RATE
CONTROL
95/164
1
ST72324Jx ST72324Kx
96/164
1
ST72324Jx ST72324Kx
97/164
1
ST72324Jx ST72324Kx
RDI LINE
sampled values
Sample
clock 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
6/16
7/16 7/16
One bit time
98/164
1
ST72324Jx ST72324Kx
99/164
1
ST72324Jx ST72324Kx
100/164
1
ST72324Jx ST72324Kx
101/164
1
ST72324Jx ST72324Kx
102/164
1
ST72324Jx ST72324Kx
103/164
1
ST72324Jx ST72324Kx
Bits 7:0 = ERPR[7:0] 8-bit Extended Receive Bits 7:0 = ETPR[7:0] 8-bit Extended Transmit
Prescaler Register. Prescaler Register.
The extended Baud Rate Generator is activated The extended Baud Rate Generator is activated
when a value different from 00h is stored in this when a value different from 00h is stored in this
register. Therefore the clock frequency issued register. Therefore the clock frequency issued
from the 16 divider (see Figure 3.) is divided by the from the 16 divider (see Figure 3.) is divided by the
binary factor set in the SCIERPR register (in the binary factor set in the SCIETPR register (in the
range 1 to 255). range 1 to 255).
The extended baud rate generator is not used af- The extended baud rate generator is not used af-
ter a reset. ter a reset.
Table 21. Baudrate Selection
Conditions
Baud
Symbol Parameter Accuracy vs Standard Unit
fCPU Prescaler Rate
Standard
Conventional Mode
TR (or RR)=128, PR=13 300 ~300.48
TR (or RR)= 32, PR=13 1200 ~1201.92
TR (or RR)= 16, PR=13 2400 ~2403.84
~0.16% TR (or RR)= 8, PR=13 4800 ~4807.69
fTx TR (or RR)= 4, PR=13 9600 ~9615.38
Communication frequency 8 MHz TR (or RR)= 16, PR= 3 10400 ~10416.67 Hz
fRx
TR (or RR)= 2, PR=13 19200 ~19230.77
TR (or RR)= 1, PR=13 38400 ~38461.54
Extended Mode
~0.79% ETPR (or ERPR) = 35, 14400 ~14285.71
TR (or RR)= 1, PR=1
104/164
1
ST72324Jx ST72324Kx
105/164
1
ST72324Jx ST72324Kx
AIN0
AIN1
ANALOG TO DIGITAL
ANALOG
MUX CONVERTER
AINx
ADCDRH D9 D8 D7 D6 D5 D4 D3 D2
ADCDRL 0 0 0 0 0 0 D1 D0
106/164
1
ST72324Jx ST72324Kx
107/164
1
ST72324Jx ST72324Kx
7 0
D9 D8 D7 D6 D5 D4 D3 D2
7 0
0 0 0 0 0 0 D1 D0
108/164
1
ST72324Jx ST72324Kx
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
109/164
1
ST72324Jx ST72324Kx
11 INSTRUCTION SET
11.1 CPU ADDRESSING MODES so, most of the addressing modes may be subdi-
vided in two sub-modes called long and short:
The CPU features 17 different addressing modes
which can be classified in 7 main groups: – Long addressing mode is more powerful be-
cause it can use the full 64 Kbyte address space,
Addressing Mode Example however it uses more bytes and more CPU cy-
Inherent nop cles.
Immediate ld A,#$55 – Short addressing mode is less powerful because
it can generally only access page zero (0000h -
Direct ld A,$55
00FFh range), but the instruction size is more
Indexed ld A,($55,X) compact, and faster. All memory to memory in-
Indirect ld A,([$55],X) structions use short addressing modes only
Relative jrne loop (CLR, CPL, NEG, BSET, BRES, BTJT, BTJF,
INC, DEC, RLC, RRC, SLL, SRL, SRA, SWAP)
Bit operation bset byte,#5
The ST7 Assembler optimizes the use of long and
short addressing modes.
The CPU Instruction set is designed to minimize
the number of bytes required per instruction: To do
Table 24. CPU Addressing Mode Overview
Pointer Pointer Size Length
Mode Syntax Destination Address (Hex.) (Bytes)
(Hex.)
Inherent nop +0
Immediate ld A,#$55 +1
110/164
1
ST72324Jx ST72324Kx
111/164
1
ST72324Jx ST72324Kx
Short Instructions
Function
Only
CLR Clear
INC, DEC Increment/Decrement
TNZ Test Negative or Zero
CPL, NEG 1 or 2 Complement
BSET, BRES Bit Operations
Bit Test and Jump Opera-
BTJT, BTJF
tions
SLL, SRL, SRA, RLC, Shift and Rotate Opera-
RRC tions
SWAP Swap Nibbles
CALL, JP Call or Jump subroutine
112/164
1
ST72324Jx ST72324Kx
Using a pre-byte
The instructions are described with one to four op- These prebytes enable instruction in Y as well as
codes. indirect addressing modes to be implemented.
In order to extend the number of available op- They precede the opcode of the instruction in X or
codes for an 8-bit CPU (256 opcodes), three differ- the instruction using direct addressing mode. The
ent prebyte opcodes are defined. These prebytes prebytes are:
modify the meaning of the instruction they pre- PDY 90 Replace an X based instruction
cede. using immediate, direct, indexed, or inherent ad-
The whole instruction becomes: dressing mode by a Y one.
PC-2 End of previous instruction PIX 92 Replace an instruction using di-
rect, direct bit, or direct relative addressing mode
PC-1 Prebyte to an instruction using the corresponding indirect
PC opcode addressing mode.
PC+1 Additional word (0 to 2) according It also changes an instruction using X indexed ad-
to the number of bytes required to compute the ef- dressing mode to an instruction using indirect X in-
fective address dexed addressing mode.
PIY 91 Replace an instruction using X in-
direct indexed addressing mode by a Y one.
113/164
1
ST72324Jx ST72324Kx
114/164
1
ST72324Jx ST72324Kx
115/164
1
ST72324Jx ST72324Kx
12 ELECTRICAL CHARACTERISTICS
ST7 PIN
CL
116/164
1
ST72324Jx ST72324Kx
117/164
1
ST72324Jx ST72324Kx
fCPU [MHz]
8 FUNCTIONALITY
FUNCTIONALITY GUARANTEED
NOT GUARANTEED IN THIS AREA
6 (UNLESS
IN THIS AREA
OTHERWISE
4 SPECIFIED
IN THE TABLES
2 OF PARAMETRIC
DATA)
1
0
3.5 3.8 4.0 4.5 5.5
Note: Some temperature ranges are only available with a specific package and memory size. Refer to Or-
dering Information.
Warning: Do not connect 12V to VPP before VDD is powered on, as this may damage the device.
118/164
1
ST72324Jx ST72324Kx
119/164
1
ST72324Jx ST72324Kx
Notes:
1. Data based on characterization results, tested in production at VDD max. and fCPU max.
2. Measurements are done in the following conditions:
- Program executed from RAM, CPU running with RAM access. The increase in consumption when executing from Flash
is 50%.
- All I/O pins in input mode with a static value at VDD or VSS (no load)
- All peripherals in reset state.
- LVD disabled.
- Clock input (OSC1) driven by external square wave.
- In SLOW and SLOW WAIT mode, fCPU is based on fOSC divided by 32.
To obtain the total current consumption of the device, add the clock source (Section 12.6.3) and the peripheral power
consumption (Section 12.5.3).
3. All I/O pins in push-pull 0 mode (when applicable) with a static value at VDD or VSS (no load), LVD disabled. Data based
on characterization results, tested in production at VDD max. and fCPU max.
4. Data based on characterisation results, not tested in production. All I/O pins in push-pull 0 mode (when applicable) with
a static value at VDD or VSS (no load); clock input (OSC1) driven by external square wave, LVD disabled. To obtain
the total current consumption of the device, add the clock source consumption (Section 12.6.3).
120/164
1
ST72324Jx ST72324Kx
9 8MHz 6 8MHz
4MHz 4MHz
8
2MHz 2MHz
5
7 1MHz 1MHz
6 4
Idd (mA)
Idd (mA)
5
3
4
3 2
2
1
1
0 0
4 4.4 4.8 5.2 5.5 4 4.4 4.8 5.2 5.5
Vdd (V) Vdd (V)
Figure 62. Typical IDD in SLOW mode Figure 64. Typ. IDD in SLOW-WAIT mode
500kHz 1.20
1.20
250kHz 500kHz
125kHz 1.00 250kHz
1.00
62.5kHz 125kHz
0.80 62.5kHz
0.80
Idd (mA)
Idd (mA)
0.60
0.60
0.40
0.40
0.20
0.20
0.00
0.00
4 4.4 4.8 5.2 5.5
4 4.4 4.8 5.2 5.5
Vdd (V)
Vdd (V)
121/164
1
ST72324Jx ST72324Kx
Notes:
1. Data based on characterization results done with the external components specified in Section 12.6.3, not tested in
production.
2. As the oscillator is based on a current source, the consumption does not depend on the voltage.
122/164
1
ST72324Jx ST72324Kx
Notes:
1. Data based on a differential IDD measurement between reset configuration (timer counter running at fCPU/4) and timer
counter stopped (only TIMD bit set). Data valid for one timer.
2. Data based on a differential IDD measurement between reset configuration (SPI disabled) and a permanent SPI master
communication at maximum speed (data sent equal to 55h). This measurement includes the pad toggling consump-
tion.
3. Data based on a differential IDD measurement between SCI low power state (SCID=1) and a permanent SCI data trans-
mit sequence.
4. Data based on a differential IDD measurement between reset configuration and continuous A/D conversions.
123/164
1
ST72324Jx ST72324Kx
90%
VOSC1H
10%
VOSC1L
OSC2
Not connected internally
fOSC
EXTERNAL
IL
CLOCK SOURCE
OSC1
ST72XXX
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.
3. Data based on design simulation and/or technology characteristics, not tested in production.
124/164
1
ST72324Jx ST72324Kx
fOSC
CL1 OSC1
RESONATOR RF
CL2
OSC2
ST72XXX
Notes:
1. 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.
2. Data based on characterisation results, not tested in production.
125/164
1
ST72324Jx ST72324Kx
Typical Ceramic Resonators (information for guidance only) CL1 CL2 tSU(osc)
Oscil.
Reference3) Freq. Characteristic 1) [pF] [pF] [ms] 2)
LP CSA2.00MG 2MHz ∆fOSC=[±0.5%tolerance,±0.3%∆Ta,±0.3%aging,±x.x%correl] 22 22 4
MURATA
Ceramic
Notes:
1. Resonator characteristics given by the 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 (<50µs).
3. Resonators all have different characteristics. Contact the manufacturer to obtain the appropriate values of external
components and to verify oscillator performance.
4. 3rd overtone resonators require specific validation by the resonator manufacturer.
126/164
1
ST72324Jx ST72324Kx
4
Vdd = 5V
fOSC(RCINT) (MHz)
3.8
Vdd = 5.5V
3.6
3.4
3.2
3
-45 0 25 70 130
TA(°C)
127/164
1
ST72324Jx ST72324Kx
Note:
1. Data characterized but not tested.
The user must take the PLL jitter into account in the application (for example in serial communication or
sampling of high frequency signals). The PLL jitter is a periodic effect, which is integrated over several
CPU cycles. Therefore the longer the period of the application signal, the less it will be impacted by the
PLL jitter.
Figure 68 shows the PLL jitter integrated on application signals in the range 125kHz to 2MHz. At frequen-
cies of less than 125KHz, the jitter is negligible.
Figure 68. Integrated PLL Jitter vs signal frequency1
+/-Jitter (%)
1.2
FLASH typ
1 ROM max
0.8 ROM typ
0.6
0.4
0.2
0
4 MHz 2 MHz 1 MHz 500 kHz 250 kHz 125 kHz
Application Frequency
128/164
1
ST72324Jx ST72324Kx
129/164
1
ST72324Jx ST72324Kx
130/164
1
ST72324Jx ST72324Kx
131/164
1
ST72324Jx ST72324Kx
Notes:
1. Data based on characterization results, not tested in production.
12.8.3.2 Static and Dynamic Latch-Up ■ DLU: Electro-Static Discharges (one positive
■ LU: 3 complementary static tests are required then one negative test) are applied to each pin
on 10 parts to assess the latch-up performance. of 3 samples when the micro is running to
A supply overvoltage (applied to each power assess the latch-up performance in dynamic
supply pin) and a current injection (applied to mode. Power supplies are set to the typical
each input, output and configurable I/O pin) are values, the oscillator is connected as near as
performed on each sample. This test conforms possible to the pins of the micro and the
to the EIA/JESD 78 IC latch-up standard. For component is put in reset mode. This test
more details, refer to the application note conforms to the IEC1000-4-2 and SAEJ1752/3
AN1181. standards. For more details, refer to the
application note AN1181.
Electrical Sensitivities
Symbol Parameter Conditions Class 1)
TA=+25°C A
LU Static latch-up class TA=+85°C A
TA=+125°C A
DLU Dynamic latch-up class VDD=5.5V, fOSC=4MHz, TA=+25°C A
Notes:
1. Class description: A Class is an STMicroelectronics internal specification. All its limits are higher than the JEDEC spec-
ifications, that means when a device belongs to Class A it exceeds the JEDEC standard. B Class strictly covers all the
JEDEC criteria (international standard).
132/164
1
ST72324Jx ST72324Kx
Notes:
1. Data based on characterization results, not tested in production.
2. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
3. When the current limitation is not possible, the VIN maximum must be respected, otherwise refer to IINJ(PIN) specifica-
tion. A positive injection is induced by VIN>VDD while a negative injection is induced by VIN<VSS. Refer to Section 12.2.2
on page 117 for more details.
4. Configuration not recommended, all unused pins must be kept at a fixed voltage: using the output mode of the I/O for
example and leaving the I/O unconnected on the board or an external pull-up or pull-down resistor (see Figure 69). Data
based on design simulation and/or technology characteristics, not tested in production.
5. The RPU pull-up equivalent resistor is based on a resistive transistor (corresponding IPU current characteristics de-
scribed in Figure 70).
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.
Figure 69. Unused I/O Pins configured as input Figure 70. Typical IPU vs. VDD with VIN=VSS
90
VDD ST7XXX T a= 1 40°C
80
T a= 9 5°C
70 T a= 2 5°C
10kΩ UNUSED I/O PORT T a = -4 5 ° C
60
Ip u (u A )
50
40
UNUSED I/O PORT
10kΩ 30
20
ST7XXX
10
0
2 2 .5 3 3 .5 4 4 .5 5 5 .5 6
V d d (V )
Note: I/O can be left unconnected if it is configured as output
(0 or 1) by the software. This has the advantage of
greater EMC robustness and lower cost.
133/164
1
ST72324Jx ST72324Kx
VDD=5V
when 4 pins are sunk at same time TA>85°C 1.5 V
(see Figure 72 and Figure 74) IIO=+8mA 0.6
Output high level voltage for an I/O pin IIO=-5mA, TA≤85°C VDD-1.4
VOH 2) when 4 pins are sourced at same time TA>85°C VDD-1.6
(see Figure 73 and Figure 76) IIO=-2mA VDD-0.7
Figure 71. Typical VOL at VDD=5V (std. ports) Figure 73. Typical VOH at VDD=5V
5 .5
1 .2
5
1
V o l (V ) a t V d d = 5 V
V d d -V o h (V ) a t V d d = 5 V
4 .5
0 .8
4
0 .6
3 .5
Ta = 1 4 0 ° C "
0 .4 V d d = 5 V 1 4 0 ° C m in
Ta = 9 5 ° C
Ta = 2 5 ° C 3 V d d = 5 v 9 5 °C m in
0 .2
Ta = -4 5 °C
V d d = 5 v 2 5 °C m in
2 .5
0 V d d = 5 v -4 5 °C m i n
0 505
0 .0 010
.0 1 15
0 .0 1 5
2
IIO Ii(mA)
o (A ) -10 -8 -6 -4 -2 0
-0 .0 1 -0 .0 0 8 -0 .0 0 6 -0 .0 0 4 -0 .0 0 2 0
IIO (mA)
Ii o (A )
0 .9
0 .8
0 .7
V o l (V ) a t V d d = 5 V
0 .6
0 .5
0 .4
Ta = 1 4 0 °C
0 .3
Ta = 9 5 °C
0 .2 Ta = 2 5 °C
0 .1 Ta = -4 5 ° C
0
0 10 0.01 20 0.0 2 30 0 .0 3
IIO (mA)
Iio (A )
Notes:
1. The IIO current sunk must always respect the absolute maximum rating specified in Section 12.2.2 and the sum of IIO
(I/O ports and control pins) must not exceed IVSS.
2. The IIO current sourced must always respect the absolute maximum rating specified in Section 12.2.2 and the sum of
IIO (I/O ports and control pins) must not exceed IVDD. True open drain I/O pins do not have VOH.
134/164
1
ST72324Jx ST72324Kx
0.7
Vol(V) at Iio=2mA
0.3
0.6
0.5 0.25
0.4 0.2
0.3 0.15
0.2
0.1
0.1
0.05
0
2 2.5 3 3.5 4 4.5 5 5.5 6 0
2 2.5 3 3.5 4 4.5 5 5.5 6
Vdd(V)
Vdd(V)
0.4 Ta=-45°C
Vol(V) at Iio=20mA
1
Vol(V) at Iio=8mA
0.3 0.8
0.6
0.2
Ta= 140°C
0.4
Ta=95°C
0.1 Ta=25°C
0.2
Ta=-45°C
0 0
2 2.5 3 3.5 4 4.5 5 5.5 6 2 2.5 3 3.5 4 4.5 5 5.5 6
Vdd(V) Vdd(V)
Ta=-45°C
5
5 Ta=25°C
Vdd-Voh(V) at Iio=-2mA
Ta=95°C
4.5
Vdd-Voh(V) at Iio=-5m
4 Ta=140°C
4
3
3.5
Ta=-45°C
2
3 Ta=25°C
Ta=95°C
2.5 1
Ta=140°C
2
0
2 2.5 3 3.5 4 4.5 5 5.5 6 2 2.5 3 3.5 4 4.5 5 5.5 6
Vdd(V) Vdd(V)
135/164
1
ST72324Jx ST72324Kx
Notes:
1. Data based on characterization results, not tested in production.
2. Hysteresis voltage between Schmitt trigger switching levels.
3. The IIO current sunk must always respect the absolute maximum rating specified in Section 12.2.2 and the sum of IIO
(I/O ports and control pins) must not exceed IVSS.
4. To guarantee the reset of the device, a minimum pulse has to be applied to the RESET pin. All short pulses applied on
the RESET pin with a duration below th(RSTL)in can be ignored.
5. The reset network (the resistor and two capacitors) protects the device against parasitic resets, especially in noisy en-
vironments.
6. Data guaranteed by design, not tested in production.
136/164
1
ST72324Jx ST72324Kx
VDD ST72XXX
0.01µF
1MΩ WATCHDOG
PULSE
GENERATOR
LVD RESET
VDD VDD
RON
USER 0.01µF 4.7kΩ INTERNAL
EXTERNAL RESET
RESET Filter
CIRCUIT
0.01µF
PULSE
WATCHDOG
GENERATOR
Required
137/164
1
ST72324Jx ST72324Kx
ICCSEL/VPP VPP
PROGRAMMING
TOOL
10kΩ
ST72XXX ST72XXX
Notes:
1. Data based on design simulation and/or technology characteristics, not tested in production.
2. When ICC mode is not required by the application ICCSEL/VPP pin must be tied to VSS.
138/164
1
ST72324Jx ST72324Kx
139/164
1
ST72324Jx ST72324Kx
SS INPUT
tsu(SS) tc(SCK) th(SS)
CPHA=0
SCK INPUT
CPOL=0
CPHA=0
CPOL=1
tw(SCKH)
ta(SO) tw(SCKL) tv(SO) th(SO) tr(SCK) tdis(SO)
tf(SCK)
MISO OUTPUT see
see note 2 MSB OUT BIT6 OUT LSB OUT note 2
tsu(SI) th(SI)
Notes:
1. Measurement points are done at CMOS levels: 0.3xVDD and 0.7xVDD.
140/164
1
ST72324Jx ST72324Kx
SS INPUT
tsu(SS) tc(SCK) th(SS)
CPHA=1
SCK INPUT
CPOL=0
CPHA=1
CPOL=1
tsu(SI) th(SI)
SS INPUT
tc(SCK)
CPHA=0
CPOL=0
CPHA=0
SCK INPUT
CPOL=1
CPHA=1
CPOL=0
CPHA=1
CPOL=1
tw(SCKH) tr(SCK)
tw(SCKL) tf(SCK)
tsu(MI) th(MI)
tv(MO) th(MO)
MOSI OUTPUT see note 2 MSB OUT BIT6 OUT LSB OUT see note 2
Notes:
1. Measurement points are done at CMOS levels: 0.3xVDD and 0.7xVDD.
2. When no communication is on-going the data output line of the SPI (MOSI in master mode, MISO in slave mode) has
its alternate function capability released. In this case, the pin status depends of the I/O port configuration.
141/164
1
ST72324Jx ST72324Kx
Notes:
1. 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.
2.For Flash devices: injecting negative current on any of the analog input pins significantly reduces the accuracy of any
conversion being performed on any analog input. Analog pins of ST72F324 devices can be protected against negative
injection by adding a Schottky diode (pin to ground). Injecting negative current on digital input pins degrades ADC accu-
racy especially if performed on a pin close to the analog input pins. Any positive injection current within the limits specified
for IINJ(PIN) and ΣIINJ(PIN) in Section 12.9 does not affect the ADC accuracy.
142/164
1
ST72324Jx ST72324Kx
Figure 83. RAIN max. vs fADC with CAIN=0pF1) Figure 84. Recommended CAIN & RAIN values.2)
45 1000
40 Cain 10 nF
35 2 MHz Cain 22 nF
100
Max. R AIN (Kohm)
15
10 1
0 0.1
0 10 30 70 0.01 0.1 1 10
CPARASITIC (pF) fAIN(KHz)
CAIN VT
0.6V IL CADC
±1µA 12pF
Notes:
1. CPARASITIC represents the capacitance of the PCB (dependent on soldering and PCB layout quality) plus the pad ca-
pacitance (3pF). A high CPARASITIC value will downgrade conversion accuracy. To remedy this, fADC should be reduced.
2. This graph shows that depending on the input signal variation (fAIN), CAIN can be increased for stabilization time and
decreased to allow the use of a larger serial resistor (RAIN).
143/164
1
ST72324Jx ST72324Kx
12.13.1 Analog Power Supply and Reference digital ground plane via a single point on the
Pins PCB.
Depending on the MCU pin count, the package – Filter power to the analog power planes. It is rec-
may feature separate VAREF and VSSA analog ommended to connect capacitors, with good high
power supply pins. These pins supply power to the frequency characteristics, between the power
A/D converter cell and function as the high and low and ground lines, placing 0.1µF and optionally, if
reference voltages for the conversion. In some needed 10pF capacitors as close as possible to
packages, VAREF and VSSA pins are not available the ST7 power supply pins and a 1 to 10µF ca-
(refer to Section 2 on page 8). In this case the an- pacitor close to the power source (see Figure
alog supply and reference pads are internally 86).
bonded to the VDD and VSS pins. – The analog and digital power supplies should be
Separation of the digital and analog power pins al- connected in a star network. Do not use a resis-
low board designers to improve A/D performance. tor, as VAREF is used as a reference voltage by
Conversion accuracy can be impacted by voltage the A/D converter and any resistance would
drops and noise in the event of heavily loaded or cause a voltage drop and a loss of accuracy.
badly decoupled power supply lines (see Section – Properly place components and route the signal
12.13.2 General PCB Design Guidelines). traces on the PCB to shield the analog inputs.
12.13.2 General PCB Design Guidelines Analog signals paths should run over the analog
To obtain best results, some general design and ground plane and be as short as possible. Isolate
layout rules should be followed when designing analog signals from digital signals that may
the application PCB to shield the noise-sensitive, switch while the analog inputs are being sampled
analog physical interface from noise-generating by the A/D converter. Do not toggle digital out-
CMOS logic signals. puts on the same I/O port as the A/D input being
converted.
– Use separate digital and analog planes. The an-
alog ground plane should be connected to the
Figure 86. Power Supply Filtering
ST72XXX
1 to 10µF 0.1µF VSS
ST7
DIGITAL NOISE
FILTERING
VDD
VDD
POWER
SUPPLY
0.1µF VAREF
SOURCE
EXTERNAL
NOISE
FILTERING VSSA
144/164
1
ST72324Jx ST72324Kx
|EL| Integral linearity error 1) CPU in run mode @ fADC 2 MHz. 1.5 4.5
Notes:
1. ADC Accuracy vs. Negative Injection Current: Injecting negative current may reduce the accuracy of the conversion
being performed on another analog input.
Any positive injection current within the limits specified for IINJ(PIN) and ΣIINJ(PIN) in Section 12.9 does not affect the ADC
accuracy.
2. Data based on characterization results, monitored in production to guarantee 99.73% within ± max value from -40°C
to 125°C (± 3σ distribution limits).
145/164
1
ST72324Jx ST72324Kx
13 PACKAGE CHARACTERISTICS
mm inches
D A Dim.
Min Typ Max Min Typ Max
D1 A2
A 1.60 0.063
A1 A1 0.05 0.15 0.002 0.006
A2 1.35 1.40 1.45 0.053 0.055 0.057
mm inches
Dim.
Min Typ Max Min Typ Max
D A A 1.60 0.063
D1 A2 A1 0.05 0.15 0.002 0.006
A2 1.35 1.40 1.45 0.053 0.055 0.057
A1 b 0.30 0.37 0.45 0.012 0.015 0.018
C 0.09 0.20 0.004 0.008
e D 9.00 0.354
D1 7.00 0.276
E1 E
b E 9.00 0.354
E1 7.00 0.276
e 0.80 0.031
c θ 0° 3.5° 7° 0° 3.5° 7°
L1
L 0.45 0.60 0.75 0.018 0.024 0.030
L
h L1 1.00 0.039
Number of Pins
N 32
146/164
1
ST72324Jx ST72324Kx
mm inches
Dim.
E Min Typ Max Min Typ Max
A 5.08 0.200
A2 A A1 0.51 0.020
A2 3.05 3.81 4.57 0.120 0.150 0.180
A1 L c E1
b 0.38 0.46 0.56 0.015 0.018 0.022
b2 b e eA
eB
b2 0.89 1.02 1.14 0.035 0.040 0.045
D
E c 0.23 0.25 0.38 0.009 0.010 0.015
D 36.58 36.83 37.08 1.440 1.450 1.460
0.015
E 15.24 16.00 0.600 0.630
GAGE PLANE
E1 12.70 13.72 14.48 0.500 0.540 0.570
e 1.78 0.070
eA 15.24 0.600
eC eB 18.54 0.730
eB
eC 1.52 0.000 0.060
L 2.54 3.30 3.56 0.100 0.130 0.140
Number of Pins
N 42
Figure 91. 32-Pin Plastic Dual In-Line Package, Shrink 400-mil Width
mm inches
Dim.
Min Typ Max Min Typ Max
E eC
A 3.56 3.76 5.08 0.140 0.148 0.200
A1 0.51 0.020
A2 A
A2 3.05 3.56 4.57 0.120 0.140 0.180
147/164
1
ST72324Jx ST72324Kx
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.
148/164
1
ST72324Jx ST72324Kx
149/164
1
ST72324Jx ST72324Kx
Reserved
Reserved
WDG VD OSCTYPE OSCRANGE
PLLOFF
FMP_R
RSTC
PKG1
HALT
SW
1 0 1 0 2 1 0
Default 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1
The option bytes allows the hardware configura- Selected Low Voltage Detector VD1 VD0
tion of the microcontroller to be selected. They
have no address in the memory map and can be LVD and AVD Off 1 1
accessed only in programming mode (for example Lowest Voltage Threshold (VDD~3V) 1 0
using a standard ST7 programming tool). The de- Medium Voltage Threshold (VDD~3.5V) 0 1
fault content of the FLASH is fixed to FFh. To pro- Highest Voltage Threshold (VDD~4V) 0 0
gram directly the FLASH devices using ICP,
FLASH devices are shipped to customers with the Caution: If the medium or low thresholds are se-
internal RC clock source. lected, the detection may occur outside the speci-
fied operating voltage range. Below 3.8V, device
OPTION BYTE 0 operation is not guaranteed. For details on the
OPT7= WDG HALT Watchdog reset on HALT AVD and LVD threshold levels refer to Section
This option bit determines if a RESET is generated 12.4.1 on page 119
when entering HALT mode while the Watchdog is
active.
0: No Reset generation when entering Halt mode OPT2:1 = Reserved, must be kept at default value.
1: Reset generation when entering Halt mode
OPT0= FMP_R Flash memory read-out protection
OPT6= WDG SW Hardware or software watchdog Read-out protection, when selected, provides a
This option bit selects the watchdog type. protection against Program Memory content ex-
0: Hardware (watchdog always enabled) traction and against write access to Flash memo-
1: Software (watchdog to be enabled by software) ry.
Erasing the option bytes when the FMP_R option
OPT5 = Reserved, must be kept at default value. is selected causes the whole user memory to be
erased first, and the device can be reprogrammed.
Refer to Section 7.3.1 on page 37 and the ST7
OPT4:3= VD[1:0] Voltage detection Flash Programming Reference Manual for more
These option bits enable the voltage detection details.
block (LVD, and AVD) with a selected threshold for 0: Read-out protection enabled
the LVD and AVD. 1: Read-out protection disabled
150/164
1
ST72324Jx ST72324Kx
151/164
1
ST72324Jx ST72324Kx
152/164
1
ST72324Jx ST72324Kx
153/164
1
ST72324Jx ST72324Kx
154/164
1
ST72324Jx ST72324Kx
Note 1: Add suffix /EU, /UK, /US for the power supply of your region.
155/164
1
ST72324Jx ST72324Kx
156/164
1
ST72324Jx ST72324Kx
157/164
1
ST72324Jx ST72324Kx
158/164
1
ST72324Jx ST72324Kx
15 KNOWN LIMITATIONS
159/164
1
ST72324Jx ST72324Kx
160/164
1
ST72324Jx ST72324Kx
JP while_loop Occurrence
.call_routine ; entry to call_routine The occurrence of the problem is random and pro-
PUSH A portional to the baudrate. With a transmit frequen-
cy of 19200 baud (fCPU=8MHz and SCI-
PUSH X BRR=0xC9), the wrong break duration occurrence
PUSH CC is around 1%.
.ext1_rt ; entry to interrupt routine Workaround
LD A,#$00 If this wrong duration is not compliant with the
LD sema,A communication protocol in the application, soft-
ware can request that an Idle line be generated
IRET before the break character. In this case, the break
15.1.7 16-bit Timer PWM Mode duration is always correct assuming the applica-
tion is not doing anything between the idle and the
In PWM mode, the first PWM pulse is missed after break. This can be ensured by temporarily disa-
writing the value FFFCh in the OC1R register bling interrupts.
(OC1HR, OC1LR). It leads to either full or no PWM
during a period, depending on the OLVL1 and The exact sequence is:
OLVL2 settings. - Disable interrupts
15.1.8 SCI Wrong Break duration - Reset and Set TE (IDLE request)
Description - Set and Reset SBK (Break Request)
A single break character is sent by setting and re- - Re-enable interrupts
setting the SBK bit in the SCICR2 register. In
some cases, the break character may have a long-
er duration than expected: 15.2 FLASH DEVICES ONLY
- 20 bits instead of 10 bits if M=0 15.2.1 Internal RC Operation
- 22 bits instead of 11 bits if M=1. In ST72F324J and ST72F324K devices, the inter-
nal RC oscillator is not supported if the LVD is dis-
In the same way, as long as the SBK bit is set,
abled.
break characters are sent to the TDO pin. This
may lead to generate one break more than expect-
ed.
161/164
1
ST72324Jx ST72324Kx
162/164
1
ST72324Jx ST72324Kx
17 REVISION HISTORY
Table 31. Revision History
Date Revision Description of Changes
Merged ST72F324 Flash with ST72324B ROM datasheet.
Vt POR max modified in Section 12.4 on page 119
Added Figure 78 on page 137
05-May-2004 2.0 Modified VAREF min in “10-BIT ADC CHARACTERISTICS” on page 142
Modified I INJ for PB0 in Section 12.9
Added “Clearing active interrupts outside interrupt routine” on page 159
Modified “32K ROM DEVICES ONLY” on page 164
Removed Clock Security System (CSS) throughout document
Added notes on ST72F324B 8K/16K Flash devices in Table 1 and Table 27
Corrected MCO description in Table 1 and Section 10.2
Modified VtPOR in Section 12.4 on page 119
Static current consumption modified in Section 12.9 on page 133
Updated footnote and Figure 77 and Figure 78 on page 137
Modified Soldering information in Section 13.3
30-Mar-2005 3
Updated Section 14 on page 150
Added Table 27
Modified Figure 7 and note 4 in “FLASH PROGRAM MEMORY” on page 17
Added limitation on ICC entry mode with 39 pulses to “KNOWN LIMITATIONS” on
page 159
Added Section 16 on page 162 for ST72F324B 8K/16K Flash devices
Modified “Internal Sales Types on box label” in Table 29
08-Nov-2005 4 Removed information on ST72F324B and ROM devices (now in separate datasheet)
Changed status to “Not for new design”
04-Apr-2008 5 Added “External interrupt missed” in “KNOWN LIMITATIONS” on page 159
Removed information on automotive versions (now in separate datasheet)
163/164
1
ST72324Jx ST72324Kx
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE
SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN
PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT
SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
164/164