MC9S08JM16CGTE FREESCALE [Freescale Semiconductor, Inc], MC9S08JM16CGTE Datasheet - Page 51

no-image

MC9S08JM16CGTE

Manufacturer Part Number
MC9S08JM16CGTE
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
4.5.5
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.
Freescale Semiconductor
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)
1
2
PROGRAM FLOW
Required only once after reset.
Wait at least four bus cycles before checking FCBEF or FCCF.
FLASH BURST
Access Errors
Figure 4-3. Flash Burst Program Flowchart
YES
MC9S08JM16 Series Data Sheet, Rev. 2
WRITE COMMAND (0x25) TO FCMD
0
TO BUFFER ADDRESS AND DATA
NEW BURST COMMAND?
TO LAUNCH COMMAND
AND CLEAR FCBEF
WRITE 1 TO FCBEF
WRITE TO FCDIV
WRITE TO FLASH
CLEAR ERROR
FACCERR?
FACCERR?
FPVIO OR
FCBEF?
START
FCCF?
DONE
1
1
NO
1
NO
1
2
YES
0
0
ERROR EXIT
Chapter 4 Memory
51

Related parts for MC9S08JM16CGTE