I2C Protocol: (Inter-Integrated Circuits)

-> I2C is used to connect devices like microcontrollers, EEPROMs, I/O interfaces, and other peripheral devices in an embedded system. A microcontroller is often used as the master device, and other peripheral devices are used as slave devices.

=> It was originally designed by Philips Semiconductor in 1982. Recently, it is a widely used protocol for short-distance communication. It is also known as Two Wired Interface(TWI).

-> 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.

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.

It uses only 2 bi-directional open-drain lines for data communication called SDA and SCL. Both these lines are pulled high.

According to I2C protocols, the data line can not change when the clock line is high, it can change only when the clock line is low. The 2 lines are open drain, hence a pull-up resistor is required so that the lines are high since the devices on the I2C bus are active low. The data is transmitted in the form of packets which comprises 9 bits.

-> The data transferring is done in messages, which are broken up into frames of data. The message includes address frame that contains the binary address of the slave, start/stop conditions, read/write bits and ACK/NACK between each data frame.

  • Start Condition: In start condition, the SDA line switches from a high voltage (‘1’ bit) level to a low voltage level (‘0’ bit) before the SCL line switches from high to low.

I2C Start Signal

  • Address Frame/Slave Address: A 7-bit sequence unique to each slave that identifies the slave when the master device needs to send/receive data.
  • Read/Write Bit: A single bit specifying whether the master is sending data to the slave (the bit is set to ‘0’) or requesting data from the slave (the bit is set to ‘1’)
  • ACK/NACK Bit: Each frame in a message is followed by an acknowledge/not-acknowledge bit. If the physical address of any slave device matches with the address sent by the master device, an ACK bit is returned to the sender from the receiving device. (if matches the bit is set to ‘0’ otherwise it remains ‘1’)
  • Stop Condition: When the required data blocks are transferred through the SDA line, the SDA line switches from a low voltage (‘0’ bit) level to a high voltage level (‘1’ bit) before the SCL line switches from high to low.

I2C Stop Signal

Single Master with Multiple Slaves:

Single Master and Multiple Slave


Multiple Masters with Multiple Slaves:

Multiple Master and slave


Advantages :

  • Can be configured in multi-master mode.
  • Complexity is reduced because it uses only 2 bi-directional lines (unlike SPI Communication).
  • Cost-efficient.
  • It uses ACK/NACK feature due to which it has improved error handling capabilities.

Limitations :

  • Slower speed.
  • Half-duplex communication is used in the I2C communication protocol.

#vlsi #semiconductor #i2c #protocols #hardware

英特尔 , 高通 , 恩智浦半导体 , AMD , 德州仪器 , 英伟达 , Applied Materials India , 意法半导体 , 铿腾设计系统公司 , 新思科技 , Samsung Semiconductor , 美光科技 , Microchip Technology Inc. , MosChip? , 博通 , GlobalFoundries


要查看或添加评论,请登录

Krupa Shankar S的更多文章

  • CMOS:

    CMOS:

    Happy Morning Today Post is CMOS: -> CMOS stands for “Complementary Metal Oxide Semiconductor” its is a type of MOSFET…

  • Physical Design

    Physical Design

    In VLSI Design We have Front End and Back End. In this article we focus on Back-End that is also Know as Physical…

  • FLIP FLOP: (Sequential Circuit)

    FLIP FLOP: (Sequential Circuit)

    Happy Morning Today Post is Types of Flip Flops: => Flip Flop is a type of Sequential Circuit and It is a "Edge…

  • STA:

    STA:

    ->Static timing analysis (STA) is a method of validating the timing performance of a design by checking all possible…

  • FREQUENCY Divided by 2,4,8

    FREQUENCY Divided by 2,4,8

    A frequency divider, also called a clock divider or scaler. An arrangement of flipflops is a classic method for…

  • ASIC:

    ASIC:

    An application-specific integrated circuit is an integrated circuit (IC) that’s custom-designed for a particular task…

  • CMOS Technology:

    CMOS Technology:

    Happy Morning Today Post is CMOS: -> CMOS stands for “Complementary Metal Oxide Semiconductor” its is a type of MOSFET…

  • FPGA:

    FPGA:

    Happy Morning Today article is FPGA(Field Programmable Gate Array): ->FPGA is a type of semiconductor or IC that can be…

社区洞察

其他会员也浏览了