English
Language : 

MC9S12XD256MAL Datasheet, PDF (1182/1348 Pages) Freescale Semiconductor, Inc – Freescale’s Scalable Controller Area Network
Chapter 28 256 Kbyte Flash Module (S12XFTX256K2V1)
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 28-31. Example Sector Erase Abort Command Flow
1184
MC9S12XDP512 Data Sheet, Rev. 2.21
Freescale Semiconductor