28F320D18
Product Preview
11
NOTES:
1. In this table, the notation [XYZ] denotes the locking state of a block, where X = WP#, Y = DQ
, and Z = DQ
0
.
The current locking state of a block is defined by the state of WP# and the two bits of the block lock status
(DQ
, DQ
). DQ
indicates if a block is locked (1) or unlocked (0). DQ
1
indicates if a block has been locked-
down (1) or not (0).
2. At power-up or device reset, all blocks default to Locked state [001] (if WP# = 0). Holding WP# = 0 is the
recommended default.
3.
The “Erase/Program Allowed” column shows whether erase and program operations are enabled (Yes) or
disabled (No) in that block’s current locking state.
4. The “Lock Command Input Result [Next State]” column shows the result of writing the three locking
commands (Lock, Unlock, Lock-Down) in the current locking state. For example, “Goes To [001]” would mean
that writing the command to a block in the current locking state would change it to [001].
3.2.1
Locking Operation
The following summarizes the locking operation.
All blocks are locked on power-up. They can then be unlocked or locked with the Unlock and
Lock commands.
The Lock-Down command locks a block and prevents it from being unlocked when WP# = 0.
— When WP# = 1, Lock-Down is overridden. Commands can then unlock/lock locked-down
blocks.
— When WP# returns to 0, locked-down blocks return to Lock-Down.
— Lock-Down is cleared only when the device is reset or powered-down.
3.2.2
Locked State
All blocks default to locked on power-up or reset (states [001] or [101]). A program or erase
operation attempted on a locked block will return an error on bit SR.1 of the status register. The
status of a locked block can be changed to unlocked or lock-down using the appropriate command.
An unlocked block can be locked by writing the Lock command sequence, 60H followed by 01H.
Table 3. Block Locking State Transitions
Current State
Erase/Program
Allowed
Lock Command Input Result (Next State)
WP#
DQ
1
DQ
0
Name
Lock
Unlock
Lock-Down
0
0
0
“Unlocked”
Yes
Goes to [001]
No Change
Goes to [011]
0
0
1
“Locked” (Default)
No
No Change
Goes to [000]
Goes to [011]
0
1
1
“Locked-Down”
No
No Change
No Change
No Change
1
0
0
“Unlocked”
Yes
Goes to [101]
No Change
Goes to [111]
1
0
1
“Locked”
No
No Change
Goes to [100]
Goes to [111]
1
1
0
Lock-Down Disabled
Yes
Goes to [111]
No Change
Goes to [111]
1
1
1
Lock-Down Disabled
No
No Change
Goes to [110]
No Change