English
Language : 

PXD10RM Datasheet, PDF (563/1332 Pages) Freescale Semiconductor, Inc – PXD10 Microcontroller
Table 17-8. MCR field descriptions (continued)
Field
Description
21 DONE: modify operation DONE (Read Only)
DONE indicates if the Flash Module is performing a high voltage operation.
DONE is set to 1 on termination of the Flash Module reset.
DONE is cleared to 0 immediately after a 0 to 1 transition of EHV, which initiates a high voltage operation,
or after resuming a suspended operation.
DONE is set to 1 at the end of program and erase high voltage sequences.
DONE is set to 1 (within tPABT or tEABT, equal to P/E Abort Latency) after a 1 to 0 transition of EHV,
which aborts a high voltage Program/Erase operation.
DONE is set to 1 (within tESUS, time equals to Erase Suspend Latency) after a 0 to 1 transition of ESUS,
which suspends an erase operation.
0: Flash is executing a high voltage operation.
1: Flash is not executing a high voltage operation.
22 PEG: Program/Erase Good (Read Only)
The PEG bit indicates the completion status of the last Flash Program or Erase sequence for which high
voltage operations were initiated. The value of PEG is updated automatically during the Program and
Erase high voltage operations.
Aborting a Program/Erase high voltage operation will cause PEG to be cleared to 0, indicating the
sequence failed.
PEG is set to 1 when the Flash Module is reset, unless a Flash initialization error has been detected.
The value of PEG is valid only when PGM=1 and/or ERS=1 and after DONE transitions from 0 to 1 due
to an abort or the completion of a Program/Erase operation. PEG is valid until PGM/ERS makes a 1 to 0
transition or EHV makes a 0 to 1 transition.
The value in PEG is not valid after a 0 to 1 transition of DONE caused by ESUS being set to logic 1.
If Program or Erase are attempted on blocks that are locked, the response will be PEG=1, indicating that
the operation was successful, and the content of the block were properly protected from the Program or
Erase operation.
If a Program operation tries to program at ‘1’ bits that are at ‘0’, the program operation is correctly
executed on the new bits to be programmed at ‘0’, but PEG is cleared, indicating that the requested
operation has failed.
In Array Integrity Check or Margin Mode PEG is set to 1 when the operation is completed, regardless
of the occurrence of any error. The presence of errors can be detected only by comparing the checksum
value stored in UMIRS0-1.
Aborting an Array Integrity Check or a Margin Mode operation will cause PEG to be cleared to 0,
indicating the sequence failed.
23:26
27
28
0: Program or Erase operation failed.
1: Program or Erase operation successful.
Reserved (Read Only)
Write these bits has no effect and read these bits always outputs 0.
PGM: ProGraM (Read/Write)
PGM is used to setup 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: Program SUSpend (Read/Write)
Write this bit has no effect, but the written data can be read back.
Freescale Semiconductor
PXD10 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
17-13