advertisement

I2C Protocol

50 %
50 %
advertisement
Information about I2C Protocol
Education

Published on March 2, 2014

Author: abhi230789

Source: slideshare.net

Description

Communication Protocol
advertisement

Inter-Integrated Circuit Protocol Presented By Abhijeet Kapse

Contents • • • • • • • History Basic Characteristics Overview Advantages Disadvantages Application Comparison

History • Before 1980’s in Tv Sets- Microcontroller connected to each peripheral by wire • Complex and Bulky Structure • Philips Developed Two wired Protocol-I2C • Reduced Complexity

Basic Characteristics • Two wired bus • Speed Normal mode-100kbps Fast mode-400kbps High Speed mode-3.4mbps • Data Transfer: Serial,8 bit oriented , bidirectional • Master slave approach with multimaster option • Addressing-7 bit or 10 bit unique addressing

Overview : • SCL : Serial Clock Line • SDA : Serial Data Line • Data transfer between devices connected to the bus • Master Slave Approach

Overview :Terms • • • • • • • Transmitter – The device sending data to the bus Receiver – Device receiving data from the bus Master – device initiating a transfer, generates to clock and terminates a transfer Slave – Device addressed by the master Multi-master – more than one master can attempt to control the bus Arbitration – procedure to insure that only one master has control of ther bus at any instant Synchronization – procedure to sync then clocks of two or more devices

Master and Slave • Master : - Controls the SCL - Starts and stops data transfer - Controls addressing of other devices • Slave : - Device address by master

Physical Structure: +5v Rp Rp Device 1 SCL SDA Device 2 Device 3

Special Start and Stop Conditions: • Only in Start and Stop conditions SDA is allowed to change while SCL is high • Data transfer mode : SDA is stable when SCL is High SDA SCL SDA SCL

Data Transfer • Every Byte put on SDA must be 8 bit long • Each Byte followed by Acknowledge bit • Transfer- MSB to LSB • When SCL is low- Data can be transfer

Advantages • Only two signal lines requires • Flexible data transmission rates • Each device on the bus is independently addressable • Devices have a simple Master/Slave relationship • Capable of handling multiple master communications by providing arbitration and communication collision detection

Disadvantages • Open Collector driver at master needs pull up resistance 2.2k on each line • High Power Requirement • Low Speed • Low Throughput

Comparison : I2C Vs SPI I2C SPI Requires only two lines Requires minimum four lines Low Speed Higher Speed Half Duplex Full Duplex Additional Signal select lines not required if devices increases Additional Signal select lines are required as devices increases More Power required Less Power Required Multimaster can be used easily Multimaster is difficult to implement

Add a comment

Related presentations

Related pages

I²C - Wikipedia, the free encyclopedia

I2C Protocol Decode software (unavailable since July 7, 2014; not temporary?) Archived March 11, 2012 at the Wayback Machine; Beginner's guide to using ...
Read more

I²C – Wikipedia

Das Protokoll des I²C-Bus ist von der Definition her recht einfach, ... www.i2c-bus.org, Detaillierte Information zum I2C-Bus in Deutsch und Englisch;
Read more

I2C Bus Technical Overview and FAQ - Embedded Systems Academy

I2C (Inter-Integrated Circuit) Bus Technical Overview and Frequently Asked Questions. Based on the I2C FAQ by Vince Himpe. In the early 1980's, NXP ...
Read more

I2C Protocol - How It Works, and What to Watch Out For ...

I2C Protocol training and educational material ... Engineers start young these days. (Well, maybe not quite this young.) One of the most common ...
Read more

I2C - What's That? - I2C Bus

Extensive information about the I2C bus and how to use it, compiled by experienced engineers focused on real world usage.
Read more

I2C - Learn at SparkFun Electronics - learn.sparkfun.com

Introduction. In this tutorial, you will learn all about the I 2 C communication protocol, why you would want to use it, and how it’s implemented.
Read more

I2C tutorial - Robot Electronics

The I2C Software Protocol The first thing that will happen is that the master will send out a start sequence.
Read more

An I2C Tutorial. - The best Microcontroller projects and ...

An I2C tutorial for a master and multiple slave configuration - this is the most commonly used setup. I2C stands for Inter IC and allows communication of ...
Read more

I2C Bus Specification

I2C bus uses only two lines: SCL and SDA. I2C specification defines the interface, signals, addressing, protocols and electrical properies of the bus.
Read more