English
Language : 

S912XHZ512F1VAG Datasheet, PDF (168/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
Chapter 3 512 Kbyte Flash Module (S12XFTX512K4V3)
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 3-31. Example Sector Erase Abort Command Flow
MC9S12XHZ512 Data Sheet, Rev. 1.06
168
Freescale Semiconductor