English
Language : 

MC9S12KG128_10 Datasheet, PDF (101/606 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
Chapter 2 128 Kbyte ECC Flash Module (S12FTS128K1ECCV1)
Read: Register FCLKDIV
Clock Register
Loaded
Bit FDIVLD set?
no
Check
yes
Write: Register FCLKDIV
1.
Write: Flash Block Address
and Dummy Data
2.
Write: Register FCMD
Erase Verify Command 0x05
NOTE: command write sequence
aborted by writing 0x00 to
FSTAT register.
3.
Write: Register FSTAT
Clear bit CBEIF 0x80
NOTE: command write sequence
aborted by writing 0x00 to
FSTAT register.
Read: Register FSTAT
Write: Register FSTAT
Clear bit ACCERR 0x10
Access
Error Check
Bit
yes
ACCERR
Set?
no
no
Bit
DFDIF
yes
Set?
Bit Polling for
Command
Completion Check
Double Bit
Fault Detection
Check
Bit
CCIF
Set?
yes
Bit
DFDIF
Set?
no
no
Read: Register FSTAT
yes
Write: Register FSTAT
Clear bit DFDIF 0x08
Mass Erase Flash Block
Blank
Status Check
Bit
BLANK
Set?
yes
no
Flash Block not erased
EXIT
Figure 2-24. Example Erase Verify Command Flow
MC9S12KG128 Data Sheet, Rev. 1.16
Freescale Semiconductor
101