
Chapter 29 128 Kbyte Flash Module (S12XFTX128K1V1)
MC9S12XDP512 Data Sheet, Rev. 2.17
Freescale Semiconductor
1225
Figure 29-29. Example Sector Erase Abort Command Flow
Write: Dummy Flash Address
and Dummy Data
Write: FCMD register
Sector Erase Abort Cmd 0x47
Write: FSTAT register
Clear CBEIF 0x80
1.
2.
3.
Read: FSTAT register
Bit Polling for
Command
Completion Check
yes
CCIF
Set
Execute Sector Erase Command Flow
no
Bit Polling for
Command
Completion Check
Read: FSTAT register
yes
CCIF
Set
no
yes
Abort
Needed
Erase
Clear ACCERR 0x10
Write: FSTAT register
yes
no
Access
Error Check
ACCERR
Set
Sector Erase
Completed
Sector Erase
Aborted
no
EXIT
EXIT
Sector Erase
Completed
EXIT