I²C (Inter-Integrated Circuit)

Definition: What is I²C?

I²C (Inter-Integrated Circuit) is a serial bus protocol for communication between integrated circuits within electronic systems. It was developed to connect components such as sensors, memory chips, or peripheral devices with microcontrollers or processors.

The protocol operates with only two lines: a data line (SDA – Serial Data) and a clock line (SCL – Serial Clock). Thanks to this simple structure, I²C is particularly suitable for short connections on circuit boards or within devices. Multiple devices can be connected to the same bus at the same time.

Synonyms / related terms:

  • Inter-Integrated Circuit Bus
  • I2C bus
  • two-wire bus
  • serial on-board bus

Features: What sets I²C apart?

  • serial communication bus with two lines
  • master-slave communication principle
  • multiple devices can share the same bus
  • address-based communication between nodes
  • synchronous data transmission via clock line
  • low hardware requirements
  • particularly suitable for short connections on PCBs
  • widely used in embedded systems

Key Figures / Key Data

  • Lines: SDA (data), SCL (clock)
  • Communication: master-slave or multi-master
  • typical speeds: 100 kbit/s to several Mbit/s
  • application area: communication between ICs on circuit boards
  • typical participants: microcontrollers, sensors, EEPROM, displays

How does it work: How does I²C work?

Communication over I²C is based on a structured sequence between master and slave devices.

  • Start condition
    The master initiates communication by sending a start signal on the bus.
  • Address transmission
    The master sends the address of the desired slave device as well as information on whether data is to be read or written.
  • Data transmission
    The data is transmitted serially over the SDA line, synchronized with the clock signal on the SCL line.
  • Acknowledgment (ACK)
    After each data byte, the receiving device confirms successful receipt with a so-called acknowledge signal.
  • Stop condition
    After the data transmission is complete, the master ends communication with a stop signal.

Applications: Where is I²C used?

  • Embedded Systems: Communication between microcontroller and peripherals
  • Sensors: Transmission of measurement data from sensors to control systems
  • Memory Components: Access to EEPROM or flash memory
  • Displays and User Interfaces: Control of LCD or OLED modules
  • Industrial Electronics: internal communication between assemblies
  • Consumer Electronics: control of components in smartphones, cameras, or televisions

Differences from Similar Technologies

Feature I²C SPI
Lines 2 lines (data + clock) usually 4 lines
Architecture addressed bus with multiple devices direct master-slave connections
Flexibility multiple devices on one bus separate chip-select lines required
Speed moderate usually higher data rates
Typical use sensors, memory, peripherals fast data transfer to components

Deep Dives: Holistic exploration of the topic

  • Addressing and Bus Structure

A key advantage of I²C is address-based communication. Each connected device has a unique address through which it can be addressed. This allows multiple components to share the same bus without requiring separate lines.

  • Multi-Master Capability

In addition to the classic master-slave operation, I²C also supports multi-master configurations. In this setup, multiple devices can act as masters and initiate communication. A bus arbitration mechanism ensures that conflicts are avoided.

  • Role in Embedded Systems

I²C is one of the most important communication protocols in the embedded field. Microcontrollers often use the bus to read sensors, communicate with memory chips, or exchange configuration data.

  • Limits of the Protocol

Since I²C was developed for short connections on circuit boards, it is less suitable for long cable runs or very high data rates. In such cases, other communication protocols such as SPI or industrial fieldbuses are used.

Advantages and disadvantages

Advantages

  • requires only two wires
  • easy implementation
  • multiple devices on one bus possible
  • small PCB footprint
  • widely used standard in the embedded field

Disadvantages

  • lower data rate than some other bus protocols
  • limited bus length
  • possible address conflicts with many devices
  • higher bus load with many participants

Practical Examples

  • Temperature sensor: The sensor transmits measurement data to a microcontroller via I²C.
  • EEPROM memory: The microcontroller stores configuration data via the I²C bus.
  • OLED display: The display is supplied with control data via I²C.
  • Environmental sensor module: multiple sensors communicate over the same bus.
  • Industrial device: The microcontroller reads measurement values from various sensor modules.

Related terms

  • SPI: serial communication protocol for fast data transfer between ICs.
  • UART: serial interface for asynchronous communication between devices.
  • Microcontroller: integrated circuit for controlling electronic systems.
  • Sensor: electronic component for capturing physical measured values.
  • Embedded System: specialized computer within a technical system.
38