ST10F272E
ST10F272E
ST10F272E
ST10F272E
16-bit MCU with 256 Kbyte Flash memory and 12/20 Kbyte RAM
Datasheet production data
Features
Timers
Two multi-functional general purpose timer
units with 5 timers
September 2013
This is information on a product in full production.
*$3*5,
A/D converter
24-channel 10-bit
3 s minimum conversion time
Serial channels
Two synch. / asynch. serial channels
Two high-speed synchronous channels
One I2C standard interface
Fail-safe protection
Programmable watchdog timer
Oscillator watchdog
Clock generation
On-chip PLL with 4 to 8 MHz oscillator
Direct or prescaled clock input
1/188
www.st.com
Contents
ST10F272B/ST10F272E
Contents
1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.1
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
1.2
Pin data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.2
Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.2.2
Modules structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.2.3
5.3
Write operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.4
Registers description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.5
2/188
5.2.1
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
5.4.6
5.4.7
5.4.8
5.4.9
5.4.10
5.4.11
Protection strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.5.1
Protection registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.5.2
5.5.3
5.5.4
ST10F272B/ST10F272E
Contents
5.5.5
5.5.6
5.5.7
Access protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.5.8
Write protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.5.9
Temporary unprotection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.6
5.7
Bootstrap loader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.1
6.2
6.3
6.3.2
6.3.3
7.2
7.3
Interrupt system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
9.1
X-Peripheral interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.2
10
11
GPT1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
11.2
GPT2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
12
PWM modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
13
Parallel ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Doc ID 11917 Rev 5
3/188
Contents
ST10F272B/ST10F272E
13.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
13.2
13.3
13.2.1
13.2.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
14
A/D converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
15
Serial channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
15.1
15.2
15.3
15.4
16
I2C interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
17
CAN modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
17.1
Configuration support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
17.2
18
19
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
20
System reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
21
4/188
20.1
Input filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
20.2
Asynchronous reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
20.3
20.4
Software reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
20.5
20.6
Bidirectional reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
20.7
20.8
20.9
ST10F272B/ST10F272E
Contents
21.1
21.2
21.3
21.2.1
21.2.2
21.3.2
21.3.3
21.3.4
22
23
24
23.1
23.2
X-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
23.3
23.4
24.2
24.3
24.4
24.5
DC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
24.6
24.7
24.8
24.7.1
24.7.2
24.7.3
24.7.4
AC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
24.8.1
24.8.2
24.8.3
24.8.4
24.8.5
5/188
Contents
ST10F272B/ST10F272E
24.8.6
24.8.7
24.8.8
24.8.9
25
26
27
6/188
ST10F272B/ST10F272E
List of tables
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Table 6.
Table 7.
Table 8.
Table 9.
Table 10.
Table 11.
Table 12.
Table 13.
Table 14.
Table 15.
Table 16.
Table 17.
Table 18.
Table 19.
Table 20.
Table 21.
Table 22.
Table 23.
Table 24.
Table 25.
Table 26.
Table 27.
Table 28.
Table 29.
Table 30.
Table 31.
Table 32.
Table 33.
Table 34.
Table 35.
Table 36.
Table 37.
Table 38.
Table 39.
Table 40.
Table 41.
Table 42.
Table 43.
Table 44.
Table 45.
Table 46.
Table 47.
Table 48.
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Summary of IFLASH address range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Address space reserved to the Flash module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Flash modules sectorization (Read operations) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Flash modules sectorization (Write operations or with ROMS1=1 or BootStrap mode) . . 29
Control register interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Flash control register 0 low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Flash control register 0 high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Flash control register 1 low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Flash control register 1 high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Banks (BxS) and sectors (BxFy) status bits meaning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Flash data register 0 low. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Flash data register 0 high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Flash data register 1 low. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Flash data register 1 high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Flash address register low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Flash address register high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Flash error register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Flash non volatile write protection I register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Flash non volatile access protection register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Flash non volatile access protection register 1 low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Flash non volatile access protection register 1 high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
XBus flash volatile temporary access unprotection register . . . . . . . . . . . . . . . . . . . . . . . . 41
Summary of access protection level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Flash write operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
ST10F272 boot mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Standard instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
MAC instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Interrupt sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
X-Interrupt detailed mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Trap priorities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Compare modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
CAPCOM timer input frequencies, resolutions and periods at 40 MHz . . . . . . . . . . . . . . . 62
CAPCOM timer input frequencies, resolutions and periods at 64 MHz . . . . . . . . . . . . . . . 62
GPT1 timer input frequencies, resolutions and periods at 40 MHz. . . . . . . . . . . . . . . . . . . 63
GPT1 timer input frequencies, resolutions and periods at 64 MHz. . . . . . . . . . . . . . . . . . . 64
GPT2 timer input frequencies, resolutions and periods at 40 MHz. . . . . . . . . . . . . . . . . . . 65
GPT2 timer input frequencies, resolutions and periods at 64 MHz. . . . . . . . . . . . . . . . . . . 65
PWM unit frequencies and resolutions at 40 MHz CPU clock . . . . . . . . . . . . . . . . . . . . . . 67
PWM unit frequencies and resolutions at 64 MHz CPU clock . . . . . . . . . . . . . . . . . . . . . . 68
ASC asynchronous baud rates by reload value and deviation errors (fCPU = 40 MHz) . . 74
ASC asynchronous baud rates by reload value and deviation errors (fCPU = 64 MHz) . . 75
ASC synchronous baud rates by reload value and deviation errors (fCPU = 40 MHz) . . . 75
ASC synchronous baud rates by reload value and deviation errors (fCPU = 64 MHz) . . . 76
Synchronous baud rate and reload values (fCPU = 40 MHz). . . . . . . . . . . . . . . . . . . . . . . 77
Synchronous baud rate and reload values (fCPU = 64 MHz). . . . . . . . . . . . . . . . . . . . . . . 77
WDTREL reload value (fCPU = 40 MHz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
WDTREL reload value (fCPU = 64 MHz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7/188
List of tables
Table 49.
Table 50.
Table 51.
Table 52.
Table 53.
Table 54.
Table 55.
Table 56.
Table 57.
Table 58.
Table 59.
Table 60.
Table 61.
Table 62.
Table 63.
Table 64.
Table 65.
Table 66.
Table 67.
Table 68.
Table 69.
Table 70.
Table 71.
Table 72.
Table 73.
Table 74.
Table 75.
Table 76.
Table 77.
Table 78.
Table 79.
Table 80.
Table 81.
Table 82.
Table 83.
Table 84.
Table 85.
8/188
ST10F272B/ST10F272E
ST10F272B/ST10F272E
List of figures
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
Figure 22.
Figure 23.
Figure 24.
Figure 25.
Figure 26.
Figure 27.
Figure 28.
Figure 29.
Figure 30.
Figure 31.
Figure 32.
Figure 33.
Figure 34.
Figure 35.
Figure 36.
Figure 37.
Figure 38.
Figure 39.
Figure 40.
Figure 41.
Figure 42.
Figure 43.
Figure 44.
Figure 45.
Figure 46.
Figure 47.
Figure 48.
Logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Pin configuration (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
ST10F272 on-chip memory mapping (ROMEN=1 / XADRS = 800Bh - Reset value). . . . . 27
Flash structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
CPU block diagram (MAC Unit not included) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
MAC unit architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
X-Interrupt basic structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Block diagram of GPT1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Block diagram of GPT2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Block diagram of PWM module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Connection to single CAN bus via separate CAN transceivers . . . . . . . . . . . . . . . . . . . . . 80
Connection to single CAN bus via common CAN transceivers. . . . . . . . . . . . . . . . . . . . . . 80
Connection to two different CAN buses (e.g. for gateway application). . . . . . . . . . . . . . . . 81
Connection to one CAN bus with internal Parallel Mode enabled . . . . . . . . . . . . . . . . . . . 81
Asynchronous power-on RESET (EA = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Asynchronous power-on RESET (EA = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Asynchronous hardware RESET (EA = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Asynchronous hardware RESET (EA = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Synchronous short / long hardware RESET (EA = 1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Synchronous short / long hardware RESET (EA = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Synchronous long hardware RESET (EA = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Synchronous long hardware RESET (EA = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
SW / WDT unidirectional RESET (EA = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
SW / WDT unidirectional RESET (EA = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
SW / WDT bidirectional RESET (EA=1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
SW / WDT bidirectional RESET (EA = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
SW / WDT bidirectional RESET (EA=0) followed by a HW RESET . . . . . . . . . . . . . . . . . 102
Minimum external reset circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
System reset circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Internal (simplified) reset circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Example of software or watchdog bidirectional reset (EA = 1) . . . . . . . . . . . . . . . . . . . . . 105
Example of software or watchdog bidirectional reset (EA = 0) . . . . . . . . . . . . . . . . . . . . . 106
PORT0 bits latched into the different registers after reset . . . . . . . . . . . . . . . . . . . . . . . . 109
External RC circuitry on RPD pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Port2 test mode structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Supply current versus the operating frequency (RUN and IDLE modes) . . . . . . . . . . . . . 138
A/D conversion characteristic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
A/D converter input pins scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Charge sharing timing diagram during sampling phase . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Anti-aliasing filter and conversion rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Input / output waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Float waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Generation mechanisms for the CPU clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
ST10F272 PLL jitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Crystal oscillator and resonator connection diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
32kHz crystal oscillator connection diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
External clock drive XTAL1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
9/188
List of figures
Figure 49.
Figure 50.
Figure 51.
Figure 52.
Figure 53.
Figure 54.
Figure 55.
Figure 56.
Figure 57.
Figure 58.
Figure 59.
Figure 60.
Figure 61.
Figure 62.
Figure 63.
10/188
ST10F272B/ST10F272E
External memory cycle: Multiplexed bus, with/without read/write delay, normal ALE. . . . 166
External memory cycle: Multiplexed bus, with/without read/write delay, extended ALE. . 167
External memory cycle: Multiplexed bus, with/without r/w delay, normal ALE, r/w CS. . . 168
External memory cycle: Multiplexed bus, with/without r/w delay, extended ALE, r/w CS . 169
External memory cycle: Demultiplexed bus, with/without r/w delay, normal ALE . . . . . . . 172
Exteral memory cycle: Demultiplexed bus, with/without r/w delay, extended ALE . . . . . . 173
External memory cycle: Demultipl. bus, with/without r/w delay, normal ALE, r/w CS . . . . 174
External memory cycle: Demultiplexed bus, without r/w delay, extended ALE, r/w CS . . 175
CLKOUT and READY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
External bus arbitration (releasing the bus) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
External bus arbitration (regaining the bus) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
SSC master timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
SSC slave timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
PQFP144 mechanical data and package dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
LQFP144 mechanical data and package dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
ST10F272B/ST10F272E
Introduction
1.1
Description
Introduction
1.2
Special characteristics
The ST10F272B and ST10F272E devices are derivatives of the STMicroelectronics ST10
family of 16-bit single-chip CMOS microcontrollers.
These two derivatives slightly differ on the available RAM size and Analog Channel Input
number. These points will be highlighted in the corresponding chapters.
For all information that is common to the 2 derivatives, the generic ST10F272 name is used.
The ST10F272 combines high CPU performance (up to 32 million instructions per second)
with high peripheral functionality and enhanced I/O-capabilities. It also provides on-chip
high-speed single voltage Flash memory, on-chip high-speed RAM, and clock generation
via PLL.
ST10F272 is processed in 0.18mm CMOS technology. The MCU core and the logic is
supplied with a 5V to 1.8V on-chip voltage regulator. The part is supplied with a single 5V
supply and I/Os work at 5V.
The device is upward compatible with the ST10F269 device, with the following set of
differences:
Flash control interface is now based on STMicroelectronics third generation of stand-alone
Flash memories (M29F400 series), with an embedded Program/Erase Controller. This
completely frees up the CPU during programming or erasing the Flash.
Only one supply pin (ex DC1 in ST10F269, renamed into V18) on the QFP144 package is
used for decoupling the internally generated 1.8V core logic supply. Do not connect this pin
to 5.0V external supply. Instead, this pin should be connected to a decoupling capacitor
(ceramic type, typical value 10nF, maximum value 100nF).
The AC and DC parameters are modified due to a difference in the maximum CPU
frequency.
A new VDD pin replaces DC2 of ST10F269.
EA pin assumes a new alternate functionality: it is also used to provide a dedicated power
supply (see VSTBY) to maintain biased a portion of the XRAM (16Kbytes) when the main
Power Supply of the device (VDD and consequently the internally generated V18) is turned
off for low power mode, allowing data retention. VSTBY voltage shall be in the range 4.5-5.5
Volt, and a dedicated embedded low power voltage regulator is in charge to provide the
11/188
Introduction
ST10F272B/ST10F272E
1.8V for the RAM, the low-voltage section of the 32kHz oscillator and the Real Time Clock
module when not disabled. It is allowed to exceed the upper limit up to 6V for a very short
period of time during the global life of the device, and exceed the lower limit down to 4V
when RTC and 32kHz on-chip oscillator are not used.
A second SSC mapped on the XBUS is added (SSC of ST10F269 becomes here SSC0,
while the new one is referred as XSSC or simply SSC1). Note that some restrictions and
functional differences due to the XBUS peculiarities are present between the classic SSC,
and the new XSSC.
A second ASC mapped on the XBUS is added (ASC0 of ST10F269 remains ASC0, while
the new one is referred as XASC or simply as ASC1). Note that some restrictions and
functional differences due to the XBUS peculiarities are present between the classic ASC,
and the new XASC.
A second PWM mapped on the XBUS is added (PWM of ST10F269 becomes here PWM0,
while the new one is referred as XPWM or simply as PWM1). Note that some restrictions
and functional differences due to the XBUS peculiarities are present between the classic
PWM, and the new XPWM.
An I2C interface on the XBUS is added (see X-I2C or simply I2C interface).
CLKOUT function can output either the CPU clock (like in ST10F269) or a software
programmable prescaled value of the CPU clock.
On-chip RAM memory has been increased (Flash size remained the same).
PLL multiplication factors have been adapted to new frequency range.
A/D Converter is not fully compatible versus ST10F269 (timing and programming model).
Formula for the convertion time is still valid, while the sampling phase programming model
is different.
Besides, additional 8 channels are available on P1L pins as alternate function: the accuracy
reachable with these extra channels is reduced with respect to the standard Port5 channels.
External Memory bus is affected by limitations on maximum speed and maximum
capacitance load: ST10F272 is not able to address an external memory at 64MHz with 0
wait states.
XPERCON register bit mapping modified according to new peripherals implementation (not
fully compatible with ST10F269).
Bondout chip for emulation (ST10R201) cannot achieve more than 50MHz at room
temperature (so no real time emulation possible at maximum speed).
Input section characteristics are different. The threshold programmability is extended to all
port pins (additional XPICON register); it is possible to select standard TTL (with up to
400mV of hysteresis) and standard CMOS (with up to 750mV of hysteresis).
Output transition is not programmable.
CAN module is enhanced: ST10F272 implements two C-CAN modules, so the
programming model is slightly different. Besides, the possibility to map in parallel the two
CAN modules is added (on P4.5/P4.6).
On-chip main oscillator input frequency range has been reshaped, reducing it from 1-25MHz
down to 4-8MHz. This is a low power oscillator amplifier, that allows a power consumption
reduction when Real Time Clock is running in Power Down mode, using as reference the
on-chip main oscillator clock. When this on-chip amplifier is used as reference for Real Time
12/188
ST10F272B/ST10F272E
Introduction
13/188
Introduction
Figure 1.
ST10F272B/ST10F272E
Logic symbol
9 9''966
;7$/
;7$/
;7$/
;7$/
567,1
567287
9$5()
9$*1'
10,
($967%<
5($'<
$/(
5'
:5:5/
3RUW
ELW
67)
3RUW
ELW
3RUW
ELW
3RUW
ELW
3RUW
ELW
3RUW
ELW
3RUW
ELW
3RUW
ELW
3RUW
ELW
53'
*$3*5,
14/188
ST10F272B/ST10F272E
Pin data
Pin configuration (top view)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ST10F272
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
P0H.0 / AD8
P0L.7 / AD7
P0L.6 / AD6
P0L.5 / AD5
P0L.4 / AD4
P0L.3 / AD3
P0L.2 / AD2
P0L.1 / AD1
P0L.0 / AD0
EA / VSTBY
ALE
READY
WR/WRL
RD
VSS
VDD
P4.7 / A23 / CAN2_TxD / SDA
P4.6 / A22 / CAN1_TxD / CAN2_TxD
P4.5 / A21 / CAN1_RxD / CAN2_RxD
P4.4 / A20 / CAN2_RxD / SCL
P4.3 / A19
P4.2 / A18
P4.1 / A17
P4.0 / A16
RPD
VSS
VDD
P3.15 / CLKOUT
P3.13 / SCLK0
P3.12 / BHE / WRH
P3.11 / RxD0
P3.10 / TxD0
P3.9 / MTSR0
P3.8 / MRST0
P3.7 / T2IN
P3.6 / T3IN
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
P6.0 / CS0
P6.1 / CS1
P6.2 / CS2
P6.3 / CS3
P6.4 / CS4
P6.5 / HOLD / SCLK1
P6.6 / HLDA / MTSR1
P6.7 / BREQ / MRST1
P8.0 / XPOUT0 / CC16IO
P8.1 / XPOUT1 / CC17IO
P8.2 / XPOUT2 / CC18IO
P8.3 / XPOUT3 / CC19IO
P8.4 / CC20IO
P8.5 / CC21IO
P8.6 / RxD1 / CC22IO
P8.7 / TxD1 / CC23IO
VDD
VSS
P7.0 / POUT0
P7.1 / POUT1
P7.2 / POUT2
P7.3 / POUT3
P7.4 / CC28IO
P7.5 / CC29IO
P7.6 / CC30IO
P7.7 / CC31IO
P5.0 / AN0
P5.1 / AN1
P5.2 / AN2
P5.3 / AN3
P5.4 / AN4
P5.5 / AN5
P5.6 / AN6
P5.7 / AN7
P5.8 / AN8
P5.9 / AN9
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
XTAL4
XTAL3
NMI
RSTOUT
RSTIN
VSS
XTAL1
XTAL2
VDD
P1H.7 / A15 / CC27I
P1H.6 / A14 / CC26I
P1H.5 / A13 / CC25I
P1H.4 / A12 / CC24I
P1H.3 / A11
P1H.2 / A10
P1H.1 / A9
P1H.0 / A8
VSS
VDD
P1L.7 / A7 / AN23* (*)
P1L.6 / A6 / AN22* *(*)
P1L.5 / A5 / AN21* (*)
P1L.4 / A4 / AN20* (*)
P1L.3 / A3 / AN19* *(*)
P1L.2 / A2 / AN18* *(*)
P1L.1 / A1 / AN17* (*)
P1L.0 / A0 / AN16* (*)
P0H.7 / AD15
P0H.6 / AD14
P0H.5 / AD13
P0H.4 / AD12
P0H.3 / AD11
P0H.2 / AD10
P0H.1 / AD9
VSS
VDD
Figure 2.
VAREF
VAGND
P5.10 / AN10 / T6EUD
P5.11 / AN11 / T5EUD
P5.12 / AN12 / T6IN
P5.13 / AN13 / T5IN
P5.14 / AN14 / T4EUD
P5.15 / AN15 / T2EUD
VSS
VDD
P2.0 / CC0IO
P2.1 / CC1IO
P2.2 / CC2IO
P2.3 / CC3IO
P2.4 / CC4IO
P2.5 / CC5IO
P2.6 / CC6IO
P2.7 / CC7IO
VSS
V18
P2.8 / CC8IO / EX0IN
P2.9 / CC9IO / EX1IN
P2.10 / CC10IO / EX2IN
P2.11 / CC11IO / EX3IN
P2.12 / CC12IO / EX4IN
P2.13 / CC13IO / EX5IN
P2.14 / CC14IO / EX6IN
P2.15 / CC15IO / EX7IN / T7IN
P3.0 / T0IN
P3.1 / T6OUT
P3.2 / CAPIN
P3.3 / T3OUT
P3.4 / T3EUD
P3.5 / T4IN
VSS
VDD
Pin data
15/188
Pin data
Table 1.
Symbol
ST10F272B/ST10F272E
Pin description
Pin
1-8
P6.0 - P6.7
Type
I/O
Function
8-bit bidirectional I/O port, bit-wise programmable for input or output via direction
bit. Programming an I/O pin as input forces the corresponding output driver to
high impedance state. Port 6 outputs can be configured as push-pull or open
drain drivers. The input threshold of Port 6 is selectable (TTL or CMOS). The
following Port 6 pins have alternate functions:
P6.0
CS0
...
...
...
...
...
P6.4
CS4
P6.5
HOLD
SCLK1
HLDA
MTSR1
BREQ
MRST1
6
I/O
O
P6.6
7
I/O
O
P6.7
8
I/O
9-16
I/O
8-bit bidirectional I/O port, bit-wise programmable for input or output via direction
bit. Programming an I/O pin as input forces the corresponding output driver to
high impedance state. Port 8 outputs can be configured as push-pull or open
drain drivers. The input threshold of Port 8 is selectable (TTL or CMOS).
The following Port 8 pins have alternate functions:
I/O
P8.0
CC16IO
XPWM0
9
O
...
P8.0 - P8.7
...
...
...
...
I/O
P8.3
CC19IO
XPWM0
12
O
13
I/O
P8.4
CC20IO
14
I/O
P8.5
CC21IO
I/O
P8.6
CC22IO
RxD1
CC23IO
TxD1
15
I/O
I/O
P8.7
16
O
16/188
ST10F272B/ST10F272E
Table 1.
Symbol
P7.0 - P7.7
P5.0 - P5.9
P5.10 - P5.15
P2.0 - P2.7
P2.8 - P2.15
Pin data
Pin
Type
Function
19-26
I/O
8-bit bidirectional I/O port, bit-wise programmable for input or output via direction
bit. Programming an I/O pin as input forces the corresponding output driver to
high impedance state. Port 7 outputs can be configured as push-pull or open
drain drivers. The input threshold of Port 7 is selectable (TTL or CMOS).
The following Port 7 pins have alternate functions:
19
P7.0
POUT0
...
...
...
...
...
22
P7.3
POUT3
23
I/O
P7.4
CC28IO
...
...
...
...
...
26
I/O
P7.7
CC31IO
27-36
39-44
I
I
16-bit input-only port with Schmitt-Trigger characteristics. The pins of Port 5 can
be the analog input channels (up to 16) for the A/D converter, where P5.x equals
ANx (Analog input channel x), or they are timer inputs. The input threshold of
Port 5 is selectable (TTL or CMOS). The following Port 5 pins have alternate
functions:
39
P5.10
T6EUD
40
P5.11
T5EUD
41
P5.12
T6IN
42
P5.13
T5IN
43
P5.14
T4EUD
44
P5.15
T2EUD
47-54
57-64
I/O
16-bit bidirectional I/O port, bit-wise programmable for input or output via
direction bit. Programming an I/O pin as input forces the corresponding output
driver to high impedance state. Port 2 outputs can be configured as push-pull or
open drain drivers. The input threshold of Port 2 is selectable (TTL or CMOS).
The following Port 2 pins have alternate functions:
47
I/O
P2.0
CC0IO
...
...
...
...
...
54
I/O
P2.7
CC7IO
57
I/O
P2.8
CC8IO
EX0IN
I
...
...
...
...
...
64
I/O
P2.15
CC15IO
EX7IN
T7IN
17/188
Pin data
Table 1.
ST10F272B/ST10F272E
Pin description (continued)
Symbol
P3.0 - P3.5
P3.6 - P3.13,
P3.15
18/188
Pin
Type
Function
65-70,
73-80,
81
I/O
I/O
I/O
15-bit (P3.14 is missing) bidirectional I/O port, bit-wise programmable for input or
output via direction bit. Programming an I/O pin as input forces the corresponding
output driver to high impedance state. Port 3 outputs can be configured as pushpull or open drain drivers. The input threshold of Port 3 is selectable (TTL or
CMOS). The following Port 3 pins have alternate functions:
65
P3.0
T0IN
66
P3.1
T6OUT
67
P3.2
CAPIN
68
P3.3
T3OUT
69
P3.4
T3EUD
70
P3.5
T4IN
73
P3.6
T3IN
74
P3.7
T2IN
75
I/O
P3.8
MRST0
76
I/O
P3.9
MTSR0
77
P3.10
TxD0
78
I/O
P3.11
RxD0
79
P3.12
BHE
WRH
80
I/O
P3.13
SCLK0
81
P3.15
CLKOUT
ST10F272B/ST10F272E
Table 1.
Symbol
Pin data
Type
Function
85-92
I/O
85
P4.0
A16
86
P4.1
A17
87
P4.2
A18
88
P4.3
A19
A20
CAN2_RxD
I/O
SCL
A21
CAN1_RxD
CAN2_RxD
A22
CAN1_TxD
CAN2_TxD
A23
CAN2_TxD
SDA
O
P4.0 P4.7
89
90
91
92
O
I/O
RD
WR/WRL
95
96
P4.4
P4.5
P4.6
P4.7
External memory write strobe. In WR-mode this pin is activated for every external
data write access. In WRL mode this pin is activated for low byte data write
accesses on a 16-bit bus, and for every data write access on an 8-bit bus. See
WRCFG in the SYSCON register for mode selection.
READY/
READY
97
Ready input. The active level is programmable. When the ready function is
enabled, the selected inactive level at this pin, during an external memory
access, will force the insertion of waitstate cycles until the pin returns to the
selected active level.
ALE
98
19/188
Pin data
Table 1.
Symbol
EA / VSTBY
ST10F272B/ST10F272E
Pin description (continued)
Pin
99
Type
Function
P0L.0 -P0L.7,
100-107,
P0H.0
108,
P0H.1 111-117
P0H.7
I/O
8-bit
16-bi
P0L.0 P0L.7:
D0 D7
D0 - D7
P0H.0 P0H.7:
I/O
D8 - D15
20/188
8-bit
16-bi
P0L.0 P0L.7:
AD0 AD7
AD0 - AD7
P0H.0 P0H.7:
A8 A15
AD8 - AD15
ST10F272B/ST10F272E
Table 1.
Pin data
Symbol
Pin
Type
Function
118-125
128-135
I/O
Two 8-bit bidirectional I/O ports P1L and P1H, bit-wise programmable for input or
output via direction bit. Programming an I/O pin as input forces the corresponding
output driver to high impedance state. PORT1 is used as the 16-bit address bus
(A) in demultiplexed bus modes: if at least BUSCONx is configured such the
demultiplexed mode is selected, the pis of PORT1 are not available for general
purpose I/O function. The input threshold of Port 1 is selectable (TTL or CMOS).
Only for the ST10F272E
The pins of P1L also serve as the additional (up to 8) analog input channels for
the A/D converter, where P1L.x equals ANy (Analog input channel y,
where y = x + 16). This additional function have higher priority on demultiplexed
bus function.
The following PORT1 pins have alternate functions:
132
P1H.4
CC24IO
133
P1H.5
CC25IO
134
P1H.6
CC26IO
135
P1H.7
CC27IO
XTAL1
138
XTAL2
137
P1L.0 - P1L.7
P1H.0 P1H.7
To clock the device from an external source, drive XTAL1 while leaving XTAL2
unconnected. Minimum and maximum high / low and rise / fall times specified in
the AC Characteristics must be observed.
XTAL3
143
XTAL4
144
RSTIN
140
Reset Input with CMOS Schmitt-Trigger characteristics. A low level at this pin for
a specified duration while the oscillator is running resets the ST10F272. An
internal pull-up resistor permits power-on reset using only a capacitor connected
to VSS. In bidirectional reset mode (enabled by setting bit BDRSTEN in SYSCON
register), the RSTIN line is pulled low for the duration of the internal reset
sequence.
RSTOUT
141
Internal Reset Indication Output. This pin is driven to a low level during hardware,
software or watchdog timer reset. RSTOUT remains low until the EINIT (end of
initialization) instruction is executed.
NMI
142
Non-Maskable Interrupt Input. A high to low transition at this pin causes the CPU
to vector to the NMI trap routine. If bit PWDCFG = 0 in SYSCON register, when
the PWRDN (power down) instruction is executed, the NMI pin must be low in
order to force the ST10F272 to go into power down mode. If NMI is high and
PWDCFG =0, when PWRDN is executed, the part will continue to run in normal
mode.
If not used, pin NMI should be pulled high externally.
VAREF
37
VAGND
38
21/188
Pin data
Table 1.
ST10F272B/ST10F272E
Pin description (continued)
Symbol
Pin
Type
Function
RPD
84
Timing pin for the return from interruptible power down mode and synchronous /
asynchronous reset selection.
VDD
17, 46,
72,82,93
, 109,
126, 136
Digital supply voltage = + 5V during normal operation, idle and power down
modes.
It can be turned off when Stand-by RAM mode is selected.
VSS
18,45,
55,71,
83,94,
110,
127, 139
Digital ground
V18
56
1.8V decoupling pin: a decoupling capacitor (typical value of 10nF, max 100nF)
must be connected between this pin and nearest VSS pin.
22/188
ST10F272B/ST10F272E
Functional description
The architecture of the ST10F272 combines advantages of both RISC and CISC processors
and an advanced peripheral subsystem. The block diagram gives an overview of the
different on-chip components and the high bandwidth internal bus structure of the
ST10F272.
Figure 3.
Block diagram
,)/$6+
.
;5$0
.
3(&
N+]
2VFLOODWRU
,QWHUUXSW&RQWUROOHU
;$6&
3//
;66&
99
9ROWDJH
5HJXODWRU
3RUW
&$3&20
%5*
&$3&20
66&
%5*
3:0
$6&
ELW$'&
3RUW
*37*37
;&$1
([WHUQDO%XV
&RQWUROOHU
3RUW
3RUW
3RUW
2VFLOODWRU
;3:0
;,&
3(&
3RUW
3RUW
3RUW
,5$0
.
;57&
&38&RUHDQG0$&8QLW
:DWFKGRJ
;&$1
;5$0
..
67%<
3RUW
Functional description
*$3*5,
23/188
Memory organization
ST10F272B/ST10F272E
Memory organization
The memory space of the ST10F272 is configured in a unified memory architecture. Code
memory, data memory, registers and I/O ports are organized within the same linear address
space of 16M Bytes. The entire memory space can be accessed Byte wise or Word wise.
Particular portions of the on-chip memory have additionally been made directly bit
addressable.
IFLASH: 256K Bytes of on-chip Flash memory. It is divided in 8 blocks (B0F0...B0F7) that
constitute the Bank 0. When Bootstrap mode is selected, the Test-Flash Block B0TF
(8Kbyte) appears at address 000000h: refer to Section 5: Internal Flash memory for more
details on memory mapping in boot mode. The summary of address range for IFLASH is the
following:
Table 2.
User Mode
Size
B0TF
Not visible
8K
B0F0
000000h - 001FFFh
8K
B0F1
002000h - 003FFFh
8K
B0F2
004000h - 005FFFh
8K
B0F3
006000h - 007FFFh
8K
B0F4
018000h - 01FFFFh
32K
B0F5
020000h - 02FFFFh
64K
B0F6
030000h - 03FFFFh
64K
B0F7
040000h - 04FFFFh
64K
IRAM: 2K Bytes of on-chip internal RAM (dual-port) is provided as a storage for data,
system stack, general purpose register banks and code. A register bank is 16 Wordwide (R0
to R15) and / or Bytewide (RL0, RH0, , RL7, RH7) general purpose registers group.
XRAM: 8K/16K+2K Bytes of on-chip extension RAM (single port XRAM) is provided as a
storage for data, user stack and code.
The XRAM is divided into 2 areas, the first 2K Bytes named XRAM1 and the second 8K/16K
Bytes named XRAM2, connected to the internal XBUS and are accessed like an external
memory in 16-bit demultiplexed bus-mode without wait state or read/write delay (31.25ns
access at 64MHz CPU clock). Byte and Word accesses are allowed.
The XRAM1 address range is 00E000h - 00E7FFh if XPEN (bit 2 of SYSCON register),
and XRAM1EN (bit 2 of XPERCON register) are set. If XRAM1EN or XPEN is cleared, then
any access in the address range 00E000h - 00E7FFh will be directed to external memory
interface, using the BUSCONx register corresponding to address matching ADDRSELx
register.
The XRAM2 address range is the one selected programming XADRS3 register, if XPEN (bit
2 of SYSCON register), and XRAM2EN (bit 3 of XPERCON register) are set. If bit XPEN is
cleared, then any access in the address range programmed for XRAM2 will be directed to
24/188
ST10F272B/ST10F272E
Memory organization
25/188
Memory organization
ST10F272B/ST10F272E
ASC1: Address range 00E900h - 00E9FFh is reserved for the ASC1 Module access. The
ASC1 is enabled by setting XPEN bit 2 of the SYSCON register and bit 7 of the XPERCON
register. Accesses to the ASC1 Module use demultiplexed addresses and a 16-bit data bus
(only word accesses are possible). Two waitstates give an access time of 62.5 ns at 64MHz
CPU clock. No tristate waitstate is used.
SSC1: Address range 00E800h - 00E8FFh is reserved for the SSC1 Module access. The
SSC1 is enabled by setting XPEN bit 2 of the SYSCON register and bit 8 of the XPERCON
register. Accesses to the SSC1 Module use demultiplexed addresses and a 16-bit data bus
(only word accesses are possible). Two waitstates give an access time of 62.5ns at 64MHz
CPU clock. No tristate waitstate is used.
I2C: Address range 00EA00h - 00EAFFh is reserved for the I2C Module access. The I2C is
enabled by setting XPEN bit 2 of the SYSCON register and bit 9 of the XPERCON register.
Accesses to the I2C Module use demultiplexed addresses and a 16-bit data bus (only word
accesses are possible). Two waitstates give an access time of 62.5ns at 64MHz CPU clock.
No tristate waitstate is used.
X-Miscellaneous: Address range 00EB00h - 00EBFFh is reserved for the access to a set
of XBUS additional features. They are enabled by setting XPEN bit 2 of the SYSCON
register and bit 10 of the XPERCON register. Accesses to this additional features use
demultiplexed addresses and a 16-bit data bus (only word accesses are possible). Two
waitstates give an access time of 62.5ns at 64MHz CPU clock. No tristate waitstate is used.
The following set of features are provided:
In order to meet the needs of designs where more memory is required than is provided on
chip, up to 16M Bytes of external memory can be connected to the microcontroller.
26/188
ST10F272B/ST10F272E
6HJPHQW
3DJH
6HJPHQW
))))))
))))
3DJH
([W0HPRU\
)))))
)
())))
(
'))))
'
&))))
&
%))))
%
$))))
$
))))
))))
([W0HPRU\
))))
0%
6)5
,5$0
.
5HVHUYHG
.
(6)5
)(
)'))
.
5HVHUYHG
.
)
)))
)
()))
(
())
(6)5
;&$1
;&$1
;57&
;3:0
;0LVFHOODQHRXV
;, &
;$6&
;66&
)
)))
)
)))
)
()))
;5$0
.
([W0HPRU\
.
5HVHUYHG
,5$0
)
)))
;5$0
;5$0
;5$0
(
')))
5HVHUYHG
5HVHUYHG
5HVHUYHG
)/$6+
)/$6+
)/$6+
)/$6+
))))
))))
))))
;5$0
;5$0
;5$0
;5$0
;5$0
))))
6)5
))))
)(
)'))
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
;5$0
))))
))))
;5$0
))))
))))
))))
5$06)5.E\WH
Figure 4.
Memory organization
([W0HPRU\
$GGUHVV$UHDZKHUH;5$0
LVPLUURUHGHYHU\.E\WHV
ERXQGDU\DIWHUUHVHW
([W0HPRU\
)/$6+
)/$6+;5$00E\WH
%LWDGGUHVVDEOH0HPRU\
&
7KHILUVW.RI)/$6+PD\EHUHPDSSHGIURPVHJPHQWWRVHJPHQWE\VHWWLQJ6<6&215206EHIRUH(,1,7
$EVROXWH0HPRU\$GGUHVVDUHKH[DGHFLPDOYDOXHVZKLOH'DWD3DJH1XPEHUDUHGHFLPDOYDOXHV
("1(3*
27/188
ST10F272B/ST10F272E
5.1
Overview
The on-chip Flash is composed by one matrix module, 256 KBytes wide.
This module is on ST10 Internal bus, so it is called IFLASH
Figure 5.
Flash structure
,)/$6+
&RQWURO6HFWLRQ
)ODVK&RQWURO
5HJLVWHUV
+9DQG5HI
*HQHUDWRU
%DQN.E\WH
3URJUDP0HPRU\
.E\WH7HVW)ODVK
3URJUDP(UDVH
&RQWUROOHU
,%86,QWHUIDFH
*$3*5,
5.2
Functional description
5.2.1
Structure
Table 3 shows the Address space reserved to the Flash module.
Table 3.
28/188
Addresses
Size
IFLASH sectors
256 Kbyte
192 Kbyte
64 Kbyte
ST10F272B/ST10F272E
5.2.2
Modules structure
The IFLASH module is composed by a bank (Bank 0) of 256 Kbyte of Program Memory
divided in 8 sectors (B0F0...B0F7). Bank 0 contains also a reserved sector named TestFlash. The Addresses from 0x08 0000 to 0x08 FFFF are reserved for the Control Register
Interface and other internal service memory space used by the Flash Program/Erase
controller.
The following tables show the memory mapping of the Flash when it is accessed in read
mode (Table 4: Flash modules sectorization (Read operations)), and when accessed in
write or erase mode (Table 5: Flash modules sectorization (Write operations or with
ROMS1=1 or BootStrap mode)): note that with this second mapping, the first four banks
are remapped into code segment 1 (same as obtained setting bit ROMS1 in SYSCON
register).
Table 4.
Bank
Addresses
Size
8 KB
8 KB
8 KB
8 KB
32 KB
64 KB
64 KB
64 KB
B0
Table 5.
Bank
B0
32-bit (I-BUS)
Addresses
Size
8 KB
8 KB
8 KB
8 KB
8 KB
32-bit (I-BUS)
Table 5 above refers to the configuration when bit ROMS1 of SYSCON register is set.
29/188
ST10F272B/ST10F272E
Write accesses must be made with addresses starting in segment 1 from 01'0000h,
whatever ROMS1 bit in SYSCON value
In Bootstrap mode, by default ROMS1 = 0, so the first 32KBytes of IFlash are mapped in
segment 0.
Example:
In default configuration, to program address 0, user must put the value 01'0000h in the
FARL and FARH registers, but to verify the content of the address 0 a read to 00'0000h
must be performed.
Next Table 6 shows the Control Register interface composition: this set of registers can be
addressed by the CPU.
Table 6.
Name
5.2.3
Description
Addresses
Size
FCR1-0
8 byte
FDR1-0
8 byte
FAR
4 byte
FER
2 byte
FNVWPIR
2 byte
FNVAPR0
2 byte
FNVAPR1
4 byte
XFVTAUR0
Bus
size
16-bit
Note:
30/188
ST10F272B/ST10F272E
5.3
Write operation
The Flash module have one single register interface mapped in the memory space of the
IBUS (0x08 0000 to 0x08 0015). All the operations are enabled through four 16-bit control
registers: Flash Control Register 1-0 High/Low (FCR1H/L-FCR0H/L). Eight other 16-bit
registers are used to store Flash Address and Data for Program operations (FARH/L and
FDR1H/L-FDR0H/L) and Write Operation Error flags (FERH/L). All registers are accessible
with 8 and 16-bit instructions (since operates in 16-bit mode when in read/ write).
Before accessing the IFlash module (and consequently also the Flash register to be used
for program/erasing operations), bit ROMEN in SYSCON register shall be set.
During a Flash write operation any attempt to read the flash itself, that is under modification,
will output invalid data (software trap 009Bh). This means that the Flash is not fetchable
when a programming operation is active: the write operation commands must be executed
from another memory (internal RAM or external memory), as in ST10F269 device. In fact,
due to IBUS characteristics, it is not possible to perform a write operation on IFLASH, when
fetching code from IFLASH.
Direct addressing is not allowed for write accesses to IFLASH Control Registers.
During a Write operation, when bit LOCK of FCR0 is set, it is forbidden to write into the
Flash Control Registers.
31/188
ST10F272B/ST10F272E
5.4
Registers description
5.4.1
14
13
12
11
10
reserved
LOCK
res.
res.
BSY0
res.
Table 7.
Bit
32/188
Function
BSY0
LOCK
ST10F272B/ST10F272E
5.4.2
15
14
WMS
SUSP
RW
RW
Table 8.
13
12
11
WPG DWPG
SER
RW
RW
RW
FCR
reserved
reserved
SPR
RW
Bit
Function
SPR
Set Protection
This bit must be set to select the Set Protection operation. The Set Protection
operation allows to program 0s in place of 1s in the Flash Non Volatile Protection
Registers. The Flash Address in which to program must be written in the FARH/L
registers, while the Flash Data to be programmed must be written in the FDR0H/L
before starting the execution by setting bit WMS. A sequence error is flagged by bit
SEQER of FER if the address written in FARH/L is not in the range 0x0E8FB00x08DFBF. SPR bit is automatically reset at the end of the Set Protection
operation.
SER
Sector Erase
This bit must be set to select the Sector Erase operation in the Flash modules. The
Sector Erase operation allows to erase all the Flash locations to value 0xFF. From
1 to all the sectors of the same Bank (excluded Test-Flash for Bank B0) can be
selected to be erased through bits BxFy of FCR1H/L registers before starting the
execution by setting bit WMS. It is not necessary to pre-program the sectors to
0x00, because this is done automatically. SER bit is automatically reset at the end
of the Sector Erase operation.
DWPG
WPG
Word Program
This bit must be set to select the Word (32 bits) Program operation in the Flash
module. The Word Program operation allows to program 0s in place of 1s. The
Flash Address to be programmed must be written in the FARH/L registers, while
the Flash Data to be programmed must be written in the FDR0H/L registers before
starting the execution by setting bit WMS. WPG bit is automatically reset at the end
of the Word Program operation.
33/188
ST10F272B/ST10F272E
Flash control register 0 high (continued)
Bit
5.4.3
Function
SUSP
Suspend
This bit must be set to suspend the current Program (Word or Double Word) or
Sector Erase operation in order to read data in one of the Sectors of the Bank
under modification or to program data in another Bank. The Suspend operation
resets the Flash Bank to normal read mode (automatically resetting bit BSY0).
When in Program Suspend, the Flash module accepts only the following
operations: Read and Program Resume. When in Erase Suspend the module
accepts only the following operations: Read, Erase Resume and Program (Word or
Double Word; Program operations cannot be suspended during Erase Suspend).
To resume a suspended operation, the WMS bit must be set again, together with
the selection bit corresponding to the operation to resume (WPG, DWPG, SER).
Note: It is forbidden to start a new Write operation with bit SUSP already set.
WMS
15
14
13
12
FCR
10
reserved
34/188
RS
RS
RS
RS
RS
RS
RS
Bit
B0F(7:0)
Table 9.
Function
Bank 0 IFLASH Sector 9:0 Status
These bits must be set during a Sector Erase operation to select the sectors to
erase in Bank 0. Besides, during any erase operation, these bits are automatically
set and give the status of the 8 sectors of Bank 0 (B0F7-B0F0). The meaning of
B0Fy bit for Sector y of Bank 0 is given by the next Table 4 Banks (BxS) and
Sectors (BxFy) Status bits meaning. These bits are automatically reset at the end
of a Write operation if no errors are detected.
ST10F272B/ST10F272E
5.4.4
15
14
13
12
FCR
10
reserved
B0S
reserved
RS
Table 10.
Bit
Function
Bank 0 Status (IFLASH)
During any erase operation, this bit is automatically modified and gives the status
of the Bank 0. The meaning of B0S bit is given in the next Table 4 Banks (BxS) and
Sectors (BxFy) Status bits meaning. This bit is automatically reset at the end of a
erase operation if no errors are detected.
B0S
During any erase operation, this bit is automatically set and gives the status of the Bank 0.
The meaning of B0Fy bit for Sector y of Bank 0 is given by the next Table 4 Banks (BxS) and
Sectors (BxFy) Status bits meaning. These bits are automatically reset at the end of an
erase operation if no errors are detected.
Table 11.
5.4.5
ERR
SUSP
B0S = 1 meaning
B0Fy = 1 meaning
Dont care
Dont care
15
14
13
12
FCR
10
DIN15 DIN14 DIN13 DIN12 DIN11 DIN10 DIN9 DIN8 DIN7 DIN6 DIN5 DIN4 DIN3 DIN2 DIN1 DIN0
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
35/188
ST10F272B/ST10F272E
Flash data register 0 low
Bit
Function
Data Input 15:0
These bits must be written with the Data to program the Flash with the following
operations: Word Program (32-bit), Double Word Program (64-bit) and Set
Protection.
DIN(15:0)
5.4.6
15
14
13
12
FCR
10
DIN31 DIN30 DIN29 DIN28 DIN27 DIN26 DIN25 DIN24 DIN23 DIN22 DIN21 DIN20 DIN19 DIN18 DIN17 DIN16
RW
RW
Table 13.
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Bit
Function
Data Input 31:16
These bits must be written with the Data to program the Flash with the following
operations: Word Program (32-bit), Double Word Program (64-bit) and Set
Protection.
DIN(31:16)
5.4.7
RW
15
14
13
12
FCR
10
DIN15 DIN14 DIN13 DIN12 DIN11 DIN10 DIN9 DIN8 DIN7 DIN6 DIN5 DIN4 DIN3 DIN2 DIN1 DIN0
RW
RW
Table 14.
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Bit
Function
Data Input 15:0
These bits must be written with the Data to program the Flash with the following
operations: Word Program (32-bit), Double Word Program (64-bit) and Set
Protection.
DIN(15:0)
5.4.8
RW
15
14
13
12
FCR
10
DIN31 DIN30 DIN29 DIN28 DIN27 DIN26 DIN25 DIN24 DIN23 DIN22 DIN21 DIN20 DIN19 DIN18 DIN17 DIN16
RW
36/188
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
ST10F272B/ST10F272E
Table 15.
Bit
Function
Data Input 31:16
These bits must be written with the Data to program the Flash with the following
operations: Word Program (32-bit), Double Word Program (64-bit) and Set
Protection.
DIN(31:16)
5.4.9
15
14
13
FCR
11
10
RW
Table 16.
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
reserved
RW
Bit
Function
Address 15:2
These bits must be written with the Address of the Flash location to program in the
following operations: Word Program (32-bit) and Double Word Program (64-bit). In
Double Word Program bit ADD2 must be written to 0.
ADD(15:2)
5.4.10
RW
14
13
FCR
12
11
10
reserved
RW
RW
RW
RW
Bit
ADD(20:16)
RW
Table 17.
Function
Address 20:16
These bits must be written with the Address of the Flash location to program in the
following operations: Word Program and Double Word Program.
37/188
5.4.11
ST10F272B/ST10F272E
14
13
12
11
10
reserved
RC
RC
reserved
RC
RC
RC
0
ERR
RC
Bit
38/188
RC
Table 18.
FCR
Function
ERR
Write Error
This bit is automatically set when an error occurs during a Flash write operation or
when a bad write operation setup is done. Once the error has been discovered and
understood, ERR bit must be software reset.
ERER
Erase Error
This bit is automatically set when an Erase error occurs during a Flash write
operation. This error is due to a real failure of a Flash cell, that can no more be
erased. This kind of error is fatal and the sector where it occurred must be
discarded. This bit has to be software reset.
PGER
Program Error
This bit is automatically set when a Program error occurs during a Flash write
operation. This error is due to a real failure of a Flash cell, that can no more be
programmed. The word where this error occurred must be discarded. This bit has
to be software reset.
10ER
1 over 0 Error
This bit is automatically set when trying to program at 1 bits previously set at 0 (this
does not happen when programming the Protection bits). This error is not due to a
failure of the Flash cell, but only flags that the desired data has not been written.
This bit has to be software reset.
SEQER
Sequence Error
This bit is automatically set when the control registers (FCR1H/L-FCR0H/L,
FARH/L, FDR1H/L-FDR0H/L) are not correctly filled to execute a valid Write
Operation. In this case no Write Operation is executed. This bit has to be software
reset.
RESER
Resume Error
This bit is automatically set when a suspended Program or Erase operation is not
resumed correctly due to a protocol error. In this case the suspended operation is
aborted. This bit has to be software reset.
WPF
ST10F272B/ST10F272E
5.5
Protection strategy
The protection bits are stored in Non Volatile Flash cells inside IFLASH module, that are
read once at reset and stored in 4 Volatile registers. Before they are read from the Non
Volatile cells, all the available protections are forced active during reset.
The protections can be programmed using the Set Protection operation (see Flash Control
Registers paragraph), that can be executed from all the internal or external memories
except from the Flash itself.
Two kind of protections are available: write protections to avoid unwanted writings and
access protections to avoid piracy. In next paragraphs all different level of protections are
shown, and architecture limitations are highlighted as well.
5.5.1
Protection registers
The 4 Non Volatile Protection Registers are one time programmable for the user.
One register (FNVWPIR) is used to store the Write Protection fuses respectively for each
sector IFLASH module. The other three Registers (FNVAPR0 and FNVAPR1L/H) are used
to store the Access Protection fuses.
5.5.2
14
13
12
NVR
11
reserved
10
RW
RW
RW
RW
RW
RW
RW
Bit
W0P(9:0)
W0P7W0P6W0P5W0P4W0P3W0P2W0P1W0P0
RW
Table 19.
Function
Write Protection Bank 0 / Sectors 9-0 (IFLASH)
These bits, if programmed at 0, disable any write access to the sectors of Bank 0
(IFLASH)
39/188
5.5.3
ST10F272B/ST10F272E
14
13
12
NVR
11
10
reserved
DBGP ACCP
RW
Table 20.
RW
Bit
5.5.4
Function
ACCP
Access Protection
This bit, if programmed at 0, disables any access (read/write) to data mapped
inside IFlash Module address space, unless the current instruction is fetched from
IFlash.
DBGP
Debug Protection
This bit, if erased at 1, allows to by-pass all the protections using the Debug
features through the Test Interface. If programmed at 0, on the contrary, all the
debug features, the Test Interface and all the Flash Test Modes are disabled. Even
STMicroelectronics will not be able to access the device to run any eventual failure
analysis.
14
13
12
NVR
11
10
PDS15PDS14PDS13 PDS12 PDS11 PDS10 PDS9 PDS8 PDS7 PDS6 PDS5 PDS4 PDS3 PDS2 PDS1 PDS0
RW
RW
Table 21.
RW
RW
RW
RW
RW
RW
RW
40/188
RW
RW
RW
RW
RW
RW
Bit
PDS(15:0)
RW
Function
Protections Disable 15-0
If bit PDSx is programmed at 0 and bit PENx is erased at 1, the action of bit ACCP
is disabled. Bit PDS0 can be programmed at 0 only if both bits DBGP and ACCP
have already been programmed at 0. Bit PDSx can be programmed at 0 only if bit
PENx-1 has already been programmed at 0.
ST10F272B/ST10F272E
5.5.5
14
13
12
NVR
11
10
PEN15PEN14PEN13PEN12PEN11PEN10 PEN9 PEN8 PEN7 PEN6 PEN5 PEN4 PEN3 PEN2 PEN1 PEN0
RW
RW
Table 22.
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Bit
Function
Protections Enable 15-0
If bit PENx is programmed at 0 and bit PDSx+1 is erased at 1, the action of bit
ACCP is enabled again. Bit PENx can be programmed at 0 only if bit PDSx has
already been programmed at 0.
PEN15-0
5.5.6
RW
14
13
12
NVR
11
10
0
TAUB
reserved
Table 23.
Bit
TAUB
5.5.7
RW
Function
Temporary Access Unprotection bit
If this bit is set to 1, the Access Protection is temporary disabled.
This bit can be written only executing from IFlash.This fact guarantees that only a
code executed in IFlash, can unprotect the IFlash, when it is Access Protected.
Access protection
The I-Flash module has one level of access protection (access to data both in Reading and
Writing): if bit ACCP of FNVAPR0 is programmed at 0 and bit TAUB in XFVTAUR0 is set at
0, the I-Flash module becomes access protected: data in the I-Flash module can be read
only if the current execution is from the I-Flash module itself.
To enable Access Protection, the following sequence of operations is recommended:
Access Protection is active when both ACCP bit and TAUB bit are set to 0.
41/188
ST10F272B/ST10F272E
the Flash has to be temporary unprotected (See Section 5.5.9: Temporary unprotection).
Trying to write into the access protected Flash from internal RAM or external memories is
unsuccessful. Trying to read into the access protected Flash from internal RAM or external
memories will output a dummy data (software trap 0x009Bh).
When the Flash module is protected in access, also the data access through PEC of a
peripheral is forbidden. To read/write data in PEC mode from/to a protected Bank, first it is
necessary to temporary unprotect the Flash module.
In Table 24 there is a summary of all levels of possible Access protection is reported: in
particular, supposing to enable all possible access protections, when fetching from a
memory as listed in the first column, what is possible and what is not possible to do (see
column headers) is shown in the table.
Table 24.
Read FLASH
Registers
Write FLASH
Registers
Yes / Yes
Yes / Yes
Yes
No
No / Yes
Yes / Yes
Yes
No
No / Yes
Yes / Yes
Yes
No
No / Yes
Yes / Yes
Yes
No
When the Access Protection is enabled, Flash registers can not be written, so no
program/erase operation can be run on I-Flash. To enable the access to registers again, the
Temporary Access Unprotection procedure has to be followed (see Section 5.5.9).
5.5.8
Write protection
The Flash modules have one level of Write Protections: each Sector of each Bank of each
Flash Module can be Software Write Protected by programming at 0 the related bit W0Px in
FNVWPIRL register.
5.5.9
Temporary unprotection
Bits W0Px of FNVWPIRL can be temporary unprotected by executing the Set Protection
operation and by writing 1 into these bits.
To restore the write protection bits it is necessary to reset the microcontroller or to execute a
Set Protection operation and write 0 into the desired bits.
In reality, when a temporary write unprotection operation is executed, the corresponding
volatile register is written to 1, while the non volatile registers bits previously written to 0 (for
a protection set operation), will continue to maintain the 0. For this reason, the User
software must be in charge to track the current write protection status (for instance using a
specific RAM area), it is not possible to deduce it by reading the non volatile register content
(a temporary unprotection cannot be detected).
To temporary unprotect the Flash when the Access Protection is active, it is necessary to set
at 1 the bit TAUB in XFVTAUR0. This bit can be write at 1, only executing from Flash: in this
way only an instruction executed from Flash can unprotect the Flash itself.
42/188
ST10F272B/ST10F272E
43/188
5.6
ST10F272B/ST10F272E
Note:
The write operation commands must be executed from another memory (internal RAM or
external memory), as in ST10F269 device. In fact, due to IBus characteristics, it is not
possible to perform write operation in Flash while fetching code from Flash.
Moreover, direct addressing is not allowed for write accesses to IFlash control registers.
This means that both address and data for a writing operation must be loaded in one of
ST10 GPR register (R0...R15).
Write operation on IBus registers is 16 bit wide.
RWm, #ADDRESS;
RWn, #DATA;
[RWm], RWn;
Word program
Example: 32-bit Word Program of data 0xAAAAAAAA at address 0x025554
FCR0H|=
FARL =
FARH =
FDR0L =
FDR0H =
FCR0H|=
0x2000;
0x5554;
0x0002;
0xAAAA;
0xAAAA;
0x8000;
|= 0x1000;
= 0x5558;
= 0x0003;
= 0x55AA;
= 0x55AA;
= 0xAA55;
= 0xAA55;
|= 0x8000;
/*Set DWPG/
/*Load Add in FARL*/
/*Load Add in FARH*/
/*Load Data in FDR0L*/
/*Load Data in FDR0H*/
/*Load Data in FDR1L*/
/*Load Data in FDR1H*/
/*Operation start*/
Double Word Program is always performed on the Double Word aligned on a even Word: bit
ADD2 of FARL is ignored.
Sector erase
Example: Sector Erase of sectors B0F1 and B0F0 of Bank 0 in IFLASH Module.
FCR0H
FCR1L
FCR0H
44/188
|= 0x0800;
|= 0x0003;
|= 0x8000;
ST10F272B/ST10F272E
|= 0x4000;
|= 0x0800;
|= 0x8000;
Before resuming a suspended Erase, FCR1H/FCR1L must be read to check if the Erase is
already completed (FCR1H = FCR1L = 0x0000 if Erase is complete). Original setup of
Select Operation bits in FCR0H/L must be restored before the operation resume, otherwise
the operation is aborted and bit RESER of FER is set.
|= 0x0800;
|= 0x0002;
|= 0x8000;
45/188
ST10F272B/ST10F272E
To perform a Word Program operation during Erase Suspend, firstly bits SUSP and
SER must be reset, then bit WPG and WMS can be set.
To resume the Sector Erase operation bit SER must be set again.
In any case it is forbidden to start any write operation with SUSP bit already set.
Set protection
Example 1: Enable Write Protection of sectors B0F3-0 of Bank 0 in IFLASH module.
FCR0H
FARL
FARH
FDR0L
FDR0H
FCR0H
|=
=
=
=
=
|=
0x0100;
0xDFB4;
0x0008;
0xFFF0;
0xFFFF;
0x8000;
|=
=
=
=
|=
0x0100;
0xDFB8;
0x0008;
0xFFFC;
0x8000;
Example 4: Enable again in a permanent way Access and Debug Protection, after having
disabled them.
XFVTAUR0 = 0x0001;
FCR0H
|= 0x0100;
FARL
= 0xDFBC;
FARH
= 0x0008;
FDR0H
= 0xFFFE;
PEN0*/
FCR0H
|= 0x8000;
XFVTAUR0 = 0x0000;
Disable and re-enable of Access and Debug Protection in a permanent way (as shown by
examples 3 and 4) can be done for a maximum of 16 times.
46/188
ST10F272B/ST10F272E
5.7
The first instruction is used to select the desired operation by setting its corresponding
selection bit in the Flash Control Register 0.
2.
The second step is the definition of the Address and Data for programming or the
Sectors or Banks to erase.
3.
The last instruction is used to start the write operation, by setting the start bit WMS in
the FCR0.
Once selected, but not yet started, one operation can be canceled by resetting the operation
selection bit.
A summary of the available Flash Module Write Operations are shown in the following
Table 25.
Table 25.
Select bit
Start bit
WPG
FARL/FARH
FDR0L/FDR0H
WMS
DWPG
FARL/FARH
FDR0L/FDR0H
FDR1L/FDR1H
WMS
Sector Erase
SER
FCR1L/FCR1H
WMS
Set Protection
SPR
FDR0L/FDR0H
WMS
SUSP
None
None
Program/Erase Suspend
47/188
Bootstrap loader
ST10F272B/ST10F272E
Bootstrap loader
ST10F272 implements Boot capabilities in order to:
6.1
Support bootstrap via UART or bootstrap via CAN for the standard bootstrap.
Decoding of reset configuration (P0L.5 = 1, P0L.4 = 1) will select the normal mode
(also called User Mode) and select the user Flash to be mapped from address
000000h.
if the User mode signature in the User Flash is programmed correctly, then a
software reset sequence is selected and the User code is executed;
if the User mode signature is not programmed correctly in the user Flash, then the
User key location is read again. Its value will determine which communication
channel will be enabled for bootstraping
Table 26.
6.2
P0.5
P0.4
ST10 decoding
Standard Bootstrap Loader: User Flash mapped from 000000h, code fetches
redirected to Test-Flash at 000000h
Selective Boot Mode: User Flash mapped from 000000h, code fetches
redirected to Test-Flash at 000000h (different sequence execution in respect of
Standard Bootstrap Loader)
Reserved
48/188
ST10F272B/ST10F272E
Bootstrap loader
6.3
6.3.1
6.3.2
6.3.3
49/188
ST10F272B/ST10F272E
Figure 6.
.%\WH
)ODVK
PHPRU\
([HF8QLW
,QVWU3WU
6WDJH
3LSHOLQH
36:
6<6&21
0'+
0'/
0XO'LY+:
%LW0DVN*HQ
$/8
.%\WH
,QWHUQDO
5$0
5
%DQN
Q
*HQHUDO
3XUSRVH
5HJLVWHUV
%LW
%DUUHO6KLIW
&3
5
%DQN
L
%86&21
%86&21
%86&21
%86&21
%86&21
$''56(/
$''56(/
$''56(/
$''56(/
'DWD3J3WUV
&RGH6HJ3WU
%DQN
*$3*5,
50/188
ST10F272B/ST10F272E
7.1
*353RLQWHUV
2SHUDQG
,';3RLQWHU
,';3RLQWHU
45*352IIVHW5HJLVWHU
45*352IIVHW5HJLVWHU
4;,';2IIVHW5HJLVWHU
4;,';2IIVHW5HJLVWHU
[
VLJQHGXQVLJQHG
0XOWLSOLHU
&RQFDWHQDWLRQ
0X[
6LJQ([WHQG
05:
6FDOHU
K
5HSHDW8QLW
,QWHUUXSW
&RQWUROOHU
K
0X[
0X[
0&:
$
%
ELW6LJQHG$ULWKPHWLF8QLW
67&38
06:
&RQWURO8QLW
K
)ODJV 0$(
0$+
0$/
1RWH 6KDUHGZLWKVWDQGDUG$/8
ELW/HIW5LJKW
6KLIWHU
*$3*5,
51/188
7.2
ST10F272B/ST10F272E
Mnemonic
52/188
Description
Bytes
ADD(B)
2/4
ADDC(B)
2/4
SUB(B)
2/4
SUBC(B)
2/4
MUL(U)
DIV(U)
DIVL(U)
CPL(B)
NEG(B)
AND(B)
2/4
OR(B)
2/4
XOR(B)
2/4
BCLR
BSET
BMOV(N)
BCMP
BFLDH/L
CMP(B)
2/4
CMPD1/2
2/4
CMPI1/2
2/4
PRIOR
SHL / SHR
ROL / ROR
ASHR
MOV(B)
2/4
MOVBS
2/4
MOVBZ
2/4
JMPS
ST10F272B/ST10F272E
Table 27.
Mnemonic
Description
Bytes
J(N)B
JBC
JNBS
CALLA, CALLI,
CALLR
CALLS
PCALL
Push direct word register onto system stack and call absolute
subroutine
TRAP
PUSH, POP
SCXT
Push direct word register onto system stack and update register
with word operand
RET
RETS
RETP
RETI
SRST
Software Reset
IDLE
PWRDN
SRVWDT
DISWDT
EINIT
ATOMIC
EXTR
EXTP(R)
2/4
EXTS(R)
2/4
NOP
Null operation
53/188
7.3
ST10F272B/ST10F272E
54/188
Description
CoABS
CoADD(2)
Addition
CoASHR(rnd)
CoCMP
CoLOAD(-,2)
CoMAC(R,u,s,-,rnd)
CoMACM(R)(u,s,-,rnd)
CoMAX / CoMIN
CoMOV
CoMUL(u,s,-,rnd)
CoNEG(rnd)
CoNOP
No-Operation
CoRND
Round Accumulator
CoSHL / CoSHR
CoSTORE
CoSUB(2,R)
Substraction
ST10F272B/ST10F272E
In demultiplexed bus modes addresses are output on PORT1 and data is input / output on
PORT0 or P0L, respectively. In the multiplexed bus modes both addresses and data use
PORT0 for input / output.
Timing characteristics of the external bus interface (memory cycle time, memory tri-state
time, length of ALE and read / write delay) are programmable giving the choice of a wide
range of memories and external peripherals.
Up to four independent address windows may be defined (using register pairs ADDRSELx /
BUSCONx) to access different resources and bus characteristics.
These address windows are arranged hierarchically where BUSCON4 overrides BUSCON3
and BUSCON2 overrides BUSCON1.
All accesses to locations not covered by these four address windows are controlled by
BUSCON0. Up to five external CS signals (four windows plus default) can be generated in
order to save external glue logic. Access to very slow memories is supported by a Ready
function.
A HOLD / HLDA protocol is available for bus arbitration which shares external resources
with other bus masters.
The bus arbitration is enabled by setting bit HLDEN in register PSW. After setting HLDEN
once, pins P6.7...P6.5 (BREQ, HLDA, HOLD) are automatically controlled by the EBC. In
master mode (default after reset) the HLDA pin is an output. By setting bit DP6.7 to1 the
slave mode is selected where pin HLDA is switched to input. This directly connects the
slave controller to another master controller without glue logic.
For applications which require less external memory space, the address space can be
restricted to 1 Mbyte, 256 Kbytes or to 64 Kbytes. Port 4 outputs all eight address lines if an
address space of 16M Bytes is used, otherwise four, two or no address lines.
Chip select timing can be made programmable. By default (after reset), the CSx lines
change half a CPU clock cycle after the rising edge of ALE. With the CSCFG bit set in the
SYSCON register the CSx lines change with the rising edge of ALE.
The active level of the READY pin can be set by bit RDYPOL in the BUSCONx registers.
When the READY function is enabled for a specific address window, each bus cycle within
the window must be terminated with the active level defined by bit RDYPOL in the
associated BUSCON register.
55/188
Interrupt system
ST10F272B/ST10F272E
Interrupt system
The interrupt response time for internal program execution is from 78ns to 187.5ns at
64 MHz CPU clock.
The ST10F272 architecture supports several mechanisms for fast and flexible response to
service requests that can be generated from various sources (internal or external) to the
microcontroller. Any of these interrupt requests can be serviced by the Interrupt Controller or
by the Peripheral Event Controller (PEC).
In contrast to a standard interrupt service where the current program execution is
suspended and a branch to the interrupt vector table is performed, just one cycle is stolen
from the current CPU activity to perform a PEC service. A PEC service implies a single Byte
or Word data transfer between any two memory locations with an additional increment of
either the PEC source or destination pointer. An individual PEC transfer counter is implicitly
decremented for each PEC service except when performing in the continuous transfer
mode. When this counter reaches zero, a standard interrupt is performed to the
corresponding source related vector location. PEC services are very well suited to perform
the transmission or the reception of blocks of data. The ST10F272 has 8 PEC channels,
each of them offers such fast interrupt-driven data transfer capabilities.
An interrupt control register which contains an interrupt request flag, an interrupt enable flag
and an interrupt priority bit-field is dedicated to each existing interrupt source. Thanks to its
related register, each source can be programmed to one of sixteen interrupt priority levels.
Once starting to be processed by the CPU, an interrupt service can only be interrupted by a
higher prioritized service request. For the standard interrupt processing, each of the
possible interrupt sources has a dedicated vector location.
Software interrupts are supported by means of the TRAP instruction in combination with an
individual trap (interrupt) number.
Fast external interrupt inputs are provided to service external interrupts with high precision
requirements. These fast interrupt inputs feature programmable edge detection (rising edge,
falling edge or both edges).
Fast external interrupts may also have interrupt sources selected from other peripherals; for
example the CANx controller receive signals (CANx_RxD) and I2C serial clock signal can be
used to interrupt the system.
Table 29 shows all the available ST10F272 interrupt sources and the corresponding
hardware-related interrupt flags, vectors, vector locations and trap (interrupt) numbers:
Table 29.
Interrupt sources
Source of Interrupt or
PEC Service Request
56/188
Request
Flag
Enable
Flag
Interrupt
Vector
Vector
Location
Trap
Number
CAPCOM Register 0
CC0IR
CC0IE
CC0INT
000040h
10h
CAPCOM Register 1
CC1IR
CC1IE
CC1INT
000044h
11h
CAPCOM Register 2
CC2IR
CC2IE
CC2INT
000048h
12h
CAPCOM Register 3
CC3IR
CC3IE
CC3INT
00004Ch
13h
CAPCOM Register 4
CC4IR
CC4IE
CC4INT
000050h
14h
CAPCOM Register 5
CC5IR
CC5IE
CC5INT
000054h
15h
ST10F272B/ST10F272E
Table 29.
Interrupt system
Interrupt sources (continued)
Source of Interrupt or
PEC Service Request
Request
Flag
Enable
Flag
Interrupt
Vector
Vector
Location
Trap
Number
CAPCOM Register 6
CC6IR
CC6IE
CC6INT
000058h
16h
CAPCOM Register 7
CC7IR
CC7IE
CC7INT
00005Ch
17h
CAPCOM Register 8
CC8IR
CC8IE
CC8INT
000060h
18h
CAPCOM Register 9
CC9IR
CC9IE
CC9INT
000064h
19h
CAPCOM Register 10
CC10IR
CC10IE
CC10INT
000068h
1Ah
CAPCOM Register 11
CC11IR
CC11IE
CC11INT
00006Ch
1Bh
CAPCOM Register 12
CC12IR
CC12IE
CC12INT
000070h
1Ch
CAPCOM Register 13
CC13IR
CC13IE
CC13INT
000074h
1Dh
CAPCOM Register 14
CC14IR
CC14IE
CC14INT
000078h
1Eh
CAPCOM Register 15
CC15IR
CC15IE
CC15INT
00007Ch
1Fh
CAPCOM Register 16
CC16IR
CC16IE
CC16INT
0000C0h
30h
CAPCOM Register 17
CC17IR
CC17IE
CC17INT
0000C4h
31h
CAPCOM Register 18
CC18IR
CC18IE
CC18INT
0000C8h
32h
CAPCOM Register 19
CC19IR
CC19IE
CC19INT
0000CCh
33h
CAPCOM Register 20
CC20IR
CC20IE
CC20INT
0000D0h
34h
CAPCOM Register 21
CC21IR
CC21IE
CC21INT
0000D4h
35h
CAPCOM Register 22
CC22IR
CC22IE
CC22INT
0000D8h
36h
CAPCOM Register 23
CC23IR
CC23IE
CC23INT
0000DCh
37h
CAPCOM Register 24
CC24IR
CC24IE
CC24INT
0000E0h
38h
CAPCOM Register 25
CC25IR
CC25IE
CC25INT
0000E4h
39h
CAPCOM Register 26
CC26IR
CC26IE
CC26INT
0000E8h
3Ah
CAPCOM Register 27
CC27IR
CC27IE
CC27INT
0000ECh
3Bh
CAPCOM Register 28
CC28IR
CC28IE
CC28INT
0000F0h
3Ch
CAPCOM Register 29
CC29IR
CC29IE
CC29INT
000110h
44h
CAPCOM Register 30
CC30IR
CC30IE
CC30INT
000114h
45h
CAPCOM Register 31
CC31IR
CC31IE
CC31INT
000118h
46h
CAPCOM Timer 0
T0IR
T0IE
T0INT
000080h
20h
CAPCOM Timer 1
T1IR
T1IE
T1INT
000084h
21h
CAPCOM Timer 7
T7IR
T7IE
T7INT
0000F4h
3Dh
CAPCOM Timer 8
T8IR
T8IE
T8INT
0000F8h
3Eh
GPT1 Timer 2
T2IR
T2IE
T2INT
000088h
22h
GPT1 Timer 3
T3IR
T3IE
T3INT
00008Ch
23h
GPT1 Timer 4
T4IR
T4IE
T4INT
000090h
24h
GPT2 Timer 5
T5IR
T5IE
T5INT
000094h
25h
57/188
Interrupt system
Table 29.
ST10F272B/ST10F272E
Interrupt sources (continued)
Source of Interrupt or
PEC Service Request
Request
Flag
Enable
Flag
Interrupt
Vector
Vector
Location
Trap
Number
GPT2 Timer 6
T6IR
T6IE
T6INT
000098h
26h
CRIR
CRIE
CRINT
00009Ch
27h
ADCIR
ADCIE
ADCINT
0000A0h
28h
ADEIR
ADEIE
ADEINT
0000A4h
29h
ASC0 Transmit
S0TIR
S0TIE
S0TINT
0000A8h
2Ah
S0TBIR
S0TBIE
S0TBINT
00011Ch
47h
ASC0 Receive
S0RIR
S0RIE
S0RINT
0000ACh
2Bh
ASC0 Error
S0EIR
S0EIE
S0EINT
0000B0h
2Ch
SSC Transmit
SCTIR
SCTIE
SCTINT
0000B4h
2Dh
SSC Receive
SCRIR
SCRIE
SCRINT
0000B8h
2Eh
SSC Error
SCEIR
SCEIE
SCEINT
0000BCh
2Fh
PWMIR
PWMIE
PWMINT
0000FCh
3Fh
XP0IR
XP0IE
XP0INT
000100h
40h
XP1IR
XP1IE
XP1INT
000104h
41h
XP2IR
XP2IE
XP2INT
000108h
42h
XP3IR
XP3IE
XP3INT
00010Ch
43h
Hardware traps are exceptions or error conditions that arise during run-time. They cause
immediate non-maskable system reaction similar to a standard interrupt service (branching
to a dedicated vector table location).
The occurrence of a hardware trap is additionally signified by an individual bit in the trap flag
register (TFR). Except when another higher prioritized trap service is in progress, a
hardware trap will interrupt any other program execution. Hardware trap services cannot not
be interrupted by standard interrupt or by PEC interrupts.
9.1
X-Peripheral interrupt
The limited number of X-Bus interrupt lines of the present ST10 architecture, imposes some
constraints on the implementation of the new functionality. In particular, the additional XPeripherals SSC1, ASC1, I2C, PWM1 and RTC need some resources to implement
interrupt and PEC transfer capabilities. For this reason, a multiplexed structure for the
interrupt management is proposed. In the next Figure 8, the principle is explained through a
simple diagram, which shows the basic structure replicated for each of the four X-interrupt
available vectors (XP0INT, XP1INT, XP2INT and XP3INT).
It is based on a set of 16-bit registers XIRxSEL (x=0,1,2,3), divided in two portions each:
58/188
Byte High
XIRxSEL[15:8]
Byte Low
XIRxSEL[7:0]
ST10F272B/ST10F272E
Interrupt system
When different sources submit an interrupt request, the enable bits (Byte High of XIRxSEL
register) define a mask which controls which sources will be associated with the unique
available vector. If more than one source is enabled to issue the request, the service routine
will have to take care to identify the real event to be serviced. This can easily be done by
checking the flag bits (Byte Low of XIRxSEL register). Note that the flag bits can also
provide information about events which are not currently serviced by the interrupt controller
(since masked through the enable bits), allowing an effective software management also in
absence of the possibility to serve the related interrupt request: a periodic polling of the flag
bits may be implemented inside the user application.
Figure 8.
)ODJ> @
,76RXU FH
,76RXU FH
,76RXU FH
,76RXU FH
;3[,&;3[,5[
,76RXU FH
,76RXU FH
,76RXU FH
,76RXU FH
(QDEOH>@
*$3*5,
The Table 30 summarizes the mapping of the different interrupt sources which shares the
four X-interrupt vectors.
Table 30.
CAN1 Interrupt
XP1INT
XP2INT
CAN2 Interrupt
x
x
I2C Receive
I2C Transmit
I2C Error
SSC1 Receive
SSC1 Transmit
SSC1 Error
ASC1 Receive
XP3INT
x
x
59/188
Interrupt system
Table 30.
ST10F272B/ST10F272E
X-Interrupt detailed mapping (continued)
XP0INT
XP1INT
XP2INT
ASC1 Transmit
ASC1 Error
9.2
XP3INT
Trap priorities
Trap
vector
Vector
location
Trap
number
Trap*
priority
RESET
RESET
RESET
000000h
000000h
000000h
00h
00h
00h
III
III
III
NMI
STKOF
STKUF
NMITRAP
STOTRAP
STUTRAP
000008h
000010h
000018h
02h
04h
06h
II
II
II
UNDOPC
MACTRP
PRTFLT
ILLOPA
ILLINA
ILLBUS
BTRAP
BTRAP
BTRAP
BTRAP
BTRAP
BTRAP
000028h
000028h
000028h
000028h
000028h
000028h
0Ah
0Ah
0Ah
0Ah
0Ah
0Ah
I
I
I
I
I
I
Reserved
[002Ch - 003Ch]
[0Bh - 0Fh]
Software Traps
TRAP Instruction
Any
0000h 01FCh
in steps of 4h
Any
[00h - 7Fh]
Exception condition
Trap
flag
Reset Functions:
Hardware Reset
Software Reset
Watchdog Timer Overflow
Class A Hardware Traps:
Non-Maskable Interrupt
Stack Overflow
Stack Underflow
Class B Hardware Traps:
Undefined Opcode
MAC Interruption
Protected Instruction Fault
Illegal word Operand Access
Illegal Instruction Access
Illegal External Bus Access
Note:
Current
CPU
Priority
* - All the class B traps have the same trap number (and vector) and the same lower priority
compare to the class A traps and to the resets.
- Each class A traps has a dedicated trap number (and vector). They are prioritized in the
second priority level.
- The resets have the highest priority level and the same trap number.
- The PSW.ILVL CPU priority is forced to the highest level (15) when these exceptions are
serviced.
60/188
ST10F272B/ST10F272E
10
61/188
ST10F272B/ST10F272E
Compare modes
Compare
modes
Function
Mode 0
Interrupt-only compare mode; several compare interrupts per timer period are
possible
Mode 1
Pin toggles on each compare match; several compare events per timer period are
possible
Mode 2
Interrupt-only compare mode; only one compare interrupt per timer period is
generated
Mode 3
Pin set 1 on match; pin reset 0 on compare time overflow; only one compare
event per timer period is generated
Double Register Two registers operate on one pin; pin toggles on each compare match; several
Mode
compare events per timer period are possible.
Table 33.
fCPU = 40 MHz
Pre-scaler for
fCPU
000b
001b
010b
011b
100b
101b
110b
111b
16
32
64
128
256
512
1024
312.5
kHz
156.25
kHz
78.125
kHz
39.1
kHz
3.2s
6.4s
12.8s
25.6s
Input Frequency
5MHz
Resolution
200ns
400ns
0.8s
1.6s
Period
13.1ms
26.2ms
52.4ms
104.8
ms
Table 34.
1.678s
fCPU = 64 MHz
000b
001b
010b
011b
100b
101b
110b
111b
16
32
64
128
256
512
1024
Input Frequency
8MHz
4MHz
2MHz
1 kHz
500 kHz
250 kHz
128 kHz
64 kHz
Resolution
125ns
250ns
0.5s
1.0s
2.0s
4.0s
8.0s
16.0s
Period
8.2ms
16.4ms 32.8ms
524.3ms
1.049s
Pre-scaler for
fCPU
62/188
ST10F272B/ST10F272E
11
11.1
GPT1
Each of the three timers T2, T3, T4 of the GPT1 module can be configured individually for
one of four basic modes of operation: timer, gated timer, counter mode and incremental
interface mode.
In timer mode, the input clock for a timer is derived from the CPU clock, divided by a
programmable prescaler.
In counter mode, the timer is clocked in reference to external events.
Pulse width or duty cycle measurement is supported in gated timer mode where the
operation of a timer is controlled by the gate level on an external input pin. For these
purposes, each timer has one associated port pin (TxIN) which serves as gate or clock
input.
Table 35 and Table 36 list the timer input frequencies, resolution and periods for each prescaler option at 40MHz and 64MHz CPU clock respectively.
In Incremental Interface Mode, the GPT1 timers (T2, T3, T4) can be directly connected to
the incremental position sensor signals A and B by their respective inputs TxIN and TxEUD.
Direction and count signals are internally derived from these two input signals so that the
contents of the respective timer Tx corresponds to the sensor position. The third position
sensor signal TOP0 can be connected to an interrupt input.
Timer T3 has output toggle latches (TxOTL) which changes state on each timer over flow /
underflow. The state of this latch may be output on port pins (TxOUT) for time out monitoring
of external hardware components, or may be used internally to clock timers T2 and T4 for
high resolution of long duration measurements.
In addition to their basic operating modes, timers T2 and T4 may be configured as reload or
capture registers for timer T3.
Table 35.
fCPU = 40 MHz
Pre-scaler
factor
Input frequency
000b
001b
010b
011b
100b
101b
110b
111b
16
32
64
128
256
512
1024
5MHz
2.5MHz
1.25
MHz
625 kHz
312.5
kHz
156.25
kHz
78.125
kHz
39.1 kHz
63/188
ST10F272B/ST10F272E
fCPU = 40 MHz
000b
001b
010b
011b
100b
101b
110b
111b
Resolution
200ns
400ns
0.8s
1.6s
3.2s
6.4s
12.8s
25.6s
Period
maximum
13.1ms
26.2ms
52.4ms
104.8
ms
838.9ms
1.678s
Table 36.
209.7ms 419.4ms
fCPU = 64 MHz
000b
001b
010b
011b
100b
101b
110b
111b
Pre-scaler
factor
16
32
64
128
256
512
1024
Input Freq
8MHz
4MHz
2MHz
1 kHz
500 kHz
250 kHz
128 kHz
64 kHz
Resolution
125ns
250ns
0.5s
1.0s
2.0s
4.0s
8.0s
16.0s
Period
maximum
8.2ms
16.4ms
32.8ms
524.3ms
1.049s
Figure 9.
&38&ORFN
8'
7,1
&38&ORFN
7,1
7
0RGH
&RQWURO
*377LPHU7
,QWHUUXSW
5HTXHVW
5HORDG
&DSWXUH
7287
7
0RGH
&RQWURO
*377LPHU7
727/
8'
7(8'
&DSWXUH
7,1
&38&ORFN
7
0RGH
&RQWURO
,QWHUUXSW
5HTXHVW
5HORDG
*377LPHU7
7(8'
,QWHUUXSW
5HTXHVW
8'
*$3*5,
64/188
ST10F272B/ST10F272E
11.2
GPT2
The GPT2 module provides precise event control and time measurement. It includes two
timers (T5, T6) and a capture/reload register (CAPREL). Both timers can be clocked with an
input clock which is derived from the CPU clock via a programmable prescaler or with
external signals. The count direction (up/down) for each timer is programmable by software
or may additionally be altered dynamically by an external signal on a port pin (TxEUD).
Concatenation of the timers is supported via the output toggle latch (T6OTL) of timer T6
which changes its state on each timer overflow/underflow.
The state of this latch may be used to clock timer T5, or it may be output on a port pin
(T6OUT). The overflow / underflow of timer T6 can additionally be used to clock the
CAPCOM timers T0 or T1, and to cause a reload from the CAPREL register. The CAPREL
register may capture the contents of timer T5 based on an external signal transition on the
corresponding port pin (CAPIN), and timer T5 may optionally be cleared after the capture
procedure. This allows absolute time differences to be measured or pulse multiplication to
be performed without software overhead.
The capture trigger (timer T5 to CAPREL) may also be generated upon transitions of GPT1
timer T3 inputs T3IN and/or T3EUD. This is advantageous when T3 operates in Incremental
Interface Mode.
Table 37 and Table 38 list the timer input frequencies, resolution and periods for each prescaler option at 40MHz and 64MHz CPU clock respectively.
Table 37.
fCPU = 40MHz
000b
001b
010b
011b
100b
101b
110b
111b
Pre-scaler
factor
16
32
64
128
256
512
Input Freq
10MHz
5MHz
2.5MHz
1.25
MHz
625 kHz
312.5
kHz
156.25
kHz
78.125
kHz
Resolution
100ns
200ns
400ns
0.8s
1.6s
3.2s
6.4s
12.8s
Period
maximum
6.55ms
13.1ms
26.2ms
52.4ms
Table 38.
838.9ms
fCPU = 64MHz
000b
001b
010b
011b
100b
101b
110b
111b
Pre-scaler
factor
16
32
64
128
256
512
Input Freq
16MHz
8MHz
4MHz
2MHz
1 kHz
500 kHz
250 kHz
128 kHz
Resolution
62.5ns
125ns
250ns
0.5s
1.0s
2.0s
4.0s
8.0s
Period
maximum
4.1ms
8.2ms
16.4ms
32.8ms
65.5ms
131.1ms 262.1ms
524.3ms
65/188
ST10F272B/ST10F272E
8'
QQ
7,1
7
0RGH
&RQWURO
,QWHUUXSW
5HTXHVW
*377LPHU7
&OHDU
&DSWXUH
,QWHUUXSW
5HTXHVW
&$3,1
*37&$35(/
5HORDG
7,1
&38&ORFN
7
0RGH
&RQWURO
,QWHUUXSW
5HTXHVW
7RJJOH))
77/
*377LPHU7
WR&$3&20
7LPHUV
8'
7(8'
66/188
7287
*$3*5,
ST10F272B/ST10F272E
12
PWM modules
PWM modules
Two pulse width modulation modules are available on ST10F272: standard PWM0 and
XBUS PWM1. They can generate up to four PWM output signals each, using edge-aligned
or centre-aligned PWM. In addition, the PWM modules can generate PWM burst signals
and single shot outputs. The Table 39 and Table 40 show the PWM frequencies for different
resolutions. The level of the output signals is selectable and the PWM modules can
generate interrupt requests.
Figure 11.
&RPSDUDWRU
&ORFN
&ORFN
,QSXW
&RQWURO
37[
ELW8S'RZQ&RXQWHU
5XQ
&RPSDUDWRU
8S'RZQ
&OHDU&RQWURO
0DWFK
3287[
2XWSXW&RQWURO
(QDEOH
6KDGRZ5HJLVWHU
8VHUUHDGDEOHZULWHDEOHUHJLVWHU
:ULWH&RQWURO
3:[3XOVH:LGWK5HJLVWHU
*$3*5,
Table 39.
Mode 0
Resolution
8-bit
10-bit
12-bit
14-bit
16-bit
CPU Clock/1
25ns
156.25 kHz
39.1 kHz
9.77 kHz
2.44Hz
610Hz
CPU
Clock/64
1.6s
2.44 kHz
610Hz
152.6Hz
38.15Hz
9.54Hz
Mode 1
Resolution
8-bit
10-bit
12-bit
14-bit
16-bit
CPU Clock/1
25ns
78.12 kHz
19.53 kHz
4.88 kHz
1.22 kHz
305.2Hz
CPU
Clock/64
1.6s
1.22 kHz
305.17Hz
76.29Hz
19.07Hz
4.77Hz
67/188
PWM modules
ST10F272B/ST10F272E
Table 40.
68/188
Mode 0
Resolution
8-bit
10-bit
12-bit
14-bit
16-bit
CPU Clock/1
15.6ns
250 kHz
62.5 kHz
15.63 kHz
3.91Hz
977Hz
CPU
Clock/64
1.0s
3.91 kHz
976.6Hz
244.1Hz
61.01Hz
15.26Hz
Mode 1
Resolution
8-bit
10-bit
12-bit
14-bit
16-bit
CPU Clock/1
15.6ns
125 kHz
31.25 kHz
7.81 kHz
1.95 kHz
488.3Hz
CPU
Clock/64
1.0s
1.95 kHz
488.28Hz
122.07Hz
30.52Hz
7.63Hz
ST10F272B/ST10F272E
13
Parallel ports
13.1
Introduction
Parallel ports
The ST10F272 MCU provides up to 111 I/O lines with programmable features. These
capabilities bring very flexible adaptation of this MCU to wide range of applications.
ST10F272 has nine groups of I/O lines gathered as follows:
Port 0 is a two time 8-bit port named P0L (Low as less significant byte) and P0H (high
as most significant byte)
These ports may be used as general purpose bidirectional input or output, software
controlled with dedicated registers.
For example, the output drivers of six of the ports (2, 3, 4, 6, 7, 8) can be configured (bitwise) for push-pull or open drain operation using ODPx registers.
The input threshold levels are programmable (TTL/CMOS) for all the ports. The logic level of
a pin is clocked into the input latch once per state time, regardless whether the port is
configured for input or output. The threshold is selected with PICON and XPICON registers
control bits.
A write operation to a port pin configured as an input causes the value to be written into the
port output latch, while a read operation returns the latched state of the pin itself. A readmodify-write operation reads the value of the pin, modifies it, and writes it back to the output
latch.
Writing to a pin configured as an output (DPx.y=1) causes the output latch and the pin to
have the written value, since the output buffer is enabled. Reading this pin returns the value
of the output latch. A read-modify-write operation reads the value of the output latch,
modifies it, and writes it back to the output latch, thus also modifying the level at the pin.
I/O lines support an alternate function which is detailed in the following description of each
port.
13.2
13.2.1
69/188
Parallel ports
13.2.2
ST10F272B/ST10F272E
13.3
PORT0 and PORT1 may be used as address and data lines when accessing external
memory. Besides, PORT1 provides also:
Port 2, Port 7 and Port 8 are associated with the capture inputs or compare outputs of
the CAPCOM units and/or with the outputs of the PWM0 module, of the PWM1 module
and of the ASC1.
Port 2 is also used for fast external interrupt inputs and for timer 7 input.
Port 3 includes the alternate functions of timers, serial interfaces, the optional bus
control signal BHE and the system clock output (CLKOUT).
Port 4 outputs the additional segment address bit A23...A16 in systems where more
than 64 Kbytes of memory are to be access directly. In addition, CAN1, CAN2 and I2C
lines are provided.
Port 5 is used as analog input channels of the A/D converter or as timer control signals.
Port 6 provides optional bus arbitration signals (BREQ, HLDA, HOLD) and chip select
signals and the SSC1 lines.
If the alternate output function of a pin is to be used, the direction of this pin must be
programmed for output (DPx.y=1), except for some signals that are used directly after reset
and are configured automatically. Otherwise the pin remains in the high-impedance state
and is not effected by the alternate output function. The respective port latch should hold a
1, because its output is ANDed with the alternate output data (except for PWM output
signals).
If the alternate input function of a pin is used, the direction of the pin must be programmed
for input (DPx.y=0) if an external device is driving the pin. The input direction is the default
after reset. If no external device is connected to the pin, however, one can also set the
direction for this pin to output. In this case, the pin reflects the state of the port output latch.
Thus, the alternate input function reads the value stored in the port output latch. This can be
used for testing purposes to allow a software trigger of an alternate input function by writing
to the port output latch.
On most of the port lines, the user software is responsible for setting the proper direction
when using an alternate input or output function of a pin.
70/188
ST10F272B/ST10F272E
Parallel ports
This is done by setting or clearing the direction control bit DPx.y of the pin before enabling
the alternate function.
There are port lines, however, where the direction of the port line is switched automatically.
For instance, in the multiplexed external bus modes of PORT0, the direction must be
switched several times for an instruction fetch in order to output the addresses and to input
the data.
Obviously, this cannot be done through instructions. In these cases, the direction of the port
line is switched automatically by hardware if the alternate function of such a pin is enabled.
To determine the appropriate level of the port output latches check how the alternate data
output is combined with the respective port latch output.
There is one basic structure for all port lines with only an alternate input function. Port lines
with only an alternate output function, however, have different structures due to the way the
direction of the pin is switched and depending on whether the pin is accessible by the user
software or not in the alternate function mode.
All port lines that are not used for these alternate functions may be used as general purpose
I/O lines.
71/188
A/D converter
14
ST10F272B/ST10F272E
A/D converter
A 10-bit A/D converter with 16+8 multiplexed input channels and a sample and hold circuit is
integrated on-chip. An automatic self-calibration adjusts the A/D converter module to
process parameter variations at each reset event. The sample time (for loading the
capacitors) and the conversion time is programmable and can be adjusted to the external
circuitry.
The ST10F272E has 16+8 multiplexed input channels on Port 5 and Port 1. The selection
between Port 5 and Port 1 is made via a bit in a XBus register. Refer to the User Manual for
a detailed description.
A different accuracy is guaranteed (Total Unadjusted Error) on Port 5 and Port 1 analog
channels (with higher restrictions when overload conditions occur); in particular, Port 5
channels are more accurate than the Port 1 ones. Refer to Section 24: Electrical
characteristics.
The A/D converter input bandwidth is limited by the achievable accuracy: supposing a
maximum error of 0.5LSB (2mV) impacting the global TUE (TUE depends also on other
causes), in worst case of temperature and process, the maximum frequency for a sine wave
analog signal is around 7.5 kHz. Of course, to reduce the effect of the input signal variation
on the accuracy down to 0.05LSB, the maximum input frequency of the sine wave shall be
reduced to 800 Hz.
If static signal is applied during sampling phase, series resistance shall not be greater than
20k (this taking into account eventual input leakage). It is suggested to not connect any
capacitance on analog input pins, in order to reduce the effect of charge partitioning (and
consequent voltage drop error) between the external and the internal capacitance: in case
an RC filter is necessary the external capacitance must be greater than 10nF to minimize
the accuracy impact.
Overrun error detection / protection is controlled by the ADDAT register. Either an interrupt
request is generated when the result of a previous conversion has not been read from the
result register at the time the next conversion is complete, or the next conversion is
suspended until the previous result has been read. For applications which require less than
16+8 analog input channels, the remaining channel inputs can be used as digital input port
pins.
The A/D converter of the ST10F272 supports different conversion modes:
72/188
Single channel single conversion: The analog level of the selected channel is
sampled once and converted. The result of the conversion is stored in the ADDAT
register.
Single channel continuous conversion: The analog level of the selected channel is
repeatedly sampled and converted. The result of the conversion is stored in the ADDAT
register.
Auto scan single conversion: The analog level of the selected channels are sampled
once and converted. After each conversion the result is stored in the ADDAT register.
The data can be transferred to the RAM by interrupt software management or using the
powerful Peripheral Event Controller (PEC) data transfer.
Auto scan continuous conversion: The analog level of the selected channels are
repeatedly sampled and converted. The result of the conversion is stored in the ADDAT
ST10F272B/ST10F272E
A/D converter
register. The data can be transferred to the RAM by interrupt software management or
using the PEC data transfer.
Wait for ADDAT read mode: When using continuous modes, in order to avoid to
overwrite the result of the current conversion by the next one, the ADWR bit of ADCON
control register must be activated. Then, until the ADDAT register is read, the new
result is stored in a temporary buffer and the conversion is on hold.
Channel injection mode: When using continuous modes, a selected channel can be
converted in between without changing the current operating mode. The 10-bit data of
the conversion are stored in ADRES field of ADDAT2. The current continuous mode
remains active after the single conversion is completed.
A full calibration sequence is performed after a reset. This full calibration lasts up to 40.630
CPU clock cycles. During this time, the busy flag ADBSY is set to indicate the operation. It
compensates the capacitance mismatch, so the calibration procedure does not need any
update during normal operation.
No conversion can be performed during this time: the bit ADBSY shall be polled to verify
when the calibration is over, and the module is able to start a convertion.
73/188
Serial channels
15
ST10F272B/ST10F272E
Serial channels
Serial communication with other microcontrollers, microprocessors, terminals or external
peripheral components is provided by up to four serial interfaces: two asynchronous /
synchronous serial channels (ASC0 and ASC1) and two high-speed synchronous serial
channel (SSC0 and SSC1). Dedicated Baud rate generators set up all standard Baud rates
without the requirement of oscillator tuning. For transmission, reception and erroneous
reception, separate interrupt vectors are provided for ASC0 and SSC0 serial channel. A
more complex mechanism of interrupt sources multiplexing is implemented for ASC1 and
SSC1 (XBUS mapped).
15.1
15.2
Table 41.
ASC asynchronous baud rates by reload value and deviation errors (fCPU = 40 MHz)
S0BRS = 0, fCPU = 40 MHz
Deviation error
1 250 000
0.0% / 0.0%
112 000
74/188
Reload value
Reload value
Deviation error
0000 / 0000
833 333
0.0% / 0.0%
0000 / 0000
+1.5% / -7.0%
000A / 000B
112 000
+6.3% / -7.0%
0006 / 0007
56 000
+1.5% / -3.0%
0015 / 0016
56 000
+6.3% / -0.8%
000D / 000E
38 400
+1.7% / -1.4%
001F / 0020
38 400
+3.3% / -1.4%
0014 / 0015
19 200
+0.2% / -1.4%
0040 / 0041
19 200
+0.9% / -1.4%
002A / 002B
9 600
+0.2% / -0.6%
0081 / 0082
9 600
+0.9% / -0.2%
0055 / 0056
4 800
+0.2% / -0.2%
0103 / 0104
4 800
+0.4% / -0.2%
00AC / 00AD
2 400
+0.2% / 0.0%
0207 / 0208
2 400
+0.1% / -0.2%
015A / 015B
1 200
0.1% / 0.0%
0410 / 0411
1 200
+0.1% / -0.1%
02B5 / 02B6
600
0.0% / 0.0%
0822 / 0823
600
+0.1% / 0.0%
056B / 056C
300
0.0% / 0.0%
1045 / 1046
300
0.0% / 0.0%
0AD8 / 0AD9
153
0.0% / 0.0%
1FE8 / 1FE9
102
0.0% / 0.0%
1FE8 / 1FE9
(hex)
(hex)
ST10F272B/ST10F272E
Table 42.
Serial channels
ASC asynchronous baud rates by reload value and deviation errors (fCPU = 64 MHz)
S0BRS = 0, fCPU = 64 MHz
Deviation error
Reload value
(hex)
Deviation error
Reload value
(hex)
2 000 000
0.0% / 0.0%
0000 / 0000
1 333 333
0.0% / 0.0%
0000 / 0000
112 000
+1.5% / -7.0%
0010 / 0011
112 000
+6.3% / -7.0%
000A / 000B
56 000
+1.5% / -3.0%
0022 / 0023
56 000
+6.3% / -0.8%
0016 / 0017
38 400
+1.7% / -1.4%
0033 / 0034
38 400
+3.3% / -1.4%
0021 / 0022
19 200
+0.2% / -1.4%
0067 / 0068
19 200
+0.9% / -1.4%
0044 / 0045
9 600
+0.2% / -0.6%
00CF / 00D0
9 600
+0.9% / -0.2%
0089 / 008A
4 800
+0.2% / -0.2%
019F / 01A0
4 800
+0.4% / -0.2%
0114 / 0115
2 400
+0.2% / 0.0%
0340 / 0341
2 400
+0.1% / -0.2%
022A / 015B
1 200
0.1% / 0.0%
0681 / 0682
1 200
+0.1% / -0.1%
0456 / 0457
600
0.0% / 0.0%
0D04 / 0D05
600
+0.1% / 0.0%
08AD / 08AE
300
0.0% / 0.0%
1A09 / 1A0A
300
0.0% / 0.0%
115B / 115C
245
0.0% / 0.0%
1FE2 / 1FE3
163
0.0% / 0.0%
1FF2 / 1FF3
Note:
The deviation errors given in the Table 41 and Table 42 are rounded. To avoid deviation
errors use a Baud rate crystal (providing a multiple of the ASC0 sampling frequency).
15.3
Table 43.
ASC synchronous baud rates by reload value and deviation errors (fCPU = 40 MHz)
S0BRS = 0, fCPU = 40 MHz
Deviation error
Reload value
(hex)
Deviation error
Reload value
(hex)
5 000 000
0.0% / 0.0%
0000 / 0000
3 333 333
0.0% / 0.0%
0000 / 0000
112 000
+1.5% / -0.8%
002B / 002C
112 000
+2.6% / -0.8%
001C / 001D
56 000
+0.3% / -0.8%
0058 / 0059
56 000
+0.9% / -0.8%
003A / 003B
38 400
+0.2% / -0.6%
0081 / 0082
38 400
+0.9% / -0.2%
0055 / 0056
19 200
+0.2% / -0.2%
0103 / 0104
19 200
+0.4% / -0.2%
00AC / 00AD
9 600
+0.2% / 0.0%
0207 / 0208
9 600
+0.1% / -0.2%
015A / 015B
4 800
+0.1% / 0.0%
0410 / 0411
4 800
+0.1% / -0.1%
02B5 / 02B6
2 400
0.0% / 0.0%
0822 / 0823
2 400
+0.1% / 0.0%
056B / 056C
1 200
0.0% / 0.0%
1045 / 1046
1 200
0.0% / 0.0%
0AD8 / 0AD9
75/188
Serial channels
Table 43.
ST10F272B/ST10F272E
ASC synchronous baud rates by reload value and deviation errors (fCPU = 40 MHz)
S0BRS = 0, fCPU = 40 MHz
Deviation error
Reload value
(hex)
Deviation error
Reload value
(hex)
900
0.0% / 0.0%
15B2 / 15B3
600
0.0% / 0.0%
15B2 / 15B3
612
0.0% / 0.0%
1FE8 / 1FE9
407
0.0% / 0.0%
1FFD / 1FFE
Table 44.
ASC synchronous baud rates by reload value and deviation errors (fCPU = 64 MHz)
S0BRS = 0, fCPU = 64 MHz
Deviation error
Reload value
(hex)
Deviation error
Reload value
(hex)
8 000 000
0.0% / 0.0%
0000 / 0000
5 333 333
0.0% / 0.0%
0000 / 0000
112 000
+0.6% / -0.8%
0046 / 0047
112 000
+1.3% / -0.8%
002E / 002F
56 000
+0.6% / -0.1%
008D / 008E
56 000
+0.3% / -0.8%
005E / 005F
38 400
+0.2% / -0.3%
00CF / 00D0
38 400
+0.6% / -0.1%
0089 / 008A
19 200
+0.2% / -0.1%
019F / 01A0
19 200
+0.3% / -0.1%
0114 / 0115
9 600
+0.0% / -0.1%
0340 / 0341
9 600
+0.1% / -0.1%
022A / 022B
4 800
0.0% / 0.0%
0681 / 0682
4 800
0.0% / -0.1%
0456 / 0457
2 400
0.0% / 0.0%
0D04 / 0D05
2 400
0.0% / 0.0%
08AD / 08AE
1 200
0.0% / 0.0%
1A09 / 1A0A
1 200
0.0% / 0.0%
115B / 115C
977
0.0% / 0.0%
1FFB / 1FFC
900
0.0% / 0.0%
1724 / 1725
652
0.0% / 0.0%
1FF2 / 1FF3
Note:
The deviation errors given in the Table 43 and Table 44 are rounded. To avoid deviation
errors use a Baud rate crystal (providing a multiple of the ASC0 sampling frequency)
15.4
76/188
ST10F272B/ST10F272E
Serial channels
Table 45 and Table 46 list some possible Baud rates against the required reload values and
the resulting bit times for 40 MHz and 64 MHz CPU clock respectively. The maximum is
anyway limited to 8Mbaud.
Table 45.
Bit time
Reload value
Reserved
---
0000h
---
0001h
6.6M Baud
150ns
0002h
5M Baud
200ns
0003h
2.5M Baud
400ns
0007h
1M Baud
1s
0013h
100K Baud
10s
00C7h
10K Baud
100s
07CFh
1K Baud
1ms
4E1Fh
306 Baud
3.26ms
FF4Eh
Table 46.
Bit time
Reload value
Reserved
---
0000h
---
0001h
---
0002h
8M Baud
125ns
0003h
4M Baud
250ns
0007h
1M Baud
1s
001Fh
100K Baud
10s
013Fh
10K Baud
100s
0C7Fh
1K Baud
1ms
7CFFh
489 Baud
2.04ms
FF9Eh
77/188
I2C interface
16
ST10F272B/ST10F272E
I2C interface
The integrated I2C Bus Module handles the transmission and reception of frames over the
two-line SDA/SCL in accordance with the I2C Bus specification. The I2C Module can
operate in slave mode, in master mode or in multi-master mode. It can receive and transmit
data using 7-bit or 10-bit addressing. Data can be transferred at speeds up to 400 Kbit/s
(both Standard and Fast I2C bus modes are supported).
The module can generate three different types of interrupt:
Requests related to bus events, like start or stop events, arbitration lost, etc.
These requests are issued to the interrupt controller by three different lines, and identified
as Error, Transmit, and Receive interrupt lines.
When the I2C module is enabled by setting bit XI2CEN in XPERCON register, pins P4.4 and
P4.7 (where SCL and SDA are respectively mapped as alternate functions) are
automatically configured as bidirectional open-drain: the value of the external pull-up
resistor depends on the application. P4, DP4 and ODP4 cannot influence the pin
configuration.
When the I2C cell is disabled (clearing bit XI2CEN), P4.4 and P4.7 pins are standard I/ O
controlled by P4, DP4 and ODP4.
The speed of the I2C interface may be selected between Standard mode (0 to 100 kHz) and
Fast I2C mode (100 to 400 kHz).
78/188
ST10F272B/ST10F272E
17
CAN modules
CAN modules
The two integrated CAN modules (CAN1 and CAN2) are identical and handle the
completely autonomous transmission and reception of CAN frames according to the CAN
specification V2.0 part B (active). It is based on the C-CAN specification.
Each on-chip CAN module can receive and transmit standard frames with 11-bit identifiers
as well as extended frames with 29-bit identifiers.
Because of duplication of the CAN controllers, the following adjustments are to be
considered:
Same internal register addresses of both CAN controllers, but with base addresses
differing in address bit A8; separate chip select for each CAN module. Refer to
Section 4: Memory organization.
The CAN1 transmit line (CAN1_TxD) is the alternate function of the Port P4.6 pin and
the receive line (CAN1_RxD) is the alternate function of the Port P4.5 pin.
The CAN2 transmit line (CAN2_TxD) is the alternate function of the Port P4.7 pin and
the receive line (CAN2_RxD) is the alternate function of the Port P4.4 pin.
Interrupt request lines of the CAN1 and CAN2 modules are connected to the XBUS
interrupt lines together with other X-Peripherals sharing the four vectors.
The CAN modules must be selected with corresponding CANxEN bit of XPERCON
register before the bit XPEN of SYSCON register is set.
Note:
If one or both CAN modules is used, Port 4 cannot be programmed to output all 8 segment
address lines. Thus, only four segment address lines can be used, reducing the external
memory space to 5 Mbytes (1 Mbyte per CS line).
17.1
Configuration support
It is possible that both CAN controllers are working on the same CAN bus, supporting
together up to 64 message objects. In this configuration, both receive signals and both
transmit signals are linked together when using the same CAN transceiver. This
configuration is especially supported by providing open drain outputs for the CAN1_Txd and
CAN2_TxD signals. The open drain function is controlled with the ODP4 register for port P4:
in this way it is possible to connect together P4.4 with P4.5 (receive lines) and P4.6 with
P4.7 (transmit lines configured to be configured as Open-Drain).
The user is also allowed to map internally both CAN modules on the same pins P4.5 and
P4.6. In this way, P4.4 and P4.7 may be used either as general purpose I/O lines, or used
for I2C interface. This is possible by setting bit CANPAR of XMISC register. To access this
register it is necessary to set bit XMISCEN of XPERCON register and bit XPEN of SYSCON
register.
17.2
79/188
CAN modules
ST10F272B/ST10F272E
3
&$1
5;
7;
3 3
&$1
7UDQVFHLYHU
3
&$1
7UDQVFHLYHU
&$1B+
&$1B/
&$1B+
&$1EXV
&$1EXV
&$1B/
*$3*5,
The ST10F272 also supports single CAN Bus multiple (dual) interfaces using the open drain
option of the CANx_TxD output as shown in Figure 13. Thanks to the OR-Wired
Connection, only one transceiver is required. In this case the design of the application must
take in account the wire length and the noise environment.
Figure 13. Connection to single CAN bus via common CAN transceivers
;0,6&&$13$5
&$1
5;
7;
&$1
5;
7;
9
N:
3
3 3
3
2'
2'
&$1
7UDQVFHLYHU
&$1B+
&$1B/
&$1EXV
2' 2SHQ'UDLQ2XWSXW
*$3*5,
80/188
ST10F272B/ST10F272E
CAN modules
3
&$1
5;
7;
3 3
&$1
7UDQVFHLYHU
3
&$1
7UDQVFHLYHU
&$1B+
&$1B/
&$1B+
&$1EXV
&$1EXV
&$1B/
*$3*5,
Parallel Mode
In addition to previous configurations, a parallel mode is supported. This is shown in
Figure 15.
Figure 15. Connection to one CAN bus with internal Parallel Mode enabled
&$1
5;
7;
3
;0,6&&$13$5
%RWK&$1HQDEOHG
&$1
5;
7;
3 3
3
&$1
7UDQVFHLYHU
&$1B+
&$1EXV
&$1B/
3DQG3ZKHQQRWXVHGDV&$1IXQFWLRQVFDQEHXVHGDVJHQHUDOSXUSRVH,2
ZKLOHWKH\FDQQRWEHXVHGDVH[WHUQDOEXVDGGUHVVOLQHV
*$3*5,
81/188
18
ST10F272B/ST10F272E
Cyclic time based interrupt, on Port2 external interrupts every RTC basic clock tick
and after n RTC basic clock ticks (n is programmable) if enabled
Capability to exit the ST10 chip from Power down mode (if PWDCFG of SYSCON set)
after a programmed delay
The real time clock is based on two main blocks of counters. The first block is a prescaler
which generates a basic reference clock (for example a 1 second period). This basic
reference clock is coming out of a 20-bit DIVIDER. This 20-bit counter is driven by an input
clock derived from the on-chip CPU clock, pre-divided by a 1/64 fixed counter. This 20-bit
counter is loaded at each basic reference clock period with the value of the 20-bit
PRESCALER register. The value of the 20-bit RTCP register determines the period of the
basic reference clock.
A timed interrupt request (RTCSI) may be sent on each basic reference clock period. The
second block of the RTC is a 32-bit counter that may be initialized with the current system
time. This counter is driven with the basic reference clock signal. In order to provide an
alarm function the contents of the counter is compared with a 32-bit alarm register. The
alarm register may be loaded with a reference date. An alarm interrupt request (RTCAI),
may be generated when the value of the counter matches the alarm register.
The timed RTCSI and the alarm RTCAI interrupt requests can trigger a fast external
interrupt via EXISEL register of port 2 and wake-up the ST10 chip when running power
down mode. Using the RTCOFF bit of RTCCON register, the user may switch off the clock
oscillator when entering the power down mode.
The last function implemented in the RTC is to switch off the main on-chip oscillator and the
32 kHz on chip oscillator if the ST10 enters the Power Down mode, so that the chip can be
fully switched off (if RTC is disabled).
At power on, and after Reset phase, if the presence of a 32 kHz oscillation on XTAL3 /
XTAL4 pins is detected, then the RTC counter is driven by this low frequency reference
clock: when Power Down mode is entered, the RTC can either be stopped or left running,
and in both the cases the main oscillator is turned off, reducing the power consumption of
the device to the minimum required to keep on running the RTC counter and relative
reference oscillator. This is valid also if Stand-by mode is entered (switching off the main
supply VDD), since both the RTC and the low power oscillator (32 kHz) are biased by the
VSTBY. Vice versa, when at power on and after Reset, the 32 kHz is not present, the main
oscillator drives the RTC counter, and since it is powered by the main power supply, it
cannot be maintained running in Stand-by mode, while in Power Down mode the main
oscillator is maintained running to provide the reference to the RTC module (if not disabled).
82/188
ST10F272B/ST10F272E
19
Watchdog timer
Watchdog timer
The Watchdog Timer is a fail-safe mechanism which prevents the microcontroller from
malfunctioning for long periods of time.
The Watchdog Timer is always enabled after a reset of the chip and can only be disabled in
the time interval until the EINIT (end of initialization) instruction has been executed.
Therefore, the chip start-up procedure is always monitored. The software must be designed
to service the watchdog timer before it overflows. If, due to hardware or software related
failures, the software fails to do so, the watchdog timer overflows and generates an internal
hardware reset. It pulls the RSTOUT pin low in order to allow external hardware
components to be reset.
Each of the different reset sources is indicated in the WDTCON register:
Short, Long and Power-On Reset in case of hardware reset (and depending of reset
pulse duration and RPD pin configuration)
The indicated bits are cleared with the EINIT instruction. The source of the reset can be
identified during the initialization phase.
The Watchdog Timer is 16-bit, clocked with the system clock divided by 2 or 128. The high
Byte of the watchdog timer register can be set to a pre-specified reload value (stored in
WDTREL).
Each time it is serviced by the application software, the high byte of the watchdog timer is
reloaded. For security, rewrite WDTCON each time before the watchdog timer is serviced
The Table 47 and Table 48 show the watchdog time range for 40 MHz and 64 MHz CPU
clock respectively.
Table 47.
Table 48.
2 (WDTIN = 0)
128 (WDTIN = 1)
FFh
12.8s
819.2s
00h
3.277ms
209.7ms
128 (WDTIN = 1)
FFh
8s
512s
00h
2.048ms
131.1ms
83/188
System reset
20
ST10F272B/ST10F272E
System reset
System reset initializes the MCU in a predefined state. There are six ways to activate a reset
state. The system start-up configuration is different for each case as shown in Table 49.
Table 49.
Reset source
Power-on reset
Flag
RPD
status
PONR
Low
Power-on
Low
tRSTIN > 1)
High
SHWR
High
WDTR
3)
WDT overflow
SWR
3)
Software reset
20.1
LHWR
Conditions
1)
RSTIN pulse should be longer than 500ns (Filter) and than settling time for configuration of Port0.
2)
See next Section 20.1 for more details on minimum reset pulse duration.
3)
The RPD status has no influence unless Bidirectional Reset is activated (bit BDRSTEN in SYSCON): RPD
low inhibits the Bidirectional reset on SW and WDT reset events, that is RSTIN is not activated (refer to
Section 20.4, Section 20.5 and Section 20.6).
Input filter
On RSTIN input pin an on-chip RC filter is implemented. It is sized to filter all the spikes
shorter than 50ns. On the other side, a valid pulse shall be longer than 500ns to grant that
ST10 recognizes a reset command. In between 50ns and 500ns a pulse can either be
filtered or recognized as valid, depending on the operating conditions and process
variations.
For this reason all minimum durations mentioned in this Chapter for the different kind of
reset events shall be carefully evaluated taking into account of the above requirements.
In particular, for Short Hardware Reset, where only 4 TCL is specified as minimum input
reset pulse duration, the operating frequency is a key factor. Examples:
84/188
For a CPU clock of 64 MHz, 4 TCL is 31.25ns, so it would be filtered. In this case the
minimum becomes the one imposed by the filter (that is 500ns).
For a CPU clock of 4 MHz, 4 TCL is 500ns. In this case the minimum from the formula
is coherent with the limit imposed by the filter.
ST10F272B/ST10F272E
20.2
System reset
Asynchronous reset
An asynchronous reset is triggered when RSTIN pin is pulled low while RPD pin is at low
level. Then the ST10F272 is immediately (after the input filter delay) forced in reset default
state. It pulls low RSTOUT pin, it cancels pending internal hold states if any, it aborts all
internal/external bus cycles, it switches buses (data, address and control signals) and I/O
pin drivers to high-impedance, it pulls high Port0 pins.
Note:
If an asynchronous reset occurs during a read or write phase in internal memories, the
content of the memory itself could be corrupted: to avoid this, synchronous reset usage is
strongly recommended.
Power-on reset
The asynchronous reset must be used during the power-on of the device. Depending
on crystal or resonator frequency, the on-chip oscillator needs about 1ms to 10ms to
stabilize (Refer to Electrical Characteristics Section), with an already stable VDD. The logic
of the ST10F272 does not need a stabilized clock signal to detect an asynchronous reset,
so it is suitable for power-on conditions. To ensure a proper reset sequence, the RSTIN pin
and the RPD pin must be held at low level until the device clock signal is stabilized and the
system configuration value on Port0 is settled.
At Power-on it is important to respect some additional constraints introduced by the start-up
phase of the different embedded modules.
In particular the on-chip voltage regulator needs at least 1ms to stabilize the internal 1.8V for
the core logic: this time is computed from when the external reference (VDD) becomes
stable (inside specification range, that is at least 4.5V). This is a constraint for the
application hardware (external voltage regulator): the RSTIN pin assertion shall be
extended to guarantee the voltage regulator stabilization.
A second constraint is imposed by the embedded FLASH. When booting from internal
memory, starting from RSTIN releasing, it needs a maximum of 1ms for its initialization:
before that, the internal reset (RST signal) is not released, so the CPU does not start code
execution in internal memory.
Note:
This is not true if external memory is used (pin EA held low during reset phase). In this case,
once RSTIN pin is released, and after few CPU clock (Filter delay plus 3...8 TCL), the
internal reset signal RST is released as well, so the code execution can start immediately
after. Obviously, an eventual access to the data in internal Flash is forbidden before its
initialization phase is completed: an eventual access during starting phase will return FFFFh
(just at the beginning), while later 009Bh (an illegal opcode trap can be generated).
At Power-on, the RSTIN pin shall be tied low for a minimum time that includes also the startup time of the main oscillator (tSTUP = 1ms for resonator, 10ms for crystal) and PLL
synchronization time (tPSUP = 200s): this means that if the internal FLASH is used, the
RSTIN pin could be released before the main oscillator and PLL are stable to recover some
time in the start-up phase (FLASH initialization only needs stable V18, but does not need
stable system clock since an internal dedicated oscillator is used).
85/188
System reset
ST10F272B/ST10F272E
Warning:
86/188
Never power the device without keeping RSTIN pin grounded: the device could enter in
unpredictable states, risking also permanent damages.
ST10F272B/ST10F272E
System reset
d7&/
9
;7$/
53'
567,1
567)
$IWHU)LOWHU
tQV
dQV
7&/
3>@
WUDQVSDUHQW
3>@
WUDQVSDUHQW
QRWW
3>@
QRWWUDQVSDUHQW
QRWW
QRWW
QRWW
7&/
,%86&6
,QWHUQDO
dPV
)/$567
567
/DWFKLQJSRLQWRI3RUWIRU
V\VWHPVWDUWXSFRQILJXUDWLRQ
*$3*5,
87/188
System reset
ST10F272B/ST10F272E
9''
7&/
9
;7$/
53'
567,1
tQV
dQV
567)
$IWHU)LOWHU
7&/
3>@
WUDQVSDUHQW
QRWW
3>@
WUDQVSDUHQW
QRWW
3>@
QRWWUDQVSDUHQW
QRWW
7&/
$/(
567
/DWFKLQJSRLQWRI3RUWIRU
V\VWHPVWDUWXSFRQILJXUDWLRQ
*$3*5,
Hardware reset
The asynchronous reset must be used to recover from catastrophic situations of the
application. It may be triggered by the hardware of the application. Internal hardware logic
and application circuitry are described in Section 20.7: Reset circuitry and Figure 29,
Figure 30 and Figure 31. It occurs when RSTIN is low and RPD is detected (or becomes)
low as well.
88/188
ST10F272B/ST10F272E
System reset
d7&/
53'
tQV
dQV
567,1
tQV
dQV
567)
$IWHU)LOWHU
7&/
3>@
QRWWUDQVSDUHQW
WUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
WUDQVSDUHQW
QRWW
QRWWUDQVSDUHQW
QRWW
3>@
QRWW
QRWW
7&/
,%86&6
LQWHUQDO
dPV
)/$567
567
/DWFKLQJSRLQWRI3RUWIRU
V\VWHPVWDUWXSFRQILJXUDWLRQ
*$3*5,
1. Longer than Port0 settling time + PLL synchronization (if needed, that is P0 (15:13) changed).
2. Longer than 500ns to take into account of Input Filter on RSTIN pin.
89/188
System reset
ST10F272B/ST10F272E
53'
7&/
tQV
dQV
567,1
tQV
dQV
567)
$IWHU)LOWHU
3>@
3>@
7&/
QRWWUDQVSDUHQW
WUDQVSDUHQW
QRWW
QRWWUDQVSDUHQW
WUDQVSDUHQW
QRWW
QRWWUDQVSDUHQW
QRWW
3>@
7&/
$/(
567
/DWFKLQJSRLQWRI3RUWIRU
V\VWHPVWDUWXSFRQILJXUDWLRQ
*$3*5,
1. Longer than Port0 settling time + PLL synchronization (if needed, that is P0(15:13) changed)
Longer than 500ns to take into account of Input Filter on RSTIN pin
2. 3 to 8 TCL depending on clock source selection.
20.3
90/188
ST10F272B/ST10F272E
System reset
Warning:
If 8 TCL > 500ns (FCPU < 8 MHz), the reset event is always recognized as Short
If 8 TCL < 500ns (FCPU > 8 MHz), the reset event could be recognized either as Short
or Long, depending on the real filter delay (between 50 and 500ns) and the CPU
frequency (RSTF sampled High means Short reset, RSTF sampled Low means Long
reset). Note that in case a Long Reset is recognized, once the 8 TCL are elapsed, the
P0 (15:13) pins becomes transparent, so the system clock can be re-configured. The
port returns not transparent 3-4TCL after the internal RSTF signal becomes high.
The same behavior just described, occurs also when unidirectional reset is selected and
RSTIN pin is held low till the end of the internal sequence (exactly 1024TCL + max 16 TCL)
and released exactly at that time.
Note:
When running with CPU frequency lower than 40 MHz, the minimum valid reset pulse to be
recognized by the CPU (4 TCL) could be longer than the minimum analog filter delay (50ns);
so it might happen that a short reset pulse is not filtered by the analog input filter, but on the
other hand it is not long enough to trigger a CPU reset (shorter than 4 TCL): this would
generate a FLASH reset but not a system reset. In this condition, the FLASH answers
always with FFFFh, which leads to an illegal opcode and consequently a trap event is
generated.
91/188
System reset
ST10F272B/ST10F272E
timing of a typical synchronous Long Reset, again when booting from internal or external
memory.
92/188
ST10F272B/ST10F272E
System reset
7&/
567,1
tQV
dQV
tQV
dQV
tQV
dQV
d7&/
567)
$IWHU)LOWHU
3>@
3>@
QRWWUDQVSDUHQW
QRWW
3>@
WUDQVSDUHQW
QRWW
QRWWUDQVSDUHQW
QRWW
7&/
,%86&6
,QWHUQDO
dPV
)/$567
7&/
7&/
567
$WWKLVWLPH567)LVVDPSOHG+,*+RU/2:
VRLWLV6+257RU/21*UHVHW
567287
53'
P$'LVFKDUJH
953'!9$V\QFKURQRXV5HVHWQRWHQWHUHG
*$3*5,
1. RSTIN assertion can be released there. Refer also to Section 21.1 for details on minimum pulse duration.
2. If during the reset condition (RSTIN low), RPD voltage drops below the threshold voltage (about 2.5 V for
5 V operation), the asynchronous reset is then immediately entered.
3. 3. RSTIN pin is pulled low if bit BDRSTEN (bit 3 of SYSCON register) was previously set by software. Bit
BDRSTEN is cleared after reset.
4. Minimum RSTIN low pulse duration shall also be longer than 500ns to guarantee the pulse is not masked
by the internal filter (refer to Section 21.1).
93/188
System reset
ST10F272B/ST10F272E
d7&/ d7&/
567,1
7&/
tQV
dQV
tQV
dQV
tQV
dQV
567)
$IWHU)LOWHU
3>@
QRWWUDQVSDUHQW
3>@
QRWW
3>@
WUDQVSDUHQW
QRWW
QRWWUDQVSDUHQW
QRWW
7&/
7&/
$/(
7&/
7&/
567
$WWKLVWLPH567)LVVDPSOHG+,*+RU/2:
VRLWLV6+257RU/21*UHVHW
567287
53'
P$'LVFKDUJH
953'!9$V\QFKURQRXV5HVHWQRWHQWHUHG
*$3*5,
1.
RSTIN assertion can be released there. Refer also to Section 21.1 for details on minimum pulse duration.
2.
If during the reset condition (RSTIN low), RPD voltage drops below the threshold voltage (about 2.5 V for 5 V operation),
the asynchronous reset is then immediately entered.
3.
4.
RSTIN pin is pulled low if bit BDRSTEN (bit 3 of SYSCON register) was previously set by software. Bit BDRSTEN is
cleared after reset.
5. Minimum RSTIN low pulse duration shall also be longer than 500ns to guarantee the pulse is not masked by the internal
filter (refer to Section 21.1).
94/188
ST10F272B/ST10F272E
System reset
7&/
567,1
tQV
dQV
tQV
dQV
tQV
dQV
567)
$IWHU)LOWHU
7&/
3>@
3>@
d7&/
QRWWUDQVSDUHQW
QRWW
3>@
WUDQVSDUHQW
QRWW
WUDQVSDUHQW
QRWW
QRWWUDQVSDUHQW
QRWW
7&/
,%86&6
,QWHUQDO
dPV
)/$567
7&/
567
$WWKLVWLPH567)LVVDPSOHG/2:
VRLWLVGHILQLWHO\/21*UHVHW
567287
53'
P$'LVFKDUJH
9
53'!9$V\QFKURQRXV5HVHWQRWHQWHUHG
*$3*5,
1. If during the reset condition (RSTIN low), RPD voltage drops below the threshold voltage (about 2.5V for
5V operation),the asynchronous reset is then immediately entered. Even if RPD returns above the
threshold, the reset is defnitively taken as asynchronous.
2. Minimum RSTIN low pulse duration shall also be longer than 500ns to guarantee the pulse is not masked
by the nternal filter (refer to Section 21.1).
95/188
System reset
ST10F272B/ST10F272E
7&/
567,1
tQV
dQV
tQV
dQV
tQV
dQV
567)
$IWHU)LOWHU
7&/
3>@
QRWWUDQVSDUHQW
WUDQVSDUHQW
3>@
WUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
QRWW
QRWW
QRWW
7&/
7&/
$/(
7&/
567
$WWKLVWLPH567)LVVDPSOHG/2:
VRLWLV/21*UHVHW
567287
53'
P$'LVFKDUJH
9
53'!9$V\QFKURQRXV5HVHWQRWHQWHUHG
*$3*5,
1. If during the reset condition (RSTIN low), RPD voltage drops below the threshold voltage (about 2.5V for
5V operation), the asynchronous reset is then immediately entered.
2. Minimum RSTIN low pulse duration shall also be longer than 500ns to guarantee the pulse is not masked
by the internal filter (refer to Section 21.1).
3. 3 to 8 TCL depending on clock source selection.
20.4
Software reset
A software reset sequence can be triggered at any time by the protected SRST (software
reset) instruction. This instruction can be deliberately executed within a program, e.g. to
leave bootstrap loader mode, or on a hardware trap that reveals system failure.
On execution of the SRST instruction, the internal reset sequence is started. The
microcontroller behavior is the same as for a synchronous short reset, except that only bits
P0.12...P0.8 are latched at the end of the reset sequence, while previously latched, bits
P0.7...P0.2 are cleared (that is written at 1).
A Software reset is always taken as synchronous: there is no influence on Software Reset
behavior with RPD status. In case Bidirectional Reset is selected, a Software Reset event
pulls RSTIN pin low: this occurs only if RPD is high; if RPD is low, RSTIN pin is not pulled
low even though Bidirectional Reset is selected.
Refer to Figure 24 and Figure 25 for unidirectional SW reset timing, and to Figure 26,
Figure 27 and Figure 28 for bidirectional.
96/188
ST10F272B/ST10F272E
20.5
System reset
567,1
d7&/
3>@
QRWWUDQVSDUHQW
3>@
WUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
3>@
QRWW
QRWW
QRWWUDQVSDUHQW
7&/
,%86&6
,QWHUQDO
dPV
)/$567
7&/
567
567287
*$3*5,
97/188
System reset
ST10F272B/ST10F272E
3>@
QRWWUDQVSDUHQW
3>@
WUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
QRWW
QRWW
7&/
$/(
7&/
567
567287
*$3*5,
20.6
Bidirectional reset
As shown in the previous sections, the RSTOUT pin is driven active (low level) at the
beginning of any reset sequence (synchronous/asynchronous hardware, software and
watchdog timer resets). RSTOUT pin stays active low beyond the end of the initialization
routine, until the protected EINIT instruction (End of Initialization) is completed.
The Bidirectional Reset function is useful when external devices require a reset signal but
cannot be connected to RSTOUT pin, because RSTOUT signal lasts during initialization. It
is, for instance, the case of external memory running initialization routine before the
execution of EINIT instruction.
Bidirectional reset function is enabled by setting bit 3 (BDRSTEN) in SYSCON register. It
only can be enabled during the initialization routine, before EINIT instruction is completed.
When enabled, the open drain of the RSTIN pin is activated, pulling down the reset signal,
for the duration of the internal reset sequence (synchronous/asynchronous hardware,
synchronous software and synchronous watchdog timer resets). At the end of the internal
reset sequence the pull down is released and:
98/188
After a Software or Watchdog Bidirectional Reset, the device exits from reset. If RSTF
remains still low for at least 4 TCL periods (minimum time to recognize a Short
Hardware reset) after the reset exiting (refer to Figure 26 and Figure 27), the Software
ST10F272B/ST10F272E
System reset
or Watchdog Reset become a Short Hardware Reset. On the contrary, if RSTF remains
low for less than 4 TCL, the device simply exits reset state.
The Bidirectional reset is not effective in case RPD is held low, when a Software or
Watchdog reset event occurs. On the contrary, if a Software or Watchdog Bidirectional reset
event is active and RPD becomes low, the RSTIN pin is immediately released, while the
internal reset sequence is completed regardless of RPD status change (1024 TCL).
Note:
The bidirectional reset function is disabled by any reset sequence (bit BDRSTEN of
SYSCON is cleared). To be activated again it must be enabled during the initialization
routine.
WDTCON flags
Similarly to what already highlighted in the previous section when discussing about Short
reset and the degeneration into Long reset, similar situations may occur when Bidirectional
reset is enabled. The presence of the internal filter on RSTIN pin introduces a delay: when
RSTIN is released, the internal signal after the filter (see RSTF in the drawings) is delayed,
so it remains still active (low) for a while. It means that depending on the internal clock
speed, a short reset may be recognized as a long reset: the WDTCON flags are set
accordingly.
Besides, when either Software or Watchdog bidirectional reset events occur, again when the
RSTIN pin is released (at the end of the internal reset sequence), the RSTF internal signal
(after the filter) remains low for a while, and depending on the clock frequency it is
recognized high or low: 8TCL after the completion of the internal sequence, the level of
RSTF signal is sampled, and if recognized still low a Hardware reset sequence starts, and
WDTCON will flag this last event, masking the previous one (Software or Watchdog reset).
Typically, a Short Hardware reset is recognized, unless the RSTIN pin (and consequently
internal signal RSTF) is sufficiently held low by the external hardware to inject a Long
Hardware reset. After this occurrence, the initialization routine is not able to recognize a
Software or Watchdog bidirectional reset event, since a different source is flagged inside
WDTCON register. This phenomenon does not occur when internal FLASH is selected
during reset (EA = 1), since the initialization of the FLASH itself extend the internal reset
duration well beyond the filter delay.
Figure 26, Figure 27 and Figure 28 summarize the timing for Software and Watchdog Timer
Bidirectional reset events: in particular Figure 28 shows the degeneration into Hardware
reset.
99/188
System reset
ST10F272B/ST10F272E
tQV
dQV
tQV
dQV
567)
$IWHU)LOWHU
3>@
QRWWUDQVSDUHQW
3>@
WUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
QRWW
QRWW
QRWWUDQVSDUHQW
3>@
d7&/
7&/
,%86&6
,QWHUQDO
dPV
)/$567
7&/
567
567287
*$3*5,
100/188
ST10F272B/ST10F272E
System reset
tQV
dQV
567)
$IWHU)LOWHU
3>@
QRWWUDQVSDUHQW
3>@
WUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
QRWW
QRWW
7&/
$/(
7&/
567
$WWKLVWLPH567)LVVDPSOHG+,*+
VR6:RU:'75HVHWLVIODJJHGLQ:'7&21
567287
*$3*5,
101/188
System reset
ST10F272B/ST10F272E
tQV
dQV
567)
$IWHU)LOWHU
3>@
3>@
3>@
3>@
QRWWUDQVSDUHQW
WUDQVSDUHQW
QRWW
QRWWUDQVSDUHQW
QRWWUDQVSDUHQW
QRWW
7&/
$/(
7&/
567
$WWKLVWLPH567)LVVDPSOHG/2:
VR+:5HVHWLVHQWHUHG
567287
*$3*5,
20.7
Reset circuitry
Internal reset circuitry is described in Figure 31. The RSTIN pin provides an internal pull-up
resistor of 50k to 250k (The minimum reset time must be calculated using the lowest
value).
It also provides a programmable (BDRSTEN bit of SYSCON register) pull-down to output
internal reset state signal (synchronous reset, watchdog timer reset or software reset).
This bidirectional reset function is useful in applications where external devices require a
reset signal but cannot be connected to RSTOUT pin.
This is the case of an external memory running codes before EINIT (end of initialization)
instruction is executed. RSTOUT pin is pulled high only when EINIT is executed.
The RPD pin provides an internal weak pull-down resistor which discharges external
capacitor at a typical rate of 200A. If bit PWDCFG of SYSCON register is set, an internal
pull-up resistor is activated at the end of the reset sequence. This pull-up will charge any
capacitor connected on RPD pin.
The simplest way to reset the ST10F272 is to insert a capacitor C1 between RSTIN pin and
VSS, and a capacitor between RPD pin and VSS (C0) with a pull-up resistor R0 between
RPD pin and VDD. The input RSTIN provides an internal pull-up device equalling a resistor
of 50k to 250k (the minimum reset time must be determined by the lowest value). Select
C1 that produce a sufficient discharge time to permit the internal or external oscillator and /
or internal PLL and the on-chip voltage regulator to stabilize.
102/188
ST10F272B/ST10F272E
System reset
To ensure correct power-up reset with controlled supply current consumption, specially if
clock signal requires a long period of time to stabilize, an asynchronous hardware reset is
required during power-up. For this reason, it is recommended to connect the external R0-C0
circuit shown in Figure 29 to the RPD pin. On power-up, the logical low level on RPD pin
forces an asynchronous hardware reset when RSTIN is asserted low. The external pull-up
R0 will then charge the capacitor C0. Note that an internal pull-down device on RPD pin is
turned on when RSTIN pin is low, and causes the external capacitor (C0) to begin
discharging at a typical rate of 100-200A. With this mechanism, after power-up reset, short
low pulses applied on RSTIN produce synchronous hardware reset. If RSTIN is asserted
longer than the time needed for C0 to be discharged by the internal pull-down device, then
the device is forced in an asynchronous reset. This mechanism insures recovery from very
catastrophic failure.
Figure 29. Minimum external reset circuitry
567287
567,1
([WHUQDO+DUGZDUH
D+DUGZDUH
5HVHW
&
9&&
5
53'
E)RU3RZHUXS
5HVHW
DQG,QWHUUXSWLEOH
3RZHU'RZQ
PRGH
&
67)
*$3*5,
The minimum reset circuit of Figure 29 is not adequate when the RSTIN pin is driven from
the ST10F272 itself during software or watchdog triggered resets, because of the capacitor
C1 that will keep the voltage on RSTIN pin above VIL after the end of the internal reset
sequence, and thus will trigger an asynchronous reset sequence.
Figure 30 shows an example of a reset circuit. In this example, R1-C1 external circuit is only
used to generate power-up or manual reset, and R0-C0 circuit on RPD is used for power-up
reset and to exit from Power Down mode. Diode D1 creates a wired-OR gate connection to
the reset pin and may be replaced by open-collector Schmitt trigger buffer. Diode D2
provides a faster cycle time for repetitive power-on resets.
R2 is an optional pull-up for faster recovery and correct biasing of TTL Open Collector
drivers.
103/188
System reset
ST10F272B/ST10F272E
5
([WHUQDO+DUGZDUH
5
'
567,1
9''
'
&
RG
([WHUQDO
5HVHW6RXUFH
5
2SHQ'UDLQ,QYHUWHU
53'
&
67)
*$3*5,
567287
6HW
5HVHW6WDWH
0DFKLQH
&ORFN
,QWHUQDO
5HVHW
6LJQDO
9''
6567LQVWUXFWLRQ
ZDWFKGRJRYHUIORZ
7ULJJHU
567,1
&OU
%'567(1
5HVHW6HTXHQFH
&38&ORFN&\FOHV
9''
$V\QFKURQRXV
5HVHW
53'
)URPWR([LW
3RZHUGRZQ
&LUFXLW
:HDN3XOOGRZQ
aP$
*$3*5,
104/188
ST10F272B/ST10F272E
QRWWUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
3>@
QRWWUDQVSDUHQW
3>@
3>@
K
:'7&21
>@
567
9,/
53'
QRWWUDQVSDUHQW
7&/
7ILOWHU567
QV
567)
LGHDO
9,+
9,/
567,1
/DWFKLQJSRLQW
WUDQVSDUHQW
WUDQVSDUHQW
WUDQVSDUHQW
&K
PV&FKDUJH
567287
QRWWUDQVSDUHQW
/DWFKLQJSRLQW
/DWFKLQJSRLQW
QRWWUDQVSDUHQW
QRWWUDQVSDUHQW
7&/
7ILOWHU567
QV
&K
7&/
/DWFKLQJSRLQW
QRWWUDQVSDUHQW
(,1,7
K
7&/XV
20.8
System reset
*$3*5,
105/188
106/188
9,/
9,/
9,+
3>@
3>@
3>@
:'7&21
>@
567
53'
567)
LGHDO
567,1
567287
QRWWUDQVSDUHQW
QRWWUDQVSDUHQW
QRWWUDQVSDUHQW
K
7ILOWHU567
QV
7&/XV
&K
QRWWUDQVSDUHQW
7&/
7ILOWHU567
QV
WUDQVSDUHQW
WUDQVSDUHQW
WUDQVSDUHQW
PV&FKDUJH
7&/
&K
/DWFKLQJSRLQW
/DWFKLQJSRLQW
QRWWUDQVSDUHQW
QRWWUDQVSDUHQW
QRWWUDQVSDUHQW
QRWWUDQVSDUHQW
/DWFKLQJSRLQW
/DWFKLQJSRLQW
7&/
K
(,1,7
System reset
ST10F272B/ST10F272E
*$3*5,
ST10F272B/ST10F272E
20.9
System reset
Reset summary
A summary of the different reset events is reported in Table 50.
Short Hardware
Reset
(Synchronous) (1)
min
max
LHWR
SHWR
SWR
WDTR
WDTCON Flags
N Asynch.
1 ms (VREG)
1.2 ms
(Reson. + PLL)
10.2 ms
(Crystal + PLL)
N Asynch.
1ms (VREG)
FORBIDDEN
NOT APPLICABLE
N Asynch.
500ns
N Asynch.
500ns
Asynch.
500ns
Asynch.
500ns
N Synch.
1032 + 12 TCL +
max(4 TCL, 500ns)
N Synch.
1032 + 12 TCL +
max(4 TCL, 500ns)
1032 + 12 TCL +
max(4 TCL, 500ns)
Power-on Reset
Hardware Reset
(Asynchronous)
RSTIN
PONR
Synch.
Asynch.
Bidir
Event
EA
Reset event
RPD
Table 50.
Synch.
Synch.
1032 + 12 TCL +
max(4 TCL, 500ns)
Long Hardware
Reset
(Synchronous)
N Synch.
1032 + 12 TCL +
max(4 TCL, 500ns)
N Synch.
1032 + 12 TCL +
max(4 TCL, 500ns)
1032 + 12 TCL +
max(4 TCL, 500ns)
Synch.
Synch.
1032 + 12 TCL +
max(4 TCL, 500ns)
107/188
System reset
Reset event (continued)
Synch.
Asynch.
SHWR
SWR
WDTR
Bidir
LHWR
PONR
WDTCON Flags
EA
Event
RSTIN
RPD
Table 50.
ST10F272B/ST10F272E
N Synch.
Not activated
N Synch.
Not activated
Synch.
Not activated
Synch.
N Synch.
Not activated
N Synch.
Not activated
Synch.
Not activated
Synch.
min
max
1. It can degenerate into a Long Hardware Reset and consequently differently flagged (see Section 20.3 for details).
2. When Bidirectional is active (and with RPD=0), it can be followed by a Short Hardware Reset and consequently differently
flagged (see Section 20.6 for details).
The start-up configurations and some system features are selected on reset sequences as
described in Table 51 and Figure 34.
Table 51 describes what is the system configuration latched on PORT0 in the six different
reset modes. Figure 34 summarizes the state of bits of PORT0 latched in RP0H, SYSCON,
BUSCON0 registers.
Table 51.
Reserved
BSL
Reserved
Reserved
Adapt Mode
Emu Mode
P0H.5
P0H.4
P0H.3
P0H.2
P0H.1
P0H.0
P0L.7
P0L.6
P0L.5
P0L.4
P0L.3
P0L.2
P0L.1
P0L.0
Software Reset
Watchdog Reset
Sample event
108/188
Bus Type
X: Pin is sampled
-: Pin is not sampled
WR config.
P0H.6
Chip Selects
P0H.7
Clock Options
PORT0
ST10F272B/ST10F272E
System reset
Figure 34. PORT0 bits latched into the different registers after reset
PORT0
H.7
H.6
H.5
H.4
CLKCFG
H.3
H.2
H.1
H.0
SALSEL
CSSEL
WRC
CLKCFG
SALSEL
CSSEL
WRC
Clock
Generator
Port 4
Logic
Port 6
Logic
L.7
L.6
L.5
BUSTYP
L.4
L.3
BSL
L.2
Res.
L.1
L.0
ADP
EMU
RP0H
Bootstrap Loader
2
EA / VSTBY
P0L.7
P0L.7
SYSCON
ROMEN BYTDIS
10
BUSCON0
BUS ALE
ACT0 CTL0
WRCFG
7
10
BTYP
7
109/188
21
ST10F272B/ST10F272E
Note:
All external bus actions are completed before Idle or Power Down mode is entered.
However, Idle or Power Down mode is not entered if READY is enabled, but has not been
activated (driven low for negative polarity, or driven high for positive polarity) during the last
bus access.
21.1
Idle mode
Idle mode is entered by running IDLE protected instruction. The CPU operation is stopped
and the peripherals still run.
Idle mode is terminate by any interrupt request. Whatever the interrupt is serviced or not,
the instruction following the IDLE instruction will be executed after return from interrupt
(RETI) instruction, then the CPU resumes the normal program.
21.2
A 32 kHz crystal is connected to the on-chip low-power oscillator (pins XTAL3 / XTAL4)
and running. In this case the main oscillator is stopped when Power Down mode is
entered, while the Real Time Clock continue counting using 32 kHz clock signal as
reference. The presence of a running low-power oscillator is detected after the Poweron: this clock is immediately assumed (if present, or as soon as it is detected) as
reference for the Real Time Clock counter and it will be maintained forever (unless
specifically disabled via software).
Only the main oscillator is running (XTAL1 / XTAL2 pins). In this case the main
oscillator is not stopped when Power Down is entered, and the Real Time Clock
continue counting using the main oscillator clock signal as reference.
There are two different operating Power Down modes: protected mode and interruptible
mode.
110/188
ST10F272B/ST10F272E
Before entering Power Down mode (by executing the instruction PWRDN), bit VREGOFF in
XMISC register must be set.
Note:
Leaving the main voltage regulator active during Power Down may lead to unexpected
behavior (ex: CPU wake-up) and power consumption higher than what specified.
21.2.1
21.2.2
9''
5
N:PLQLPXP
53'
&
P)7\SLFDO
*$3*5,
To exit Power Down mode with an external interrupt, an EXxIN (x = 7...0) pin has to be
asserted for at least 40ns.
21.3
Stand-by mode
In Stand-by mode, it is possible to turn off the main VDD provided that VSTBY is available
through the dedicated pin of the ST10F272.
To enter Stand-by mode it is mandatory to held the device under reset: once the device is
under reset, the RAM is disabled (see XRAM2EN bit of XPERCON register), and its digital
interface is frozen in order to avoid any kind of data corruption.
A dedicated embedded low-power voltage regulator is implemented to generate the internal
low voltage supply (about 1.65V in Stand-by mode) to bias all those circuits that shall remain
111/188
ST10F272B/ST10F272E
active: the portion of XRAM (16Kbytes for ST10F272E), the RTC counters and 32 kHz onchip oscillator amplifier.
In normal running mode (that is when main VDD is on) the VSTBY pin can be tied to VSS
during reset to exercise the EA functionality associated with the same pin: the voltage
supply for the circuitries which are usually biased with VSTBY (see in particular the 32 kHz
oscillator used in conjunction with Real Time Clock module), is granted by the active main
VDD.
It must be noted that Stand-by Mode can generate problems associated with the usage of
different power supplies in CMOS systems; particular attention must be paid when the
ST10F272 I/O lines are interfaced with other external CMOS integrated circuits: if VDD of
ST10F272 becomes (for example in Stand-by Mode) lower than the output level forced by
the I/O lines of these external integrated circuits, the ST10F272 could be directly powered
through the inherent diode existing on ST10F272 output driver circuitry. The same is valid
for ST10F272 interfaced to active/inactive communication buses during Stand-by mode:
current injection can be generated through the inherent diode.
Furthermore, the sequence of turning on/off of the different voltage could be critical for the
system (not only for the ST10F272 device). The device Stand-by mode current (ISTBY) may
vary while VDD to VSTBY (and vice versa) transition occurs: some current flows between VDD
and VSTBY pins. System noise on both VDD and VSTBY can contribute to increase this
phenomenon.
21.3.1
112/188
ST10F272B/ST10F272E
Warning:
21.3.2
21.3.3
113/188
21.3.4
ST10F272B/ST10F272E
CPU
Peripherals
RTC
Main OSC
32 kHz OSC
STBY XRAM
XRAM
Mode
VSTBY
VDD
Table 52.
on
on
off
on
off
run
off
biased
biased
on
on
off
on
on
run
on
biased
biased
on
on
off
off
off
off
off
biased
biased
on
on
off
off
on
on
off
biased
biased
on
on
off
off
on
off
on
biased
biased
off
on
off
off
off
off
off
biased
off
off
on
off
off
on
off
on
biased
off
Idle
Power down
Stand-by
114/188
ST10F272B/ST10F272E
22
115/188
Register set
23
ST10F272B/ST10F272E
Register set
This section summarizes all registers implemented in the ST10F272, ordered by name.
23.1
Table 53.
Name
8-bit
address
Description
Reset
value
ADCICb
FF98h
CCh
- - 00h
ADCONb
FFA0h
D0h
0000h
ADDAT
FEA0h
50h
0000h
ADDAT2
F0A0hE
50h
0000h
ADDRSEL1
FE18h
0Ch
0000h
ADDRSEL2
FE1Ah
0Dh
0000h
ADDRSEL3
FE1Ch
0Eh
0000h
ADDRSEL4
FE1Eh
0Fh
0000h
ADEICb
FF9Ah
CDh
- - 00h
BUSCON0b
FF0Ch
86h
0xx0h
BUSCON1b
FF14h
8Ah
0000h
BUSCON2b
FF16h
8Bh
0000h
BUSCON3b
FF18h
8Ch
0000h
BUSCON4b
FF1Ah
8Dh
0000h
CAPREL
FE4Ah
25h
0000h
CC0
FE80h
40h
CAPCOM register 0
0000h
CC0ICb
FF78h
BCh
- - 00h
CC1
FE82h
41h
CAPCOM register 1
0000h
CC1ICb
FF7Ah
BDh
- - 00h
CC2
FE84h
42h
CAPCOM register 2
0000h
CC2ICb
FF7Ch
BEh
- - 00h
CC3
FE86h
43h
CAPCOM register 3
0000h
CC3ICb
FF7Eh
BFh
- - 00h
116/188
ST10F272B/ST10F272E
Table 53.
Name
Register set
8-bit
address
Description
Reset
value
CC4
FE88h
44h
CAPCOM register 4
0000h
CC4ICb
FF80h
C0h
- - 00h
CC5
FE8Ah
45h
CAPCOM register 5
0000h
CC5ICb
FF82h
C1h
- - 00h
CC6
FE8Ch
46h
CAPCOM register 6
0000h
CC6ICb
FF84h
C2h
- - 00h
CC7
FE8Eh
47h
CAPCOM register 7
0000h
CC7ICb
FF86h
C3h
- - 00h
CC8
FE90h
48h
CAPCOM register 8
0000h
CC8ICb
FF88h
C4h
- - 00h
CC9
FE92h
49h
CAPCOM register 9
0000h
CC9ICb
FF8Ah
C5h
- - 00h
CC10
FE94h
4Ah
CAPCOM register 10
0000h
CC10ICb
FF8Ch
C6h
- - 00h
CC11
FE96h
4Bh
CAPCOM register 11
0000h
CC11ICb
FF8Eh
C7h
- - 00h
CC12
FE98h
4Ch
CAPCOM register 12
0000h
CC12ICb
FF90h
C8h
- - 00h
CC13
FE9Ah
4Dh
CAPCOM register 13
0000h
CC13ICb
FF92h
C9h
- - 00h
CC14
FE9Ch
4Eh
CAPCOM register 14
0000h
CC14ICb
FF94h
CAh
- - 00h
CC15
FE9Eh
4Fh
CAPCOM register 15
0000h
CC15ICb
FF96h
CBh
- - 00h
CC16
FE60h
30h
CAPCOM register 16
0000h
CC16ICb
F160hE
B0h
- - 00h
CC17
FE62h
31h
CAPCOM register 17
0000h
CC17ICb
F162hE
B1h
- - 00h
CC18
FE64h
32h
CAPCOM register 18
0000h
CC18ICb
F164hE
B2h
- - 00h
CC19
FE66h
33h
CAPCOM register 19
0000h
CC19ICb
F166hE
B3h
- - 00h
CC20
FE68h
34h
CAPCOM register 20
0000h
CC20ICb
F168hE
B4h
- - 00h
117/188
Register set
Table 53.
Name
ST10F272B/ST10F272E
8-bit
address
Description
Reset
value
CC21
FE6Ah
35h
CAPCOM register 21
0000h
CC21ICb
F16AhE
B5h
- - 00h
CC22
FE6Ch
36h
CAPCOM register 22
0000h
CC22ICb
F16ChE
B6h
- - 00h
CC23
FE6Eh
37h
CAPCOM register 23
0000h
CC23ICb
F16EhE
B7h
- - 00h
CC24
FE70h
38h
CAPCOM register 24
0000h
CC24ICb
F170hE
B8h
- - 00h
CC25
FE72h
39h
CAPCOM register 25
0000h
CC25ICb
F172hE
B9h
- - 00h
CC26
FE74h
3Ah
CAPCOM register 26
0000h
CC26ICb
F174hE
BAh
- - 00h
CC27
FE76h
3Bh
CAPCOM register 27
0000h
CC27ICb
F176hE
BBh
- - 00h
CC28
FE78h
3Ch
CAPCOM register 28
0000h
CC28ICb
F178hE
BCh
- - 00h
CC29
FE7Ah
3Dh
CAPCOM register 29
0000h
CC29ICb
F184hE
C2h
- - 00h
CC30
FE7Ch
3Eh
CAPCOM register 30
0000h
CC30ICb
F18ChE
C6h
- - 00h
CC31
FE7Eh
3Fh
CAPCOM register 31
0000h
CC31ICb
F194hE
CAh
- - 00h
CCM0b
FF52h
A9h
0000h
CCM1b
FF54h
AAh
0000h
CCM2b
FF56h
ABh
0000h
CCM3b
FF58h
ACh
0000h
CCM4b
FF22h
91h
0000h
CCM5b
FF24h
92h
0000h
CCM6b
FF26h
93h
0000h
CCM7b
FF28h
94h
0000h
CP
FE10h
08h
FC00h
CRICb
FF6Ah
B5h
- - 00h
CSP
FE08h
04h
0000h
DP0Lb
F100hE
80h
- - 00h
118/188
ST10F272B/ST10F272E
Table 53.
Name
Register set
8-bit
address
Description
Reset
value
DP0Hb
F102hE
81h
- - 00h
DP1Lb
F104hE
82h
- - 00h
DP1Hb
F106hE
83h
- - 00h
DP2 b
FFC2h
E1h
0000h
DP3 b
FFC6h
E3h
0000h
DP4 b
FFCAh
E5h
- - 00h
DP6 b
FFCEh
E7h
- - 00h
DP7 b
FFD2h
E9h
- - 00h
DP8 b
FFD6h
EBh
- - 00h
DPP0
FE00h
00h
0000h
DPP1
FE02h
01h
0001h
DPP2
FE04h
02h
0002h
DPP3
FE06h
03h
0003h
EMUCON
FE0Ah
05h
EXICONb
F1C0hE
E0h
0000h
EXISELb
F1DAhE
EDh
0000h
IDCHIP
F07ChE
3Eh
110nh
IDMANUF
F07EhE
3Fh
0403h
IDMEM
F07AhE
3Dh
3040h
IDPROG
F078hE
3Ch
0040h
IDX0b
FF08h
84h
0000h
IDX1b
FF0Ah
85h
0000h
MAH
FE5Eh
2Fh
0000h
MAL
FE5Ch
2Eh
0000h
MCWb
FFDCh
EEh
0000h
MDCb
FF0Eh
87h
0000h
MDH
FE0Ch
06h
0000h
MDL
FE0Eh
07h
0000h
MRWb
FFDAh
EDh
0000h
MSWb
FFDEh
EFh
0200h
ODP2b
F1C2hE
E1h
0000h
ODP3b
F1C6hE
E3h
0000h
ODP4b
F1CAhE
E5h
- - 00h
ODP6b
F1CEhE
E7h
- - 00h
- - XXh
119/188
Register set
Table 53.
Name
ST10F272B/ST10F272E
8-bit
address
Description
Reset
value
ODP7b
F1D2hE
E9h
- - 00h
ODP8b
F1D6hE
EBh
- - 00h
ONESb
FF1Eh
8Fh
FFFFh
P0L b
FF00h
80h
- - 00h
P0H b
FF02h
81h
- - 00h
P1L b
FF04h
82h
- - 00h
P1H b
FF06h
83h
- - 00h
P2 b
FFC0h
E0h
Port 2 register
0000h
P3 b
FFC4h
E2h
Port 3 register
0000h
P4 b
FFC8h
E4h
- - 00h
P5 b
FFA2h
D1h
P6 b
FFCCh
E6h
- - 00h
P7 b
FFD0h
E8h
- - 00h
P8 b
FFD4h
EAh
- - 00h
P5DIDISb
FFA4h
D2h
0000h
PECC0
FEC0h
60h
0000h
PECC1
FEC2h
61h
0000h
PECC2
FEC4h
62h
0000h
PECC3
FEC6h
63h
0000h
PECC4
FEC8h
64h
0000h
PECC5
FECAh
65h
0000h
PECC6
FECCh
66h
0000h
PECC7
FECEh
67h
0000h
PICONb
F1C4hE
E2h
- - 00h
PP0
F038hE
1Ch
0000h
PP1
F03AhE
1Dh
0000h
PP2
F03ChE
1Eh
0000h
PP3
F03EhE
1Fh
0000h
PSWb
FF10h
88h
0000h
PT0
F030hE
18h
0000h
PT1
F032hE
19h
0000h
PT2
F034hE
1Ah
0000h
PT3
F036hE
1Bh
0000h
PW0
FE30h
18h
0000h
120/188
XXXXh
ST10F272B/ST10F272E
Table 53.
Name
Register set
8-bit
address
Description
Reset
value
PW1
FE32h
19h
0000h
PW2
FE34h
1Ah
0000h
PW3
FE36h
1Bh
0000h
PWMCON0b
FF30h
98h
0000h
PWMCON1b
FF32h
99h
0000h
PWMICb
F17EhE
BFh
- - 00h
QR0
F004hE
02h
0000h
QR1
F006hE
03h
0000h
QX0
F000hE
00h
0000h
QX1
F002hE
01h
0000h
RP0Hb
F108hE
84h
S0BG
FEB4h
5Ah
0000h
S0CONb
FFB0h
D8h
0000h
S0EICb
FF70h
B8h
- - 00h
S0RBUF
FEB2h
59h
- - XXh
S0RICb
FF6Eh
B7h
- - 00h
S0TBICb
F19ChE
CEh
- - 00h
S0TBUF
FEB0h
58h
0000h
S0TICb
FF6Ch
B6h
- - 00h
SP
FE12h
09h
FC00h
SSCBR
F0B4hE
5Ah
0000h
SSCCONb
FFB2h
D9h
0000h
SSCEICb
FF76h
BBh
- - 00h
SSCRB
F0B2hE
59h
SSCRICb
FF74h
BAh
- - 00h
SSCTB
F0B0hE
58h
0000h
SSCTICb
FF72h
B9h
- - 00h
STKOV
FE14h
0Ah
FA00h
STKUN
FE16h
0Bh
FC00h
SYSCONb
FF12h
89h
T0
FE50h
28h
0000h
T01CONb
FF50h
A8h
0000h
T0ICb
FF9Ch
CEh
- - 00h
T0REL
FE54h
2Ah
0000h
- - XXh
XXXXh
0xx0h 1)
121/188
Register set
Table 53.
Name
ST10F272B/ST10F272E
8-bit
address
Description
Reset
value
T1
FE52h
29h
0000h
T1ICb
FF9Eh
CFh
- - 00h
T1REL
FE56h
2Bh
0000h
T2
FE40h
20h
0000h
T2CONb
FF40h
A0h
0000h
T2ICb
FF60h
B0h
- - 00h
T3
FE42h
21h
0000h
T3CONb
FF42h
A1h
0000h
T3ICb
FF62h
B1h
- - 00h
T4
FE44h
22h
0000h
T4CONb
FF44h
A2h
0000h
T4ICb
FF64h
B2h
- - 00h
T5
FE46h
23h
0000h
T5CONb
FF46h
A3h
0000h
T5ICb
FF66h
B3h
- - 00h
T6
FE48h
24h
0000h
T6CONb
FF48h
A4h
0000h
T6ICb
FF68h
B4h
- - 00h
T7
F050hE
28h
0000h
T78CONb
FF20h
90h
0000h
T7ICb
F17AhE
BDh
- - 00h
T7REL
F054hE
2Ah
0000h
T8
F052hE
29h
0000h
T8ICb
F17ChE
BEh
- - 00h
T8REL
F056hE
2Bh
0000h
TFR b
FFACh
D6h
0000h
WDT
FEAEh
57h
0000h
WDTCONb
FFAEh
D7h
00xxh 2)
XADRS3
F01ChE
0Eh
800Bh
XP0ICb
F186hE
C3h
- - 00h 3)
XP1ICb
F18EhE
C7h
- - 00h 3)
XP2ICb
F196hE
CBh
- - 00h 3)
XP3ICb
F19EhE
CFh
- - 00h 3)
122/188
ST10F272B/ST10F272E
Table 53.
Name
Register set
8-bit
address
Description
Reset
value
XPERCONb
F024hE
12h
- - 05h
ZEROSb
FF1Ch
8Eh
0000h
Note:
1. The system configuration is selected during reset. SYSCON reset value is 0000 0xx0
x000 0000b.
2. Reset Value depends on different triggered reset event.
3. The XPnIC Interrupt Control Registers control interrupt requests from integrated X-Bus
peripherals. Some software controlled interrupt requests may be generated by setting the
XPnIR bits (of XPnIC register) of the unused X-Peripheral nodes.
23.2
X-registers
Table 54 lists all X-Bus registers which are implemented in the ST10F272 ordered by their
name. The FLASH control registers are listed in a separate section, in spite of they also are
physically mapped on X-Bus memory space.
Note:
Name
Physical
address
Description
Reset
value
CAN1BRPER
EF0Ch
0000h
CAN1BTR
EF06h
2301h
CAN1CR
EF00h
0001h
CAN1EC
EF04h
0000h
CAN1IF1A1
EF18h
0000h
CAN1IF1A2
EF1Ah
0000h
CAN1IF1CM
EF12h
0000h
CAN1IF1CR
EF10h
0001h
CAN1IF1DA1
EF1Eh
0000h
CAN1IF1DA2
EF20h
0000h
CAN1IF1DB1
EF22h
0000h
CAN1IF1DB2
EF24h
0000h
CAN1IF1M1
EF14h
FFFFh
CAN1IF1M2
EF16h
FFFFh
CAN1IF1MC
EF1Ch
0000h
CAN1IF2A1
EF48h
0000h
CAN1IF2A2
EF4Ah
0000h
123/188
Register set
ST10F272B/ST10F272E
Table 54.
Name
124/188
Physical
address
Description
Reset
value
CAN1IF2CM
EF42h
0000h
CAN1IF2CR
EF40h
0001h
CAN1IF2DA1
EF4Eh
0000h
CAN1IF2DA2
EF50h
0000h
CAN1IF2DB1
EF52h
0000h
CAN1IF2DB2
EF54h
0000h
CAN1IF2M1
EF44h
FFFFh
CAN1IF2M2
EF46h
FFFFh
CAN1IF2MC
EF4Ch
0000h
CAN1IP1
EFA0h
0000h
CAN1IP2
EFA2h
0000h
CAN1IR
EF08h
0000h
CAN1MV1
EFB0h
0000h
CAN1MV2
EFB2h
0000h
CAN1ND1
EF90h
0000h
CAN1ND2
EF92h
0000h
CAN1SR
EF02h
0000h
CAN1TR
EF0Ah
00x0h
CAN1TR1
EF80h
0000h
CAN1TR2
EF82h
0000h
CAN2BRPER
EE0Ch
0000h
CAN2BTR
EE06h
2301h
CAN2CR
EE00h
0001h
CAN2EC
EE04h
0000h
CAN2IF1A1
EE18h
0000h
CAN2IF1A2
EE1Ah
0000h
CAN2IF1CM
EE12h
0000h
CAN2IF1CR
EE10h
0001h
CAN2IF1DA1
EE1Eh
0000h
CAN2IF1DA2
EE20h
0000h
CAN2IF1DB1
EE22h
0000h
CAN2IF1DB2
EE24h
0000h
CAN2IF1M1
EE14h
FFFFh
CAN2IF1M2
EE16h
FFFFh
ST10F272B/ST10F272E
Table 54.
Register set
List of XBus registers (continued)
Name
Physical
address
Description
Reset
value
CAN2IF1MC
EE1Ch
0000h
CAN2IF2A1
EE48h
0000h
CAN2IF2A2
EE4Ah
0000h
CAN2IF2CM
EE42h
0000h
CAN2IF2CR
EE40h
0001h
CAN2IF2DA1
EE4Eh
0000h
CAN2IF2DA2
EE50h
0000h
CAN2IF2DB1
EE52h
0000h
CAN2IF2DB2
EE54h
0000h
CAN2IF2M1
EE44h
FFFFh
CAN2IF2M2
EE46h
FFFFh
CAN2IF2MC
EE4Ch
0000h
CAN2IP1
EEA0h
0000h
CAN2IP2
EEA2h
0000h
CAN2IR
EE08h
0000h
CAN2MV1
EEB0h
0000h
CAN2MV2
EEB2h
0000h
CAN2ND1
EE90h
0000h
CAN2ND2
EE92h
0000h
CAN2SR
EE02h
0000h
CAN2TR
EE0Ah
00x0h
CAN2TR1
EE80h
0000h
CAN2TR2
EE82h
0000h
I2CCCR1
EA06h
0000h
I2CCCR2
EA0Eh
0000h
I2CCR
EA00h
0000h
I2CDR
EA0Ch
0000h
I2COAR1
EA08h
0000h
I2COAR2
EA0Ah
0000h
I2CSR1
EA02h
0000h
I2CSR2
EA04h
0000h
RTCAH
ED14h
XXXXh
RTCAL
ED12h
XXXXh
RTCCON
ED00H
000Xh
125/188
Register set
ST10F272B/ST10F272E
Table 54.
Name
126/188
Physical
address
Description
Reset
value
RTCDH
ED0Ch
XXXXh
RTCDL
ED0Ah
XXXXh
RTCH
ED10h
XXXXh
RTCL
ED0Eh
XXXXh
RTCPH
ED08h
XXXXh
RTCPL
ED06h
XXXXh
XCLKOUTDIV
EB02h
- - 00h
XEMU0
EB76h
XXXXh
XEMU1
EB78h
XXXXh
XEMU2
EB7Ah
XXXXh
XEMU3
EB7Ch
XXXXh
XIR0CLR
EB14h
0000h
XIR0SEL
EB10h
0000h
XIR0SET
EB12h
0000h
XIR1CLR
EB24h
0000h
XIR1SEL
EB20h
0000h
XIR1SET
EB22h
0000h
XIR2CLR
EB34h
0000h
XIR2SEL
EB30h
0000h
XIR2SET
EB32h
0000h
XIR3CLR
EB44h
0000h
XIR3SEL
EB40h
0000h
XIR3SET
EB42h
0000h
XMISC
EB46h
0000h
XP1DIDIS
EB36h
0000h
XPEREMU
EB7Eh
XXXXh
XPICON
EB26h
- - 00h
XPOLAR
EC04h
0000h
XPP0
EC20h
0000h
XPP1
EC22h
0000h
XPP2
EC24h
0000h
XPP3
EC26h
0000h
XPT0
EC10h
0000h
XPT1
EC12h
0000h
ST10F272B/ST10F272E
Table 54.
Register set
List of XBus registers (continued)
Name
Physical
address
Description
Reset
value
XPT2
EC14h
0000h
XPT3
EC16h
0000h
XPW0
EC30h
0000h
XPW1
EC32h
0000h
XPW2
EC34h
0000h
XPW3
EC36h
0000h
XPWMCON0
EC00h
0000h
XPWMCON0CLR
EC08h
0000h
XPWMCON0SET
EC06h
0000h
XPWMCON1
EC02h
0000h
XPWMCON1CLR
EC0Ch
0000h
XPWMCON1SET
EC0Ah
0000h
XPWMPORT
EC80h
0000h
XS1BG
E906h
0000h
XS1CON
E900h
0000h
XS1CONCLR
E904h
0000h
XS1CONSET
E902h
0000h
XS1PORT
E980h
0000h
XS1RBUF
E90Ah
0000h
XS1TBUF
E908h
0000h
XSSCBR
E80Ah
0000h
XSSCCON
E800h
0000h
XSSCCONCLR
E804h
0000h
XSSCCONSET
E802h
0000h
XSSCPORT
E880h
0000h
XSSCRB
E808h
XXXXh
XSSCTB
E806h
0000h
127/188
Register set
23.3
ST10F272B/ST10F272E
23.4
Description
Reset value
FARH
0x0008 0012
0000h
FARL
0x0008 0010
0000h
FCR0H
0x0008 0002
0000h
FCR0L
0x0008 0000
0000h
FCR1H
0x0008 0006
0000h
FCR1L
0x0008 0004
0000h
FDR0H
0x0008 000A
FFFFh
FDR0L
0x0008 0008
FFFFh
FDR1H
0x0008 000E
FFFFh
FDR1L
0x0008 000C
FFFFh
FER
0x0008 0014
0000h
FNVAPR0
0x0008 DFB8
ACFFh
FNVAPR1H
0x0008 DFBE
FFFFh
FNVAPR1L
0x0008 DFBC
FFFFh
FNVWPIR
0x0008 DFB0
FFFFh
XFVTAUR0
0x0000 EB50
0000h
Identification registers
The ST10F272 have four Identification registers, mapped in ESFR space. These registers
contain:
128/188
A manufacturer identifier
ST10F272B/ST10F272E
Register set
14
13
12
11
ESFR
10
MANUF
Table 56.
IDMANUF
Bit
Function
Manufacturer identifier
020h: STMicroelectronics manufacturer (JTAG worldwide normalization).
MANUF
14
13
Table 57.
12
ESFR
11
10
REVID
IDCHIP
Function
IDCHIP
Device identifier
110h: ST10F272 identifier (272).
REVID
13
12
ESFR
11
10
MEMTYP
MEMSIZE
Table 58.
IDCHIP
Bit
15
IDMEM
Bit
Function
Internal memory size
MEMSIZE
MEMTYP
0h: ROM-Less
1h: (M) ROM memory
2h: (S) Standard Flash memory
3h: (H) High performance Flash memory (ST10F272)
4h...Fh: Reserved
129/188
Register set
ST10F272B/ST10F272E
14
Table 59.
13
12
ESFR
11
10
PROGVPP
PROGVDD
IDPROG
Bit
Note:
Function
PROGVDD
PROGVPP
130/188
IDMANUF
0403h
IDCHIP
IDMEM
F040h
IDPROG
0040h
ST10F272B/ST10F272E
Electrical characteristics
24
Electrical characteristics
24.1
Table 60.
Symbol
Parameter
Values
Unit
VDD
-0.5 to +6.5
VSTBY
-0.5 to +6.5
VAREF
-0.3 to VDD
VAGND
VSS
VIO
IOV
10
mA
ITOV
| 75 |
mA
TST
Storage temperature
-65 to +150
ESD
2000
131/188
Electrical characteristics
ST10F272B/ST10F272E
24.2
Table 61.
Symbol
VDD
VSTBY
VAREF
Parameter
Operating supply voltage
Operationg stand-by supply voltage
(1)
(2)
Unit
Min
Max
4.5
5.5
4.5
5.5
TA
-40
+125
TJ
-40
+150
1. The value of the VSTBY voltage is specified in the range 4.5 - 5.5 Volt. Nevertheless, it is acceptable to exceed the upper
limit (up to 6.0 Volt) for a maximum of 100 hours over the global 300000 hours, representing the lifetime of the device
(about 30 years). On the other hand, it is possible to exceed the lower limit (down to 4.0 Volt) whenever RTC and 32kHz
on-chip oscillator amplifier are turned off (only Stand-by RAM powered through VSTBY pin in Stand-by mode). When
VSTBY voltage is lower than main VDD, the input section of VSTBY/EA pin can generate a spurious static consumption on
VDD power supply (in the range of tenth of A).
2. For details on operating conditions concerning the usage of A/D Converter refer to Section 24.7.
24.3
Power considerations
The average chip-junction temperature, TJ, in degrees Celsius, may be calculated using the
following equation:
TJ = TA + (PD x JA) (1)
Where:
TA is the Ambient Temperature in C,
JA is the Package Junction-to-Ambient Thermal Resistance, in C/W,
PD is the sum of PINT and PI/O (PD = PINT + PI/O),
PINT is the product of IDD and VDD, expressed in Watt. This is the Chip Internal Power,
PI/O represents the Power Dissipation on Input and Output Pins; User Determined.
Most of the time for the applications PI/O < PINT and may be neglected. On the other hand,
PI/O may be significant if the device is configured to drive continuously external modules
and/or memories.
An approximate relationship between PD and TJ (if PI/O is neglected) is given by:
PD = K / (TJ + 273C) (2)
Therefore (solving equations 1 and 2):
K = PD x (TA + 273C) + JA x PD2 (3)
Where:
K is a constant for the particular part, which may be determined from equation (3) by
measuring PD (at equilibrium) for a known TA. Using this value of K, the values of PD and TJ
may be obtained by solving equations (1) and (2) iteratively for any value of TA.
132/188
ST10F272B/ST10F272E
Table 62.
Electrical characteristics
Thermal characteristics
Symbol
Description
Value (typical)
Unit
JA
30
40
35
C/W
Based on thermal characteristics of the package and with reference to the power
consumption figures provided in next tables and diagrams, the following product
classification can be proposed. Anyhow, the exact power consumption of the device inside
the application must be computed according to different working conditions, thermal
profiles, real thermal resistance of the system (including printed circuit board or other
substrata), I/O activity, and so on.
Table 63.
24.4
Package characteristics
Package
PQFP 144
40 / +125C
1 64MHz
LQFP 144
1 40MHz
40 / +125
Parameter interpretation
The parameters listed in the following tables represent the characteristics of the ST10F272
and its demands on the system.
Where the ST10F272 logic provides signals with their respective timing characteristics, the
symbol CC for Controller Characteristics, is included in the Symbol column. Where the
external system must provide signals with their respective timing characteristics to the
ST10F272, the symbol SR for System Requirement, is included in the Symbol column.
133/188
Electrical characteristics
24.5
ST10F272B/ST10F272E
DC characteristics
VDD = 5 V 10%, VSS = 0 V, TA = 40 to +125C
Table 64.
DC characteristics
Limit values
Parameter
Symbol
min.
max.
Unit
Test Condition
VIL
SR
0.3
0.8
VILS SR
0.3
0.3 VDD
VIL1 SR
0.3
0.3 VDD
VIL2 SR
0.3
0.3 VDD
VIL3 SR
0.3
0.8
VIH
2.0
VDD + 0.3
VIHS SR
0.7 VDD
VDD + 0.3
0.7 VDD
VDD + 0.3
VIH2 SR
0.7 VDD
VDD + 0.3
VIH3 SR
2.0
VDD + 0.3
VHYS CC
400
700
mV
(1)
VHYSSCC
750
1400
mV
(1)
VHYS1CC
750
1400
mV
(1)
VHYS2CC
50
mV
(1)
VHYS3CC
400
700
mV
(1)
VHYS4CC
500
1500
mV
(1)
VOL CC
0.4
0.05
IOL = 8 mA
IOL = 1 mA
VOL1 CC
0.4
0.05
IOL1 = 4 mA
IOL1 = 0.5 mA
VOL2 CC
VDD
0.5 VDD
0.3 VDD
IOL2 = 85 A
IOL2 = 80 A
IOL2 = 60 A
134/188
SR
ST10F272B/ST10F272E
Table 64.
Electrical characteristics
DC characteristics (continued)
Limit values
Parameter
Symbol
min.
max.
Unit
Test Condition
VOH CC
VDD 0.8
VDD 0.08
IOH = 8 mA
IOH = 1 mA
VOH1 CC
VDD 0.8
VDD 0.08
IOH1 = 4 mA
IOH1 = 0.5 mA
VOH2 CC
0
0.3 VDD
0.5 VDD
IOH2 = 2 mA
IOH2 = 750 A
IOH2 = 150 A
|IOZ1 | CC
0.2
|IOZ2 | CC
0.5
|IOZ3 | CC
+1.0
0.5
|IOZ4 | CC
3.0
|IOZ5 | CC
1.0
|IOV1 | SR
mA
(1) (5)
|IOV2 | SR
+5
1
mA
(1) (5)
RRST CC
50
250
100 k nominal
IRWH
40
VOUT = 2.4 V
IRWL
500
VOUT = 0.4V
IALEL
20
VOUT = 0.4V
IALEH
300
VOUT = 2.4 V
IP6H
40
VOUT = 2.4 V
(6) (8)
(6) (7)
(6) (8)
500
VOUT = 0.4V
IP0H
6)
10
VIN = 2.0V
IP0L
7)
100
VIN = 0.8V
10
pF
(1) (6)
ICC1
15 + 1.5
fCPU
mA
ICC2
15 + 1.5
fCPU
mA
IID
15 + 0.6
fCPU
mA
IP6L
135/188
Electrical characteristics
Table 64.
ST10F272B/ST10F272E
DC characteristics (continued)
Limit values
Parameter
Symbol
min.
max.
Unit
Test Condition
IPD1
200
TA = 25C
IPD2
400
Typical
Value
TA = 25C
IPD3
200
TA = 25C
120
VSTBY = 5.5 V
TA = TJ = 25C
500
VSTBY = 5.5 V
TA = TJ = 125C
120
VSTBY = 5.5 V
TA = TJ = 25C
500
VSTBY = 5.5 V
TA = TJ = 125C
2.5
mA
ISB1
ISB2
ISB3
136/188
ST10F272B/ST10F272E
Electrical characteristics
10. The power supply current is a function of the operating frequency (fCPU is expressed in MHz). This dependency is
illustrated in the Figure 37 below. This parameter is tested at VDDmax and at maximum CPU clock frequency with all
outputs disconnected and all inputs at VIL or VIH, RSTIN pin at VIH1min: this implies I/O current is not considered. The
device is doing the following:
- Fetching code from all sectors of IFlash, accessing in read (few fetches) and write to XRAM
- Watchdog Timer is enabled and regularly serviced
- RTC is running with main oscillator clock as reference, generating a tick interrupts every 192 clock cycles
- Four channel of XPWM are running (waves period: 2, 2.5, 3 and 4 CPU clock cycles): no output toggling
- Five General Purpose Timers are running in timer mode with prescaler equal to 8 (T2, T3, T4, T5, T6)
- ADC is in Auto Scan Continuous Conversion mode on all 16 channels of Port5
- All interrupts generated by XPWM, RTC, Timers and ADC are not serviced
11. The Idle mode supply current is a function of the operating frequency (fCPU is expressed in MHz). This dependency is
illustrated in the Figure 36. These parameters are tested and at maximum CPU clock with all outputs disconnected and all
inputs at VIL or VIH, RSTIN pin at VIH1min.
12. This parameter is tested including leakage currents. All inputs (including pins configured as inputs) at 0 V to 0.1 V or at VDD
0.1 V to VDD, VAREF = 0 V, all outputs (including pins configured as outputs) disconnected. Besides, the Main Voltage
Regulator is assumed off: in case it is not, additional 1mA shall be assumed.
3
&&,2
&ORFN
$OWHUQDWHGDWDLQSXW
,QSXW
ODWFK
)DVWH[WHUQDOLQWHUUXSWLQSXW
7H VWPRGH
)ODVKVHQVHDPSOLILHU
DQGFROXPQGHFRGHU
*$3*5,
137/188
Electrical characteristics
ST10F272B/ST10F272E
Figure 37. Supply current versus the operating frequency (RUN and IDLE modes)
,&& ,&&
,>P$@
,,'
I&38>0+]@
*$3*5,
138/188
ST10F272B/ST10F272E
24.6
Electrical characteristics
Flash characteristics
VDD = 5 V 10%, VSS = 0 V
Table 65.
Flash characteristics
Parameter
Typical
Maximum
TA = 25C
TA = 125C
Unit
Notes
0 cycles(1)
0 cycles(1)
100k cycles
35
80
290
60
150
570
1.6
2.0
3.9
0.6
0.5
0.9
0.8
1.0
0.9
not preprogrammed
preprogrammed
1.1
0.8
2.0
1.8
2.7
2.5
not preprogrammed
preprogrammed
1.7
1.3
3.7
3.3
5.1
4.7
not preprogrammed
preprogrammed
5.6
4.0
13.6
11.9
19.2
17.5
not preprogrammed
preprogrammed
40
40
10
10
30
30
20
20
20
ms
40
90
300
(64-bit)(2))
(4)
(4)
1. The figures are given after about 100 cycles due to testing routines (0 cycles at the final customer).
2. Word and Double Word Programming times are provided as average values derived from a full sector programming time:
absolute value of a Word or Double Word Programming time could be longer than the average value.
3. Bank Erase is obtained through a multiple Sector Erase operation (setting bits related to all sectors of the Bank). As
ST10F272 implements only one bank, the Bank Erase operation is equivalent to Module and Chip Erase operations.
4. Not 100% tested, guaranteed by Design Characterization.
139/188
Electrical characteristics
Table 66.
ST10F272B/ST10F272E
(-40C TA 125C)
256Kbyte (code store)
0 - 100
> 20 years
> 20 years
1,000
> 20 years
10,000
10 years
100,000
1 year
1. Two 64Kbyte Flash Sectors may be typically used to emulate up to 4, 8 or 16Kbyte of EEPROM. Therefore, in case of an
emulation of a 16Kbyte EEPROM, 100,000 Flash Program / Erase cycles are equivalent to 800,000 EEPROM
Program/Erase cycles. For an efficient use of the EEPROM Emulation please refer to dedicated Application Note document
(AN2061 - EEPROM Emulation with ST10F2xx). Contact your local field service, local sales person or STMicroelectronics
representative to get copy of such a guideline document.
24.7
Table 67.
Symbol
Unit
min.
Test Condition
max.
VAREF SR
4.5
VDD
VAGND SR
VSS
VSS + 0.2
VAIN SR
VAGND
VAREF
IAREF CC
5
1
mA
A
Running mode 3)
Power Down mode
Sample time
tS
CC
4)
Conversion time
tC
CC
5)
DNL CC
+1
LSB
No overload
INL CC
1.5
+1.5
LSB
No overload
OFS CC
1.5
+1.5
LSB
No overload
TUE CC
2.0
5.0
7.0
+2.0
+5.0
+7.0
LSB
Port5
Port1 - No overload 3)
Port1 - Overload 3)
CC
106
CP1 CC
pF
CP2 CC
4
6
pF
CS
3.5
pF
6)
6)
140/188
CC
Port5
Port1
ST10F272B/ST10F272E
Table 67.
Electrical characteristics
Symbol
Unit
min.
Test Condition
max.
RSW CC
600
1600
RAD CC
1300
Port5
Port1
1. VAREF can be tied to ground when A/D Converter is not in use: an extra consumption (around 200A) on
main VDD is added due to internal analogue circuitry not completely turned off: so, it is suggested to
maintain the VAREF at VDD level even when not in use, and eventually switch off the A/D Converter circuitry
setting bit ADOFF in ADCON register.
2. VAIN may exceed VAGND or VAREF up to the absolute maximum ratings. However, the conversion result in
these cases will be 0x000H or 0x3FFH, respectively.
3. Not 100% tested, guaranteed by design characterization.
4. During the sample time the input capacitance CAIN can be charged/discharged by the external source. The
internal resistance of the analog source must allow the capacitance to reach its final voltage level within tS.
After the end of the sample time tS, changes of the analog input voltage have no effect on the conversion
result.
Values for the sample clock tS depends on programming and can be taken from Table 68: A/D converter
programming.
5. This parameter includes the sample time tS, the time for determining the digital result and the time to load
the result register with the conversion result. Values for the conversion clock tCC depend on programming
and can be taken from next Table 68.
6. DNL, INL, OFS and TUE are tested at VAREF = 5.0 V, VAGND = 0V, VDD = 5.0 V. It is guaranteed by design
characterization for all other voltages within the defined voltage range.
LSB has a value of VAREF/1024.
For Port5 channels, the specified TUE ( 2LSB) is guaranteed also with an overload condition (see IOV
specification) occurring on maximum 2 not selected analog input pins of Port5 and the absolute sum of
input overload currents on all Port5 analog input pins does not exceed 10 mA.
For Port1 channels, the specified TUE is guaranteed when no overload condition is applied to Port1 pins:
when an overload condition occurs on maximum 2 not selected analog input pins of Port1 and the input
positive overload current on all analog input pins does not exceed 10 mA (either dynamic or static
injection), the specified TUE is degraded ( 7LSB). To get the same accuracy, the negative injection
current on Port1 pins shall not exceed -1mA in case of both dynamic and static injection.
7. The coupling factor is measured on a channel while an overload condition occurs on the adjacent not
selected channels with the overload current within the different specified ranges (for both positive and
negative injection current).
8. Refer to scheme reported in Figure 39.
24.7.1
141/188
Electrical characteristics
ST10F272B/ST10F272E
Fast conversion can be achieved by programming the respective times to their absolute
possible minimum. This is preferable for scanning high frequency signals. The internal
resistance of analog source and analog supply must be sufficiently low, however.
High internal resistance can be achieved by programming the respective times to a higher
value, or the possible maximum. This is preferable when using analog sources and supply
with a high internal resistance in order to keep the current as low as possible. The
conversion rate in this case may be considerably lower, however.
The conversion times are programmed via the upper four bits of register ADCON. Bit fields
ADCTC and ADSTC are used to define the basic conversion time and in particular the
partition between sample phase and comparison phases. Table 68 lists the possible
combinations. The timings refer to the unit TCL, where fCPU = 1/2TCL. A complete
conversion time includes the conversion itself, the sample time and the time required to
transfer the digital value to the result register.
Table 68.
ADCTC
ADSTC
Sample
Comparison
Extra
Total conversion
00
00
TCL * 120
TCL * 240
TCL * 28
TCL * 388
00
01
TCL * 140
TCL * 280
TCL * 16
TCL * 436
00
10
TCL * 200
TCL * 280
TCL * 52
TCL * 532
00
11
TCL * 400
TCL * 280
TCL * 44
TCL * 724
11
00
TCL * 240
TCL * 480
TCL * 52
TCL * 772
11
01
TCL * 280
TCL * 560
TCL * 28
TCL * 868
11
10
TCL * 400
TCL * 560
TCL * 100
TCL * 1060
11
11
TCL * 800
TCL * 560
TCL * 52
TCL * 1444
10
00
TCL * 480
TCL * 960
TCL * 100
TCL * 1540
10
01
TCL * 560
TCL * 1120
TCL * 52
TCL * 1732
10
10
TCL * 800
TCL * 1120
TCL * 196
TCL * 2116
10
11
TCL * 1600
TCL * 1120
TCL * 164
TCL * 2884
Note:
The total conversion time is compatible with the formula valid for ST10F269, while the
meaning of the bit fields ADCTC and ADSTC is no longer compatible: the minimum
conversion time is 388 TCL, which at 40MHz CPU frequency corresponds to 4.85s (see
ST10F269).
24.7.2
142/188
Quantization error
ST10F272B/ST10F272E
Electrical characteristics
These four error quantities are explained below using Figure 38.
Offset error
Offset error is the deviation between actual and ideal A/D conversion characteristics when
the digital output value changes from the minimum (zero voltage) 00 to 01 (Figure 38, see
OFS).
Gain error
Gain error is the deviation between the actual and ideal A/D conversion characteristics
when the digital output value changes from the 3FE to the maximum 3FF, once offset error
is subtracted. Gain error combined with offset error represents the so-called full-scale error
(Figure 38, OFS + GE).
Quantization error
Quantization error is the intrinsic error of the A/D converter and is expressed as 1/2 LSB.
Non-linearity error
Non-Linearity error is the deviation between actual and the best-fitting A/D conversion
characteristics (see Figure 38):
Differential Non-Linearity error is the actual step dimension versus the ideal one (1
LSBIDEAL).
Integral Non-Linearity error is the distance between the center of the actual step and
the center of the bisector line, in the actual characteristics. Note that for Integral NonLinearity error, the effect of offset, gain and quantization errors is not included.
Note:
Bisector characteristic is obtained drawing a line from 1/2 LSB before the first step of the
real characteristic, and 1/2 LSB after the last step again of the real characteristic.
24.7.3
143/188
Electrical characteristics
ST10F272B/ST10F272E
*DLQ(UURU*(
))
)(
)'
,GHDO&KDUDFWHULVWLF
)&
)%
)$
%LVHFWRU&KDUDFWHULVWLF
'LJLWDO
2XW
+(;
([DPSOHRIDQDFWXDOWUDQVIHUFXUYH
7KHLGHDOWUDQVIHUFXUYH
'LIIHUHQWLDO1RQ/LQHDULW\(UURU'1/
,QWHJUDO1RQ/LQHDULW\(UURU,1/
&HQWHURIDVWHSRIWKHDFWXDOWUDQVIHUFXUYH
4XDQWL]DWLRQ(UURU/6%
7RWDO8QDGMXVWHG(UURU78(
/6%LGHDO
2IIVHW(UURU2)6
9$,1/6%,'($/
>/6%,'($/ 9$5()@
*$3*5,
24.7.4
144/188
ST10F272B/ST10F272E
Electrical characteristics
besides, it sources charge during the sampling phase, when the analog signal source is a
high-impedance source.
A real filter, can typically be obtained by using a series resistance with a capacitor on the
input pin (simple RC Filter). The RC filtering may be limited according to the value of source
impedance of the transducer or circuit supplying the analog signal to be measured. The filter
at the input pins must be designed taking into account the dynamic characteristics of the
input signal (bandwidth).
Figure 39. A/D converter input pins scheme
(;7(51$/&,5&8,7
,17(51$/&,5&8,76&+(0(
9''
6RXUFH
56
9$
)LOWHU
&XUUHQW/LPLWHU
5)
&KDQQHO
6HOHFWLRQ
6DPSOLQJ
56:
5$'
5/
&)
&3
&3
&6
566RXUFH,PSHGDQFH
5))LOWHU5HVLVWDQFH
&))LOWHU&DSDFLWDQFH
5/&XUUHQW/LPLWHU5HVLVWDQFH
56:&KDQQHO6HOHFWLRQ6ZLWFK,PSHGDQFH
5$'6DPSOLQJ6ZLWFK,PSHGDQFH
&33LQ&DSDFLWDQFHWZRFRQWULEXWLRQV&3DQG&3
&66DPSOLQJ&DSDFLWDQFH
*$3*5,
145/188
Electrical characteristics
ST10F272B/ST10F272E
(sampled voltage on CS) and the sum of RS + RF + RL + RSW + RAD, the external circuit
must be designed to respect the following relation:
Equation 1
R S + R F + R L + R SW + R AD 1
V A ------------------------------------------------------------------------------ < --- LSB
2
R EQ
The formula above provides a constraints for external network design, in particular on
resistive path.
A second aspect involving the capacitance network shall be considered. Assuming the three
capacitances CF, CP1 and CP2 initially charged at the source voltage VA (refer to the
equivalent circuit reported in Figure 39), when the sampling phase is started (A/D switch
close), a charge sharing phenomena is installed.
Figure 40. Charge sharing timing diagram during sampling phase
9ROWDJH7UDQVLHQWRQ&6
9&6
9$
9$
'9/6%
W56:5$'&676
W 5/&6&3&3
9$
*$3*5,
In particular two different transient periods can be distinguished (see Figure 40):
A first and quick charge transfer from the internal capacitance CP1 and CP2 to the
sampling capacitance CS occurs (CS is supposed initially completely discharged):
considering a worst case (since the time constant in reality would be faster) in which
CP2 is reported in parallel to CP1 (call CP = CP1 + CP2), the two capacitance CP and CS
are in series, and the time constant is:
Equation 2
C P CS
1 = ( R SW + R AD ) ----------------------CP + CS
Equation 3
1 < ( RSW + R AD ) CS < < T S
146/188
ST10F272B/ST10F272E
Electrical characteristics
The charge of CP1 and CP2 is redistributed also on CS, determining a new value of the
voltage VA1 on the capacitance according to the following equation:
Equation 4
V A1 ( C S + C P1 + C P2 ) = V A ( C P1 + C P2 )
A second charge transfer involves also CF (that is typically bigger than the on-chip
capacitance) through the resistance RL: again considering the worst case in which CP2
and CS were in parallel to CP1 (since the time constant in reality would be faster), the
time constant is:
Equation 5
2 < R L ( C S + C P1 + C P2 )
In this case, the time constant depends on the external circuit: in particular imposing that the
transient is completed well before the end of sampling time TS, a constraints on RL sizing is
obtained:
Equation 6
10 2 = 10 RL ( C S + CP1 + C P2 ) TS
The two transients above are not influenced by the voltage source that, due to the presence
of the RFCF filter, is not able to provide the extra charge to compensate the voltage drop on
CS with respect to the ideal source VA; the time constant RFCF of the filter is very high with
respect to the sampling time (TS). The filter is typically designed to act as anti-aliasing (see
Figure 41).
Calling f0 the bandwidth of the source signal (and as a consequence the cut-off frequency of
the anti-aliasing filter, fF), according to Nyquist theorem the conversion rate fC must be at
least 2f0; it means that the constant time of the filter is greater than or at least equal to twice
the conversion period (TC). Again the conversion period TC is longer than the sampling time
TS, which is just a portion of it, even when fixed channel continuous conversion mode is
selected (fastest conversion rate at a specific channel): in conclusion it is evident that the
time constant of the filter RFCF is definitively much higher than the sampling time TS, so the
charge level on CS cannot be modified by the analog signal source during the time in which
the sampling switch is closed.
Doc ID 11917 Rev 5
147/188
Electrical characteristics
ST10F272B/ST10F272E
7&d5)&)&RQYHUVLRQ5DWHYV)LOWHU3ROH
I) I$QWLDOLDVLQJ)LOWHULQJ&RQGLWLRQ
IdI&1\TXLVW
I
I
$QWL$OLDVLQJ)LOWHUI) 5&)LOWHUSROH 6DPSOHG6LJQDO6SHFWUXPI& FRQYHUVLRQ5DWH
I)
I
I&
I
*$3*5,
The considerations above lead to impose new constraints to the external circuit, to reduce
the accuracy error due to the voltage drop on CS; from the two charge balance equations
above, it is simple to derive the following relation between the ideal and real sampled
voltage on CS:
Equation 8
VA
C P1 + C P2 + C F
----------- = -----------------------------------------------------------V A2
C P1 + C P2 + C F + C S
From this formula, in the worst case (when VA is maximum, that is for instance 5V),
assuming to accept a maximum error of half a count (~2.44mV), it is immediately evident a
constraints on CF value:
Equation 9
C F > 2048 C S
In the next section an example of how to design the external network is provided, assuming
some reasonable values for the internal parameters and making hypothesis on the
characteristics of the analog signal to be sampled.
148/188
ST10F272B/ST10F272E
Electrical characteristics
1.
Supposing to design the filter with the pole exactly at the maximum frequency of the
signal, the time constant of the filter is:
Equation 10
1
R C C F = ------------ = 15.9s
2f0
2.
Using the relation between CF and CS and taking some margin (4000 instead of 2048),
it is possible to define CF:
Equation 11
C F = 4000 C
S = 16nF
3.
Equation 12
1
RF = --------------------- = 995 1k
2f 0 C F
4.
Considering the current injection limitation and supposing that the source can go up to
12V, the total series resistance can be defined as:
Equation 13
V AM
R S + R F + R L = ------------- = 4k
I INJ
149/188
Electrical characteristics
ST10F272B/ST10F272E
Equation 14
V AM
R L = ------------- R F R S = 2.9k
I INJ
5.
Now the three element of the external circuit RF, CF and RL are defined. Some
conditions discussed in the previous paragraphs have been used to size the
component, the other must now be verified. The relation which allow to minimize the
accuracy error introduced by the switched capacitance equivalent resistance is in this
case:
Equation 15
1
R EQ = --------------- = 10M
fC CS
So the error due to the voltage partitioning between the real resistive path and CS is less
then half a count (considering the worst case when VA = 5V):
Equation 16
R S + R F + R L + R SW + R AD
1
V A --------------------------------------------------------------------------- = 2.35mV < --- LSB
R EQ
2
The other conditions to be verified is the time constants of the transients are really and
significantly shorter than the sampling period duration TS:
Equation 17
1 = ( R SW + R AD ) C S = 2.8ns
<< TS = 1s
10 2 = 10 R L( C S + C P1 + C P2 ) = 290ns
< TS = 1s
For complete set of parameters characterizing the ST10F272 A/D Converter equivalent
circuit, refer to Section 24.7: A/D converter characteristics.
150/188
ST10F272B/ST10F272E
Electrical characteristics
24.8
AC characteristics
24.8.1
Test waveforms
Figure 42. Input / output waveforms
9
9
9
7H VW3RLQWV
9
9
9
*$3*5,
Note:
AC inputs during testing are driven at 2.4V for a logic 1 and 0.4V for a logic 0.
Timing measurements are made at VIH min. for a logic 1 and VIL max for a logic 0.
Figure 43. Float waveforms
92+
92+9
9/2$'9
7LPLQJ
5HIHUHQFH
3RLQWV
9/2$'
9/2$'9
92/9
92/
*$3*5,
Note:
For timing purposes a port pin is no longer floating when VLOAD changes of 100mV.
It begins to float when a 100mV change from the loaded VOH/VOL level occurs (IOH/IOL =
20mA).
24.8.2
151/188
Electrical characteristics
ST10F272B/ST10F272E
The mechanism used to generate the CPU clock is selected during reset by the logic levels
on pins P0.15-13 (P0H.7-5).
Figure 44. Generation mechanisms for the CPU clock
3KDVHORFNHGORRSRSHUDWLRQ
I;7$/
I&38
7&/7&/
'LUHFW&ORFN'ULYH
I;7$/
I&38
7&/7&/
3UHVFDOHU2SHUDWLRQ
I;7$/
I&38
7&/
7&/
*$3*5,
24.8.3
P0.15-13
CPU Frequency
(P0H.7-5)
fCPU = fXTAL x F
FXTAL x 4
4 to 8MHz
FXTAL x 3
5.3 to 8MHz
FXTAL x 8
4 to 8MHz
FXTAL x 5
6.4 to 8MHz
FXTAL x 1
1 to 64MHz
FXTAL x 10
4 to 6.4MHz
FXTAL / 2
4 to 8MHz
FXTAL x 16
4MHz
Notes
Default configuration
1. The external clock input range refers to a CPU clock range of 1...64 MHz. Besides, the PLL usage is limited
to 4-8MHz. All configurations need a crystal (or ceramic resonator) to generate the CPU clock through the
internal oscillator amplifier (apart from Direct Drive): vice versa, the clock can be forced through an external
clock source only in Direct Drive mode (on-chip oscillator amplifier disabled, so no crystal or resonator can
be used).
2. The maximum depends on the duty cycle of the external clock signal: when 64MHz is used, 50% duty cycle
shall be granted (low phase = high phase = 7.8ns); when 32MHz is selected a 25% duty cycle can be
152/188
ST10F272B/ST10F272E
Electrical characteristics
153/188
Electrical characteristics
24.8.4
ST10F272B/ST10F272E
Prescaler operation
When pins P0.15-13 (P0H.7-5) equal 001 during reset, the CPU clock is derived from the
internal oscillator (input clock signal) by a 2:1 prescaler.
The frequency of fCPU is half the frequency of fXTAL and the high and low time of fCPU (i.e.
the duration of an individual TCL) is defined by the period of the input clock fXTAL.
The timings listed in the AC Characteristics that refer to TCL therefore can be calculated
using the period of fXTAL for any TCL.
Note that if the bit OWDDIS in SYSCON register is cleared, the PLL runs on its free-running
frequency and delivers the clock signal for the Oscillator Watchdog. If bit OWDDIS is set,
then the PLL is switched off.
24.8.5
Direct drive
When pins P0.15-13 (P0H.7-5) equal 011 during reset the on-chip phase locked loop is
disabled, the on-chip oscillator amplifier is bypassed and the CPU clock is directly driven by
the input clock signal on XTAL1 pin.
The frequency of CPU clock (fCPU) directly follows the frequency of fXTAL so the high and
low time of fCPU (i.e. the duration of an individual TCL) is defined by the duty cycle of the
input clock fXTAL.
Therefore, the timings given in this chapter refer to the minimum TCL. This minimum value
can be calculated by the following formula:
Equation 18
TCL min = 1 f XTALl xlDC min
DC = duty cycle
For two consecutive TCLs, the deviation caused by the duty cycle of fXTAL is compensated,
so the duration of 2TCL is always 1/fXTAL.
The minimum value TCLmin has to be used only once for timings that require an odd number
of TCLs (1,3,...). Timings that require an even number of TCLs (2,4,...) may use the formula:
Equation 19
2TCL = 1 fXTAL
The address float timings in Multiplexed bus mode (t11 and t45) use the maximum duration
of TCL (TCLmax = 1/fXTAL x DCmax) instead of TCLmin.
Similarly to what happen for Prescaler Operation, if the bit OWDDIS in SYSCON register is
cleared, the PLL runs on its free-running frequency and delivers the clock signal for the
Oscillator Watchdog. If bit OWDDIS is set, then the PLL is switched off.
24.8.6
154/188
ST10F272B/ST10F272E
Electrical characteristics
The reset default configuration enables the watchdog oscillator. It can be disabled by setting
the OWDDIS (bit 4) of SYSCON register.
When the OWD is enabled, the PLL runs at its free-running frequency, and it increments the
watchdog counter. On each transition of external clock, the watchdog counter is cleared. If
an external clock failure occurs, then the watchdog counter overflows (after 16 PLL clock
cycles).
The CPU clock signal will be switched to the PLL free-running clock signal, and the
oscillator watchdog Interrupt Request is flagged. The CPU clock will not switch back to the
external clock even if a valid external clock exits on XTAL1 pin. Only a hardware reset (or
bidirectional Software / Watchdog reset) can switch the CPU clock source back to direct
clock input.
When the OWD is disabled, the CPU clock is always the external oscillator clock (in Direct
Drive or Prescaler Operation) and the PLL is switched off to decrease consumption supply
current.
24.8.7
24.8.8
155/188
Electrical characteristics
Table 70.
P0.15-13
(P0H.7-5)
XTAL
Frequency
4 to 8MHz
ST10F272B/ST10F272E
Input
Prescaler
5.3 to 10.6MHz
1)
4 to 8MHz
1)
PLL
Output
Prescaler
CPU Frequency
fCPU = fXTAL x F
Multiply by
Divide by
FXTAL / 4
64
FXTAL x 4
FXTAL / 4
48
FXTAL x 3
FXTAL / 4
64
FXTAL x 8
FXTAL / 4
40
FXTAL x 5
FXTAL x 1
FXTAL x 10
FPLL / 2
FXTAL / 2
FXTAL x 16
6.4 to 12MHz
1 to 64MHz
4 to 6.4MHz
FXTAL / 2
4 to 12MHz 1)
4MHz
FXTAL / 2
PLL bypassed
40
PLL bypassed
64
The PLL input frequency range is limited to 1 to 3.5MHz, while the VCO oscillation range is
64 to 128MHz. The CPU clock frequency range when PLL is used is 16 to 64MHz.
Example 1
FXTAL = 4MHz
Example 2
24.8.9
FXTAL = 8MHz
PLL Jitter
The following terminology is hereafter defined:
156/188
ST10F272B/ST10F272E
Electrical characteristics
sufficiently large to have the long term jitter. For N=1, this becomes the single period
jitter.
Jitter at the PLL output can be due to the following reasons:
157/188
Electrical characteristics
ST10F272B/ST10F272E
contribution of the digital noise to the global jitter is widely taken into account in the curves
provided in Figure 45.
-LWWHU>QV@
r
r
7-,7
1&38FORFNSHULRGV
*$3*5,
24.8.10
Note:
158/188
The external RC circuit on RSTIN pin shall be properly sized in order to extend the duration
of the low pulse to grant the PLL gets locked before the level at RSTIN pin is recognized
high: bidirectional reset internally drives RSTIN pin low for just 1024 TCL (definitively not
sufficient to get the PLL locked starting from free-running mode).
ST10F272B/ST10F272E
Table 71.
Electrical characteristics
PLL characteristics (VDD = 5V 10%, VSS = 0V, TA = 40 to +125C)
Value
Symbol
Parameter
Conditions
Unit
min.
max.
TPSUP
300
TLOCK
250
TJIT
500
+500
ps
Ffree
Multiplication Factors: 3, 4
Multiplication Factors: 5, 8, 10, 16
250
500
2000
4000
kHz
Symbol
Parameter
Conditions
Unit
min.
typ.
max.
1.4
2.6
4.2
mA/V
1.5
0.8
10
ms
ms
gm
Oscillator
Transconductance
VOSC
Oscillation Amplitude 1)
VAV
tSTUP
Peak to Peak
;7$/
;7$/
FU\VWDO
&$
;7$/
67)
67)
;7$/
24.8.11
5HVRQDWRU
&$
*$3*5,
159/188
Electrical characteristics
Table 73.
ST10F272B/ST10F272E
CA = 25pF
CA = 35pF
min.
typ.
max.
min.
typ.
max.
min.
typ.
max.
4 MHz
545
1035
550
1050
430
850
8 MHz
240
450
170
350
120
250
The given values of CA do not include the stray capacitance of the package and of the
printed circuit board: the negative resistance values are calculated assuming additional 5pF
to the values in the table. The crystal shunt capacitance (C0) and the package capacitance
between XTAL1 and XTAL2 pins is globally assumed equal to 10pF.
The external resistance between XTAL1 and XTAL2 is not necessary, since already present
on the silicon.
24.8.12
Symbol
gm32
Parameter
Conditions
Oscillator Transconductance 1)
Unit
min.
typ.
max.
Start-up
20
31
50
A/V
Normal run
17
30
A/V
Peak to Peak
0.5
1.0
2.4
0.7
0.9
1.2
Stable VDD
1. At power-on a high current biasing is applied for faster oscillation start-up. Once the oscillation is started,
the current biasing is reduced to lower the power consumption of the system.
2. Not 100% tested, guaranteed by design characterization.
160/188
ST10F272B/ST10F272E
Electrical characteristics
;7$/
;7$/
67)
FU\VWDO
&$
&$
*$3*5,
Table 75.
32kHz
CA = 22pF CA = 27pF
150 k
CA = 33pF
120 k
90 kW
The given values of CA do not include the stray capacitance of the package and of the
printed circuit board: the negative resistance values are calculated assuming additional 5pF
to the values in the table. The crystal shunt capacitance (C0) and the package capacitance
between XTAL3 and XTAL4 pins is globally assumed equal to 4pF. The external resistance
between XTAL3 and XTAL4 is not necessary, since already present on the silicon.
Warning:
24.8.13
161/188
Electrical characteristics
Table 76.
Parameter
Symbol
Direct drive
fCPU = fXTAL
PLL usage
fCPU = fXTAL x F
Unit
min.
max.
min.
max.
min.
max.
15.625
83.3
250
83.3
250
ns
time 3
t1
SR
ns
t2
SR
ns
time 3
t3
SR
ns
t4
SR
ns
High
Low time
Rise
ST10F272B/ST10F272E
Fall time 3
1. The minimum value for the XTAL1 signal period shall be considered as the theoretical minimum. The real
minimum value depends on the duty cycle of the input clock signal.
2. 4-8 MHz is the input frequency range when using an external clock source. 64 MHz can be applied with an
external clock source only when Direct Drive mode is selected: in this case, the oscillator amplifier is
bypassed so it does not limit the input frequency.
3. The input clock signal must reach the defined levels VIL2 and VIH2.
W
W
9,+
9,/
W
W26&
*$3*5,
Note:
When Direct Drive is selected, an external clock source can be used to drive XTAL1. The
maximum frequency of the external clock source depends on the duty cycle: when 64MHz is
used, 50% duty cycle shall be granted (low phase = high phase = 7.8ns); when for instance
32MHz is used, a 25% duty cycle can be accepted (minimum phase, high or low, again
equal to 7.8ns).
24.8.14
162/188
Symbol
Values
ALE Extension
tA
TCL x [ALECTL]
tC
tF
2TCL x (1 - [MTTC])
ST10F272B/ST10F272E
24.8.15
Electrical characteristics
Note:
All External Memory Bus Timings and SSC Timings reported in the following tables are
granted by Design Characterization and not fully tested in production.
163/188
Electrical characteristics
24.8.16
ST10F272B/ST10F272E
Multiplexed bus
VDD = 5V 10%, VSS = 0V, TA = 40 to +125C, CL = 50pF,
ALE cycle time = 6 TCL + 2tA + tC + tF (75ns at 40MHz CPU clock without wait states)
Symbol
FCPU = 40 MHz
TCL = 12.5 ns
Unit
Table 78.
min.
max.
min.
max.
4 + tA
TCL 8.5 + tA
ns
1.5 + tA
TCL 11 + tA
ns
t5
CC
t6
CC
t7
CC
4 + tA
TCL 8.5 + tA
ns
t8
CC
4 + tA
TCL 8.5 + tA
ns
t9
CC
8.5 + tA
8.5 + tA
ns
t10
CC
ns
t11
CC
18.5
TCL + 6
ns
t12
CC
15.5 + tC
2TCL 9.5 + tC
ns
t13
CC
28 + tC
3TCL 9.5 + tC
ns
t14
SR
RD to valid data in
(with RW-delay)
6 + tC
2TCL 19 + tC
ns
t15
SR
RD to valid data in
(no RW-delay)
18.5 + tC
3TCL 19 + tC
ns
t16
SR
17.5 +
+ tA + tC
3TCL 20 +
+ tA + tC
ns
t17
SR
Address/Unlatched CS to valid
data in
20 + 2tA +
+ tC
4TCL 30 +
+ 2tA + tC
ns
t18
SR
ns
t19
SR
16.5 + tF
2TCL 8.5 + tF
ns
t22
CC
Data valid to WR
10 + tC
2TCL 15 + tC
ns
t23
CC
4 + tF
2TCL 8.5 + tF
ns
t25
CC
15 + tF
2TCL 10 + tF
ns
t27
CC
Address/Unlatched CS hold
after RD, WR
10 + tF
2TCL 15 + tF
ns
t38
CC
4 tA
10 tA
4 tA
10 tA
ns
164/188
ST10F272B/ST10F272E
Symbol
FCPU = 40 MHz
TCL = 12.5 ns
Unit
Table 78.
Electrical characteristics
min.
max.
min.
max.
16.5 + tC +
+ 2tA
3TCL 21 +
+ tC + 2tA
ns
t39
SR
t40
CC
27 + tF
3TCL 10.5 + tF
ns
t42
CC
7 + tA
TCL 5.5 + tA
ns
t43
CC
5.5 + tA
5.5 + tA
ns
t44
CC
1.5
1.5
ns
t45
CC
14
TCL + 1.5
ns
t46
SR
4 + tC
2TCL 21 + tC
ns
t47
SR
16.5 + tC
3TCL 21 + tC
ns
t48
CC
15.5 + tC
2TCL 9.5 + tC
ns
t49
CC
28 + tC
3TCL 9.5 + tC
ns
t50
CC
10 + tC
2TCL 15 + tC
ns
t51
SR
ns
t52
SR
16.5 + tF
2TCL 8.5 + tF
ns
t54
CC
6 + tF
2TCL 19 + tF
ns
t56
CC
6 + tF
2TCL 19 + tF
ns
165/188
Electrical characteristics
ST10F272B/ST10F272E
Figure 49. External memory cycle: Multiplexed bus, with/without read/write delay, normal ALE
W
W
W
$/(
W
W
W
W
W
W
&6[
W
W
W
$$
$$
%+(
$GGUHVV
W
5HDGF\FOH
$GGUHVVGDWD
EXV3
W
W
W
$GGUHVV
'DWDLQ
W
W
$GGUHVV
W
W
5'
W
W
W
W
:ULWHF\FOH
$GGUHVVGDWD
EXV3
W
W
$GGUHVV
'DWDRXW
W
:5
:5/
:5+
W
W
W
W
*$3*5,
166/188
ST10F272B/ST10F272E
Electrical characteristics
Figure 50. External memory cycle: Multiplexed bus, with/without read/write delay, extended ALE
W
W
W
$/(
W
W
W
W
W
W
&6[
W
W
$$
$$
%+(
$GGUHVV
W
5HDGF\FOH
$GGUHVV'DWD
%XV3
W
W
'DWDLQ
$GGUHVV
W
W
W
W
W
W
W
5'
W
W
W
:ULWHF\FOH
$GGUHVV'DWD
%XV3
$GGUHVV
'DWDRXW
W
W
:5
:5/
:5+
W
W
W
W
W
W
*$3*5,
167/188
Electrical characteristics
ST10F272B/ST10F272E
Figure 51. External memory cycle: Multiplexed bus, with/without r/w delay, normal ALE, r/w CS
&/.287
W
W
W
$/(
W
W
W
$$
$$
%+(
$GGUHVV
W
W
5HDG&\FOH
$GGUHVV'DWD
%XV3
W
W
$GGUHVV
'DWD,Q
$GGUHVV
W
W
W
W
5G&6[
W
W
W
W
W
:ULWH&\FOH
$GGUHVV'DWD
%XV3
W
'DWD2XW
$GGUHVV
W
:U&6[
W
W
W
W
168/188
*$3*5,
ST10F272B/ST10F272E
Electrical characteristics
Figure 52. External memory cycle: Multiplexed bus, with/without r/w delay, extended ALE, r/w
CS
&/.287
W
W
W
$/(
W
W
$$
$$
%+(
$GGUHVV
W
5HDGF\FOH
$GGUHVV'DWD
%XV3
W
W
'DWDLQ
$GGUHVV
W
W
W
W
W
W
W
5G&6[
W
W
W
:ULWHF\FOH
$GGUHVVGDWD
EXV3
$GGUHVV
'DWDRXW
W
W
W
W
W
W
:U&6[
W
W
*$3*5,
169/188
Electrical characteristics
24.8.17
ST10F272B/ST10F272E
Demultiplexed bus
VDD = 5V 10%, VSS = 0V, TA = 40 to +125C, CL = 50pF,
ALE cycle time = 4 TCL + 2tA + tC + tF (50ns at 40MHz CPU clock without wait states).
Symbol
FCPU = 40 MHz
TCL = 12.5 ns
Unit
Table 79.
min.
max.
min.
max.
4 + tA
TCL 8.5 + tA
ns
1.5 + tA
TCL 11 + tA
ns
t5
CC
t6
CC
t80
CC
Address/Unlatched CS setup
to RD, WR
(with RW-delay)
12.5 + 2tA
2TCL 12.5 +
+ 2tA
ns
t81
CC
Address/Unlatched CS setup
to RD, WR
(no RW-delay)
0.5 + 2tA
TCL 12 + 2tA
ns
t12
CC
15.5 + tC
2TCL 9.5 + tC
ns
t13
CC
28 + tC
3TCL 9.5 + tC
ns
t14
SR
RD to valid data in
(with RW-delay)
6 + tC
2TCL 19 + tC
ns
t15
SR
RD to valid data in
(no RW-delay)
18.5 + tC
3TCL 19 + tC
ns
t16
SR
17.5 + tA +
+ tC
3TCL 20 +
+ tA + tC
ns
t17
SR
Address/Unlatched CS to
valid data in
20 + 2tA +
+ tC
4TCL 30 +
+ 2tA + tC
ns
t18
SR
ns
t20
SR
16.5 + tF
2TCL 8.5 +
+ tF + 2tA
ns
t21
SR
4 + tF
TCL 8.5 +
+ tF + 2tA
ns
t22
CC
Data valid to WR
10 + tC
2TCL 15 + tC
ns
t24
CC
4 + tF
TCL 8.5 + tF
ns
t26
CC
10 + tF
10 + tF
ns
t28
CC
Address/Unlatched CS hold
after RD, WR 2
0 + tF
0 + tF
ns
t28h
CC
Address/Unlatched CS hold
after WRH
5 + tF
5 + tF
ns
170/188
ST10F272B/ST10F272E
Symbol
FCPU = 40 MHz
TCL = 12.5 ns
min.
max.
min.
max.
Unit
Table 79.
Electrical characteristics
t38
CC
4 tA
6 tA
4 tA
6 tA
ns
t39
SR
16.5 +
+ tC + 2tA
3TCL 21 +
+ tC + 2tA
ns
t41
CC
2 + tF
TCL 10.5 + tF
ns
t82
CC
14 + 2tA
2TCL 11 + 2tA
ns
t83
CC
2 + 2tA
ns
t46
SR
4 + tC
2TCL 21 + tC
ns
t47
SR
16.5 + tC
3TCL 21 + tC
ns
t48
CC
15.5 + tC
2TCL 9.5 + tC
ns
t49
CC
28 + tC
3TCL 9.5 + tC
ns
t50
CC
10 + tC
2TCL 15 + tC
ns
t51
SR
ns
t53
SR
16.5 + tF
2TCL 8.5 + tF
ns
t68
SR
4 + tF
TCL 8.5 + tF
ns
t55
CC
8.5 + tF
8.5 + tF
ns
t57
CC
2 + tF
TCL 10.5 + tF
ns
171/188
Electrical characteristics
ST10F272B/ST10F272E
Figure 53. External memory cycle: Demultiplexed bus, with/without r/w delay, normal ALE
&/.287
W
W
W
$/(
W
W
W
W
WX
W
&6[
W
$$
$$3
%+(
WRUWK
W
$GGUHVV
W
5HDGF\FOH
'DWDEXV3
''''
'DWDLQ
W
W
W
W
W
W
5'
W
W
:ULWHF\FOH
'DWDEXV3
''''
'DWDRXW
W
W
W
:5
:5/
:5+
W
W
W
*$3*5,
172/188
ST10F272B/ST10F272E
Electrical characteristics
Figure 54. Exteral memory cycle: Demultiplexed bus, with/without r/w delay, extended ALE
&/.287
W
W
W
$/(
W
W
W
W
W
W
&6[
W
W
$$
$$3
%+(
W
$GGUHVV
W
5HDGF\FOH
'DWDEXV3
''''
'DWDLQ
W
W
W
W
W
W
5'
W
W
:ULWHF\FOH
'DWDEXV3
''''
'DWDRXW
W
W
W
:5
:5/
:5+
W
W
W
*$3*5,
173/188
Electrical characteristics
ST10F272B/ST10F272E
Figure 55. External memory cycle: Demultipl. bus, with/without r/w delay, normal ALE, r/w CS
&/.287
W
W
W
$/(
W
$$
$$3
%+(
W
W
$GGUHVV
W
5HDGF\FOH
'DWDEXV3
''''
'DWDLQ
W
W
W
W
W
W
5G&6[
W
W
:ULWHF\FOH
'DWDEXV3
''''
'DWDRXW
W
W
W
W
:U&6[
W
W
*$3*5,
174/188
ST10F272B/ST10F272E
Electrical characteristics
Figure 56. External memory cycle: Demultiplexed bus, without r/w delay, extended ALE, r/w CS
&/.287
W
W
W
$/(
W
W
W
$$
$$3
%+(
$GGUHVV
W
5HDGF\FOH
'DWDEXV3
''''
'DWDLQ
W
W
W
W
W
W
5G&6[
W
W
:ULWHF\FOH
'DWDEXV3
''''
'DWDRXW
W
W
W
W
:U&6[
W
W
*$3*5,
175/188
Electrical characteristics
24.8.18
ST10F272B/ST10F272E
Symbol
Parameter
min.
max.
min.
max.
Unit
Table 80.
t29
CC
25
25
2TCL
2TCL
ns
t30
CC
TCL 3.5
ns
t31
CC
10
TCL 2.5
ns
t32
CC
ns
t33
CC
ns
t34
CC
2 + tA
8 + tA
2 + tA
8 + tA
ns
t35
SR
Synchronous READY
setup time to CLKOUT
17
17
ns
t36
SR
Synchronous READY
hold time after CLKOUT
ns
t37
SR
Asynchronous READY
low time
35
2TCL + 10
ns
t58
SR
Asynchronous READY
setup time 1
17
17
ns
t59
SR
Asynchronous READY
hold time 1
ns
t60
SR
2tA + tC + tF
2tA + tC + tF
ns
1. These timings are given for characterization purposes only, in order to assure recognition at a specific
clock edge.
2. Demultiplexed bus is the worst case. For multiplexed bus 2TCL are to be added to the maximum values.
This adds even more time for deactivating READY. 2tA and tC refer to the next following bus cycle, tF refers
to the current bus cycle.
176/188
ST10F272B/ST10F272E
Electrical characteristics
5XQQLQJF\FOH
&/.287
W
08;7ULVWDWH
W
W
W
W
W
$/(
5':5
W
6\QFKURQRXV
5($'<
$V\QFKURQRXV
5($'<
W
W
W
W
W
W
W
W
W
*$3*5,
1. Cycle as programmed, including MCTC wait states (Example shows 0 MCTC WS).
2. The leading edge of the respective command depends on RW-delay.
3. READY sampled HIGH at this sampling point generates a READY controlled wait state, READY sampled
LOW at this sampling point terminates the currently running bus cycle.
4. READY may be deactivated in response to the trailing (rising) edge of the corresponding command (RD or
WR).
5. If the Asynchronous READY signal does not fulfill the indicated setup and hold times with respect to
CLKOUT (e.g. because CLKOUT is not enabled), it must fulfill t37 in order to be safely synchronized. This is
guaranteed, if READY is removed in response to the command (see Note 4).
6. Multiplexed bus modes have a MUX wait state added after a bus cycle, and an additional MTTC wait state
may be inserted here.
For a multiplexed bus with MTTC wait state this delay is two CLKOUT cycles, for a demultiplexed bus
without MTTC wait state this delay is zero.
7. The next external bus cycle may start here.
177/188
Electrical characteristics
24.8.19
ST10F272B/ST10F272E
Symbol
FCPU = 40 MHz
TCL = 12.5 ns
Parameter
min.
max.
min.
max.
t61
SR
18.5
18.5
ns
t62
CC
12.5
12.5
ns
t63
CC
12.5
12.5
ns
t64
CC
CSx release 1)
20
20
ns
t65
CC
CSx drive
15
15
ns
20
20
ns
15
15
ns
t66
CC
t67
CC
1)
W
%5(4
W
&6[
3[
W
2WKHUV
*$3*5,
1. The ST10F272 will complete the currently running bus cycle before granting bus access.
2. This is the first possibility for BREQ to become active.
3. The CS outputs will be resistive high (pull-up) after t64.
178/188
Unit
Table 81.
ST10F272B/ST10F272E
Electrical characteristics
&/.287
W
+2/'
W
+/'$
W
%5(4
W
W
W
&6[
2Q3[
W
2WKHU
VLJQDOV
*$3*5,
1. This is the last chance for BREQ to trigger the indicated regain-sequence. Even if BREQ is activated
earlier, the regain-sequence is initiated by HOLD going high. Please note that HOLD may also be
deactivated without the ST10F272 requesting the bus.
2. The next ST10F272 driven bus cycle may start here.
179/188
Electrical characteristics
24.8.20
ST10F272B/ST10F272E
Symbol
Parameter
Variable Baudrate
(<SSCBR> = 0001h FFFFh)
min.
max.
min.
max.
Unit
t300
150
150
8TCL
262144 TCL
ns
t301
63
t300 / 2 12
ns
t302
63
t300 / 2 12
ns
t303
10
10
ns
t304
10
10
ns
t305
15
15
ns
ns
37.5
2TCL + 12.5
ns
edge(3)
t306
t307p
t308p
50
4TCL
ns
t307
25
2TCL
ns
t308
ns
1. Maximum Baudrate is in reality 8Mbaud, that can be reached with 64MHz CPU clock and <SSCBR> set to 3h, or with
48MHz CPU clock and <SSCBR> set to 2h. When 40MHz CPU clock is used the maximum baudrate cannot be higher
than 6.6Mbaud (<SSCBR> = 2h) due to the limited granularity of <SSCBR>. Value 1h for <SSCBR> can be used only
with CPU clock equal to (or lower than) 32MHz.
2. Formula for SSC Clock Cycle time: t300 = 4 TCL x (<SSCBR> + 1) Where <SSCBR> represents the content of the SSC
Baudrate register, taken as unsigned 16-bit integer. Minimum limit allowed for t300 is 125ns (corresponding to 8Mbaud).
3. Partially tested, guaranteed by design characterization.
180/188
ST10F272B/ST10F272E
Electrical characteristics
W
W
6&/.
W
W
W
VWRXWELW
0765
W
W
QGRXWELW
/DVWRXWELW
W W
0567
W
W W
QG,QELW
VWLQELW
/DVWLQELW
*$3*5,
1. The phase and polarity of shift and latch edge of SCLK is programmable. Figure 60 uses the leading clock
edge as shift edge (drawn in bold), with latch on trailing edge (SSCPH = 0b), Idle clock line is low, leading
clock edge is low-to-high transition (SSCPO = 0b).
2. The bit timing is repeated for all bits to be transmitted or received.
Symbol
Max. Baudrate
6.6 MBd (1))
@FCPU = 40MHz
(<SSCBR> = 0002h)
Parameter
Variable Baudrate
(<SSCBR> = 0001h FFFFh)
min.
max.
min.
max.
Unit
t310
150
150
8TCL
262144 TCL
ns
t311
63
t310 / 2 12
ns
t312
63
t310 / 2 12
ns
t313
10
10
ns
t314
10
10
ns
t315
55
2TCL + 30
ns
t316
ns
t317p
62
4TCL + 12
ns
t318p
87
6TCL + 12
ns
181/188
Electrical characteristics
Table 83.
ST10F272B/ST10F272E
Symbol
Max. Baudrate
6.6 MBd (1))
@FCPU = 40MHz
(<SSCBR> = 0002h)
Parameter
Variable Baudrate
(<SSCBR> = 0001h FFFFh)
min.
max.
min.
max.
Unit
t317
ns
t318
31
2TCL + 6
ns
1. Maximum Baudrate is in reality 8Mbaud, that can be reached with 64MHz CPU clock and <SSCBR> set to 3h, or with
48MHz CPU clock and <SSCBR> set to 2h. When 40MHz CPU clock is used the maximum baudrate cannot be higher
than 6.6Mbaud (<SSCBR> = 2h) due to the limited granularity of <SSCBR>. Value 1h for <SSCBR> may be used only
with CPU clock lower than 32MHz (after checking that resulting timings are suitable for the master).
2. Formula for SSC Clock Cycle time: t310 = 4 TCL * (<SSCBR> + 1)
Where <SSCBR> represents the content of the SSC Baudrate register, taken as unsigned 16-bit integer.
Minimum limit allowed for t310 is 125ns (corresponding to 8Mbaud).
W
W
6&/.
W
0567
W
W
W
W
VWRXWELW
QGRXWELW
W W
0765
VWLQELW
W
/DVWRXWELW
W W
QGLQELW
/DVWLQELW
*$3*5,
1. The phase and polarity of shift and latch edge of SCLK is programmable. Figure 61 uses the leading clock
edge as shift edge (drawn in bold), with latch on trailing edge (SSCPH = 0b), Idle clock line is low, leading
clock edge is low-to-high transition (SSCPO = 0b).
2. The bit timing is repeated for all bits to be transmitted or received.
182/188
ST10F272B/ST10F272E
25
Package information
Package information
To meet environmental requirements, ST offers these devices in different grades of
ECOPACK packages, depending on their level of environmental compliance. ECOPACK
specifications, grade definitions, and product status are available at www.st.com.
ECOPACK is an ST trademark.
183/188
Package information
ST10F272B/ST10F272E
DIM.
MIN.
inch
TYP.
MAX.
MIN.
TYP.
4.07
A1
0.25
A2
3.17
0.160
0.010
3.42
3.67
0.125
0.135
0.144
0.22
0.38
0.009
0.015
0.13
0.23
0.005
0.009
30.95
31.20
31.45
1.219
1.228
1.238
D1
27.90
28.00
28.10
1.098
1.102
1.106
D3
22.75
0.896
0.65
0.026
30.95
31.20
31.45
1.219
1.228
1.238
E1
27.90
28.00
28.10
1.098
1.102
1.106
E3
22.75
OUTLINE AND
MECHANICAL DATA
MAX.
0.65
0.896
0.80
L1
0.95
0.026
1.60
0.031
0.037
0.063
PQFP144
0(min.), 7(max.)
D
D1
A
D3
A2
A1
108
109
73
72
0.10mm
.004
E1
E3
Seating Plane
37
144
1
36
C
L1
K
PQFP144
184/188
ST10F272B/ST10F272E
Package information
inch
DIM.
MIN.
TYP.
MAX.
MIN.
TYP.
1.60
A1
0.05
A2
1.35
0.17
0.09
0.15
0.002
0.006
1.40
1.45
0.053
0.055
0.057
0.22
0.27
0.007
0.009
0.011
0.20
0.003
0.008
22.00
0.866
D1
20.00
0.787
D3
17.50
0.689
0.50
0.020
22.00
0.866
E1
20.00
0.787
E3
17.50
0.689
L1
K
0.45
0.60
1.00
0.75
OUTLINE AND
MECHANICAL DATA
0.063
MAX.
0.018
0.024
0.030
0.0393
LQFP144Q
(20x20x1.40mm)
0099183 B
185/188
Ordering information
26
ST10F272B/ST10F272E
Ordering information
Table 84.
Order codes
Part number
Package
F272-BAR-P
Packing
F272-BAR-P-TX
CPU frequency
range (MHz)
-40 to +125C
1 to 64
-40 to +125C
1 to 40
F272-BAR-T
Tray
LQFP144
186/188
Temperature
range (C)
Tray
PQFP144
F272-BAR-T-TX
B/E
Type
ST10F272B/ST10F272E
27
Revision history
Revision history
Table 85.
Date
Revision
Changes
02-November-2004
0.7
Initial release.
24-January-2005
0.8
29-August-2005
12-Dec-2008
01-Jun-2012
18-Sep-2013
Updated Disclaimer.
20-Jul-2006
187/188
ST10F272B/ST10F272E
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 STs 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 STS 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.
ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE
SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B)
AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS
OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT
PURCHASERS SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS
EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY
DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE
DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY.
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.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
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.
188/188