Serial data transfer in I2C involves sending data one bit at a time over a single wire or data line, which is quite efficient for long-distance communication with fewer physical connections. This contrasts with parallel communication, where multiple bits are sent simultaneously across several wires.
In I2C, the serial transfer is orchestrated by two lines only: the serial data line (SDA) and the serial clock line (SCL). Here's a simplified view of how this works:
- The master device generates a start condition, signals all devices connected to the bus, and selects a slave device by sending its unique address.
- Once a slave device acknowledges, the master sends or requests data in 8-bit packages.
- After each 8-bit data packet, an acknowledge bit (ACK/NACK) is exchanged to confirm successful receipt.
- The end of communication is marked by a stop condition from the master.
This method of data transmission is not only simple and reliable but also minimizes the wiring complexity of interconnected devices within a system.