NXP Semiconductors MPC5644A Reference Manual page 228

Microcontroller
Table of Contents

Advertisement

Flash memory
If the user attempts to write two or more MCR bits simultaneously then only the bit with the lowest priority
level is written. Setting two bits with the same priority level is prevented by existing write locks or do not
put the flash in an illegal state.
For example, setting ERS and PGM simultaneously results in only ERS being set. Attempting to clear
EHV while setting PSUS results in EHV being cleared, while PSUS is unaffected.
12.3.2.2
Low/Mid-Address Space Block Lock Register (LMLR)
The Low/Mid-Address Space Block Lock Register (LMLR) provides a means to protect blocks from being
modified. These bits, along with the SLLOCK bits in the SLMLR, determine if the block is locked from
program or erase. An "OR" of LMLR and SLMLR determines the final lock status.
A reset value of 1* in
registers is determined by Flash values in the shadow block. An erased
shadow block causes the reset value to be 1.
Offset 0x0004
R
LME
0
W
Reset
0
0
R
0
0
W
Reset
0
0
= Unimplemented or Reserved
Figure 12-4. Low/Mid-Address Space Block Lock Register (LMLR)
Field
LME
Low/Mid-Address Lock Enable
The LME bit is used to enable the Lock fields (SLOCK, MLOCK and LLOCK) to be set or cleared by
register writes. LME is a status bit only, and may not be written or cleared, and the reset value is 0. The
method to set LME is to write a password, and if the password matches, LME is set to reflect the status
of enabled, and is enabled until a reset operation occurs. For LME, the password 0xA1A1_1111 must
be written to the LMLR.
0: Low/Mid-Address Locks are disabled, and can not be modified.
1: Low/Mid-Address Locks are enabled to be written.
228
Table 12-5. MCR bit set/clear priority levels
Priority level
3
4
NOTE
Figure 12-4
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1*
0
0
0
0
Table 12-6. LMLR field descriptions
MPC5644A Microcontroller Reference Manual, Rev. 6
MCR bit(s)
EHV
ESUS, PSUS
indicates that the reset value of these
0
0
0
0
SLOCK
0
0
0
0
LLOCK
1*
1*
1*
1*
1*
Description
Access: User read/write
0
0
MLOCK
X
0
0
X
X
1*
1*
1*
1*
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents