Discussion in "General help Guidance and Discussion" started by    RUSHI D    Apr 28, 2009.
Tue Apr 28 2009, 04:13 AM
#1
hi frnz...!

can u pls list down d differences between SPI and I2C protocols...

regards
rushi d.
Tue Apr 28 2009, 05:50 AM
#2
I2C =>less no. of pins only one line for data transfer
SPI=>two lines required for data transfer
I2C is slower than SPI.
Tue Apr 28 2009, 07:14 AM
#3
thanx shyam...

but i want detailed differences like if we r compairing their speeds den mention d max speeds they can achieve

any more difference...

regards
rushi d.
Tue Apr 28 2009, 07:32 AM
#4
There are a lot of difference from the protocol point of view. But Hardware wise it same as mentioned by shyam.

1. In I2C lot of s/w manipulation has to be done. where as in SPI programmer need to handle only SS pin if SPI is used between multiple ics.

2. I2C can reach only till 384kbps based on CCLK. Whereas SPI can go till CCLK/4. i.e., if CCLK=12MHz, Then SPI speed is 3MHz.

3. There are atleast 30-40 situation which programmer is suppose to handle in I2C for effective and efficient communication. where as in SPI only SS is suppose to be managed and data is supposed to be placed in SPDAT.

4. In SPI since both the MOSI(Master Out Slave In) and MISO(Master In Slave Out) uses a single buffer care should be taken to transfer the data.

5. I2C can be used in a situation where shrinking of the pcb is more important than speed and SPI is vice-versa

 RUSHI D. like this.
Tue Apr 28 2009, 07:41 AM
#5
I2C can go upto 4Mhz SPI can go upto 70Mhz
 RUSHI D. like this.
Tue Apr 28 2009, 07:42 AM
#6
thanx ajaz 4 ur reply

but i did not get 3rd pt..

can u explain..?
Tue Apr 28 2009, 07:57 AM
#7
He mens to say that, incase of I2C programmer has to take care of right sequence of data transfer on bus like address, start, stop, ack, nak etc...
where as in case of SPI just SS (slave select) is to be managed and data read/write is done from SSPDAT register.

these names may vary from controller to controller
Tue Apr 28 2009, 12:47 PM
#8
k got it...
thanx ajay
Tue Apr 28 2009, 06:10 PM
#9
A very valuable tool to discovering what things mean and what things do is the Google search engine.

If you type into this search engine the phrase "SPI interface", your first website shown is:
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

This is a pretty good description of the SPI interface, and some of what it can do...

Likewise, if you type in "I2C interface", you get this website:
http://en.wikipedia.org/wiki/I%C2%B2C

Give it a try, and see for yourself...

Hope this helps,

Get Social

Information

Powered by e107 Forum System

Conversation

ajay_bhargav
Mon Mar 23 2015, 04:22 AM
You can only simulate simple 8051. RD2 support is not there in proteus. However there are similar atmel varient which can be used instead.
Sun Mar 22 2015, 07:24 PM
Aryan Nath
How can i Simulate microcontroller project in Proteus that uses P89V51RD2
Thu Mar 19 2015, 02:45 PM
Peter Mann
I have tried to register on the site, but it keeps saying I've entered two different email adresses - but I haven't!
ajay_bhargav
Sun Mar 15 2015, 08:25 PM
I did not get new message indication.. strange..
ExperimenterUK
Sun Mar 15 2015, 08:18 PM
slight delay, my connection failed
ajay_bhargav
Sun Mar 15 2015, 08:08 PM
Atleast you chat on our website if not anywhere else
ajay_bhargav
Sun Mar 15 2015, 08:08 PM
Hi Phil..
ExperimenterUK
Sun Mar 15 2015, 08:05 PM
Hi Ajay
gsdvprasad
Fri Mar 13 2015, 04:20 PM
Can you help me how to change the text on led display in proteus simulation?
ajay_bhargav
Sat Mar 07 2015, 07:48 AM
@Shoukat, its general purpose PCB board for soldering components

Downloads

Comments

marti
Fri Mar 27 2015, 03:07 PM
iamalien
Thu Mar 26 2015, 07:27 AM
Ankit30
Wed Mar 25 2015, 02:35 PM
wai1023
Wed Mar 25 2015, 06:27 AM
StrangerDanger
Tue Mar 24 2015, 12:40 PM
vinayas9
Tue Mar 24 2015, 09:26 AM
ganesh1991
Tue Mar 24 2015, 08:22 AM
Mirsa
Mon Mar 23 2015, 10:07 AM

Online

Guests: 28, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37610
Newest member: marti
Forum Activity
mayank058 Avatar
Posted By mayank058
Fri Mar 27 2015, 06:46 AM
Dear Sir, I am working on MCB2300. I...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Mar 26 2015, 09:06 PM
Have a look through the list of projects in our do...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Mar 26 2015, 09:03 PM
As you say, each column is only on for part of the...
iamalien Avatar
Posted By iamalien
Thu Mar 26 2015, 07:43 AM
Hello guys, i am doing a project on display using ...
Ankit30 Avatar
Posted By Ankit30
Wed Mar 25 2015, 02:41 PM
Hey I have to make a project on Digital calendar u...
diana1234 Avatar
Posted By diana1234
Wed Mar 25 2015, 05:34 AM
Thank you sir I make a try with the transducer and...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Mar 24 2015, 05:32 PM
There would be no any biasing circuit?only a shunt...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Mar 24 2015, 04:55 PM
Your suggestion worked Mr. ExperimenterUK. I tried...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Mar 24 2015, 04:33 PM
Pin 3.3 is not supposed to latch low.If it is not ...
StrangerDanger Avatar
Posted By StrangerDanger
Tue Mar 24 2015, 12:54 PM
Hello all. I am working with a dual AT89S2051 set...