I2C Communication Protocol (I2C/IIC/TWI) Inter Integrated Circuit bus
Introduction
Invented by Philips in order to attach low speed peripherals. Two wire interface (Serial Data-SDA, Serial Clock-SCL). 7-Bit addressing space. Master-slave operation. 10 KHz Low Speed, 100 KHz Standard Speed, 400 KHz Fast Mode, 3.4 High Speed Mode) Multiple devices on the same bus.
Operation Modes
Master Device:
Slave Device:
Master transmit. Master receive. Slave transmit. Slave receive.
Multiple masters possible.
The Communication Protocol
Write to device:
Send Start Sequence Write I2C device address (R/W Bit Low) Write device register address Send data byte Send stop sequence
Read from device:
Send Start Sequence Write I2C device address (R/W Bit High) Write device register address Resend Start Sequence Write device Send stop sequence
Communication Example