
28F800C3, 28F160C3, 28F320C3, 28F640C3
16
3UHOLPLQDU\
3.3.1
Locking Operation
The following concisely summarizes the locking functionality.
All blocks power-up locked, then can 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 and commands can 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.
The locking status of each block can be set to Locked, Unlocked, and Lock-Down, each of which
will be described in the following sections. A comprehensive state table for the locking functions is
shown in
Table 9 on page 18
, and a flowchart for locking operations is shown in
Figure 15 on
page 48
.
3.3.1.1
Locked State
The default status of all blocks upon power-up or reset is locked (states [001] or [101]). Locked
blocks are fully protected from alteration. Any program or erase operations 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 software commands. An Unlocked
block can be locked by writing the Lock command sequence, 60H followed by 01H.
3.3.2
Unlocked State
Unlocked blocks (states [000], [100], [110]) can be programmed or erased. All unlocked blocks
return to the Locked state when the device is reset or powered down. The status of an unlocked
block can be changed to Locked or Locked-Down using the appropriate software commands. A
Locked block can be unlocked by writing the Unlock command sequence, 60H followed by D0H.
3.3.3
Lock-Down State
Blocks that are Locked-Down (state [011]) are protected from program and erase operations (just
like Locked blocks), but their protection status cannot be changed using software commands alone.
A Locked or Unlocked block can be Locked-down by writing the Lock-Down command sequence,
60H followed by 2FH. Locked-Down blocks revert to the Locked state when the device is reset or
powered down.
The Lock-Down function is dependent on the WP# input pin. When WP# = 0, blocks in Lock-
Down [011] are protected from program, erase, and lock status changes. When WP# = 1, the Lock-
Down function is disabled ([111]) and locked-down blocks can be individually unlocked by
software command to the [110] state, where they can be erased and programmed. These blocks can
then be relocked [111] and unlocked [110] as desired while WP# remains high. When WP# goes
low, blocks that were previously locked-down return to the Lock-Down state [011] regardless of
any changes made while WP# was high. Device reset or power-down resets all blocks, including
those in Lock-Down, to Locked state.