English
Language : 

MC9S08JM16 Datasheet, PDF (51/386 Pages) Freescale Semiconductor, Inc – Microcontrollers
FLASH BURST
PROGRAM FLOW
WRITE TO FCDIV1
START
FACCERR?
0
1
CLEAR ERROR
Chapter 4 Memory
FCBEF?
0
1
WRITE TO FLASH
TO BUFFER ADDRESS AND DATA
WRITE COMMAND (0x25) TO FCMD
WRITE 1 TO FCBEF
TO LAUNCH COMMAND
AND CLEAR FCBEF2
FPVIO OR
YES
FACCERR?
NO
YES NEW BURST COMMAND?
NO
ERROR EXIT
0
FCCF?
1
DONE
1 Required only once after reset.
2 Wait at least four bus cycles before checking FCBEF or FCCF.
Figure 4-3. Flash Burst Program Flowchart
4.5.5 Access Errors
An access error occurs when the command execution protocol is violated.
Any of the following specific actions will cause the access error flag (FACCERR) in FSTAT to be set.
FACCERR must be cleared by writing a 1 to FACCERR in FSTAT before any command can be processed.
• Writing to a flash address before the internal flash clock frequency has been set by writing to the
FCDIV register
• Writing to a flash address while FCBEF is not set (a new command cannot be started until the
command buffer is empty)
MC9S08JM16 Series Data Sheet, Rev. 2
Freescale Semiconductor
51