AN2197
APPLICATION NOTE
Guidelines for migrating ST72F324 & ST72F321
applications to ST72F324B, ST72F321B or ST72F325
Introduction
This application note provides information on using ST72F321B, ST72F324B and ST72F325
microcontroller devices in applications originally designed for the ST72F324 and ST72F321 series.
Table 1. Migration cross-reference table
FROM TO Description
ST72F324B 8K to 32K Flash, 32-pin and 44-pin
ST72F324
ST72F325
ST72F321B
ST72F321
ST72F325
16K to 32K Flash, 32-pin and 44-pin
with I²C, Auto Reload Timer and Clock Security System
32K to 60K Flash, 44-pin and 64-pin,
with I²C, Auto Reload Timer
32K to 60K Flash, 44-pin and 64-pin
with I²C, Auto Reload Timer and Clock Security System
Note: Use ST72F325 if your application requires CSS (Clock Security System).
Rev 1
October 2005 1/13
www.st.com
13
AN2187
Contents
1 ST72F324 Migration: feature overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 ST72F321 Migration: feature overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 Feature compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2 VDD Rise time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.3 Asynchronous RESET pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4 Oscillator pad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.5 Clock Security System (CSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Performance improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 New features and peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1 Clock Security System (CSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
6 Register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6.1 Register Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6.2 Register Modifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
6.2.1 SICSR Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
7 Limitations summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
8 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2/13
AN2187 1 ST72F324 Migration: feature overview
1 ST72F324 Migration: feature overview
Table 2. ST72F324 migration: feature overview
Feature
1)
ST72F324 ST72F324B ST72F325
Package
Program Memory 8 to 32K Flash - 16 to 32K Flash
Operating Supply 3.8 V to 5.5V - -
Register Map 128 bytes - -
I/Os (High sink) 32/24 pins - -
Power saving Modes
Nested Interrupts Ye s - -
MCC / RTC Ye s - -
Watchdog Ye s - -
16-bit Timer
(OC / IC / PWM)
8-bit PWMART
(OC / IC / PWM)
SPI Ye s - -
SCI Yes - -
2
C
I
ADC Yes (10-bit)
LV D 3 Levels (No change) - -
TQFP44 / SDIP42 /
TQFP32 / SDIP32
Slow / Wait / Active Halt /
Halt
2 Timers (3 / 3 / 2) - -
No -
No - Yes
--
2)
-
3)
-
2)
-
1 Timer
(4 / 0 / 4)
3)
-
CSS No - Yes
ICC mode 39-pulse
Development tools
Programming tools
4)
ST7MDT20x-EMU3 and ST7MTD20-DVP3
ST7MDT20x-EPB and ST7MTD20-DVP3
39-pulse (32k Flash)
36-pulse (8/16k Flash)
ST7232X-SK/RAIS
39-pulse
“-” stands for: No change vs. ST72F324, fully compatible with existing development
Note 1: Refer to the corresponding datasheets for more information.
Note 2: Exit from Active Halt available with external interrupts (see Section 7 )
Note 3: improved ADC accuracy
Note 4: Go to http://www.st.com
for information on third-party tools.
3/13
2 ST72F321 Migration: feature overview AN2187
2 ST72F321 Migration: feature overview
Table 3. ST72F321 Migration: feature overview
Feature
Package TQFP44 / TQFP64 - -
Program Memory 32K to 60KFlash - 16K to 60K Flash
Operating Supply 3.8 V to 5.5V - -
Register Map 128 bytes - -
I/Os (High sink) 48/32 pins - -
Power saving Modes
Nested Interrupts Ye s - -
MCC / RTC Ye s - -
Watchdog Ye s - -
16-bit Timer
(OC / IC / PWM)
8-bit PWMART
(OC / IC / PWM)
1)
ST72F321 ST72F321B ST72F325
Slow / Wait / Active Halt /
Halt
2 Timers (3 / 3 / 2) - -
1 Timer (4 / 0 / 4) - -
2)
-
2)
-
SPI Ye s - -
SCI Yes - -
2
C
I
ADC Yes (10-bit)
LV D 3 Levels - -
CSS No - Yes
Development tools
Programming tools
4)
Ye s - -
3)
-
ST7MDT20x-EMU3 and ST7MTD20-DVP3
ST7232X-SK/RAIS
ST7MDT20x-EPB and ST7MTD20-DVP3
“-” stands for: No change vs. ST72F321, fully compatible with existing development
Note 1: Refer to the corresponding datasheets for more information.
Note 2: Exit from Active Halt available with external interrupts (see Section 7 )
Note 3: improved ADC accuracy
Note 4: Go to http://www.st.com for information on third-party tools.
3)
-
4/13