Device User Guide — 9S12DT128DGV2/D V02.16
111
Freescale Semiconductor
A.3 NVM, Flash and EEPROM
NOTE:
Unless otherwise noted the abbreviation NVM (Non Volatile Memory) is used for
both Flash and EEPROM.
A.3.1 NVM timing
The time base for all NVM program or erase operations is derived from the oscillator. A minimum
oscillator frequency f
NVMOSC
is required for performing program or erase operations. The NVM modules
do not have any means to monitor the frequency and will not prevent program or erase operation at
frequencies above or below the specified minimum. Attempting to program or erase the NVM modules at
a lower frequency a full program or erase transition is not assured.
The Flash and EEPROM program and erase operations are timed using a clock derived from the oscillator
using the FCLKDIV and ECLKDIV registers respectively. The frequency of this clock must be set within
the limits specified as f
NVMOP
.
The minimum program and erase times shown in
are calculated for maximum f
NVMOP
and
maximum f
bus
. The maximum times are calculated for minimum f
NVMOP
and a f
bus
of 2MHz.
A.3.1.1 Single Word Programming
The programming time for single word programming is dependant on the bus frequency as a well as on
the frequency f
NVMOP
and can be calculated according to the following formula.
A.3.1.2 Row Programming
This applies only to the Flash where up to 32 words in a row can be programmed consecutively by keeping
the command pipeline filled. The time to program a consecutive word can be calculated as:
The time to program a whole row is:
Row programming is more than 2 times faster than single word programming.
A.3.1.3 Sector Erase
Erasing a 512 byte Flash sector or a 4 byte EEPROM sector takes:
t
swpgm
9
1
f
NVMOP
---------------------
⋅
25
1
f
bus
----------
⋅
+
=
t
bwpgm
4
1
f
NVMOP
---------------------
⋅
9
1
f
bus
----------
⋅
+
=
t
brpgm
t
swpgm
31 t
bwpgm
⋅
+
=
Summary of Contents for MC9S12A128
Page 6: ...Device User Guide 9S12DT128DGV2 D V02 16 6 Freescale Semiconductor...
Page 18: ...Device User Guide 9S12DT128DGV2 D V02 16 18 Freescale Semiconductor...
Page 24: ...Device User Guide 9S12DT128DGV2 D V02 16 24 Freescale Semiconductor...
Page 56: ...Device User Guide 9S12DT128DGV2 D V02 16 56 Freescale Semiconductor...
Page 76: ...Device User Guide 9S12DT128DGV2 D V02 16 76 Freescale Semiconductor...
Page 80: ...Device User Guide 9S12DT128DGV2 D V02 16 80 Freescale Semiconductor...
Page 84: ...Device User Guide 9S12DT128DGV2 D V02 16 84 Freescale Semiconductor...
Page 95: ...Device User Guide 9S12DT128DGV2 D V02 16 95 Freescale Semiconductor...
Page 96: ...Device User Guide 9S12DT128DGV2 D V02 16 96 Freescale Semiconductor...
Page 116: ...Device User Guide 9S12DT128DGV2 D V02 16 116 Freescale Semiconductor...
Page 118: ...Device User Guide 9S12DT128DGV2 D V02 16 118 Freescale Semiconductor...
Page 126: ...Device User Guide 9S12DT128DGV2 D V02 16 126 Freescale Semiconductor...
Page 128: ...Device User Guide 9S12DT128DGV2 D V02 16 128 Freescale Semiconductor...
Page 140: ...Device User Guide 9S12DT128DGV2 D V02 16 140 Freescale Semiconductor...
Page 141: ...Device User Guide 9S12DT128DGV2 D V02 16 141 Freescale Semiconductor User Guide End Sheet...