English
Language : 

MC9S12HY64 Datasheet, PDF (642/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
64 KByte Flash Module (S12FTMRC64K1V1)
START
Read: FCLKDIV register
no
Clock Divider
Value Check
FCCOB
Availability Check
FDIV
Correct?
yes
no Read: FSTAT register
CCIF
Set?
yes
Note: FCLKDIV must be
set after each reset
Read: FSTAT register
Write: FCLKDIV register
no
CCIF
Set?
yes
Results from previous Command
Access Error and
Protection Violation
Check
ACCERR/
yes
FPVIOL
Set?
no
Write to FCCOBIX register
to identify specific command
parameter to load.
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 17-26. Generic Flash Command Write Sequence Flowchart
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
642
Freescale Semiconductor