31.4.2 Operation

The I2C interface uses two physical lines for communication:
  • Serial Data Line (SDA) for data transfer
  • Serial Clock Line (SCL) for the bus clock

A transaction starts with the I2C host sending the Start condition (S), followed by a 7-bit address and a direction indicating whether the transaction is a read from or a write to the client.

The addressed I2C client then acknowledges (ACKs) the address, and data packet transactions can begin. Every 9-bit data packet consists of eight data bits followed by a one-bit reply indicating whether the data was acknowledged.

If a data packet is not acknowledged (NACK) by either the I2C client or host, the I2C host terminates the transaction by sending either a Stop condition or a repeated Start condition to transfer more data.

The following figure illustrates the possible transaction formats and explains the transaction symbols. These symbols are used in the following descriptions.

Figure 31-2. Transaction Diagram Symbols
Figure 31-3. Basic I2C Transaction Diagram