Embedded Systems & Firmware
What is a characteristic of I2C communication?
- AEach device needs a dedicated chip-select line
- BSeparate transmit and receive lines allow both directions at once
- CSeveral devices share two wires, clock (SCL) and data (SDA), and the partner is selected by address
Show answer and explanation
Answer: C. Several devices share two wires, clock (SCL) and data (SDA), and the partner is selected by address
I2C is synchronous serial communication that connects several devices with only two wires, SCL and SDA. The master first sends the partner's 7-bit address, and only the device with that address responds. The lines are open-drain, pulled up to 1 by resistors so any device can pull them low. It suits parts where few wires matter more than speed, such as temperature and acceleration sensors and EEPROMs.
- A. That describes SPI.
- B. I2C is half duplex, sharing one data line.
- C. Correct. Few wires make it easy to attach many sensors.