Announcement

Collapse
No announcement yet.

What is I2C BASICS OF THE I2C COMMUNICATION PROTOCOL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is I2C 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.

    Like UART communication, I2C only uses two wires to transmit data between devices:

    Click image for larger version

Name:	Introduction-to-I2C-Single-Master-Single-Slave.png
Views:	197
Size:	77.3 KB
ID:	18187


    SDA (Serial Data) – The line for the master and slave to send and receive data.

    SCL (Serial Clock) – The line that carries the clock signal.

    I2C is a serial communication protocol, so data is transferred bit by bit along a single wire (the SDA line).

    Like SPI, I2C is synchronous, so the output of bits is synchronized to the sampling of bits by a clock signal shared between the master and the slave. The clock signal is always controlled by the master.

    Attached Files

  • #2
    HOW I2C WORKS

    With I2C, data is transferred in messages. Messages are broken up into frames of data. Each message has an address frame that contains the binary address of the slave, and one or more data frames that contain the data being transmitted. The message also includes start and stop conditions, read/write bits, and ACK/NACK bits between each data frame:

    Introduction to I2C - Message, Frame, and Bit

    Click image for larger version

Name:	Introduction-to-I2C-Message-Frame-and-Bit-2-1024x258.png
Views:	201
Size:	54.8 KB
ID:	18190

    Start Condition: The SDA line switches from a high voltage level to a low voltage level before the SCL line switches from high to low.

    Stop Condition: The SDA line switches from a low voltage level to a high voltage level after the SCL line switches from low to high.
    Attached Files

    Comment

    Bongo Technology training institute. Apple Micro-soldering Training,EMMC Repair,All Other phone repair Training,Flashing Unlocking Programing Training.Macbook Repair training.

    casinoslot bahisnow
    deneme bonusu veren siteler deneme bonusu deneme bonusu veren siteler
    Mature babe is engulfing dudes cock hungrily girl gone wild first timer Maki Mizusawa enjoying sucking and riding her dude
    hd sex video
    Working...
    X