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