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

Tue Sep 19 2017, 08:36 PM
Ted
In a missing pulse detector using a 555 timer connected as a monostable vibrator with a PNP transistor,how does the positve input pulse turn on the PNP transistor?
Sun Sep 03 2017, 10:29 AM
martymarty
How do I connect an <NOKIA 1100 LCD > to an atmega328P ?
poojab51296
Sun Aug 20 2017, 06:23 AM
i am intending to interface sd card with STM32F4 and want to write a file in sd card using SPI protocol but using HAL only. Can anyone help me PLEASE!!!!
poojab51296
Sun Aug 20 2017, 06:22 AM
hello
rawat742
Fri Aug 18 2017, 07:37 AM
hi @ angel patel i will attach a file i hope it will be helpfull for you
ExperimenterUK
Mon Aug 14 2017, 05:57 PM
@ angel patel... just log in and post your problem
Mon Aug 14 2017, 09:45 AM
angel patel
hey any one help to make the led scrolling display
desuza6
Sat Jul 29 2017, 03:09 AM
I see the code for step motor h l 298 to rotate 45 degree, but all delay time, if I want to input sensor to h the pulses to stepmotor
rammichael
Thu Jul 27 2017, 08:05 AM
okay fine
ExperimenterUK
Wed Jul 26 2017, 03:51 PM
Please post questions in the forum, the chat box is for chat

Downloads

Comments

Cryterion
Fri Sep 22 2017, 05:42 PM
bask185
Fri Sep 22 2017, 12:18 PM
Theodon
Wed Sep 20 2017, 10:59 PM
komal_97
Wed Sep 20 2017, 12:18 PM
butt_butt
Fri Sep 08 2017, 02:58 PM
RKTJ
Fri Sep 08 2017, 01:55 PM
ahmed2016
Thu Sep 07 2017, 05:55 AM
Johnleonarduc
Sat Sep 02 2017, 01:48 AM

Online

Guests: 53, Members: 0 ...

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

Members: 37892
Newest member: Cryterion
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Sep 21 2017, 01:33 AM
You could start with this tutorialhttp://www.8051p...
komal_97 Avatar
Posted By komal_97
Wed Sep 20 2017, 12:25 PM
hey, i want to interface 3 dc motors with the micr...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Sep 11 2017, 12:07 AM
The hardware for connecting to a PC or a modem is...
Suseethra Avatar
Posted By Suseethra
Sat Sep 09 2017, 09:43 AM
Hi,we are doing the same project(LED scrolling dis...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Aug 28 2017, 07:21 PM
First you have to decide which version of the 8051...
rawat742 Avatar
Posted By rawat742
Sat Aug 26 2017, 12:36 PM
Dear Sir, I want to purchase progra...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Aug 25 2017, 08:22 PM
Debuggers and programmers are different things.Whi...
rawat742 Avatar
Posted By rawat742
Thu Aug 24 2017, 04:30 PM
Dear Sir, if I am not purchase debugger then how ...
poojab51296 Avatar
Posted By poojab51296
Thu Aug 24 2017, 06:27 AM
I am using STM32 cube MX and Atollic truestudio so...
ajay_bhargav Avatar
Posted By ajay_bhargav
Wed Aug 23 2017, 01:30 PM
It will be easier to help if you can post the comp...