Motorola MC9S12C-Family, MC9S12GC-Family warranty

Models: MC9S12C-Family MC9S12GC-Family

1 136
Download 136 pages 37.33 Kb
Page 105
Image 105

Device User Guide — 9S12C128DGV1/D V01.05

B.5 NVM, Flash and EEPROM

B.5.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 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 B-8 are calculated for maximum fNVMOP and maximum fbus. The maximum times are calculated for minimum fNVMOP and a fbus of 2MHz.

B.5.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.

tswpgm = 9

---------------------1

+ 25

---------1-

 

fNVMOP

 

fbus

B.5.1.2 Row Programming

Generally the time to program a consecutive word can be calculated as:

tbwpgm = 4

---------------------1

+ 9

---------1-

 

fNVMOP

 

fbus

For the C16, GC16, C32 and GC32 device flash arrays, where up to 32 words in a row can be programmed consecutively by keeping the command pipeline filled, the time to program a whole row is:

tbrpgm = tswpgm + 31 tbwpgm

For the C64, GC64, C96, C128 and GC128 device flash arrays, where up to 64 words in a row can be programmed consecutively by keeping the command pipeline filled, the time to program a whole row is:

tbrpgm = tswpgm + 63 tbwpgm

Row programming is more than 2 times faster than single word programming.

105

Page 105
Image 105
Motorola MC9S12C-Family, MC9S12GC-Family warranty