English
Language : 

MC9S12NE64_06 Datasheet, PDF (98/554 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 2 64 Kbyte Flash Module (S12FTS64KV3)
Execute Sector Erase Command Flow
Bit Polling for
Command
Completion Check
Bit
CCIF
no
Set?
yes
Erase
Abort
Needed?
yes
no
Read: Register FSTAT
EXIT
1.
Write: Dummy Flash Address
and Dummy Data
NOTE: command write sequence
aborted by writing 0x00 to
2.
FSTAT register.
NOTE: command write sequence
aborted by writing 0x00 to
3.
FSTAT register.
Write: Register FCMD
Sector Erase Abort Cmd 0x47
Write: Register FSTAT
Clear bit CBEIF 0x80
Read: Register FSTAT
Bit Polling for
Command
Completion Check
Access
Error Check
Bit
CCIF
Set?
yes
no
Read: Register FSTAT
Bit
ACCERR
Set?
no
yes Write: Register FSTAT
Clear bit ACCERR 0x10
EXIT
Sector Erase
Completed
EXIT
Sector Erase
Aborted
Figure 2-27. Example Sector Erase Abort Command Flow
MC9S12NE64 Data Sheet, Rev. 1.1
98
Freescale Semiconductor