RM0046 Flash Memory
Doc ID 16912 Rev 5 345/936
23:26
Reserved (Read Only)
A write to these bits has no effect. A read of these bits always outputs 0.
PGM
27
Program
PGM sets up the Flash module for a program operation.
A 0-to-1 transition of PGM initiates a program sequence.
A 1-to-0 transition of PGM ends the program sequence.
PGM can be set only under User mode Read (ERS is low and UT0[AIE] is low). PGM can be
cleared by the user only when EHV is low and DONE is high. PGM is cleared on reset.
0 Flash is not executing a program sequence.
1 Flash is executing a program sequence.
PSUS
28
Program Suspend
Writing to this bit has no effect, but the written data can be read back.
ERS
29
Erase
ERS sets up the Flash module for an Erase operation.
A 0-to-1 transition of ERS initiates an Erase sequence.
A 1-to-0 transition of ERS ends the Erase sequence.
ERS can be set only under User mode Read (PGM is low and UT0[AIE] is low). ERS can be cleared
by the user only when ESUS and EHV are low and DONE is high. ERS is cleared on reset.
0 Flash is not executing an Erase sequence.
1 Flash is executing an Erase sequence.
ESUS
30
Erase Suspend
ESUS indicates that the Flash module is in Erase Suspend or in the process of entering a Suspend
state. The Flash module is in Erase Suspend when ESUS = 1 and DONE = 1.
ESUS can be set high only when ERS = 1 and EHV = 1, and PGM = 0.
A 0-to-1 transition of ESUS starts the sequence that sets DONE and places the Flash in erase
suspend. The Flash module enters Suspend within t
ESUS
of this transition.
ESUS can be cleared only when DONE = 1 and EHV = 1, and PGM = 0.
A 1-to-0 transition of ESUS with EHV = 1 starts the sequence that clears DONE and returns the
Module to Erase.
The Flash module cannot exit Erase Suspend and clear DONE while EHV is low.
ESUS is cleared on reset.
0 Erase sequence is not suspended.
1 Erase sequence is suspended.
Table 149. MCR field descriptions (continued)
Field Description