X24320
WRITE PROTECT REGISTER (WPR)
Writing to the Write Protect Register
WPEN: Write Protect Enable Bit (Nonvolatile)
The Write Protect (WP) pin and the Write Protect Enable
(WPEN) bit in the Write Protect Register
The Write Protect Register can only be modified by
performing a “ByteWrite” operation directly to the
address FFFFh as described below.
control the Programmable Hardware Write Protection
feature. Hardware Write Protection is enabled when
the WP pin is HIGH and the WPEN bit is HIGH, and disabled
when either the WP pin is LOW or the WPEN
The Data Byte must contain zeroes where indicated in the
procedural descriptions below; otherwise the oper-
bit is LOW. Figure 12 defines the write protect status for
each combination of WPEN and WP. When the
ation will not be performed. Only one Data Byte is
allowed for each register write operation. The part will
chip is Hardware Write Protected, nonvolatile writes are
disabled to the Write Protect Register, including
not acknowledge any data bytes after the first byte is entered.
The user then has to issue a stop to initiate
the Block Lock Protect bits and the WPEN bit itself, as well
as to the Block Lock protected sections in the
the nonvolatile write cycle that writes BL0, BL1, and
WPEN to the nonvolatile bits. A stop must also be
memory array. Only the sections of the memory array that are
not Block Lock protected, and the volatile bits
issued after volatile register write operations to put the device
into Standby.
WEL and RWEL, can be written.
The state of the Write Protect Register can be read by
performing a random byte read at FFFFh at any time.
In Circuit Programmable ROM Mode
Note that when the WPEN bit is write protected, it
cannot be changed back to a LOW state; so write
The part will reset itself after the first byte is read. The master
should supply a stop condition to be consistent
protection is enabled as long as the WP pin is held HIGH
Thus an In Circuit Programmable ROM function
with the protocol, but a stop is not required to end this
operation. After the read, the address counter contains
can be implemented by hardwiring the WP pin to VCC, writing
to and Block Locking the desired portion of the
0000h.
array to be ROM, and then programming the WPEN bit
HIGH.
Write Protect Register: WPR (ADDR = FFFF )
h
7
6
5
4
3
2
1
0
Unused Bit Positions
Bits 0, 5 & 6 are not used. All writes to the WPR must have
zeros in these bit positions. The data byte output
WPEN
0
0
BL1 BL0 RWEL WEL
0
during a WPR read will contain zeros in these bits.
WEL: Write Enable Latch (Volatile)
0 = Write Enable Latch reset, writes disabled.
Writing to the WEL and RWEL bits
WEL and RWEL are volatile latches that power up in the
LOW (disabled) state. While the WEL bit is LOW,
1 = Write Enable Latch set, writes enabled.
writes to any address other than FFFFh will be ignored (no
acknowledge will be issued after the Data Byte).
RWEL: Register Write Enable Latch (Volatile)
0 = Register Write Enable Latch reset, writes to the Write
Protect Register disabled.
The WEL bit is set by writing 00000010 to address
FFFFh. Once set, WEL remains HIGH until either it is
reset to 0 (by writing 00000000 to FFFFh) or until the part
powers up again. Writes to WEL and RWEL do
1 = Register Write Enable Latch set, writes to the Write
Protect Register enabled.
not cause a nonvolatile write cycle, so the device is ready
for the next operation immediately after the stop
condition.
BL0, BL1: Block Lock Protect Bits (Nonvolatile) The
Block Lock Protect Bits, BL0 and BL1, determine
The RWEL bit controls writes to the Block Lock Protect bits,
BL0 and BL1, and the WPEN bit. If RWEL is 0
which blocks of the array are protected. A write to a
protected block of memory is ignored, but will receive
then no writes can be performed on BL0, BL1, or
WPEN. RWEL is reset when the device powers up or
an acknowledge. The master must issue a stop to put the part
into standby, just as it would for a valid write;
after any nonvolatile write, including writes to the Block
Lock Protect bits, WPEN bit, or any bytes in the
memory array. When RWEL is set, WEL cannot be
but the stop will not initiate an internal nonvolatile write
cycle. See figure 11.
9