02-05-2011, 12:10 PM
Presented By:
Miss. Pooja P. Warhekar
[attachment=13222]
INTER INTEGARTED CIRCUIT PROTOCOL
INTRODUCTION
Serial communication protocols
Meant for short distances “inside the box”
Low complexity
Low cost
Low speed ( a few Mbps at the fastest )
What is I2C
Shorthand for an “Inter-integrated circuit” bus
I2C compatible devices include EEPROMs, thermal sensors, and real-time clocks (more than 150)
Used as a control interface to signal processing devices that have separate data interfaces, e.g. RF tuners, video decoders and encoders, and audio processors.
I2C bus has three speeds:
Slow (under 100 Kbps)
Fast (400 Kbps)
High-speed (3.4 Mbps) – I2C v.2.0
Limited to about 10 feet for moderate speeds
I2C Bus Configuration
LITRATURE REVIEW
HISTORY
It was developed by Philip’s semiconductor in 1980’s.
NEED
To provide an easy way to connect a CPU to its periferral chips in a TV-set.
Features
Only two bus lines are required; a serial data line (SDA) and a serial clock line (SCL)
Each device connected to the bus is software addressable by a unique address and simple master/ slave relationships exist at all times; masters can operate as master-transmitters or as master-receivers
It’s a true multi-master bus including collision detection and arbitration to prevent data corruption if two or more masters simultaneously initiate data transfer
Serial, 8-bit oriented, bidirectional data transfers can be made at up to 100 kbit/s in the standard mode or up to 400 kbit/s in the fast mode
The number of ICs that can be connected to the same bus is limited only by a maximum bus capacitance of 400 pF.
Features from desiner point of view
Functional blocks on the block diagram correspond with the actual ICs; designs proceed rapidly from block diagram to final schematic
No need to design bus interfaces because the I2C-bus interface is already integrated on-chip
Integrated addressing and data-transfer protocol allow systems to be completely software-defined
The same IC types can often be used in many different applications
Design-time reduces as designers quickly become familiar with the frequently used functional blocks represented by I2C-bus compatible ICs
ICs can be added to or removed from a system without affecting any other circuits on the bus
Fault diagnosis and debugging are simple; malfunctions can be immediately traced
I2C Protocol
1. Master sends start condition (S) and controls the clock signal
2. Master sends a unique 7-bit slave device address
3. Master sends read/write bit (R/W) – 0 - slave receive, 1 - slave transmit
4. Receiver sends acknowledge bit (ACK)
5. Transmitter (slave or master) transmits 1 byte of data
6. Receiver issues an ACK bit for the byte received
7. Repeat 5 and 6 if more bytes need to be transmitted.
8.a) For write transaction (master transmitting), master issues stop condition (P) after last byte of data.
8.b) For read transaction (master receiving), master does not acknowledge final byte, just issues stop condition (P) to tell the slave the transmission is done
I2C Signals
Start – high-to-low transition of the SDA line while SCL line is high
Stop – low-to-high transition of the SDA line while SCL line is high
Ack – receiver pulls SDA low while transmitter allows it to float high
Data – transition takes place while SCL is slow, valid while SCL is high
I2c Bus Hardware
Bidirectional bus
0pen drain or open collector outputs(Depending on technology)
When bus is IDLE, bus lines are at logic HIGH state
Wired AND logic
Built in bus-mastering technique
Serious effect on speed due to open collector configuration
As length increases RC time constant increases
I2c Bus Arbitration
Multi-master bus
A master which transmits a HIGH level when other is transmitting a LOW will loose arbitration
Address as well as data signals are used for arbitration
Risk of data curruption
No risk of data corruption.
Clock Synchronisation
Data valid in high period of clock
Use of wired AND connection for clock synchronisation
LOW period determined by the device with the longest clock LOW
HIGH period determined by the device with the SHORTEST clock HIGH
I2C Tradeoffs
Advantages:
Good for communication with on-board devices that are accessed occasionally.
Easy to page link multiple devices because of addressing scheme
Cost and complexity do not scale up with the number of devices
Limitations:
Assignment of slave addresses.
Supports a limited range of speed.