English
Language : 

MC9S12C Datasheet, PDF (558/680 Pages) Motorola, Inc – 16-Bit Microcontroller
Chapter 19 64 Kbyte Flash Module (S12FTS64KV4)
START
Read: FCLKDIV register
Clock Register
Written
Check
FDIVLD
no
Set?
NOTE: FCLKDIV needs to
be set once after each reset.
yes
Write: FCLKDIV register
Read: FSTAT register
Address, Data,
Command
Buffer Empty Check
CBEIF
no
Set?
yes
Access Error and
Protection Violation
Check
ACCERR/
yes
PVIOL
Set?
no
Write: Flash Array Address
1. and Dummy Data
2.
Write: FCMD register
Erase Verify Command 0x05
3.
Write: FSTAT register
Clear CBEIF 0x80
Read: FSTAT register
Write: FSTAT register
Clear ACCERR/PVIOL 0x30
Bit Polling for
Command Completion
Check
CCIF
Set?
no
yes
Erase Verify
Status
BLANK
no
Set?
yes
EXIT
Flash Array
Erased
EXIT
Flash Array
Not Erased
Figure 19-22. Example Erase Verify Command Flow
558
MC9S12C-Family / MC9S12GC-Family
Freescale Semiconductor
Rev 01.23