</>EmbeddedInterview

What is the difference between 7-bit and 10-bit I2C addressing?

EasyCommunication Protocols

Short answer: 7-bit addressing gives 128 addresses, of which 16 are reserved, so 112 are usable; it is used by almost all devices. 10-bit addressing sends a first byte 11110xx + R/W (where xx are the two high address bits) followed by a second byte with the low 8 bits, giving 1024 addresses; 10-bit devices are rare.

Reserved 7-bit addresses

Address Use
0x00 general call / START byte
0x01 CBUS
0x02 other bus formats
0x03 future use
0x04–0x07 Hs-mode controller code
0x78–0x7B 10-bit addressing prefix
0x7C–0x7F device ID / future use

Address conflicts between identical devices

  • Address-select pins (A0, A1…) let you choose among a few addresses (e.g. 4 options for many sensors).
  • An I2C multiplexer/switch (TCA9548A) puts devices on separate downstream channels.
  • A second I2C peripheral on the MCU.
  • Some devices allow the address to be reprogrammed.

7-bit vs 8-bit confusion: datasheets sometimes give an "8-bit address" that includes the R/W bit, e.g. 0x90 (write) / 0x91 (read) for device 0x48. Most software APIs (Linux, Zephyr, most HALs except STM32 HAL, which expects the shifted value) take the 7-bit address.