English
Language : 

MC9S08RG60 Datasheet, PDF (44/232 Pages) Motorola, Inc – Microcontrollers
Memory
A strictly monitored procedure must be adhered to, or the command will not be accepted. This minimizes
the possibility of any unintended changes to the FLASH memory contents. The command complete flag
(FCCF) indicates when a command is complete. The command sequence must be completed by clearing
FCBEF to launch the command. Figure 4-2 is a flowchart for executing all of the commands except for
burst programming. The FCDIV register must be initialized before using any FLASH commands. This
must be done only once following a reset.
START
0
FACCERR ?
CLEAR ERROR
WRITE TO FCDIV(1)
(1) Only required once
after reset.
WRITE TO FLASH
TO BUFFER ADDRESS AND DATA
WRITE COMMAND TO FCMD
WRITE 1 TO FCBEF
TO LAUNCH COMMAND
AND CLEAR FCBEF (2)
(2) Wait at least four cycles before
checking FCBEF or FCCF.
FPVIO OR
FACCERR ?
NO
0
FCCF ?
1
DONE
YES
ERROR EXIT
Figure 4-2 FLASH Program and Erase Flowchart
44
MC9S08RC/RD/RE/RG
Freescale Semiconductor