![](http://datasheet.mmic.net.cn/220000/LHF16J06_datasheet_15481613/LHF16J06_18.png)
LHF16J06
16
Rev. 1.26
4.12 Block Locking by the WP#
This Boot Block Flash memory architecture features two
hardware-lockable boot blocks so that the kernel code for
the system can be kept secure while other blocks are
programmed or erased as necessary.
The lockable two boot blocks are locked when WP#=V
IL
;
any program or erase operation to a locked block will
result in an error, which will be reflected in the status
register. For top configuration, the top two boot blocks are
lockable. For the bottom configuration, the bottom two
boot blocks are lockable. If WP# is V
IH
and block lock-
bit is not set, boot block can be programmed or erased
normally (Unless V
CCW
is below V
CCWLK
). WP# is valid
only two boot blocks, other blocks are not affected.
Table 5. Write Protection Alternatives
Permanent
Lock-Bit
Lock-bit
X
X
X
X
X
0
Operation
V
CCW
RP#
Block
WP#
Effect
Block Erase
≤
V
CCWLK
or
Word/Byte
Write
X
X
X
All Blocks Locked.
All Blocks Locked.
2 Boot Blocks Locked.
Block Erase and Word/Byte Write Enabled.
Block Erase and Word/Byte Write Disabled.
Block Erase and Word/Byte Write Disabled.
All Blocks Locked.
All Blocks Locked.
All Unlocked Blocks are Erased.
2 Boot Blocks and Locked Blocks are NOT Erased.
All Unlocked Blocks are Erased,
Locked Blocks are NOT Erased.
Set Block Lock-Bit Disabled.
Set Block Lock-Bit Disabled.
Set Block Lock-Bit Enabled.
Set Block Lock-Bit Disabled.
Clear Block Lock-Bits Disabled.
Clear Block Lock-Bits Disabled.
Clear Block Lock-Bits Enabled.
Clear Block Lock-Bits Disabled.
Set Permanent Lock-Bit Disabled.
Set Permanent Lock-Bit Disabled.
Set Permanent Lock-Bit Enabled.
>V
CCWLK
V
IL
V
IH
V
IL
V
IH
V
IL
V
IH
X
X
V
IL
1
Full Chip
Erase
≤
V
CCWLK
>V
CCWLK
X
X
X
X
X
X
X
V
IL
V
IH
V
IH
Set Block
Lock-Bit
≤
V
CCWLK
>V
CCWLK
X
X
X
0
1
X
X
0
1
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
V
IL
V
IH
Clear Block
≤
V
CCWLK
Lock-Bits
X
>V
CCWLK
V
IL
V
IH
Set
≤
V
CCWLK
>V
CCWLK
X
Permanent
Lock-Bit
V
IL
V
IH
sharp