English
Language : 

MC9S08DZ128 Datasheet, PDF (69/458 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 4 Memory
A strictly monitored procedure must be obeyed or the command will not be accepted. This
minimizes the possibility of any unintended changes to the 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-11 is a flowchart for executing all
of the commands except for burst programming and sector erase abort.
4. Wait until the FCCF bit in FSTAT is set. As soon as FCCF= 1, the operation has completed
successfully.
PROGRAM AND
ERASE FLOW
WRITE TO FCDIV(1)
START
0
FACCERR?
(1) Required only once
after reset.
CLEAR ERROR
WRITE TO FLASH OR EEPROM 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 bus cycles
before checking FCBEF or FCCF.
FPVIOL OR
FACCERR?
NO
0
FCCF?
1
DONE
YES
ERROR EXIT
Figure 4-11. Program and Erase Flowchart
4.6.4 Burst Program Execution
The burst program command is used to program sequential bytes of data in less time than would be
required using the standard program command. This is possible because the high voltage to the FLASH
array does not need to be disabled between program operations. Ordinarily, when a program or erase
command is issued, an internal charge pump associated with the FLASH memory must be enabled to
supply high voltage to the array. Upon completion of the command, the charge pump is turned off. When
MC9S08DZ128 Series Data Sheet, Rev. 1
Freescale Semiconductor
69