Memory
MC68HC908GZ16 MC68HC908GZ8 Data Sheet, Rev. 4
42
Freescale Semiconductor
10.
Clear the PGM bit.(1)
11.
Wait for a time, tNVH (minimum 5 μs).
12.
Clear the HVEN bit.
13.
After time, tRCV (typical 1 μs), the memory can be accessed in read mode again.
This program sequence is repeated throughout the memory until all data is programmed.
NOTE
Programming and erasing of FLASH locations can not be performed by
code being executed from the same FLASH array.
NOTE
While these operations must be performed in the order shown, other
unrelated operations may occur between the steps. Care must be taken
within the FLASH array memory space such as the COP control register
(COPCTL) at $FFFF.
NOTE
It is highly recommended that interrupts be disabled during program/ erase
operations.
NOTE
Do not exceed tPROG maximum or tHV maximum. tHV is defined as the
cumulative high voltage programming time to the same row before next
erase. tHV must satisfy this condition:
tNVS + tNVH + tPGS + (tPROG x 32) ≤ tHV maximum
NOTE
The time between programming the FLASH address change (step 7 to step
7), or the time between the last FLASH programmed to clearing the PGM
bit (step 7 to step 10) must not exceed the maximum programming time,
tPROG maximum.
CAUTION
Be cautious when programming the FLASH array to ensure that
non-FLASH locations are not used as the address that is written to when
selecting either the desired row address range in step 3 of the algorithm or
the byte to be programmed in step 7 of the algorithm. This applies
particularly to $FFD4–$FFDF.