Device Addressing

Accessing the device requires an 8-bit device address byte following a Start condition to enable the device for a read or write operation. Since multiple slave devices can reside on the serial bus, each slave device must have its own unique address so the master can access each device independently.

The Most Significant four bits of the device address byte is referred to as the device type identifier. The device type identifier ‘1010’ (Ah) for the main EEPROM access or ‘1011’ (Bh) for Security register and Write Protection register access is required in bits 7 through 4 of the device address byte (see Table 6‑1).

Following the 4‑bit device type identifier are the slave address bits, A2 and A1. The value that the AT24CSW04X/AT24CSW08X will ACK to is preprogrammed in each device. Unique ordering codes are available for each of the four (AT24CSW04X) or two (AT24CSW08X) possible slave combinations. The slave address preprogrammed in the device is embedded in the base part number as shown in Table 3 and Table 4.

The AT24CSW04X/AT24CSW08X contains a 32‑byte Security Register, organized as 2 pages of 16 bytes each. This register contains a factory‑programmed unique 128‑bit serial number in the lower 16 bytes. The upper 16 bytes are user‑programmable and can (later) be permanently write‑protected (see Write Operations in the Security Register).

Access to the Security register memory location is similar to the EEPROM region with the exception that the device address word must begin with '1011' (Bh). The behavior of the hardware address bits (A2, A1) remains the same as during an EEPROM addressing sequence (see Table 3 and Table 4). While the lower order 16 bytes of the Security register are read‑only, the device will ACK if this bit is a logic '0'. To read from the Security register, refer to Read Operations in the Security Register and for writing refer to Write Operations in the Security Register.

Note: Accessing the Security register is only possible if any sequence or command to the EEPROM (if one was sent) is properly terminated with a NACK or Stop condition from the master. Without proper termination of that previous sequence, all communications with the Security register will not execute successfully.

The eighth bit (bit 0) of the device address byte is the Read/Write Select bit. A read operation is initiated if this bit is high and a write operation is initiated if this bit is low.

Upon the successful comparison of the device address byte, the AT24CSW04X/AT24CSW08X will return an ACK. If a valid comparison is not made, the device will NACK.

Note: While the lower order 16 bytes of the Security register are read‑only, the device will ACK if the Read/Write Select bit is a logic ‘0’.
Table 1. Device Address Byte AT24CSW04X
Memory Region Device Type Identifier Hardware Address Bits MSB Memory Address R/W Select
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
EEPROM Array 1 0 1 0 A2 A1 A8 R/W
Security Register and Write Protection Register 1 0 1 1 A2 A1 A8 R/W
Table 2. Device Address Byte AT24CSW08X
Memory Region Device Type Identifier Hardware Address Bit MSBs Memory Address R/W Select
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
EEPROM Array 1 0 1 0 A2 A9 A8 R/W
Security Register and Write Protection Register 1 0 1 1 A2 A9 A8 R/W
Table 3. AT24CSW04X Hardware Address Response by Part Number
Part Number Series Hardware Address Bits
4-Kbit A2 A1
AT24CSW040 0 0
AT24CSW042(1) 1 0
AT24CSW044(1) 0 1
AT24CSW046(1) 1 1
Note:
  1. 1.Contact your local sales representative for hardware slave address availability.
Table 4. AT24CSW08X Hardware Address Response by Part Number
Part Number Series Hardware Address Bit
8-Kbit A2
AT24CSW080 0
AT24CSW084(1) 1
Note:
  1. 1.Contact your local sales representative for hardware slave address availability.

For all operations except the current address read, a word address byte must be transmitted to the device immediately following the device address byte. The word address byte contain a 9-bit (in the case of the AT24CSW04X) or 10-bit (in the case of the AT24CSW08X) memory array word address and is used to specify which byte location in the EEPROM to start reading or writing. Refer to Table 5 to review these bit positions.

When accessing the Security register, it is required that the A7 and A6 bits of the word address be set to '10' respectively. These bits are at a higher order address range than what is needed to address the 32‑byte space (A4 through A0). It is recommended that all address bits that fall outside the address range that do not have other requirements be set to a logic '0'.

Table 5. Word Address Byte
Device Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
EEPROM Array A7 A6 A5 A4 A3 A2 A1 A0
Security Register 1 0 X A4 A3 A2 A1 A0
Security Register Lock Function 0 1 1 0 X X X X
Write Protection Register 1 1 X X X X X X