ColdFire Flash Module (CFM)
MCF52211 ColdFire® Integrated Microcontroller Reference Manual, Rev. 2

18-22 Freescale Semiconductor

Figure 18-15. Example Page Erase Verify Command Flow

Program

The operation programs a previously erased address in the flash memory using an embedded algorithm.

Write: Register CFMCLKD
Read: Register CFMCLKD
Write: Logical Page Address
Write: Register CFMCMD
Page Erase Verify Command 0x06
Write: Register CFMUSTAT
yes
no
Clear bit CBEIF 0x80
Clock Register
Written
Check
1.
2.
3.
Clear bit ACCERR/PVIOL 0x30
Write: Register CFMUSTAT
yes
no
Access Error and
Protection Violation
no
and Dummy Data
Bit Polling for
Command Completion
Check
Read: Register CFMUSTAT
yes
NOTE: Command write sequence
aborted by writing 0x00 to
CFMUSTAT register.
NOTE: Command write sequence
aborted by writing 0x00 to
CFMUSTAT register.
Read: Register CFMUSTAT
no
START
yes
Read: Register CFMUSTAT
Check
CCIF
Set?
Bit
ACCERR/PVIOL
Set?
Bit
CBEIF
Set?
Bit
DIVLD
Set?
Bit
Address, Data,
Command
Buffer Empty Check
no
Page Erase
Verify Status
yes
EXIT
Flash Logical Page
Not Erased
BLANK
Set?
Bit
Clear bit BLANK 0x04
Write: Register CFMUSTAT
EXIT
Flash Logical Page
Erased