English
Language : 

S912XHY128F0VLM Datasheet, PDF (598/802 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
256 KByte Flash Module (S12XFTMR256K1V1)
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 18-25. Generic Flash Command Write Sequence Flowchart
MC9S12XHY-Family Reference Manual, Rev. 1.01
598
Freescale Semiconductor