Product categories

Have You Seen

B0505S-1WR3 MORNSUN Isolated DC - DC Converter

B0505S-1WR3 MORNSUN Isolated DC - DC Converter

Mornsun B0505S-1WR3 DC-DC Isolated ConverterMORNSUN B0505S 1WR3 1 watt, 5 Volts Isolated DC to DC Po..

Rs.106.20 (inc GST)
Rs.90.00 + GST

SKU: 2969 | DAE663
Stock: 31
XL1509-Adj E1 Buck DC to DC Converter IC (SOP8L Package)

XL1509-Adj E1 Buck DC to DC Converter IC (SOP8L Package)

XL1509-Adj E1 Buck DC to DC Converter IC (SOP8L Package)XL1509-Adj E1 Buck DC to DC Converter IC, Ad..

Rs.25.96 (inc GST)
Rs.22.00 + GST

SKU: 3657 | DAF397
Stock: 100

Introduction to I2C Protocol



I2C is a MULTI MASTER SERIAL BUS i.e. more than one device capable of controlling the bus can be connected to it. It was invented by PHILIPS & stands for Inter-Integrated Circuit. Several Memory IC's like EEPROM and some RTC like DS1307 use I2C communication to interface with microcontroller.

I2C

In I2C only two bi-directional lines Serial Data (SDA) & Serial Clock (SCL) are required to carry information between the devices connected to the bus. Each I2C device is recognized by a unique 7-bit address. The device that initiates the communication is called MASTER. The master controls the clock signal. Whereas the device being addressed by the Master is called as SLAVE. Generation of clock signals on the I2C-bus is always the responsibility of master devices; each master generates its own clock signals when transferring data on the bus.

Data on the I2C bus can be transferred in three modes:

1) Standard Mode: 100kbps.

2) Fast Mode: 400kbps

3) High Speed Mode: 3.4Mbps.

 

The maximum number of nodes is obviously limited by the address space, and also by the total bus capacitance of 400 pf.

COMMUNICATION

The master begins the communication by issuing the START condition followed by 7- bit unique address/Control Byte of the device it wants to access.The eighth bit after the start specifies if the slave is now to receive (0) or to transmit (1).  After reciving the address all IC's on the I2C bus will compare with their own address & if the address does not match, it will wait till a STOP is received. If address matches a ACKNOWLEDGE signal is generated by the Slave.

I2C_Signals

Following receipt of the slave’s address acknowledgment, the master continues with the data transfer. If a write operationhas been ordered, the master transmits the remaining data, with the slave acknowledging receipt of each byte. If the master has ordered a read operation, it releases the data line and clocks in data sent by the slave. After each byte is received, the master generates an acknowledge condition on the bus. The acknowledge is omitted following receipt of the last byte. The master terminates all operations by generating a stop condition on the bus. The master may also abort a data transfer at any time by generating a stop condition.

BUS CHARACTERISTIC

i2cstartstop

1.     BUS NOT BUSY

BOTH Data & Clock lines remain high.

2.     START CONDITION

A HIGH to LOW transition of SDA line while the SCL is high.

3.     STOP CONDITION

A LOW to HIGH transition of SDA line while the SCL is high.

4.     DATA VALID

During Data transfer, the data on must be changed during the LOW period of the clock signal i.e. the data line must remain stable whenever the clock line is HIGH. Any change in data line while clock is HIGH will be interpreted as START or STOP condition.

5.     ACKNOWLEDGE

Each device when addressed to has to generate an acknowledge signal after the reception of each byte. The master generated an extra clock pulse which is associated with the ACKNOWLEDGE bit. The device that acknowledges pulls down the SDA line during the acknowledge clock pulse.

.

Written by Amol Shah

Amol Shah

Founder of DNA Technology an Electronic Engineer by choice. Started working on this website as an Hobby and now its a full time venture. Very passionate about Electronics and like to learn new stuff. Want to make DNA Technology one of the best Online Store for Electronics Components in India.
Follow Me Twitter | Facebook | Google Plus | Instagram