English
Language : 

MC68HC908GR8A_07 Datasheet, PDF (43/260 Pages) Freescale Semiconductor, Inc – Microcontrollers
Algorithm for programming
1
a row (32 bytes) of FLASH memory
SET PGM BIT
2 READ THE FLASH BLOCK PROTECT REGISTER
3
WRITE ANY DATA TO ANY FLASH ADDRESS
WITHIN THE ROW ADDRESS RANGE DESIRED
4
WAIT FOR A TIME, tNVS
5
SET HVEN BIT
6
WAIT FOR A TIME, tPGS
FLASH Memory (FLASH)
7
WRITE DATA TO THE FLASH ADDRESS
TO BE PROGRAMMED
8
WAIT FOR A TIME, tPROG
COMPLETED
Y
PROGRAMMING
THIS ROW?
N
10
CLEAR PGM BIT
11
Note:
The time between each FLASH address change (step 7 to step 7), 12
or the time between the last FLASH address programmed
to clearing PGM bit (step 7 to step 10)
must not exceed the maximum programming
13
time, tPROG max.
This row program algorithm assumes the row/s
to be programmed are initially erased.
WAIT FOR A TIME, tNVH
CLEAR HVEN BIT
WAIT FOR A TIME, tRCV
END OF PROGRAMMING
Figure 2-4. FLASH Programming Flowchart
MC68HC908GR8A • MC68HC908GR4A Data Sheet, Rev. 5
Freescale Semiconductor
43