Chapter 17 Flash Memory
MPC5602P Microcontroller Reference Manual, Rev. 4
346
Freescale Semiconductor
17.3.7.4
Secondary Low/Mid Address Space Block Locking register (SLL)
The Secondary Low/Mid Address Space Block Locking register provides an alternative means to protect
blocks from being modified. These bits, along with bits in the LML register, determine if the block is
locked from program or Erase. An “OR” of LML and SLL determine the final lock status. Identical SLL
registers are provided in the code Flash and the data Flash blocks.
In the code Flash module, the SLL register has a related Non-Volatile Secondary Low/Mid Address Space
Block Locking register (NVSLL) located in TestFlash that contains the default reset value for SLL. The
reset value is 0x00XX_XXXX, initially determined by NVSLL.
The NVSLL register is read during the reset phase of the Flash module and loaded into the SLL.
LLK[15:0]
16:31
Low Address Space Block Lock 15-0
These bits lock the blocks of Low Address Space from program and Erase.
For code Flash, LLK[5:0] are related to sectors B0F[5:0], respectively. See
for more
information.
For data Flash, LLK[3:0] are related to sectors B1F[3:0], respectively. See
for more
information.
A value of 1 in a bit of the LLK bitfield signifies that the corresponding block is locked for program
and Erase.
A value of 0 in a bit of the LLK bitfield signifies that the corresponding block is available to receive
program and Erase pulses.
The LLK bitfield is not writable once an interlock write is completed until MCR[DONE] is set at the
completion of the requested operation. Likewise, the LLK bitfield is not writable if a high voltage
operation is suspended.
Upon reset, information from the TestFlash block is loaded into the LLK bitfields. The LLK bits may
be written as a register. Reset will cause the bits to go back to their TestFlash block value. The
default value of the LLK bits (assuming erased fuses) would be locked.
In the event that blocks are not present (due to configuration or total memory size), the LLK bits
will default to locked, and will not be writable. The reset value is always 1 (independent of the
TestFlash block), and register writes have no effect.
In the code Flash macrocell, bits LLK[15:6] are read-only and locked at 1.
In the data Flash macrocell, bits LLK[15:4] are read-only and locked at 1.
LLK is not writable unless LME is high.
0 Low Address Space Block is unlocked and can be modified (if also SLL[SLK] = 0).
1 Low Address Space Block is locked and cannot be modified.
1
This field is present only in LML
Table 17-15. LML and NVLML field descriptions (continued)
Field
Description