6.1 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 client devices can reside on the serial bus, each client device must have its own unique address so the host 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 client address bits, A2, A1 and A0. The value that the AT24CSW01X/AT24CSW02X will ACK to is preprogrammed in each device. Unique ordering codes are available for each of the eight possible client combinations. The client address preprogrammed in the device is embedded in the base part number as shown in Table 6-2.
Access to the Security register memory location is similar to the main EEPROM
region with the exception that the device address word must begin with
‘1011
’ (Bh). The behavior of the hardware address bits (A2, A1, A0)
remains the same as during a EEPROM addressing sequence (see Table 6-2). 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, please refer to Read
Operations in the Security Register. For writing, please refer to Write
Operations in the Security Register.
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 AT24CSW01X/AT24CSW02X will return an ACK. If a valid comparison is not made, the device will NACK.
0
’. Memory Region | Device Type Identifier | Hardware Client Address Bits | 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 | A0 | R/W |
Security Register and Write Protection Register | 1 | 0 | 1 | 1 | A2 | A1 | A0 | R/W |
Part Number Series | Hardware Address Bits | |||
---|---|---|---|---|
1-Kbit | 2-Kbit | A2 | A1 | A0 |
AT24CSW010 | AT24CSW020 | 0 | 0 | 0 |
AT24CSW011(1) | AT24CSW021(1) | 0 | 0 | 1 |
AT24CSW012(1) | AT24CSW022(1) | 0 | 1 | 0 |
AT24CSW013(1) | AT24CSW023(1) | 0 | 1 | 1 |
AT24CSW014(1) | AT24CSW024(1) | 1 | 0 | 0 |
AT24CSW015(1) | AT24CSW025(1) | 1 | 0 | 1 |
AT24CSW016(1) | AT24CSW026(1) | 1 | 1 | 0 |
AT24CSW017(1) | AT24CSW027(1) | 1 | 1 | 1 |
- Contact your local sales representative for hardware client address availability.
For all operations other than a current address read, a word address byte must be transmitted to the device immediately following the device address byte. The word address byte contains a 7-bit (in the case of the AT24CSW01x) or 8-bit (in the case of the AT24CSW02x) memory array word address, and is used to specify which byte location in the EEPROM to start reading or writing. Refer to Table 6-3 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
’.
Memory Region | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|
EEPROM Array | A7(1) | 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 |
- Bit 7 is a “don't care” bit on the AT24CSW01x.