MC9S12XDP512CFU
Model | MC9S12XDP512CFU |
Description | 16-BIT, FLASH, 40MHz, MICROCONTROLLER, PQFP80 |
PDF file | Total 1348 pages (File size: 8M) |
Chip Manufacturer | PHILIPS |
Chapter 27 512 Kbyte Flash Module (S12XFTX512K4V2)
Execute Sector Erase Command Flow
Read: FSTAT register
Bit Polling for
Command
Completion Check
CCIF
Set?
yes
no
Erase
Abort
Needed?
yes
no
Sector Erase
Completed
EXIT
1.
Write: Dummy Flash Address
and Dummy Data
Write: FCMD register
Sector Erase Abort Cmd 0x47
Write: FSTAT register
Clear CBEIF 0x80
Read: FSTAT register
2.
3.
Bit Polling for
Command
Completion Check
CCIF
Set?
yes
no
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
MC9S12XDP512 Data Sheet, Rev. 2.21
Freescale Semiconductor
1143