Chapter 4 Memory

If an address to be programmed is in a protected area of the flash block, FSTAT[FPVIOL] sets and the program command does not launch. After the program command has successfully launched and the program operation has completed, FSTAT[FCCF] is set.

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 Program Command 0x20

Write: FSTAT register Clear FCBEF 0x80

Read: FSTAT register

Bit Polling for

FCCF

no

Command Completion

Set?

 

 

Check

 

 

 

 

 

yes

 

 

 

EXIT

 

Figure 4-11. Example Program Command Flow

MCF51QE128 MCU Series Reference Manual, Rev. 3

82

Freescale Semiconductor

Get the latest version from freescale.com

Page 82
Image 82
Freescale Semiconductor MCF51QE128RM manual Example Program Command Flow