Flash Memory
MPC5565 Microcontroller Reference Manual, Rev. 1.0
13-12
Freescale Semiconductor
The flash does not allow the user to write bits simultaneously which would put the device into an illegal
state. This is implemented through a priority mechanism among the bits. The bit changing priorities are
detailed in
.
If the user attempts to write two or more MCR bits simultaneously then only the bit with the highest
priority level is written. Setting two bits with the same priority level is prevented by existing write locks
and does not put the flash in an illegal state.
For example, setting FLASH_MCR[STOP] and FLASH_MCR[PGM] simultaneously results in only
FLASH_MCR[STOP] being set. Attempting to clear FLASH_MCR[EHV] while setting
FLASH_MCR[PSUS] results in FLASH_MCR[EHV] being cleared, while FLASH_MCR[PSUS]
remains unaffected.
13.3.2.2
Low/Mid Address Space Block Locking Register (FLASH_LMLR)
The low and mid address block locking register provides a means to protect blocks from being modified.
These bits along with bits in the secondary LMLOCK field (FLASH_SLMLR), determine if the block is
locked from program or erase. An “OR”’ of FLASH_LMLR and FLASH_SLMLR determine the final
lock status. Refer to
Section 13.3.2.4, “Secondary Low/Mid Address Space Block Locking Register
” for more information on FLASH_SLMLR.
NOTE
In the event that blocks are not present (due to configuration or total
memory size), the LOCK bits defaults to locked, and are not writable. The
reset value is always 1 (independent of the shadow block), and register
writes have no effect.
Table 13-6. MCR Bit Set/Clear Priority Levels
Priority Level
MCR Bits
1
STOP
2
ERS
3
PGM
4
EHV
5
ESUS, PSUS
Address: Base (0xC3F8_8000) + 0x0004
Access: R/W
0
1
2
3
4
5
6
7
8
9
10
11
12 13
14
15
16 17 18 19 20 21 22 23 24 25 26
27
28
29
30
31
R LME 0 0 0 0 0 0 0 0 0 0
SLOCK
1 1
MLOCK
1
1
1
1
1
1
1
1
1
1
LLOCK
W
Reset
0
0 0 0 0 0 0 0 0 0 0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
The reset value of these bits is determined by flash values in the shadow row. Erasing the array sets the reset value to 1.
Figure 13-6. Low/Mid Address Space Block Locking Register (FLASH_LMLR)
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...