The I2C device address selects a target on the bus, while the memory address selects a byte within the EEPROM. The transmitted control byte contains the device address plus the read/write bit. Keeping these values distinct helps diagnose NACKs, unexpected data and address conflicts when changing EEPROMs.
This guide explains how the 7-bit bus address, the 8-bit control byte, and the internal memory byte offset interact. By contrasting the Microchip 24LC256-I/SN and 24LC16B in SOIC packages, embedded engineers and BOM buyers can verify bus maps and driver framing before releasing production builds.

How Bus Addresses, Control Bytes, and Memory Offsets Differ
For the random reads shown here, the controller selects the EEPROM and sets its internal pointer before requesting data. The 7-bit bus address identifies the target EEPROM on the bus, while the 8-bit control byte shifts that 7-bit value left by one bit and appends the R/W bit in the least significant position, using 0 for write and 1 for read. NXP I2C specification, section 3.1.10
For the devices used in this article, a write or a random-read setup sends memory pointer bytes after the write-direction control byte. A current-address read uses the existing internal pointer. The number and meaning of the pointer bytes depend on the EEPROM.
Firmware drivers handle bus addressing inconsistently across MCU families and HAL libraries. Always check whether your I2C driver API expects the 7-bit bus address or its left-shifted form, with direction supplied through the API before assuming a hardware wiring fault.

Worked Addressing on the 24LC256-I/SN SOIC
The Microchip 24LC256-I/SN in the 8-lead SOIC package provides 32,768 bytes of storage across internal offsets 0x0000 through 0x7FFF. With external address pins A2, A1, and A0 all tied low, the device responds at 7-bit bus address 0x50, which produces an 8-bit write control byte of 0xA0 and a read control byte of 0xA1. Reaching memory location 0x1234 requires two offset bytes sent high byte first (0x12) followed by the low byte (0x34). Microchip 24AA256/24LC256/24FC256 Datasheet
A random single-byte read from 0x1234 follows the bus sequence START, 0xA0, ACK, 0x12, ACK, 0x34, ACK, repeated START, 0xA1, ACK, DATA, NACK, STOP. The initial write-direction phase is a dummy address setup that loads the internal pointer and performs no data programming. After the repeated START and 0xA1, the EEPROM transmits the DATA byte and the controller issues NACK before STOP to end the read cleanly.
Package selection directly affects hardware addressing within this same family. Within the 24XX256 family, MSOP versions leave A0 and A1 unconnected, so those chip-select bits must be sent as zero while A2 remains usable. SOT-23 versions have no address pins and require all three chip-select bits to be sent as zero. Keep the A2/A1/A0 strap example above scoped strictly to the SOIC package and verify pinout options before shrinking a footprint. Microchip 24AA256/24LC256/24FC256 Datasheet
Block Addressing on the 24LC16B SOIC
Lower-density I2C EEPROMs often move upper memory bits into the control byte instead of sending a second offset byte. The 24LC16B in SOIC holds 2,048 bytes arranged in 8 blocks of 256 bytes each, embedding block-select bits B2, B1, and B0 inside the control byte and accepting only one internal offset byte. External A0, A1, and A2 pins are unused on this device. Microchip 24AA16/24LC16B/24FC16 Datasheet
Reading or writing memory offset 0x345 places block 0b011 into the control byte, yielding 7-bit bus address 0x53, write control byte 0xA6, read control byte 0xA7, and single internal pointer byte 0x45. Because the chip decodes all eight block combinations internally, all 8 bus addresses from 0x50 through 0x57 belong to that single EEPROM, so another device using that range needs a different bus segment or an isolation arrangement such as an I2C multiplexer.

Comparing 24LC256-I/SN and 24LC16B Addressing
Both configurations below apply to 8-lead SOIC packages based on the official Microchip datasheets.
| Parameter | 24LC256-I/SN (SOIC) | 24LC16B (SOIC) |
|---|---|---|
| External A2, A1, A0 pins | Active (all low selects 0x50) | Unused (block bits B2, B1, B0 in control byte) |
| Bus addresses claimed per chip | 1 address (0x50 in example) | 8 addresses (0x50 through 0x57) |
| Pointer bytes in write/random-read setup | 2 bytes (high byte then low byte) | 1 byte (offset inside selected 256-byte block) |
EEPROM address calculator
Choose the SOIC device, enter a hexadecimal byte offset, and compare the 7-bit bus address with the transmitted address bytes.
24LC256-I/SN range 0x0000–0x7FFF. Enter hex digits with an optional 0x prefix.
- 7-bit bus address
- 0x50
- Wire address byte, write
- 0xA0
- Wire address byte, read
- 0xA1
- Memory pointer bytes, in order
- 0x12 0x34
24LC256-I/SN uses A2/A1/A0 to select the chip and sends two memory pointer bytes, high byte first.
Practical Debugging Checklist
- Check driver address format to confirm whether the I2C API expects a 7-bit bus address (
0x50) or a left-shifted 8-bit value (0xA0). - Verify offset byte count and order so two-byte devices receive the high byte before the low byte and block-addressed parts receive one offset byte.
- Inspect the read termination on a logic analyzer to confirm the controller sends
NACKafter the finalDATAbyte before issuingSTOP. - Audit the full bus address map before changing density, since a 24LC16B claims the entire
0x50to0x57range on a single chip. - Confirm package pin definitions in the datasheet so NC or absent address pins on MSOP or SOT-23 packages do not break board strapping.
If addressing frames acknowledge properly yet writes still stall or corrupt data, review the write-cycle timing and polling behavior. EEPROM programming and production checks.

Aligning Addressing Details With Your BOM
Before freezing a schematic or approving an alternate density, verify that the candidate EEPROM matches both your firmware offset width and your board-level bus map. Compare densities and package options while narrowing down part families. Browse EEPROM memory ICs.

When you are ready to source parts or evaluate a substitute, send the full manufacturer order code, package, operating voltage, quantity, existing I2C bus address map, firmware address-byte format, and target delivery date. Specify whether your build requires the exact listed part or an engineering review of an alternate. Submit your EEPROM inquiry.
Hardware scenes are AI-generated illustrations. Address diagrams show calculated examples for the specified devices.
