English
Language : 

S912XEG128J2MAA Datasheet, PDF (1173/1324 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 29 1024 KByte Flash Module (S12XFTM1024K5V2)
START
Read: FCLKDIV register
Clock Register
Written
Check
FDIVLD
Set?
yes
no
Write: FCLKDIV register
Note: FCLKDIV must be set after
each reset
Read: FSTAT register
FCCOB
Availability Check
CCIF
no
Set?
yes
Access Error and
Protection Violation
Check
ACCERR/
FPVIOL
yes
Set?
no
Write to FCCOBIX register
to identify specific command
parameter to load.
Results from previous Command
Write: FSTAT register
Clear ACCERR/FPVIOL 0x30
Write to FCCOB register
to load required command parameter.
More
yes
Parameters?
no
Write: FSTAT register (to launch command)
Clear CCIF 0x80
Read: FSTAT register
Bit Polling for
Command Completion
Check
CCIF Set?
no
yes
EXIT
Figure 29-26. Generic Flash Command Write Sequence Flowchart
Freescale Semiconductor
MC9S12XE-Family Reference Manual Rev. 1.25
1173