English
Language : 

S912XEG384J3VA Datasheet, PDF (1048/1324 Pages) Freescale Semiconductor, Inc – MC9S12XEP100 Reference Manual Covers MC9S12XE Family
Chapter 27 512 KByte Flash Module (S12XFTM512K3V1)
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 27-26. Generic Flash Command Write Sequence Flowchart
1048
MC9S12XE-Family Reference Manual Rev. 1.25
Freescale Semiconductor