Freescale Semiconductor MCF51QE128RM Answering Machine User Manual


 
MCF51QE128 MCU Series Reference Manual, Rev. 3
84 Freescale Semiconductor
Get the latest version from freescale.com
Chapter 4 Memory
Figure 4-12. Example Burst Program Command Flow
4.5.2.4 Sector Erase Command
The sector erase operation erases all addresses in a 1 Kbyte sector of flash memory using an embedded
algorithm.
Write: Flash Array Address
Write: FCMD register
Write: FSTAT register
1.
2.
3.
Write: FSTAT register
yes
no
Access Error and
no
Bit Polling for
Read: FSTAT register
yes
Read: FSTAT register
no
START
yes
FCBEF
Set?
Command
FCCF
Set?
FACCERR/FPVIOL
Set?
Write: FCDIV register
Read: FCDIV register
yes
no
Clock Register
FDIVLD
Set?
Note: FCDIV needs to
Written
Check
Protection Violation
Check
Buffer Empty Check
and Program Data
Burst Program Command 0x25
Clear FCBEF 0x80
Clear FACCERR/FPVIOL 0x30
Command Completion
Check
EXIT
be set after each reset
no
Bit Polling for
Read: FSTAT register
yes
FCBEF
Set?
Command Buffer Empty
Check
yes
Sequential
no
Next
Address?
Programming
Decision