Basics of The I2C Communication Protocol
Basics of The I2C Communication Protocol
SEARCH …
Videos Resources
COMMUNICATION
Get new
PROTOCOL
tutorials sent
Posted by Scott Campbell | DIY Electronics | 55 to your inbox!
EMAIL ADD
SUBSCRIBE
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 1/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
INTRODUCTION TO I2C
COMMUNICATION
I2C combines the best features of SPI and
UARTs. With I2C, you can connect multiple slaves
to a single master (like SPI) and you can have
multiple masters controlling single, or multiple
slaves. This is really useful when you want to
have more than one microcontroller logging
data to a single memory card or displaying text
to a single LCD.
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 2/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 3/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
ADDRESSING
I2C doesn’t have slave select lines like SPI, so it
needs another way to let the slave know that
data is being sent to it, and not another slave. It
does this by addressing. The address frame is
always the first frame after the start bit in a
new message.
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 4/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
READ/WRITE BIT
The address frame includes a single bit at the
end that informs the slave whether the master
wants to write data to it or receive data from it. If
the master wants to send data to the slave, the
read/write bit is a low voltage level. If the master
is requesting data from the slave, the bit is a
high voltage level.
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 7/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
ADVANTAGES AND
DISADVANTAGES OF I2C
There is a lot to I2C that might make it sound
complicated compared to other protocols, but
there are some good reasons why you may or
may not want to use I2C to connect to a
particular device:
ADVANTAGES
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 10/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
DISADVANTAGES
SHARE:
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 11/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
RELATED POSTS
How
A Guide to Build a
Electrical
Electrical Great
Sounding Relays Work
Heat and
Heat Sinks Transistors: Audio
A Closer Amplifier
Look (with Bass
Boost) from
the LM386
55 COMMENTS
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 12/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 13/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
REPLY
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 15/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
REPLY
REPLY
REPLY
DtcInstall
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 16/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 17/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 18/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 19/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 20/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
George Whitaker
[email protected]
REPLY
REPLY
REPLY
REPLY
Grateful information…
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 21/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 22/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 23/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
REPLY
Thanks
Aakash patel
REPLY
REPLY
REPLY
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 24/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
thesegotoeleven on August
1, 2021 at 2:03 pm
REPLY
REPLY
REPLY
LEAVE A REPLY
Your email address will not be published. Required fields are
marked *
COMMENT
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 25/26
4/28/23, 1:42 PM Basics of the I2C Communication Protocol
Save my name, email, and website in this browser for the next
time I comment.
POST COMMENT
https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/ 26/26