Chapter 17 Flash Memory
MPC5602P Microcontroller Reference Manual, Rev. 4
348
Freescale Semiconductor
STSLK
11
Secondary Test/Shadow address space block LocK
This bit is used as an alternate means to lock the block of Test and Shadow Address Space from
program and Erase (Erase is any case forbidden for Test block).
A value of 1 in the STSLK bitfield signifies that the Test/Shadow block is locked for program and
Erase.
A value of 0 in the STSLK register signifies that the Test/Shadow block is available to receive
program and Erase pulses.
The STSLK register is not writable once an interlock write is completed until MCR[DONE] is set at
the completion of the requested operation. Likewise, the STSLK register is not writable if a high
voltage operation is suspended.
Upon reset, information from the TestFlash block is loaded into the STSLK register. The STSLK bit
may be written as a register. Reset will cause the bit to go back to its TestFlash block value. The
default value of the STSLK bit (assuming erased fuses) would be locked.
STSLK is not writable unless SLE is high.
0 Test/Shadow Address Space Block is unlocked and can be modified (if also LML[TSLK] = 0).
1 Test/Shadow Address Space Block is locked and cannot be modified.
12:13
Reserved
(Read Only)
A write to these bits has no effect. A read of these bits always outputs 0.
14:15
Reserved
SLK[15:0]
16:31
Secondary Low Address Space Block Lock 15–0
These bits are used as an alternate means to lock the blocks of Low Address Space from program
and Erase.
For code Flash, SLK[5:0] are related to sectors B0F[5:0], respectively. See
for more
information.
For data Flash, SLK[3:0] are related to sectors B1F[3:0], respectively. See
for more
information.
A value of 1 in a bit of the SLK register signifies that the corresponding block is locked for program
and Erase.
A value of 0 in a bit of the SLK register signifies that the corresponding block is available to receive
program and Erase pulses.
The SLK register is not writable once an interlock write is completed until MCR[DONE] is set at the
completion of the requested operation. Likewise, the SLK register is not writable if a high voltage
operation is suspended.
Upon reset, information from the TestFlash block is loaded into the SLK registers. The SLK bits may
be written as a register. Reset causes the bits to go back to their TestFlash block value. The default
value of the SLK bits (assuming erased fuses) would be locked.
In the event that blocks are not present (due to configuration or total memory size), the SLK bits
default to locked, and are not writable. The reset value will always be 1 (independent of the
TestFlash block), and register writes will have no effect.
In the code Flash macrocell, bits SLK[15:6] are read-only and locked at 1.
.
In the data Flash macrocell, bits SLK[15:4] are read-only and locked at 1.
SLK is not writable unless SLE is high.
0 Low Address Space Block is unlocked and can be modified (if also LML[LLK] = 0).
1 Low Address Space Block is locked and cannot be modified.
1
This field is present only in SLL
Table 17-16. SLL and NVSLL field descriptions (continued)
Field
Description