Inter-Integrated Circuit (I2C)
13 - 20 C2000 Microcontroller Workshop - Communications
I2C Operating Modes and Data Formats
I2C Operating Modes
Operating Mode Description
Slave-receiver mode Module is a slave and receives data from a master
(all slaves begin in this mode)
Slave-transmitter mode Module is a slave and transmits data to a master
(can only be entered from slave-receiver mode)
Master-receiver mode Module is a master and receives data from a slave
(can only be entered from master-transmit mode)
Master-transmitter mode Module is a master and transmits to a slave
(all masters begin in this mode)
I2C Serial Data Formats
S Slave Address
R/W
ACK Data Data
ACK
ACK
P
1 7 1 1 n 1 n 1 1
7-Bit Addressing Format
S 11110AA
R/W
ACK AAAAAAAA Data
ACK
ACK
P
1 7 1 1 8 1 n 1 1
10-Bit Addressing Format
S Data ACK Data Data
ACK
ACK
P
1 n 1 n 1 n 1 1
Free Data Format
R/W = 0 – master writes data to addressed slave
R/W = 1 – master reads data from the slave
n = 1 to 8 bits
S = Start (high-to-low transition on SDA while SCL is high)
P = Stop (low-to-high transition on SDA while SCL is high)