Datasheet

Table Of Contents
FLASH-2 Memory (FLASH-2)
MC68HC908GR60A • MC68HC908GR48A • MC68HC908GR32A Data Sheet, Rev. 5
Freescale Semiconductor 57
Figure 2-10. FLASH-2 Programming Algorithm Flowchart
SET HVEN BIT
READ THE FLASH BLOCK
WAIT FOR A TIME, t
NVS
SET PGM BIT
WAIT FOR A TIME, t
PGS
WAIT FOR A TIME, t
PROG
CLEAR PGM BIT
CLEAR HVEN BIT
COMPLETED
PROGRAMMING
THIS ROW?
YES
NO
END OF PROGRAMMING
1
2
3
4
5
6
7
8
10
11
12
13
Algorithm for programming
a row (64 bytes) of FLASH memory
PROTECT REGISTER
WRITE ANY DATA TO ANY FLASH
ADDRESS WITHIN THE ROW
ADDRESS RANGE DESIRED
WRITE DATA TO THE FLASH
ADDRESS TO BE PROGRAMMED
WAIT FOR A TIME, t
NVH
WAIT FOR A TIME, t
RCV
NOTES:
The time between each FLASH address change (step 7 to step 7) or
the time between the last FLASH address programmed to clearing
PGM bit (step 7 to step10) must not exceed the maximum
programming time, t
PROG
, maximum.
This row program algorithm assumes the row/s to be
programmed are initially erased.