English
Language : 

MC9S12KG128 Datasheet, PDF (578/600 Pages) Freescale Semiconductor, Inc – Microcontrollers
Appendix A Electrical Characteristics
A.6 NVM, Flash and EEPROM
NOTE
Unless otherwise noted the abbreviation NVM (Non Volatile Memory) is
used for both Flash and EEPROM.
A.6.1 NVM Timing
The time base for all NVM program or erase operations is derived from the oscillator. A minimum
oscillator frequency fNVMOSC 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 fNVMOP.
The minimum program and erase times shown in Table A-16 are calculated for maximum fNVMOP and
maximum fbus. The maximum times are calculated for minimum fNVMOP and a fbus of 2MHz.
A.6.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 fNVMOP and can be calculated according to the following formula.
tswpgm = 9 ⋅ f--N-----V----M1------O-----P-- + 25 ⋅ f--b---1-u----s-
A.6.1.2 Row Programming
Flash programming where up to 64 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:
tbwpgm = 4 ⋅ f--N-----V----M-1-----O-----P-- + 9 ⋅ f--b---1-u----s-
The time to program a whole row is:
tbrpgm = tswpgm + 63 ⋅ tbwpgm
Row programming is more than 2 times faster than single word programming.
MC9S12KG128 Data Sheet, Rev. 1.15
578
Freescale Semiconductor