Flash Memory
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
13-9
16
EER
ECC event error. Provides information on previous reads; if a double bit detection occurred, the EER bit is set
to 1. This bit must then be cleared, or a reset must occur before this bit returns to a 0 state. This bit cannot
be set by the application. In the event of a single bit detection and correction, this bit is not set. If EER is not
set, or remains 0, this indicates that all previous reads (from the last reset, or clearing of EER) were correct.
Since this bit is an error flag, it must be cleared to a 0 by writing a 1 to the register location. A write of 0 has
no effect.
0 Reads are occurring normally.
1 An ECC Error occurred during a previous read.
Note:
This bit can be set on speculative prefetches that cause double bit error detection. Therefore, use the
ECSM[FNCE] flag for detecting non-correctable ECC errors in the flash instead of using
FLASH_MCR[EER].
17
RWE
Read while write event error. Provides information on previous RWW reads. If a read while write error occurs,
this bit is set to 1. This bit must then be cleared, or a reset must occur before this bit returns to a 0 state. This
bit cannot be set to 1 by the user. If RWE is not set, or remains 0, this indicates that all previous RWW reads
(from the last reset, or clearing of RWE) were correct. Since this bit is an error flag, it must be cleared to a 0
by writing a 1 to the register location. A write of 0 has no effect.
0 Reads are occurring normally.
1 A read while write error occurred during a previous read.
18–19
Reserved.
20
PEAS
Program/erase access space. Indicates which space is valid for program and erase operations, either main
array space or shadow space. PEAS is read only.
0 Shadow address space is disabled for program/erase and main address space enabled
1 Shadow address space is enabled for program/erase and main address space disabled.
21
DONE
State machine status. Indicates if the flash module is performing a high voltage operation. DONE is set to a
1 on termination of the flash module reset and at the end of program and erase high voltage sequences.
0 Flash is executing a high voltage operation.
1 Flash is not executing a high voltage operation.
22
PEG
Program/erase good. 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 causes PEG to be cleared,
indicating the sequence failed. PEG is set to a 1 when the module is reset. PEG is read only.
The value of PEG is valid only when PGM = 1 and/or ERS = 1 and after DONE has transitioned 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 PSUS or ESUS being set to logic 1. A diagram presenting PEG valid times is presented in
. If PGM and ERS are both 1 when DONE makes a qualifying 0 to 1 transition the value of PEG
indicates the completion status of the PGM sequence. This happens in an erase-suspended program
operation.
0 Program or erase operation failed.
1 Program or erase operation successful.
23–24
Reserved.
25
STOP
Stop mode enabled. Puts the flash into stop mode. Changing the value in STOP from a 0 to a 1 places the
flash module in stop mode. A 1 to 0 transition of STOP returns the flash module to normal operation. STOP
can be written only when PGM and ERS are low. When STOP = 1, only the STOP bit in the MCR can be
written. In STOP mode all address spaces, registers, and register bits are deactivated except for the
FLASH_MCR[STOP] bit.
0 Flash is not in stop mode; the read state is active.
1 Flash is in stop mode.
Table 13-5. FLASH_MCR Field Descriptions (continued)
Field
Description
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...