Rules | Recent posts | topic RSS | Search | Register  | Log in

I2C vs SPI

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Author Message
dhanraj_kmr



Joined: 23 Sep 2008
Posts: 30
Location: chennai, INDIA


Post03 Oct 2008 8:18   I2C vs SPI

could anyone explain some application level diff btwn I2C and SPI. i am not asking abt the structure difference.

Thnx in advance......
Back to top
leoren_tm



Joined: 19 Dec 2005
Posts: 591
Helped: 19
Location: Silicon valley


Post03 Oct 2008 8:24   Re: I2C vs SPI

for a high speed short distance(same PCB) I2C would be best...
and for a few distance away, with less speed on data transmission, use SPI...
Back to top
sivamit



Joined: 01 Dec 2005
Posts: 154
Helped: 5
Location: India


Post03 Oct 2008 10:11   Re: I2C vs SPI

dhanraj_kmr wrote:
could anyone explain some application level diff btwn I2C and SPI. i am not asking abt the structure difference.

Thnx in advance......


In I2C the programmer has to write clock transitions for reading/writing data..
It is not required in SPI.
Back to top
adidav



Joined: 19 Apr 2006
Posts: 15
Helped: 1
Location: Romania


Post08 Oct 2008 8:46   Re: I2C vs SPI

The SPI means Serial Pheripheals Interface and is sincronous serial with a posibity to program how to operate. The speed can be set from very low to very high (10Mbit/s). Usualy SPI is used for high speed transfer of data between two equipement. The stardard does not support addresing so if you connect more that one device you have to handle this in your sw conform how the hw was made. The hw uses 4 wires (1 - CLK, 2- DataIn, 3 -DataOut, 4 - CS).

The I2C (was develop by Philips) and means Interconect Integrated Circuit and is used to comunicate, on the same board, two or more devices. The protocol support addressing (7bit) and the user can check in the sw if a slave is present on the bus or not The ususaly speed is 100K and 400K and for fast devices 1M. The hw uses only 2 wires (1 - CLK, 2 - Data(bidirectional).

I hope this will clarify a little bit the differences between SPI and I2C.
Back to top
alexz



Joined: 19 Nov 2004
Posts: 285
Helped: 3
Location: UK


Post08 Oct 2008 10:56   Re: I2C vs SPI

The difference is obvious.

SPI or CSI is a simple master/slave communication protocol.

I2C is a networking communication protocol with a multi-master support

I2C is a standard in terms of clock speed, addressing and commands, where SPI can be customized to a specific design
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap