128 KByte Flash Module (S12FTMRC128K1V1)
START
Read: FCLKDIV register
no
Clock Divider
Value Check
FDIV
Correct?
no
CCIF
Set?
Read: FSTAT register
yes
yes
Note: FCLKDIV must be
set after each reset
FCCOB
Availability Check
Read: FSTAT register
no
Write: FCLKDIV register
CCIF
Set?
yes
Results from previous Command
ACCERR/
FPVIOL
Set?
yes
Access Error and
Write: FSTAT register
Clear ACCERR/FPVIOL 0x30
Protection Violation
Check
no
Write to FCCOBIX register
to identify specific command
parameter to load.
Write to FCCOB register
to load required command parameter.
More
Parameters?
yes
no
Write: FSTAT register (to launch command)
Clear CCIF 0x80
Read: FSTAT register
Bit Polling for
Command Completion
Check
no
CCIF Set?
yes
EXIT
Figure 13-26. Generic Flash Command Write Sequence Flowchart
S12P-Family Reference Manual, Rev. 1.13
452
Freescale Semiconductor