
Flash Memory
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
13-13
The flash does not allow you to write bits simultaneously that 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-7. 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 MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...