ST72F325
ST72F325
Features
■ Memories
– 16K to 60K dual voltage High Density Flash
(HDFlash) or up to 32K ROM with read-out LQFP64 LQFP44 LQFP48 LQFP32
protection capability. In-Application Program- 10 x 10 10 x 10 7x7 7x7
ming and In-Circuit Programming for HDFlash
devices
– 512 to 2048 bytes RAM
– HDFlash endurance: 100 cycles, data reten-
tion: 40 years at 85°C
■ Clock, reset and supply management LQFP64 SDIP42 SDIP32
14 x 14 600 mil 400 mil
– Enhanced low voltage supervisor (LVD) for
main supply and auxiliary voltage detector – Configurable watchdog timer
(AVD) with interrupt capability – Two 16-bit timers with: 2 input captures, 2 out-
– Clock sources: crystal/ceramic resonator os- put compares, external clock input on one tim-
cillators, internal RC oscillator and bypass for er, PWM and pulse generator modes
external clock – 8-bit PWM Auto-reload timer with: 2 input cap-
– PLL for 2x frequency multiplication tures, 4 PWM outputs, output compare and
– Four Power Saving Modes: Halt, Active-Halt, time base interrupt, external clock with event
Wait and Slow detector
– Clock Security System ■ 3 Communication interfaces
■ Interrupt management – SPI synchronous serial interface
– Nested interrupt controller – SCI asynchronous serial interface
– 14 interrupt vectors plus TRAP and RESET – I2C multimaster interface
– Top Level Interrupt (TLI) pin on 64-pin devices ■ 1 Analog peripheral (low current coupling)
– 9/6 external interrupt lines (on 4 vectors) – 10-bit ADC with up to 16 robust input ports
■ Up to 48 I/O ports ■ Instruction set
– 48/36/32/24 multifunctional bidirectional I/O – 8-bit Data Manipulation
lines – 63 Basic Instructions
– 34/26/22/17 alternate function lines – 17 main Addressing Modes
– 16/13/12/10 high sink outputs – 8 x 8 Unsigned Multiply Instruction
■ 5 timers ■ Development tools
– Main Clock Controller with: Real time base, – Full hardware/software development package
Beep and Clock-out capabilities – DM (Debug module)
Table 1. Device summary
ST72325R9 /
ST72325S4 / ST72325S6 /
Features ST72325J7 ST72325AR9 /
ST72325J4 / ST72325K4 ST72325J6 / ST72325K6
ST72325C9 /ST72325J9
Program memory - bytes Flash/ROM 16K Flash/ROM 32K Flash 48K Flash 60K
RAM (stack) - bytes 512 (256) 1024(256) 1536 (256) 2048(256)
Operating Voltage 3.8V to 5.5V
Temp. Range up to -40°C to +125°C
LQFP64 14x14(R), LQFP64
LQFP48(S), LQFP44/SDIP42 (J), LQFP48(S) , LQFP44/ SDIP42 (J),
Package LQFP44 (J) 10x10(AR), LQFP48(C),
LQFP32/DIP32 (K) LQFP32/DIP32 (K)
LQFP44 (J)
2/197
1
Table of Contents
8.3 WAIT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
8.4 ACTIVE-HALT AND HALT MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
8.4.1 ACTIVE-HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
8.4.2 HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
9 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9.2 FUNCTIONAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9.2.1 Input Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9.2.2 Output Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9.2.3 Alternate Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9.3 I/O PORT IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
9.4 LOW POWER MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
9.5 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
9.5.1 I/O Port Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
10 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.1 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.1.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.1.3 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
10.1.4 How to Program the Watchdog Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10.1.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.1.6 Hardware Watchdog Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.1.7 Using Halt Mode with the WDG (WDGHALT option) . . . . . . . . . . . . . . . . . . . . . . . 59
10.1.8 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.1.9 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.2 MAIN CLOCK CONTROLLER WITH REAL TIME CLOCK AND BEEPER (MCC/RTC) . . 61
10.2.1 Programmable CPU Clock Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
10.2.2 Clock-out Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
10.2.3 Real Time Clock Timer (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
10.2.4 Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
10.2.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.2.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.2.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.3 PWM AUTO-RELOAD TIMER (ART) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
10.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
10.3.2 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
10.3.3 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
10.4 16-BIT TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.4.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.4.3 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.4.4 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
10.4.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
10.4.6 Summary of Timer Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
10.4.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
10.5 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
3/197
1
Table of Contents
10.5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
10.5.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
10.5.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
10.5.4 Clock Phase and Clock Polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
10.5.5 Error Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
10.5.6 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
10.5.7 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
10.5.8 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
10.6 SERIAL COMMUNICATIONS INTERFACE (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
10.6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
10.6.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
10.6.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
10.6.4 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
10.6.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
10.6.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
10.6.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
10.7 I2C BUS INTERFACE (I2C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
10.7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
10.7.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
10.7.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
10.7.4 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
10.7.5 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
10.7.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
10.7.7 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
10.8 10-BIT A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
10.8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
10.8.2 Main Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
10.8.3 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
10.8.4 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
10.8.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
10.8.6 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
11 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
11.1 CPU ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
11.1.1 Inherent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.1.2 Immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.1.3 Direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.1.4 Indexed (No Offset, Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.1.5 Indirect (Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.1.6 Indirect Indexed (Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
11.1.7 Relative mode (Direct, Indirect) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
11.2 INSTRUCTION GROUPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
12 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
12.1 PARAMETER CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
12.1.1 Minimum and Maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
12.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
12.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
. . . 142
12.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
12.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
4/197
Table of Contents
12.2 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
12.2.1 Voltage Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
12.2.2 Current Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
12.2.3 Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
12.3 OPERATING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
12.3.1 General Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
12.3.2 Operating Conditions with Low Voltage Detector (LVD) . . . . . . . . . . . . . . . . . . . 145
12.3.3 Auxiliary Voltage Detector (AVD) Thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
12.3.4 External Voltage Detector (EVD) Thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
12.4 SUPPLY CURRENT CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
12.4.1 CURRENT CONSUMPTION ..................................... 146
12.4.2 Supply and Clock Managers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
12.4.3 On-Chip Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
12.5 CLOCK AND TIMING CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
12.5.1 General Timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
12.5.2 External Clock Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
12.5.3 Crystal and Ceramic Resonator Oscillators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
12.5.4 RC Oscillators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
12.5.5 Clock Security System (CSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
12.5.6 PLL Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
12.6 MEMORY CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
12.6.1 RAM and Hardware Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
12.6.2 FLASH Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
12.7 EMC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
12.7.1 Functional EMS (Electro Magnetic Susceptibility) . . . . . . . . . . . . . . . . . . . . . . . . 156
12.7.2 Electro Magnetic Interference (EMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
12.7.3 Absolute Maximum Ratings (Electrical Sensitivity) . . . . . . . . . . . . . . . . . . . . . . . 158
12.8 I/O PORT PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
12.8.1 General Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
12.8.2 Output Driving Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
12.9 CONTROL PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
12.9.1 Asynchronous RESET Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
12.9.2 ICCSEL/VPP Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
12.10TIMER PERIPHERAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
12.10.1 8-Bit PWM-ART Auto-Reload Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
12.10.2 16-Bit Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
12.11COMMUNICATION INTERFACE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . 166
12.11.1 SPI - Serial Peripheral Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
12.11.2 I2C - Inter IC Control Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
12.1210-BIT ADC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
12.12.1 Analog Power Supply and Reference Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
12.12.2 General PCB Design Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
12.12.3 ADC Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
13 PACKAGE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
13.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
13.2 THERMAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
5/197
Table of Contents
13.3 SOLDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
14 ST72325 DEVICE CONFIGURATION AND ORDERING INFORMATION . . . . . . . . . . . . . . . 181
14.1 FLASH OPTION BYTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
14.2 DEVICE ORDERING INFORMATION AND TRANSFER OF CUSTOMER CODE . . . . . 183
14.3 DEVELOPMENT TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
14.3.1 Starter kits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
14.3.2 Development and debugging tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
14.3.3 Programming tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
14.3.4 Socket and Emulator Adapter Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
14.4 ST7 APPLICATION NOTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
15 KNOWN LIMITATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
15.1 ALL DEVICES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
15.1.1 Unexpected Reset Fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
15.1.2 External interrupt missed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
15.1.3 Clearing active interrupts outside interrupt routine . . . . . . . . . . . . . . . . . . . . . . . 193
15.1.4 SCI Wrong Break duration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
15.1.5 16-bit Timer PWM Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
15.1.6 TIMD set simultaneously with OC interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
15.1.7 I2C Multimaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
15.1.8 Pull-up always active on PE2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
15.1.9 ADC accuracy 16/32K Flash devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
16 REVISION HISTORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
197
6/197
ST72325xx
MCC/RTC/BEEP
I2C
PA7:0
(8 bits on AR devices)
PORT F PORT A (5 bits on C/J devices)
PF7:0 (4 bits on K devices)
(8 bits on AR devices)
(6 bits on C/J devices) TIMER A
PORT B
(5 bits on K devices)
PB7:0
BEEP (8 bits on AR devices)
PWM ART (5 bits on C/J devices)
(3 bits on K devices)
PORT E
PE7:0 PORT C
(8 bits on AR devices)
(2 bits on C/J/K devices) SCI
TIMER B PC7:0
(8 bits)
PORT D
PD7:0 SPI
(8 bits on AR devices)
(6 bits on C/J devices) 10-BIT ADC
(2 bits on K devices)
VAREF
VSSA
1) ROM devices have up to 32 Kbytes of program memory and up to 1 Kbyte of RAM.
7/197
ST72325xx
2 PIN DESCRIPTION
Figure 2. 64-Pin LQFP 14x14 and 10x10 Package Pinout
PA5 (HS)
PA4 (HS)
RESET
VDD_2
VSS_2
OSC1
OSC2
EVD
PE3
PE2
TLI
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
(HS) PE4 1 48 VSS_1
(HS) PE5 2 47 VDD_1
(HS) PE6 3 46 PA3 (HS)
(HS) PE7 4 45 PA2
ei0
PWM3 / PB0 5 44 PA1
PWM2 / PB1 6 43 PA0
PWM1 / PB2 ei2 42 PC7 / SS / AIN15
7
PWM0 / PB3 8 41 PC6 / SCK / ICCCLK
ARTCLK / (HS) PB4 9 40 PC5 / MOSI / AIN14
ARTIC1 / PB5 10 39 PC4 / MISO / ICCDATA
ARTIC2 / PB6 11 ei3 38 PC3 (HS) / ICAP1_B
PB7 12 37 PC2 (HS) / ICAP2_B
AIN0 / PD0 13 36 PC1 / OCMP1_B / AIN13
AIN1 / PD1 14 35 PC0 / OCMP2_B / AIN12
AIN2 / PD2 15 ei1 34 VSS_0
AIN3 / PD3 16 33 VDD_0
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
BEEP / (HS) PF1
(HS) PF2
8/197
ST72325xx
PA5 (HS)
PA4 (HS)
RESET
VDD_2
VSS_2
OSC1
OSC2
48 47 46 45 44 43 42 41 40 39 38 37
PE2 1 36 VSS_1
(HS) PE4 2 35 VDD_1
PWM3 / PB0 3 34 PA3 (HS)
PWM2 / PB1 ei2 PA2
4 33
PWM1 / PB2 5 32 PC7 / SS / AIN15
PWM0 / PB3 6 ei3 ei0 31 PC6 / SCK / ICCCLK
ARTCLK / (HS) PB4 7 30 PC5 / MOSI / AIN14
ARTIC1 / PB5 8 29 PC4 / MISO / ICCDATA
AIN0 / PD0 9 28 PC3 (HS) / ICAP1_B
AIN1 / PD1 10 27 PC2 (HS) / ICAP2_B
AIN3 / PD2 11 26 PC1 / OCMP1_B / AIN13
ei1
AIN4 / PD3 12 25 PC0 / OCMP2_B / AIN12
13 14 15 16 17 18 19 20 21 22 23 24
OCMP1_A / AIN10 / PF4
BEEP / (HS) PF1
(HS) PF2
VDD_0
VSS_0
Legend
(HS) 20mA high sink capability
= Pin not connected in ST72325S devices
eix associated external interrupt vector
Caution: 48-pin ‘C’ devices have unbonded pins that require software initialization. Refer
to Note 4 on page 16 for details on initializing the I/O registers for these devices.
9/197
ST72325xx
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
VSSA
VDD_0
VSS_0
AIN5 / PD5
(HS) PF2
OCMP1_A / AIN10 / PF4
10/197
ST72325xx
PE0 / TDO
PE1 / RDI
VDD_2
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)/SCLI
EXTCLK_A / (HS) PF7 7 18 PA6 (HS) / SDAI
AIN12 / OCMP2_B / PC0 8 ei0 17 PA4 (HS)
9 10 11 12 13 14 15 16
ICCDATA / MISO / PC4
(HS) PA3
AIN13 / OCMP1_B / PC1
ICAP2_B / (HS) PC2
ICAP1_B / (HS) PC3
11/197
ST72325xx
Type
LQFP48S
Output function
LQFP64
LQFP44
Input
SDIP42
Output
(after
float
wpu
ana
reset)
OD
PP
int
12/197
ST72325xx
Type
LQFP48S
function
LQFP64
LQFP44
Input Output
SDIP42
Output
Pin Name Alternate function
Input
(after
float
wpu
ana
reset)
OD
PP
int
17 13 13 11 6 PD4/AIN4 I/O CT X X X X X Port D4 ADC Analog Input 4
18 14 14 12 7 PD5/AIN5 I/O CT X X X X X Port D5 ADC Analog Input 5
4)
19 - - - - PD6/AIN6 I/O CT X X X X X Port D6 ADC Analog Input 6
20 -4) - - - PD7/AIN7 I/O CT X X X X X Port D7 ADC Analog Input 7
Analog Reference Voltage for
21 15 15 13 8 VAREF6) I
ADC
22 16 16 14 9 VSSA6) S Analog Ground Voltage
23 - - - - VDD_36) S Digital Main Supply Voltage
24 - - - - VSS_36) S Digital Ground Voltage
ADC Ana-
Main clock
25 17 17 15 10 PF0/MCO/AIN8 I/O CT X ei1 X X X Port F0 log
out (fOSC/2)
Input 8
26 18 18 16 11 PF1 (HS)/BEEP I/O CT HS X ei1 X X Port F1 Beep signal output
27 19 19 17 12 PF2 (HS) I/O CT HS X ei1 X X Port F2
Timer A ADC Ana-
PF3/OCMP2_A/
28 -4) - - - I/O CT X X X X X Port F3 Output log
AIN9
Compare 2 Input 9
Timer A ADC Ana-
PF4/OCMP1_A/
29 20 20 18 13 I/O CT X X X X X Port F4 Output log
AIN10
Compare 1 Input 10
Timer A In- ADC Ana-
PF5/ICAP2_A/
30 -4) - - - I/O CT X X X X X Port F5 put Cap- log
AIN11
ture 2 Input 11
31 21 21 19 14 PF6 (HS)/ICAP1_A I/O CT HS X X X X Port F6 Timer A Input Capture 1
PF7 (HS)/ Timer A External Clock
32 22 22 20 15 I/O CT HS X X X X Port F7
EXTCLK_A Source
33 23 23 21 - VDD_06) S Digital Main Supply Voltage
6)
34 24 24 22 - VSS_0 S Digital Ground Voltage
Timer B ADC Ana-
PC0/OCMP2_B/
35 25 25 23 16 I/O CT X X X X X Port C0 Output log
AIN12
Compare 2 Input 12
Timer B ADC Ana-
PC1/OCMP1_B/
36 26 26 24 17 I/O CT X X X X X Port C1 Output log
AIN13
Compare 1 Input 13
37 27 27 25 18 PC2 (HS)/ICAP2_B I/O CT HS X X X X Port C2 Timer B Input Capture 2
38 28 28 26 19 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
39 29 29 27 20 I/O CT X X X X Port C4 In / Slave
TA Input
Out Data
SPI Master ADC Ana-
40 30 30 28 21 PC5/MOSI/AIN14 I/O CT X X X X X Port C5 Out / Slave log
In Data Input 14
SPI Serial ICC Clock
41 31 31 29 22 PC6/SCK/ICCCLK I/O CT X X X X Port C6
Clock Output
13/197
ST72325xx
Type
LQFP48S
function
LQFP64
LQFP44
Input Output
SDIP42
Output
Pin Name Alternate function
Input
(after
float
wpu
ana
reset)
OD
PP
int
SPI Slave ADC Ana-
42 32 32 30 23 PC7/SS/AIN15 I/O CT X X X X X Port C7 Select (ac- log
tive low) Input 15
43 -4) - - - PA0 I/O CT X ei0 X X Port A0
44 -4) - - - PA1 I/O CT X ei0 X X Port A1
45 33 - - - PA2 I/O CT X ei0 X X Port A2
46 34 34 31 24 PA3 (HS) I/O CT HS X ei0 X X Port A3
47 35 35 32 25 VDD_16) S Digital Main Supply Voltage
48 36 36 33 26 VSS_1 6) S Digital Ground Voltage
49 37 37 34 27 PA4 (HS) I/O CT HS X X X X Port A4
50 38 38 35 28 PA5 (HS) I/O CT HS X X X X Port A5
51 39 39 36 29 PA6 (HS)/SDAI I/O CT HS X T Port A6 I2C Data 1)
52 40 40 37 30 PA7 (HS)/SCLI I/O CT HS X T Port A7 I2C Clock 1)
Must be tied low. In flash program-
ming mode, this pin acts as the
programming voltage input VPP.
53 41 41 38 31 VPP/ ICCSEL I
See Section 12.9.2 for more de-
tails. High voltage must not be ap-
plied to ROM devices
Top priority non maskable inter-
54 42 42 39 32 RESET I/O CT
rupt.
55 - - - - EVD External voltage detector
56 - - - - TLI I CT X Top level interrupt input pin
57 43 43 40 33 VSS_26) S Digital Ground Voltage
Resonator oscillator inverter out-
58 44 44 41 34 OSC23) I/O
put
External clock input or Resonator
59 45 45 42 35 OSC13) I
oscillator inverter input
60 46 46 43 36 VDD_26) S Digital Main Supply Voltage
61 47 47 44 37 PE0/TDO I/O CT X X X X Port E0 SCI Transmit Data Out
62 48 48 1 38 PE1/RDI I/O CT X X X X Port E1 SCI Receive Data In
63 1 - - - PE2 I/O CT X X X4) X4) Port E2
64 -4) - - - PE3 I/O CT X X X X Port E3
14/197
ST72325xx
Type
function
LQFP32
Input Output
Output
Pin Name Alternate function
DIP32
Input
(after
float
wpu
ana
reset)
OD
PP
int
1 4 VAREF6) I Analog Reference Voltage for ADC
6)
2 5 VSSA S Analog Ground Voltage
Main clock out ADC Analog
3 6 PF0/MCO/AIN8 I/O CT X ei1 X X X Port F0
(fOSC/2) Input 8
4 7 PF1 (HS)/BEEP I/O CT HS X ei1 X X Port F1 Beep signal output
PF4/OCMP1_A/ Timer A Output ADC Analog
5 8 I/O CT X X X X X Port F4
AIN10 Compare 1 Input 10
6 9 PF6 (HS)/ICAP1_A I/O CT HS X X X X Port F6 Timer A Input Capture 1
PF7 (HS)/
7 10 I/O CT HS X X X X Port F7 Timer A External Clock Source
EXTCLK_A
PC0/OCMP2_B/ Timer B Output ADC Analog
8 11 I/O CT X X X X X Port C0
AIN12 Compare 2 Input 12
PC1/OCMP1_B/ Timer B Output ADC Analog
9 12 I/O CT X X X X X Port C1
AIN13 Compare 1 Input 13
10 13 PC2 (HS)/ICAP2_B I/O CT HS X X X X Port C2 Timer B Input Capture 2
11 14 PC3 (HS)/ICAP1_B I/O CT HS X X X X Port C3 Timer B Input Capture 1
PC4/MISO/ICCDA- SPI Master In /
12 15 I/O CT X X X X Port C4 ICC Data Input
TA Slave Out Data
SPI Master Out / ADC Analog
13 16 PC5/MOSI/AIN14 I/O CT X X X X X Port C5
Slave In Data Input 14
ICC Clock
14 17 PC6/SCK/ICCCLK I/O CT X X X X Port C6 SPI Serial Clock
Output
SPI Slave Select ADC Analog
15 18 PC7/SS/AIN15 I/O CT X X X X X Port C7
(active low) Input 15
16 19 PA3 (HS) I/O CT HS X ei0 X X Port A3
17 20 PA4 (HS) I/O CT HS X X X X Port A4
18 21 PA6 (HS)/SDAI I/O CT HS X T Port A6 I2C Data 1)
19 22 PA7 (HS)/SCLI I/O CT HS X T Port A7 I2C Clock 1)
Must be tied low. In flash programming
mode, this pin acts as the programming
20 23 VPP/ ICCSEL I voltage input VPP. See Section 12.9.2 for
more details. High voltage must not be ap-
plied to ROM devices
21 24 RESET I/O CT Top priority non maskable interrupt.
22 25 VSS_2 6) S Digital Ground Voltage
23 26 OSC23) I/O Resonator oscillator inverter output
External clock input or Resonator oscillator
24 27 OSC13) I
inverter input
25 28 VDD_26) S Digital Main Supply Voltage
26 29 PE0/TDO I/O CT X X X X Port E0 SCI Transmit Data Out
27 30 PE1/RDI I/O CT X X X X Port E1 SCI Receive Data In
15/197
ST72325xx
Type
function
LQFP32
Input Output
Output
Pin Name Alternate function
DIP32
Input
(after
float
wpu
ana
reset)
OD
PP
int
PWM Output 3
28 31 PB0/PWM3 I/O CT X ei2 X X Port B0 Caution: Negative current injec-
tion not allowed on this pin
29 32 PB3/PWM0 I/O CT X ei2 X X Port B3 PWM Output 0
30 1 PB4 (HS)/ARTCLK I/O CT HS X ei3 X X Port B4 PWM-ART External Clock
31 2 PD0/AIN0 I/O CT X X X X X Port D0 ADC Analog Input 0
32 3 PD1/AIN1 I/O CT X X X X X Port D1 ADC Analog Input 1
16/197
ST72325xx
0000h 0080h
HW Registers
Short Addressing
(see Table 4)
007Fh RAM (zero page)
0080h 00FFh
0100h
RAM 256 Bytes Stack
(2048, 1536, 1024,
01FFh
or 512 Bytes) 1000h
0200h 60 KBytes
087Fh 16-bit Addressing
0880h
Reserved RAM 4000h
027Fh 48 KBytes
0FFFh
1000h or 047Fh
or 067Fh 8000h
Program Memory 32 KBytes
or 087Fh
(60,48, 32 or 16K) C000h
FFDFh 16 KBytes
FFE0h
Interrupt & Reset Vectors
(see Table 9) FFFFh
FFFFh
17/197
ST72325xx
Register Reset
Address Block Register Name Remarks
Label Status
001Fh
Reserved Area (2 Bytes)
0020h
18/197
ST72325xx
Register Reset
Address Block Register Name Remarks
Label Status
002Eh
to Reserved Area (3 Bytes)
0030h
19/197
ST72325xx
Register Reset
Address Block Register Name Remarks
Label Status
005Eh
to Reserved Area (18 Bytes)
006Fh
007Eh
Reserved Area (2 Bytes)
007Fh
Notes:
1. The contents of the I/O port DR registers are readable only in output configuration. In input configura-
tion, the values of the I/O pins are returned instead of the DR register contents.
2. The bits associated with unavailable pins must always keep their reset value.
3. For a description of the Debug Module registers, see ICC Protocol Reference manual.
20/197
ST72325xx
21/197
ST72325xx
ICC Cable
APPLICATION BOARD
10 8 6 4 2
APPLICATION
RESET SOURCE
See Note 2
10kΩ
APPLICATION
RESET
ICCCLK
ICCDATA
OSC1
ICCSEL/VPP
OSC2
VSS
VDD
I/O
ST7
Notes:
1. If the ICCCLK or ICCDATA pins are only used agement IC with open drain output and pull-up re-
as outputs in the application, no signal isolation is sistor>1K, no additional components are needed.
necessary. As soon as the Programming Tool is In all cases the user must ensure that no external
plugged to the board, even if an ICC session is not reset is generated by the application during the
in progress, the ICCCLK and ICCDATA pins are ICC session.
not available for the application. If they are used as 3. The use of Pin 7 of the ICC connector depends
inputs by the application, isolation such as a serial on the Programming Tool architecture. This pin
resistor has to implemented in case another de- must be connected when using most ST Program-
vice forces the signal. Refer to the Programming ming Tools (it is used to monitor the application
Tool documentation for recommended resistor val- power supply). Please refer to the Programming
ues. Tool manual.
2. During the ICC session, the programming tool 4. Pin 9 has to be connected to the OSC1 or OS-
must control the RESET pin. This can lead to con- CIN pin of the ST7 when the clock is not available
flicts between the programming tool and the appli- in the application or if the selected clock option is
cation reset circuit if it drives more than 5mA at not programmed in the option byte. ST7 devices
high level (push pull output or pull-up resistor<1K). with multi-oscillator capability need to have OSC2
A schottky diode can be used to isolate the appli- grounded in this case.
cation RESET circuit in this case. When using a
classical RC network with R>1K or a reset man-
22/197
ST72325xx
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 8). 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
Figure 9. 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
23/197
ST72325xx
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
24/197
ST72325xx
25/197
ST72325xx
@ 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
26/197
ST72325xx
LOW VOLTAGE
VSS DETECTOR
VDD (LVD)
0 AUXILIARY VOLTAGE
DETECTOR
EVD 1
(AVD)
27/197
ST72325xx
External Clock
OSC1 OSC2
External Clock Source
In this external clock mode, a clock signal (square,
sinus or triangle) with ~50% duty cycle has to drive
the OSC1 pin while the OSC2 pin is tied to ground. EXTERNAL
SOURCE
Crystal/Ceramic Oscillators
This family of oscillators has the advantage of pro-
Crystal/Ceramic Resonators
28/197
ST72325xx
VDD
RON
Filter INTERNAL
RESET
RESET
PULSE
WATCHDOG RESET
GENERATOR
LVD RESET
29/197
ST72325xx
VIT+(LVD)
VIT-(LVD)
tw(RSTL)out tw(RSTL)out
DELAY
EXTERNAL
RESET
SOURCE
RESET PIN
WATCHDOG
RESET
WATCHDOG UNDERFLOW
30/197
ST72325xx
VDD
Vhys
VIT+
VIT-
RESET
31/197
ST72325xx
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
32/197
ST72325xx
VEVD
Vhyst
VIT+(EVD)
VIT-(EVD)
AVDF 0 1 0
AVD INTERRUPT
REQUEST
IF AVDIE = 1
INTERRUPT PROCESS INTERRUPT PROCESS
33/197
ST72325xx
When the internal clock (fCPU) is driven by the safe CSS event detection
oscillator (fSFOSC), the application software is noti- (safe oscillator acti- CSSD CSSIE Yes No
fied by hardware setting the CSSD bit in the SIC- vated as main clock)
SR register. An interrupt can be generated if the AVD event AVDF AVDIE Yes No
fOSC2
PLL ON
fCPU
fOSC2
fSFOSC
fCPU
34/197
ST72325xx
35/197
ST72325xx
7 INTERRUPTS
7.1 INTRODUCTION each interrupt vector (see Table 7). The process-
ing flow is shown in Figure 21
The ST7 enhanced interrupt management pro-
vides the following features: When an interrupt request has to be serviced:
■ Hardware interrupts – Normal processing is suspended at the end of
■ Software interrupt (TRAP)
the current instruction execution.
■ Nested or concurrent interrupt management
– The PC, X, A and CC registers are saved onto
with flexible interrupt priority and level the stack.
management: – I1 and I0 bits of CC register are set according to
the corresponding values in the ISPRx registers
– Up to 4 software programmable nesting levels of the serviced interrupt vector.
– Up to 16 interrupt vectors fixed by hardware
– The PC is then loaded with the interrupt vector of
– 2 non maskable events: RESET, TRAP the interrupt to service and the first instruction of
– 1 maskable Top Level event: TLI the interrupt service routine is fetched (refer to
This interrupt management is based on: “Interrupt Mapping” table for vector addresses).
– Bit 5 and bit 3 of the CPU CC register (I1:0), The interrupt service routine should end with the
IRET instruction which causes the contents of the
– Interrupt software priority registers (ISPRx), saved registers to be recovered from the stack.
– Fixed interrupt vector addresses located at the
high addresses of the memory map (FFE0h to Note: As a consequence of the IRET instruction,
FFFFh) sorted by hardware priority order. the I1 and I0 bits will be restored from the stack
and the program in the previous level will resume.
This enhanced interrupt controller guarantees full
upward compatibility with the standard (not nest-
ed) ST7 interrupt controller. Table 7. Interrupt Software Priority Levels
Interrupt software priority Level I1 I0
7.2 MASKING AND PROCESSING FLOW Level 0 (main) Low 1 0
The interrupt masking is managed by the I1 and I0 Level 1 0 1
bits of the CC register and the ISPRx registers Level 2 0 0
which give the interrupt software priority level of Level 3 (= interrupt disable) High 1 1
PENDING Y Y
RESET TRAP
INTERRUPT
Y
“IRET”
36/197
ST72325xx
INTERRUPTS (Cont’d)
Servicing Pending Interrupts ■ TRAP (Non Maskable Software Interrupt)
As several interrupts can be pending at the same This software interrupt is serviced when the TRAP
time, the interrupt to be taken into account is deter- instruction is executed. It will be serviced accord-
mined by the following two-step process: ing to the flowchart in Figure 21.
– the highest software priority interrupt is serviced, Caution: TRAP can be interrupted by a TLI.
– if several interrupts have the same software pri- ■ RESET
ority then the interrupt with the highest hardware The RESET source has the highest priority in the
priority is serviced first. ST7. This means that the first current routine has
Figure 22 describes this decision process. the highest software priority (level 3) and the high-
est hardware priority.
Figure 22. Priority Decision Process See the RESET chapter for more details.
PENDING Maskable Sources
INTERRUPTS
Maskable interrupt vector sources can be serviced
if the corresponding interrupt is enabled and if its
own interrupt software priority (in ISPRx registers)
is higher than the one currently being serviced (I1
Same SOFTWARE Different
and I0 in CC register). If any of these two condi-
PRIORITY tions is false, the interrupt is latched and thus re-
mains pending.
■ TLI (Top Level Hardware Interrupt)
HIGHEST SOFTWARE
PRIORITY SERVICED This hardware interrupt occurs when a specific
edge is detected on the dedicated TLI pin. It will be
serviced according to the flowchart in Figure 21 as
HIGHEST HARDWARE
a trap.
PRIORITY SERVICED
Caution: A TRAP instruction must not be used in a
TLI service routine.
When an interrupt request is not serviced immedi- ■ External Interrupts
ately, it is latched and then processed when its External interrupts allow the processor to exit from
software priority combined with the hardware pri- HALT low power mode. External interrupt sensitiv-
ority becomes the highest one. ity is software selectable through the External In-
Note 1: The hardware priority is exclusive while terrupt Control register (EICR).
the software one is not. This allows the previous External interrupt triggered on edge will be latched
process to succeed with only one interrupt. and the interrupt request automatically cleared
Note 2: TLI,RESET and TRAP can be considered upon entering the interrupt service routine.
as having the highest software priority in the deci- If several input pins of a group connected to the
sion process. same interrupt line are selected simultaneously,
these will be logically ORed.
Different Interrupt Vector Sources
■ Peripheral Interrupts
Two interrupt source types are managed by the
ST7 interrupt controller: the non-maskable type Usually the peripheral interrupts cause the MCU to
(RESET, TRAP) and the maskable type (external exit from HALT mode except those mentioned in
or from internal peripherals). the “Interrupt Mapping” table. A peripheral inter-
rupt occurs when a specific flag is set in the pe-
Non-Maskable Sources ripheral status registers and if the corresponding
enable bit is set in the peripheral control register.
These sources are processed regardless of the
The general sequence for clearing an interrupt is
state of the I1 and I0 bits of the CC register (see
based on an access to the status register followed
Figure 21). After stacking the PC, X, A and CC
by a read or write to an associated register.
registers (except for RESET), the corresponding
Note: The clearing sequence resets the internal
vector is loaded in the PC register and the I1 and
latch. A pending interrupt (i.e. waiting for being
I0 bits of the CC are set to disable interrupts (level
serviced) will therefore be lost if the clear se-
3). These sources allow the processor to exit
quence is executed.
HALT mode.
37/197
ST72325xx
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 23 and Figure 24 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 24. 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, TLI. The software priority is
an interrupt with exit from HALT mode capability given for each interrupt.
and it is selected through the same decision proc- Warning: A stack overflow may occur without no-
ess shown in Figure 22. 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 23. 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
38/197
ST72325xx
INTERRUPTS (Cont’d)
7 0
ISPR0 I1_3 I0_3 I1_2 I0_2 I1_1 I0_1 I1_0 I0_0
1 1 I1 H I0 N Z C
ISPR1 I1_7 I0_7 I1_6 I0_6 I1_5 I0_5 I1_4 I0_4
*Note: TRAP and RESET events can interrupt a – Each I1_x and I0_x bit value in the ISPRx regis-
level 3 program. ters has the same meaning as the I1 and I0 bits
in the CC register.
– Level 0 can not be written (I1_x=1, I0_x=0). In
this case, the previously stored value is kept. (ex-
ample: previous=CFh, write=64h, result=44h)
The TLI, RESET, and TRAP vectors have no soft-
ware priorities. When one is serviced, the I1 and I0
bits of the CC register are both set.
*Note: Bits in the ISPRx registers which corre-
spond to the TLI can be read and written but they
are not significant in the interrupt process man-
agement.
Caution: If the I1_x and I0_x bits are modified
while the interrupt x is executed the following be-
haviour has to be considered: If the interrupt x is
still pending (new interrupt or flag not cleared) and
the new software priority is higher than the previ-
ous one, the interrupt x is re-entered. Otherwise,
the software priority stays unchanged up to the
next interrupt request (after the IRET of the inter-
rupt x).
39/197
ST72325xx
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.
40/197
ST72325xx
INTERRUPTS (Cont’d)
Table 9. Interrupt Mapping
Exit
from
Source Register Priority Address
N° Description HALT/
Block Label Order Vector
ACTIVE
HALT
RESET Reset yes FFFEh-FFFFh
N/A
TRAP Software interrupt no FFFCh-FFFDh
0 TLI External top level interrupt EICR yes FFFAh-FFFBh
MCC/RTC/ Main clock controller time base interrupt MCCSR-
1 Higher yes FFF8h-FFF9h
CSS Safe oscillator activation interrupt SICSR
Priority
2 ei0 External interrupt port A3..0 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 yes1 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
12 I2C I2C Peripheral interrupts (see periph) no FFE2h-FFE3h
13 PWM ART PWM ART interrupt ARTCSR yes2 FFE0h-FFE1h
Notes:
1. Exit from HALT possible when SPI is in slave mode.
2. Exit from HALT possible when PWM ART is in external clock mode.
41/197
ST72325xx
INTERRUPTS (Cont’d)
Figure 25. External Interrupt Control bits
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
42/197
ST72325xx
43/197
ST72325xx
INTERRUPTS (Cont’d)
Table 10. Nested Interrupts Register Map and Reset Values
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
ei1 ei0 MCC + SI TLI
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
PWMART I2C
0027h ISPR3 I1_13 I0_13 I1_12 I0_12
Reset Value 1 1 1 1 1 1 1 1
EICR IS11 IS10 IPB IS21 IS20 IPA TLIS TLIE
0028h
Reset Value 0 0 0 0 0 0 0 0
44/197
ST72325xx
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
45/197
ST72325xx
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.
46/197
ST72325xx
8.4 ACTIVE-HALT AND HALT MODES the interrupt occurs (tDELAY = 256 or 4096 tCPU de-
lay depending on option byte). Otherwise, the ST7
ACTIVE-HALT and HALT modes are the two low- enters HALT mode for the remaining tDELAY peri-
est power consumption modes of the MCU. They od.
are both entered by executing the ‘HALT’ instruc-
tion. The decision to enter either in ACTIVE-HALT Figure 29. ACTIVE-HALT Timing Overview
or HALT mode is given by the MCC/RTC interrupt
enable flag (OIE bit in MCCSR register). ACTIVE 256 OR 4096 CPU
RUN HALT CYCLE DELAY 1) RUN
MCCSR Power Saving Mode entered when HALT
OIE bit instruction is executed
RESET
0 HALT mode OR
HALT INTERRUPT
1 ACTIVE-HALT mode INSTRUCTION FETCH
[MCCSR.OIE=1] VECTOR
47/197
ST72325xx
48/197
ST72325xx
49/197
ST72325xx
9 I/O PORTS
50/197
ST72325xx
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.
51/197
ST72325xx
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.
52/197
ST72325xx
53/197
ST72325xx
54/197
ST72325xx
55/197
ST72325xx
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)
56/197
ST72325xx
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
57/197
ST72325xx
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
58/197
ST72325xx
59/197
ST72325xx
60/197
ST72325xx
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 a fCPU clock to drive on the BEEP pin (I/O port alternate function).
BC1 BC0
MCCBCR
BEEP
BEEP SIGNAL
SELECTION
MCO
61/197
ST72325xx
62/197
ST72325xx
0 0 Off
0 1 ~2-KHz
Output
1 0 ~1-KHz Beep signal
~50% duty cycle
1 1 ~500-Hz
63/197
ST72325xx
LOAD
PORT
POLARITY
PWMx ALTERNATE COMPARE
FUNCTION CONTROL
ICx INTERRUPT
fEXT
ARTCLK
fCOUNTER
fCPU
MUX
fINPUT PROGRAMMABLE
PRESCALER
OVF INTERRUPT
64/197
ST72325xx
fCOUNTER
ARTARR=FDh
COUNTER FDh FEh FFh FDh FEh FFh FDh FEh FFh
PWMx
65/197
ST72325xx
255
DUTY CYCLE
REGISTER
COUNTER
(PWMDCRx)
AUTO-RELOAD
REGISTER
(ARTARR)
000
t
PWMx OUTPUT
WITH OEx=1
AND OPx=0
WITH OEx=1
AND OPx=1
fCOUNTER
ARTARR=FDh
OCRx=FCh
PWMx OUTPUT
WITH OEx=1
AND OPx=0
OCRx=FDh
OCRx=FEh
OCRx=FFh
66/197
ST72325xx
fEXT=fCOUNTER
ARTARR=FDh
OVF
INTERRUPT INTERRUPT
IF OIE=1 IF OIE=1
67/197
ST72325xx
fCOUNTER
COUNTER
01h 02h 03h 04h 05h 06h 07h
CFx FLAG
xxh 04h
ICRx REGISTER
t
68/197
ST72325xx
Bit 7 = EXCL External Clock CA7 CA6 CA5 CA4 CA3 CA2 CA1 CA0
This bit is set and cleared by software. It selects the
input clock for the 7-bit prescaler.
0: CPU clock. Bit 7:0 = CA[7:0] Counter Access Data
1: External clock. These bits can be set and cleared either by hard-
Bit 6:4 = CC[2:0] Counter Clock Control ware or by software. The ARTCAR register is used
These bits are set and cleared by software. They to read or write the auto-reload counter “on the fly”
determine the prescaler division ratio from fINPUT. (while it is counting).
69/197
ST72325xx
OE3 OE2 OE1 OE0 OP3 OP2 OP1 OP0 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0
Bit 7:4 = OE[3:0] PWM Output Enable Bit 7:0 = DC[7:0] Duty Cycle Data
These bits are set and cleared by software. They These bits are set and cleared by software.
enable or disable the PWM output channels inde-
pendently acting on the corresponding I/O pin. A PWMDCRx register is associated with the OCRx
0: PWM output disabled. register of each PWM channel to determine the
1: PWM output enabled. second edge location of the PWM signal (the first
edge location is common to all channels and given
by the ARTARR register). These PWMDCR regis-
Bit 3:0 = OP[3:0] PWM Output Polarity ters allow the duty cycle to be set independently
These bits are set and cleared by software. They for each PWM channel.
independently select the polarity of the four PWM
output signals.
PWMx output level
OPx
Counter <= OCRx Counter > OCRx
1 0 0
0 1 1
70/197
ST72325xx
71/197
ST72325xx
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
72/197
ST72325xx
73/197
ST72325xx
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)
74/197
ST72325xx
75/197
ST72325xx
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.
76/197
ST72325xx
77/197
ST72325xx
TIMER CLOCK
ICAPi PIN
ICAPi FLAG
78/197
ST72325xx
79/197
ST72325xx
80/197
ST72325xx
TIMER CLOCK
TIMER CLOCK
81/197
ST72325xx
82/197
ST72325xx
ICAP1
Figure 55. Pulse Width Modulation Mode Timing Example with 2 Output Compare Functions
COUNTER 34E2 FFFC FFFD FFFE 2ED0 2ED1 2ED2 34E2 FFFC
Note: On timers with only one Output Compare register, a fixed frequency PWM signal can be generated
using the output compare and the counter overflow to define the pulse length.
83/197
ST72325xx
84/197
ST72325xx
10.4.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
ICIE
Input Capture 2 event ICF2
Output Compare 1 event (not available in PWM mode) OCF1 Yes No
OCIE
Output Compare 2 event (not available in PWM mode) OCF2
Timer Overflow event TOF TOIE
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).
85/197
ST72325xx
86/197
ST72325xx
Bit 6 = OC2E Output Compare 2 Pin Enable. Note: If the external clock pin is not available, pro-
This bit is used only to output the signal from the gramming the external clock configuration stops
timer on the OCMP2 pin (OLV2 in Output Com- the counter.
pare mode). Whatever the value of the OC2E bit,
the Output Compare 2 function of the timer re-
Bit 1 = IEDG2 Input Edge 2.
mains active.
This bit determines which type of level transition
0: OCMP2 pin alternate function disabled (I/O pin
on the ICAP2 pin will trigger the capture.
free for general-purpose I/O).
0: A falling edge triggers the capture.
1: OCMP2 pin alternate function enabled.
1: A rising edge triggers the capture.
87/197
ST72325xx
88/197
ST72325xx
89/197
ST72325xx
MSB LSB
90/197
ST72325xx
91/197
ST72325xx
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
92/197
ST72325xx
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
93/197
ST72325xx
Master SS
Slave SS
(if CPHA=0)
Slave SS
(if CPHA=1)
SSM bit
SSI bit 1
SS internal
SS external pin 0
94/197
ST72325xx
95/197
ST72325xx
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.
96/197
ST72325xx
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
97/197
ST72325xx
SS SS SS SS
SCK SCK SCK SCK
Slave Slave Slave Slave
MCU MCU MCU MCU
MOSI MISO
SCK
Ports
Master
MCU
5V SS
98/197
ST72325xx
99/197
ST72325xx
100/197
ST72325xx
101/197
ST72325xx
102/197
ST72325xx
103/197
ST72325xx
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
104/197
ST72325xx
Start
Idle Frame Bit
Start
Idle Frame Bit
105/197
ST72325xx
106/197
ST72325xx
107/197
ST72325xx
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
108/197
ST72325xx
109/197
ST72325xx
110/197
ST72325xx
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
111/197
ST72325xx
112/197
ST72325xx
113/197
ST72325xx
114/197
ST72325xx
115/197
ST72325xx
116/197
ST72325xx
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 23. 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
117/197
ST72325xx
118/197
ST72325xx
■ 7-bit/10-bit Addressing
– Slave transmitter/receiver
■ SMBus V1.1 Compliant
– Master transmitter/receiver
■ Transmitter/Receiver flag By default, it operates in slave mode.
■ End-of-byte transmission flag The interface automatically switches from slave to
■ Transfer problem detection
master after it generates a START condition and
from master to slave in case of arbitration loss or a
I2C Master Features: STOP generation, allowing then Multi-Master ca-
■ Clock generation pability.
2
■ I C bus busy flag Communication Flow
■ Arbitration Lost Flag In Master mode, it initiates a data transfer and
■ End of byte transmission flag generates the clock signal. A serial data transfer
■ Transmitter/Receiver Flag
always begins with a start condition and ends with
a stop condition. Both start and stop conditions are
■ Start bit detection flag
generated in master mode by software.
■ Start and Stop generation
In Slave mode, the interface is capable of recog-
I2C Slave Features: nising its own address (7 or 10-bit), and the Gen-
■ Stop bit detection eral Call address. The General Call address de-
2
■ I C bus busy flag
tection may be enabled or disabled by software.
■ Detection of misplaced start or stop condition
Data and addresses are transferred as 8-bit bytes,
2 MSB first. The first byte(s) following the start con-
■ Programmable I C Address detection
dition contain the address (one in 7-bit mode, two
■ Transfer problem detection in 10-bit mode). The address is always transmitted
■ End-of-byte transmission flag in Master mode.
■ Transmitter/Receiver flag A 9th clock pulse follows the 8 clock cycles of a
10.7.3 General Description byte transfer, during which the receiver must send
an acknowledge bit to the transmitter. Refer to Fig-
In addition to receiving and transmitting data, this ure 67.
interface converts it from serial to parallel format
Figure 67. I2C BUS Protocol
SDA
MSB ACK
SCL
1 2 8 9
START STOP
CONDITION CONDITION
VR02119B
119/197
ST72325xx
COMPARATOR
INTERRUPT
120/197
ST72325xx
121/197
ST72325xx
10.7.4.2 Master Mode Next the master must enter Receiver or Transmit-
To switch from default Slave mode to Master ter mode.
mode a Start condition generation is needed. Note: In 10-bit addressing mode, to switch the
master to Receiver mode, software must generate
a repeated Start condition and resend the header
Start condition sequence with the least significant bit set
Setting the START bit while the BUSY bit is (11110xx1).
cleared causes the interface to switch to Master
mode (M/SL bit set) and generates a Start condi-
tion. Master Receiver
Once the Start condition is sent: Following the address transmission and after SR1
and CR registers have been accessed, the master
– The EVF and SB bits are set by hardware with receives bytes from the SDA line into the DR reg-
an interrupt if the ITE bit is set. ister via the internal shift register. After each byte
Then the master waits for a read of the SR1 regis- the interface generates in sequence:
ter followed by a write in the DR register with the – Acknowledge pulse if the ACK bit is set
Slave address, holding the SCL line low (see
Figure 69 Transfer sequencing EV5). – EVF and BTF bits are set by hardware with an in-
terrupt if the ITE bit is set.
Then the interface waits for a read of the SR1 reg-
Slave address transmission ister followed by a read of the DR register, holding
Then the slave address is sent to the SDA line via the SCL line low (see Figure 69 Transfer se-
the internal shift register. quencing EV7).
In 7-bit addressing mode, one address byte is To close the communication: before reading the
sent. last byte from the DR register, set the STOP bit to
In 10-bit addressing mode, sending the first byte generate the Stop condition. The interface goes
including the header sequence causes the follow- automatically back to slave mode (M/SL bit
ing event: cleared).
– The EVF bit is set by hardware with interrupt Note: In order to generate the non-acknowledge
generation if the ITE bit is set. pulse after the last received data byte, the ACK bit
Then the master waits for a read of the SR1 regis- must be cleared just before reading the second
ter followed by a write in the DR register, holding last data byte.
the SCL line low (see Figure 69 Transfer se-
quencing EV9).
122/197
ST72325xx
123/197
ST72325xx
124/197
ST72325xx
10.7.6 Interrupts
Figure 70. Event Flags and Interrupt Generation
ADD10 ITE
BTF
ADSL
SB INTERRUPT
AF
STOPF
ARLO EVF
BERR
*
* EVF can also be set by EV6 or an error from the SR2 register.
125/197
ST72325xx
126/197
ST72325xx
127/197
ST72325xx
128/197
ST72325xx
129/197
ST72325xx
ADD7 ADD6 ADD5 ADD4 ADD3 ADD2 ADD1 ADD0 FR1 FR0 0 0 0 ADD9 ADD8 0
Bit 0 = Reserved.
130/197
ST72325xx
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
131/197
ST72325xx
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
132/197
ST72325xx
133/197
ST72325xx
7 0
D9 D8 D7 D6 D5 D4 D3 D2
7 0
0 0 0 0 0 0 D1 D0
134/197
ST72325xx
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
135/197
ST72325xx
11 INSTRUCTION SET
11.1 CPU ADDRESSING MODES so, most of the addressing modes may be subdi-
vided in two submodes called long and short:
The CPU features 17 different addressing modes
which can be classified in seven 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 27. CPU Addressing Mode Overview
Pointer Pointer Size Length
Mode Syntax Destination Address (Hex.) (Bytes)
(Hex.)
Inherent nop +0
Immediate ld A,#$55 +1
136/197
ST72325xx
137/197
ST72325xx
138/197
ST72325xx
Using a prebyte
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.
139/197
ST72325xx
140/197
ST72325xx
141/197
ST72325xx
12 ELECTRICAL CHARACTERISTICS
ST7 PIN
CL
142/197
ST72325xx
143/197
ST72325xx
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.
144/197
ST72325xx
145/197
ST72325xx
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.
- All I/O pins in input mode with a static value at VDD or VSS (no load)
- All peripherals in reset state.
- CSS and 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.4.2) and the peripheral power
consumption (Section 12.4.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.4.2).
146/197
ST72325xx
Notes:
1.. Data based on characterization results done with the external components specified in Section 12.5.3, not tested in
production.
2. As the oscillator is based on a current source, the consumption does not depend on the voltage.
147/197
ST72325xx
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 (timer stopped) and timer counter enabled
(only TCE bit set).
3. 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 consumption.
4. Data based on a differential IDD measurement between SCI low power state (SCID=1) and a permanent SCI data trans-
mit sequence.
5. Data based on a differential IDD measurement between reset configuration (I2C disabled) and a permanent I2C master
communication at 100kHz (data sent equal to 55h). This measurement include the pad toggling consumption (27kOhm
external pull-up on clock and data lines).
6. Data based on a differential IDD measurement between reset configuration and continuous A/D conversions.
148/197
ST72325xx
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.
149/197
ST72325xx
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.
150/197
ST72325xx
RESONATOR VDD/2 i2
Ref
RF
CL2
OSC2
ST72XXX
1. The relatively low value of the RF resistor, offers a good protection against issues resulting from use in a humid envi-
ronment, due to the induced leakage and the bias condition change. However, it is recommended to take this point into
account if the µC is used in tough humidity conditions.
2. For CL1 and CL2 it is recommended to use high-quality ceramic capacitors in the 5-pF to 25-pF range (typ.) designed
for high-frequency applications and selected to match the requirements of the crystal or resonator. CL1 and CL2, are usu-
ally the same size. The crystal manufacturer typically specifies a load capacitance which is the series combination of CL1
and CL2. PCB and MCU pin capacitance must be included when sizing CL1 and CL2 (10 pF can be used as a rough esti-
mate of the combined pin and board capacitance).
151/197
ST72325xx
fOSC
Supplier Typical Ceramic Resonators2)
(MHz)
2 CSTCC2M00G56Z-R0
SMD CSTCR4M00G53Z-R0
4
Lead CSTLS4M00G53Z-R0
Murata
SMD CSTCE8M00G52Z-R0
8
Lead CSTLS4M0052Z-R0
SMD CSTCE16M0V51Z-R0
16
Lead CSTLS16M0X51Z-R0
Notes:
1. Resonator characteristics given by the ceramic resonator manufacturer.
2. SMD = [-R0: Plastic tape package (∅ =180mm), -B0: Bulk]
LEAD = [-A0: Flat pack package (Radial taping Ho= 18mm), -B0: Bulk]
For more information on these resonators, please consult www.murata.com
152/197
ST72325xx
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)
153/197
ST72325xx
Note:
1. Data based on characterization results.
12.5.6 PLL Characteristics
Symbol Parameter Conditions Min Typ Max Unit
fOSC PLL input frequency range 2 4 MHz
Δ fCPU/ fCPU Instantaneous PLL jitter 1) fOSC = 4 MHz. 0.7 2 %
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 78 shows the PLL jitter integrated on application signals in the range 125kHz to 4MHz. At frequen-
cies of less than 125KHz, the jitter is negligible.
Figure 78. Integrated PLL Jitter vs signal frequency1
+/-Jitter (%)
1.2
1 Max
Typ
0.8
0.6
0.4
0.2
0
4 MHz 2 MHz 1 MHz 500 kHz 250 kHz 125 kHz
Application Frequency
154/197
ST72325xx
155/197
ST72325xx
156/197
ST72325xx
157/197
ST72325xx
Notes:
1. Data based on characterization results, not tested in production.
12.7.3.2 Static Latch-Up supply pin) and a current injection (applied to
■ LU: 2 complementary static tests are required each input, output and configurable I/O pin) are
on 6 parts to assess the latch-up performance. performed on each sample. This test conforms
A supply overvoltage (applied to each power to the EIA/JESD 78 IC latch-up standard.
Electrical Sensitivities
Symbol Parameter Conditions Class 1)
TA=+125°C
LU Static latch-up class II level A
conforming to JESD 78
158/197
ST72325xx
Figure 79. Unused I/Os configured as input Figure 80. Typical IPU vs. VDD with VIN=VSS
90
VDD ST7XXX Ta=140°C
80
Ta=95°C
70
10kΩ Ta=25°C
Ta=-45°C
UNUSED I/O PORT 60
Ipu(uA )
50
UNUSED I/O PORT
40
10kΩ
30
ST7XXX 20
10
Note: I/O can be left unconnected if it is configured as output
(0 or 1) by the software. This has the advantage of 0
greater EMC robustness and lower cost. 2 2.5 3 3.5 4 4.5 5 5.5 6
V dd(V)
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 143 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 79). Static
peak current value taken at a fixed VIN value, based on design simulation and technology characteristics, not tested in
production. This value depends on VDD and temperature values.
5. The RPU pull-up equivalent resistor is based on a resistive transistor (corresponding IPU current characteristics de-
scribed in Figure 80).
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.
159/197
ST72325xx
VDD=5V
when 4 pins are sunk at same time TA≥85°C 1.5 V
(see Figure 82 and Figure 84) 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 83 and Figure 86) IIO=-2mA VDD-0.7
Figure 81. Typical VOL at VDD=5V (standard) Figure 83. Typical VOH at VDD=5V
1.4
5.5
1.2
5
1
V dd-Voh (V) at Vdd=5V
V ol (V ) at Vdd=5V
4.5
0.8
4
0.6
3.5
Ta =14 0°C " V dd= 5V 1 40°C m in
0.4
Ta =95 °C 3 V dd= 5v 95°C m in
Ta =25 °C
0.2 V dd= 5v 25°C m in
Ta =-45 °C
2.5
V dd= 5v -4 5°C m in
0
2
0 0.005 0.01 0.015
Iio(A) -0.01 -0.008 -0.006 -0.004 -0.002 0
0.9
0.8
0.7
V ol(V ) at Vdd=5V
0.6
0.5
0.4
Ta= 140 °C
0.3
Ta= 95 °C
0.2 Ta= 25 °C
0
0 0.01 0.02 0.03
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.
160/197
ST72325xx
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)
1 .4 Ta = 140 °C
0 .5
Ta =95 °C
1 .2 Ta =25 °C
0 .4 Ta =-45°C
1
Vol(V ) at Iio=20m A
Vol(V ) at Iio=8m A
0 .3 0 .8
0 .6
0 .2
Ta= 14 0°C
0 .4
Ta=9 5°C
0 .1 Ta=2 5°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
V dd (V ) V dd(V )
Ta= -4 5°C
5
5 Ta= 25°C
Vdd-Voh(V) at Iio=-2m A
Ta= 95°C
Vdd-Voh(V) at Iio=-5mA
4.5
4 Ta= 140°C
4
3
3.5
Ta= -4 5°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)
161/197
ST72325xx
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.
162/197
ST72325xx
VDD ST72XXX
0.01μF
1MΩ WATCHDOG
PULSE
GENERATOR
LVD RESET
VDD ST72XXX
RON
USER INTERNAL
EXTERNAL RESET
RESET Filter
CIRCUIT
0.01μF
PULSE
WATCHDOG
GENERATOR
Required
Note 1:
– The reset network protects the device against parasitic resets.
– The output of the external reset circuit must have an open-drain output to drive the ST7 reset pad. Otherwise the
device can be damaged when the ST7 generates an internal reset (LVD or watchdog).
– Whatever the reset source is (internal or external), the user must ensure that the level on the RESET pin can go
below the VIL max. level specified in section 12.9.1 on page 162. Otherwise the reset will not be taken into account
internally.
– Because the reset circuit is designed to allow the internal RESET to be output in the RESET pin, the user must en-
sure that the current sunk on the RESET pin is less than the absolute maximum value specified for IINJ(RESET) in
section 12.2.2 on page 143.
Note 2: When the LVD is enabled, it is recommended not to connect a pull-up resistor or capacitor. A 10nF pull-down
capacitor is required to filter noise on the reset line.
Note 3: In case a capacitive power supply is used, it is recommended to connect a 1MΩ pull-down resistor to the RESET
pin to discharge any residual voltage induced by the capacitive effect of the power supply (this will add 5µA to the power
consumption of the MCU).
Note 4: Tips when using the LVD:
– 1. Check that all recommendations related to reset circuit have been applied (see notes above).
– 2. Check that the power supply is properly decoupled (100nF + 10µF close to the MCU). Refer to AN1709 and
AN2017. If this cannot be done, it is recommended to put a 100nF + 1MΩ pull-down on the RESET pin.
– 3. The capacitors connected on the RESET pin and also the power supply are key to avoid any start-up marginality.
In most cases, steps 1 and 2 above are sufficient for a robust solution. Otherwise: replace 10nF pull-down on the
RESET pin with a 5µF to 20µF capacitor.
163/197
ST72325xx
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.
164/197
ST72325xx
165/197
ST72325xx
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. Data based on design simulation and/or characterisation results, not tested in production.
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 on the I/O port configuration.
3. Measurement points are done at CMOS levels: 0.3xVDD and 0.7xVDD.
4. Depends on fCPU. For example, if fCPU = 8 MHz, then tCPU = 1 / fCPU = 125 ns and tsu(SS) = 175 ns.
166/197
ST72325xx
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.
167/197
ST72325xx
12.11.2 I2C - Inter IC Control Interface Refer to I/O port characteristics for more details on
Subject to general operating conditions for VDD, the input/output alternate function characteristics
fCPU, and TA unless otherwise specified. (SDAI and SCLI). The ST7 I2C interface meets the
requirements of the Standard I2C communication
protocol described in the following table.
Standard mode I2C Fast mode I2C5)
Symbol Parameter Unit
Min 1) Max 1) Min 1) Max 1)
tw(SCLL) SCL clock low time 4.7 1.3
μs
tw(SCLH) SCL clock high time 4.0 0.6
tsu(SDA) SDA setup time 250 100
3) 0 2) 900 3)
th(SDA) SDA data hold time 0
tr(SDA) ns
SDA and SCL rise time 1000 20+0.1Cb 300
tr(SCL)
tf(SDA)
SDA and SCL fall time 300 20+0.1Cb 300
tf(SCL)
th(STA) START condition hold time 4.0 0.6
μs
tsu(STA) Repeated START condition setup time 4.7 0.6
tsu(STO) STOP condition setup time 4.0 0.6 μs
tw(STO:STA) STOP to START condition time (bus free) 4.7 1.3 μs
Cb Capacitive load for each bus line 400 400 pF
Figure 93. Typical Application with I2C Bus and Timing Diagram 4)
VDD VDD
SCK
Notes:
1. Data based on standard I2C protocol requirement, not tested in production.
2. The device must internally provide a hold time of at least 300ns for the SDA signal in order to bridge the undefined
region of the falling edge of SCL.
3. The maximum hold time of the START condition has only to be met if the interface does not stretch the low period of
SCL signal.
4. Measurement points are done at CMOS levels: 0.3xVDD and 0.7xVDD.
5. At 4MHz fCPU, max.I2C speed (400kHz) is not achievable. In this case, max. I2C speed will be approximately 260KHz.
168/197
ST72325xx
Legend:
RP = External pull-up resistance
fSCL = I2C speed
NA = Not achievable
Note:
– For speeds around 200 kHz, achieved speed can have ±5% tolerance
– For other speed ranges, achieved speed can have ±2% tolerance
The above variations depend on the accuracy of the external components used.
169/197
ST72325xx
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.
170/197
ST72325xx
Figure 94. RAIN max. vs fADC with CAIN=0pF1) Figure 95. 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).
171/197
ST72325xx
12.12.1 Analog Power Supply and Reference – Filter power to the analog power planes. It is rec-
Pins ommended to connect capacitors, with good high
Depending on the MCU pin count, the package frequency characteristics, between the power
may feature separate VAREF and VSSA analog and ground lines, placing 0.1µF and optionally, if
power supply pins. These pins supply power to the needed 10pF capacitors as close as possible to
A/D converter cell and function as the high and low the ST7 power supply pins and a 1 to 10µF ca-
reference voltages for the conversion. pacitor close to the power source (see Figure
97).
Separation of the digital and analog power pins al-
low board designers to improve A/D performance. – The analog and digital power supplies should be
Conversion accuracy can be impacted by voltage connected in a star network. Do not use a resis-
drops and noise in the event of heavily loaded or tor, as VAREF is used as a reference voltage by
badly decoupled power supply lines (see Section the A/D converter and any resistance would
12.12.2 General PCB Design Guidelines). cause a voltage drop and a loss of accuracy.
12.12.2 General PCB Design Guidelines – Properly place components and route the signal
traces on the PCB to shield the analog inputs.
To obtain best results, some general design and Analog signals paths should run over the analog
layout rules should be followed when designing ground plane and be as short as possible. Isolate
the application PCB to shield the noise-sensitive, analog signals from digital signals that may
analog physical interface from noise-generating switch while the analog inputs are being sampled
CMOS logic signals. by the A/D converter. Do not toggle digital out-
– Use separate digital and analog planes. The an- puts on the same I/O port as the A/D input being
alog ground plane should be connected to the converted.
digital ground plane via a single point on the
PCB.
Figure 97. 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
172/197
ST72325xx
173/197
ST72325xx
13 PACKAGE CHARACTERISTICS
D A mm inches1)
A2
Dim.
D1 Min Typ Max Min Typ Max
A1 A 1.60 0.0630
A1 0.05 0.15 0.0020 0.0059
A2 1.35 1.40 1.45 0.0531 0.0551 0.0571
b b 0.30 0.37 0.45 0.0118 0.0146 0.0177
c 0.09 0.20 0.0035 0.0079
D 16.00 0.6299
e
D1 14.00 0.5512
E1 E
E 16.00 0.6299
E1 14.00 0.5512
e 0.80 0.0315
θ 0° 3.5° 7° 0° 3.5° 7°
L 0.45 0.60 0.75 0.0177 0.0236 0.0295
L
L1 1.00 0.0394
L1
c Number of Pins
h N 64
Note 1. Values in inches are converted from mm
and rounded to 4 decimal digits.
174/197
ST72325xx
Figure 100. 64-Pin Low Profile Quad Flat Package (10 x10)
mm inches1)
Dim.
D A
Min Typ Max Min Typ Max
D1 A2 A 1.60 0.0630
A1
A1 0.05 0.15 0.0020 0.0059
A2 1.35 1.40 1.45 0.0531 0.0551 0.0571
b 0.17 0.22 0.27 0.0067 0.0087 0.0106
b c 0.09 0.20 0.0035 0.0079
D 12.00 0.4724
E1 E D1 10.00 0.3937
e
E 12.00 0.4724
E1 10.00 0.3937
e 0.50 0.0197
c
θ 0° 3.5° 7° 0° 3.5° 7°
L1
L 0.45 0.60 0.75 0.0177 0.0236 0.0295
θ
L L1 1.00 0.0394
Number of Pins
N 64
Note 1. Values in inches are converted from mm
and rounded to 4 decimal digits.
mm inches1)
Dim.
Min Typ Max Min Typ Max
D A A 1.60 0.0630
D1 A2 A1 0.05 0.15 0.0020 0.0059
A2 1.35 1.40 1.45 0.0531 0.0551 0.0571
A1
b 0.17 0.22 0.27 0.0067 0.0087 0.0106
b C 0.09 0.20 0.0035 0.0079
D 9.00 0.3543
D1 7.00 0.2756
E1 E e
E 9.00 0.3543
E1 7.00 0.2756
e 0.50 0.0197
c θ 0° 3.5° 7° 0° 3.5° 7°
L1
L 0.45 0.60 0.75 0.0177 0.0236 0.0295
L
θ L1 1.00 0.0394
Number of Pins
N 48
Note 1. Values in inches are converted from mm and
rounded to 4 decimal digits.
175/197
ST72325xx
mm inches1)
Dim.
Min Typ Max Min Typ Max
D A
D1 A2 A 1.60 0.0630
c e 0.80 0.0315
L1
L θ 0° 3.5° 7° 0° 3.5° 7°
h
L 0.45 0.60 0.75 0.0177 0.0236 0.0295
L1 1.00 0.0394
Number of Pins
N 44
Note 1. Values in inches are converted from mm
and rounded to 4 decimal digits.
176/197
ST72325xx
mm inches1)
Dim.
Min Typ Max Min Typ Max
E A 5.08 0.2000
A1 0.51 0.0201
A2 A
A2 3.05 3.81 4.57 0.1201 0.1500 0.1799
A1 L c E1 b 0.38 0.46 0.56 0.0150 0.0181 0.0220
b2 b e eA
b2 0.89 1.02 1.14 0.0350 0.0402 0.0449
eB
D
E c 0.23 0.25 0.38 0.0091 0.0098 0.0150
D 36.58 36.83 37.08 1.4402 1.4500 1.4598
0.015
E 15.24 16.00 0.6000 0.6299
GAGE PLANE
Figure 104. 32-Pin Plastic Dual In-Line Package, Shrink 400-mil Width
mm inches1)
Dim.
Min Typ Max Min Typ Max
A 3.56 3.76 5.08 0.1402 0.1480 0.2000
E eC
A1 0.51 0.0201
A2 A
A2 3.05 3.56 4.57 0.1201 0.1402 0.1799
b 0.36 0.46 0.58 0.0142 0.0181 0.0228
A1 b1 0.76 1.02 1.40 0.0299 0.0402 0.0551
L
E1
C eA C 0.20 0.25 0.36 0.0079 0.0098 0.0142
b2 b e eB
D
D 27.43 28.45 1.0799 1.1201
E 9.91 10.41 11.05 0.3902 0.4098 0.4350
E1 7.62 8.89 9.40 0.3000 0.3500 0.3701
e 1.78 0.0701
eA 10.16 0.4000
eB 12.70 0.5000
eC 1.40 0.0551
L 2.54 3.05 3.81 0.1000 0.1201 0.1500
Number of Pins
N 32
Note 1. Values in inches are converted from mm and
rounded to 4 decimal digits.
177/197
ST72325xx
mm inches1)
Dim.
Min Typ Max Min Typ Max
D A A 1.60 0.0630
D1 A2 A1 0.05 0.15 0.0020 0.0059
A2 1.35 1.40 1.45 0.0531 0.0551 0.0571
A1
b 0.30 0.37 0.45 0.0118 0.0146 0.0177
C 0.09 0.20 0.0035 0.0079
e
D 9.00 0.3543
E1 E
D1 7.00 0.2756
b
E 9.00 0.3543
E1 7.00 0.2756
e 0.80 0.0315
L1
c θ 0° 3.5° 7° 0° 3.5° 7°
178/197
ST72325xx
Notes:
1. The maximum chip-junction temperature is based on technology characteristics.
2. The maximum power dissipation is obtained from the formula PD = (TJ -TA) / RthJA.
The power dissipation of an application can be defined by the user with the formula: PD=PINT+PPORT where PINT is
the chip internal power (IDDxVDD) and PPORT is the port power dissipation depending on the ports used in the applica-
tion.
179/197
ST72325xx
180/197
ST72325xx
PLLOFF
FMP_R
RSTC
PKG0
PKG1
CSS
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
181/197
ST72325xx
182/197
ST72325xx
183/197
ST72325xx
Family
ST7 microcontroller family
Memory type
F: Flash
Blank : ROM
P = FASTROM
Sub-family
325
No. of pins
K = 32
J = 44 or 42
S or C = 48
AR = 64 (LQFP64 10x10 package)
R = 64 (LQFP64 14x14 package)
Memory size
4 = 16K
6 = 32K
7 = 48K
9 = 60K
Package
T = LQFP
B = DIP
Temperature range
6 = -40 °C to 85 °C
3 = -40 °C to 125 °C
For a list of available options (e.g. memory size, package) and orderable part numbers or for further information
on any aspect of this device, please contact the ST Sales Office nearest to you.
184/197
ST72325xx
Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
185/197
ST72325xx
186/197
ST72325xx
Note 1: Add suffix /EU, /UK, /US for the power supply of your region.
187/197
ST72325xx
188/197
ST72325xx
189/197
ST72325xx
190/197
ST72325xx
191/197
ST72325xx
15 KNOWN LIMITATIONS
15.1 ALL DEVICES the semaphore. If it is '1' this means that the last
interrupt was missed and the interrupt routine is in-
15.1.1 Unexpected Reset Fetch voked with the call instruction.
If an interrupt request occurs while a “POP CC” in- To implement the workaround, the following soft-
struction is executed, the interrupt controller does ware sequence is to be followed for writing into the
not recognise the source of the interrupt and, by PxOR/PxDDR registers. The example is for for
default, passes the RESET vector address to the Port PF1 with falling edge interrupt sensitivity. The
CPU. software sequence is given for both cases (global
Workaround interrupt disabled/enabled).
To solve this issue, a “POP CC” instruction must Case 1: Writing to PxOR or PxDDR with Global In-
always be preceded by a “SIM” instruction. terrupts Enabled:
15.1.2 External interrupt missed LD A,#01
To avoid any risk if generating a parasitic interrupt, LD sema,A ; set the semaphore to '1'
the edge detector is automatically disabled for one LD A,PFDR
clock cycle during an access to either DDR and
OR. Any input signal edge during this period will AND A,#02
not be detected and will not generate an interrupt. LD X,A ; store the level before writing to
This case can typically occur if the application re- PxOR/PxDDR
freshes the port configuration registers at intervals LD A,#$90
during runtime. LD PFDDR,A ; Write to PFDDR
Workaround LD A,#$ff
The workaround is based on software checking LD PFOR,A ; Write to PFOR
the level on the interrupt pin before and after writ-
ing to the PxOR or PxDDR registers. If there is a LD A,PFDR
level change (depending on the sensitivity pro- AND A,#02
grammed for this pin) the interrupt routine is in-
voked using the call instruction with three extra LD Y,A ; store the level after writing to
PUSH instructions before executing the interrupt PxOR/PxDDR
routine (this is to make the call compatible with the LD A,X ; check for falling edge
IRET instruction at the end of the interrupt service cp A,#02
routine).
jrne OUT
But detection of the level change does not make
sure that edge occurs during the critical 1 cycle du- TNZ Y
ration and the interrupt has been missed. This may jrne OUT
lead to occurrence of same interrupt twice (one LD A,sema ; check the semaphore status if
hardware and another with software call). edge is detected
To avoid this, a semaphore is set to '1' before CP A,#01
checking the level change. The semaphore is
changed to level '0' inside the interrupt routine. jrne OUT
When a level change is detected, the semaphore call call_routine; call the interrupt routine
status is checked and if it is '1' this means that the
OUT:LD A,#00
last interrupt has been missed. In this case, the in-
terrupt routine is invoked with the call instruction. LD sema,A
.call_routine ; entry to call_routine
There is another possible case i.e. if writing to PUSH A
PxOR or PxDDR is done with global interrupts dis- PUSH X
abled (interrupt mask bit set). In this case, the
semaphore is changed to '1' when the level PUSH CC
change is detected. Detecting a missed interrupt is .ext1_rt ; entry to interrupt routine
done after the global interrupts are enabled (inter- LD A,#00
rupt mask bit reset) and by checking the status of
192/197
ST72325xx
LD sema,A
IRET 15.1.3 Clearing active interrupts outside
Case 2: Writing to PxOR or PxDDR with Global In- interrupt routine
terrupts Disabled: When an active interrupt request occurs at the
SIM ; set the interrupt mask same time as the related flag is being cleared, an
unwanted reset may occur.
LD A,PFDR
Note: clearing the related interrupt mask will not
AND A,#$02 generate an unwanted reset
LD X,A ; store the level before writing to Concurrent interrupt context
PxOR/PxDDR
The symptom does not occur when the interrupts
LD A,#$90 are handled normally, i.e.
LD PFDDR,A; Write into PFDDR when:
LD A,#$ff – The interrupt flag is cleared within its own inter-
LD PFOR,A ; Write to PFOR rupt routine
LD A,PFDR – The interrupt flag is cleared within any interrupt
AND A,#$02 routine
LD Y,A ; store the level after writing to PxOR/ – The interrupt flag is cleared in any part of the
PxDDR code while this interrupt is disabled
LD A,X ; check for falling edge If these conditions are not met, the symptom can
be avoided by implementing the following se-
cp A,#$02 quence:
jrne OUT Perform SIM and RIM operation before and after
TNZ Y resetting an active interrupt request.
jrne OUT Example:
LD A,#$01 SIM
LD sema,A ; set the semaphore to '1' if edge is reset interrupt flag
detected RIM
RIM ; reset the interrupt mask Nested interrupt context:
LD A,sema ; check the semaphore status The symptom does not occur when the interrupts
CP A,#$01 are handled normally, i.e.
jrne OUT when:
call call_routine; call the interrupt routine – The interrupt flag is cleared within its own inter-
RIM rupt routine
OUT: RIM – The interrupt flag is cleared within any interrupt
routine with higher or identical priority level
JP while_loop
– The interrupt flag is cleared in any part of the
.call_routine ; entry to call_routine code while this interrupt is disabled
PUSH A If these conditions are not met, the symptom can
PUSH X be avoided by implementing the following se-
PUSH CC quence:
.ext1_rt ; entry to interrupt routine PUSH CC
LD A,#$00 SIM
LD sema,A reset interrupt flag
IRET POP CC
193/197
ST72325xx
194/197
ST72325xx
195/197
ST72325xx
16 REVISION HISTORY
Table 33. Revision History
Date Revision Description of Changes
26-Sep-2005 1 Initial release
Modified LQFP48 pinout, added S device ordering information
Modified Note 4 on page 16 for unbonded pins in 48 pin C devices
Added caution about reset vector in unprogrammed Flash devices in Section 6.3.
Removed EMC protective circuitry in Figure 88 on page 163 (device works correctly without
04-Dec-2006 2
these components)
Modified SS min. setup time and added note 4 to section 12.11.1 on page 166
Modifed description PKG1 bit in “FLASH OPTION BYTES” on page 181
Added “TIMD set simultaneously with OC interrupt” on page 194
In Table 2 added note 5 for I/O Port E2 (PE2) output mode “pull-up always activated” and
added note 6 on connection of power and ground pins.
Deleted the sentence in Section 4.3.1 ‘Readout protection is not supported if LVD is enabled
04-Apr-2007 3
Added Package dimensions for LQFP64 14 x14 in Figure 122
Specified EMI data for LQFP64 in Section 12.7.2
Added ‘Pull-up always active on PE2’ in Section 15.1.8
Title of the document changed
Modified Table 1 on page 1
Modified “Starting the Conversion” on page 133
Modified tRET and NRW values in “FLASH Memory” on page 155
Modified “Absolute Maximum Ratings (Electrical Sensitivity)” on page 158
Values in inches rounded to 4 decimal digits (instead of 3) in “PACKAGE MECHANICAL DA-
07-Oct-2008 4 TA” on page 174
Removed reference to “Application with a Crystal or Ceramic Resonator for ROM (LQFP64
or any 48/60K ROM)” on page 151
Modified “PACKAGE CHARACTERISTICS” on page 174 (Section 13.3)
Modified “TIMD set simultaneously with OC interrupt” on page 194
Modified Section 14.2 DEVICE ORDERING INFORMATION AND TRANSFER OF CUS-
TOMER CODE on page 183 (Figure 106 and option lists)
196/197
ST72325xx
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.
197/197