English
Language : 

MC68HC908AS32A Datasheet, PDF (57/280 Pages) Freescale Semiconductor, Inc – Microcontrollers
Algorithm for Programming
a Row (64 Bytes) of FLASH Memory
1
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
WAIT FOR A TIME, tNVH
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 step 10)
must not exceed the maximum programming
time, tPROG maximum.
12
CLEAR HVEN BIT
13
WAIT FOR A TIME, tRCV
This row program algorithm assumes the row/s
to be programmed are initially erased.
END OF PROGRAMMING
Figure 2-14. FLASH Programming Algorithm Flowchart
MC68HC908AS32A Data Sheet, Rev. 2.0
Freescale Semiconductor
57