English
Language : 

MC9S12XD256MAL Datasheet, PDF (1141/1348 Pages) Freescale Semiconductor, Inc – Freescale’s Scalable Controller Area Network
Chapter 27 512 Kbyte Flash Module (S12XFTX512K4V2)
Execute Sector Erase Command Flow
Read: FSTAT register
Bit Polling for
Command
Completion Check
CCIF
Set?
yes
Sector Erase
Completed
EXIT
no
Erase
no
Abort
Needed?
yes
1.
Write: Dummy Flash Address
and Dummy Data
2.
Write: FCMD register
Sector Erase Abort Cmd 0x47
3.
Write: FSTAT register
Clear CBEIF 0x80
Read: FSTAT register
Bit Polling for
Command
Completion Check
CCIF
no
Set?
yes
Access
Error Check
ACCERR
Set?
no
yes Write: FSTAT register
Clear ACCERR 0x10
Sector Erase
Completed
EXIT
Sector Erase
Aborted
EXIT
Figure 27-31. Example Sector Erase Abort Command Flow
Freescale Semiconductor
MC9S12XDP512 Data Sheet, Rev. 2.21
1143