Features Contd ..
Device connected to bus software addressable unique Master/Slave Relationship Master can be a transmitter or Receiver
Features Contd., The data is clocked along with a clock signal(SCL) The clock signal controls when the data is to be changed and when it should be read Since I2C is synchronous, the clock rate can vary l
In Normal Conditions,SDA Never changes when SCL is High (Data is valid during high period of Clock only)
I2C Signals Signal Levels :a) Float High (logic 1) b) Drive Low (logic 0)
S\Start
S\Address S\Acknowledge DataS
Data
P Rs
SRRepeat - Start
9th Clock
A receiver which was being addressed has to generate an ACK after each byte has been received
When a slave doesnt acknowledge the slave address,then data lines must be left HIGH by the Slave Then Master decides whether to generate a STOP condn or repeated Start to start a new transfer
If a master receiver is involved in a transfer,it must signal the end of data to the slave-transmitter
transmitter must release the data line to allow the mster to generate a STOP or REPEATED START
Clock synchronizaton
Clock Sync. Is performed using Wired-And Technology When SCL moves from high to low,the devices start counts their
low period.
ARBITRATION
mode.
SPI
I2C
1. Three bus lines are required; 1. Two bus lines are required; SDA, SCL. MOSI,MISO,SCK, & SS.
2. No official specification (Component dependent) 3. Higher data rates ( up to 10 MHz or more) 4. More efficient in point-topoint (Single master, Single slave) applications. 2. With official specification. (I2C protocol created by philips.) 3. Support transfer speeds of around 100 kHz ( original standard , or 400 kHz using the most recent standard) 4. More efficient in multimaster, multi-slave applications.
SPI
5. Lack of built-in device addressing.
6. Does not have an acknowledgement mechanism to confirm receipt of data. 7. Less overhead when handling point-to-point application.
I2C
5. Built-in addressing scheme and straightforward.
6. Have an acknowledgement mechanism to confirm receipt of data. 7. More overhead when handling point-to-point application.
8. Suited better for communications with on8. Suited better for applications board devices that are that are naturally thought of accessed on an occasional as data stream.