English
Language : 

MC9S12HZ256 Datasheet, PDF (89/692 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
Execute Sector Erase Command Flow
Chapter 2 256 Kbyte Flash Module (FTS256K2V1)
Bit Polling for
Command
Completion Check
Bit
CCIF
no
Set?
yes
Erase
Abort
Needed?
yes
no
Read: Register FSTAT
EXIT
1.
Write: Dummy Flash Address
and Dummy Data
NOTE: command write sequence
aborted by writing 0x00 to
2.
FSTAT register.
NOTE: command write sequence
aborted by writing 0x00 to
3.
FSTAT register.
Write: Register FCMD
Sector Erase Abort Cmd 0x47
Write: Register FSTAT
Clear bit CBEIF 0x80
Read: Register FSTAT
Bit Polling for
Command
Completion Check
Access
Error Check
Bit
CCIF
Set?
yes
no
Read: Register FSTAT
Bit
ACCERR
Set?
no
yes Write: Register FSTAT
Clear bit ACCERR 0x10
EXIT
Sector Erase
Completed
EXIT
Sector Erase
Aborted
Figure 2-28. Example Sector Erase Abort Command Flow
MC9S12HZ256 Data Sheet, Rev. 2.04
Freescale Semiconductor
89