EasyManua.ls Logo

ROHS MC9S08QE128 - Page 80

Default Icon
345 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4 Memory
MC9S08QE128 MCU Series Reference Manual, Rev. 2
80 Freescale Semiconductor
Figure 4-16. Example Erase Verify Command Flow
4.6.3.2.2 Program Command
The program operation will program a previously erased address in the flash memory using an embedded
algorithm.
An example flow to execute the program operation is shown in Figure 4-17. The program command write
sequence is as follows:
1. Write to a flash block address to start the command write sequence for the program command. The
data written will be programmed to the address written.
2. Write the program command, 0x20, to the FCMD register.
Write: Flash Block 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?
no
Erase Verify
yes
EXIT
Flash Block
FBLANK
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 Dummy Data
Erase Verify Command 0x05
Clear FCBEF 0x80
Clear FACCERR/FPVIOL 0x30
Command Completion
Check
Status
Erased
Flash Block
Not Erased
EXIT
be set after each reset

Table of Contents