8
5185E–SEEPR–3/11
Atmel AT34C02C
The data word address lower four bits are internally incremented following the receipt of each data word. The higher data
word address bits are not incremented, retaining the memory page row location. When the word address, internally
generated, reaches the page boundary, the following byte is placed at the beginning of the same page. If more than
sixteen data words are transmitted to the EEPROM, the data word address will “roll over” and previous data will be
overwritten. The address “roll over” during write is from the last byte of the current page to the first byte of the same
page.
The device will acknowledge a write command, but not write the data, if the software or hardware write protection has
been enabled. The write cycle time must be observed even when the write protection is enabled.
ACKNOWLEDGE POLLING: Once the internally-timed write cycle has started and the EEPROM inputs are disabled,
acknowledge polling can be initiated. This involves sending a start condition followed by the device address word. The
read/write bit is representative of the operation desired. Only if the internal write cycle has completed will the EEPROM
respond with a zero allowing the read or write sequence to continue.
7. Write protection
The software write protection, once enabled, write protects only the first-half of the array (00H - 7FH) while the hardware
write protection, via the WP pin, is used to protect the entire array.
PERMANENT SOFTWARE WRITE PROTECTION: The software write protection is enabled by sending a command,
similar to a normal write command, to the device which programs the permanent write protect register. This must be done
with the WP pin low. The write protect register is programmed by sending a write command with the device address of
0110 instead of 1010 with the address and data bit being don’t cares (see Figure 7-1 on page 8). Once the software
write protection has been enabled, the device will no longer acknowledge the 0110 control byte. The software write
protection cannot be reversed even if the device is powered down. The write cycle time must be observed.
REVERSIBLE SOFTWARE WRITE PROTECTION: The reversible software write protection is enabled by sending a
command, similar to a normal write command, to the device which programs the reversible write protect register. This
must be done with the WP pin low. The write protect register is programmed by sending a write command 01100010
with pins A2 and A1 tied to ground or don't connect and pin A0 connected to VHV (see Figure 7-2). The reversible write
protection can be reversed by sending a command 01100110 with pin A2 tied to ground or no connect, pin A1 tied to VCC
and pin A0 tied to VHV (see Figure 7-3).
HARDWARE WRITE PROTECTION: The WP pin can be connected to VCC, GND, or left floating. Connecting the WP pin to
VCC will write protect the entire array, regardless of whether or not the software write protection has been enabled. The
software write protection register cannot be programmed when the WP pin is connected to VCC. If the WP pin is connected
to GND or left floating, the write protection mode is determined by the status of the software write protect register.
Figure 7-1. Setting permanent write protect register (PSWP)
S
T
A
R
T
S
T
O
P
SDA LINE
WORD
ADDRESS DATA
CONTROL
BYTE
A
C
K
0 1 1 0 A2 A1 A0 0
A
C
K
A
C
K
= Don't Care