Chapter 4 Memory

START

Read: FCDIV register

Clock Register

FDIVLD

WrittenSet? Check

yes

 

no

Note: FCDIV needs to

 

 

 

be set after each reset

 

 

 

 

 

 

 

 

Write: FCDIV register

 

 

 

 

 

 

 

Read: FSTAT register

Command

FCBEF

no

Buffer Empty Check

Set?

 

 

 

 

 

 

yes

 

 

 

 

 

 

 

 

 

 

 

Access Error and

FACCERR/FPVIOL

yes

Write: FSTAT register

Protection Violation

Set?

 

Clear FACCERR/FPVIOL 0x30

Check

no

 

 

1.

Write: Flash Array Address

 

 

and Program Data

 

 

 

 

 

2.

3.

Write: FCMD register

Burst Program Command 0x25

Write: FSTAT register

Clear FCBEF 0x80

Read: FSTAT register

Bit Polling for

FCBEF

no

 

Command Buffer Empty

 

 

 

 

 

 

 

 

 

Set?

 

 

 

 

Check

 

 

 

 

yes

 

 

 

 

 

 

 

Sequential

 

 

yes

 

 

 

 

 

 

Next

 

 

Programming

 

Address?

 

 

 

 

Decision

 

 

 

 

no

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read: FSTAT register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit Polling for

 

 

 

 

no

 

FCCF

 

 

Command Completion

 

Set?

 

 

 

 

Check

 

 

 

 

yes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXIT

 

 

 

 

Figure 4-12. Example Burst Program Command Flow

4.5.2.4Sector Erase Command

The sector erase operation erases all addresses in a 1 Kbyte sector of flash memory using an embedded algorithm.

MCF51QE128 MCU Series Reference Manual, Rev. 3

84

Freescale Semiconductor

Get the latest version from freescale.com

Page 84
Image 84
Freescale Semiconductor MCF51QE128RM manual Sector Erase Command, Command Buffer Empty, Sequential, Programming, Decision