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

Fri Feb 05 2016, 02:03 PM
SANJYOT JADHAV
sir did we have to use Gsm modem for testing the circuit on proteus
Tue Feb 02 2016, 04:47 PM
upendra kumar
i want information about 3-phase motor control using gsm technology
Sat Jan 16 2016, 11:03 PM
Kenneth Etuk
Hi everyone, I need help with a project involving MCU,rttc, and DC motor. I will pay for it. please reply to my mail [email protected] if you are interested. thanks
ExperimenterUK
Sat Jan 16 2016, 07:38 AM
@Kabona Log in and create a thread. Tell us what you want to do
Wed Jan 13 2016, 01:54 AM
Kabona
how can I make my pc be input and output device for the microcontroller
Sat Jan 09 2016, 12:34 PM
Ravz
Thank u..... one more doubt Will ultrasonic sensor HC-SR04 works with aurdino board in operating system linux
Tommy.Kofisterix
Sat Jan 09 2016, 02:20 AM
I know it detects also the mud on rear bumper, this means other obstacles will
Tommy.Kofisterix
Sat Jan 09 2016, 02:18 AM
Hey hi, hello
Tue Jan 05 2016, 08:33 PM
Ravz
Anybody here????
Tue Jan 05 2016, 08:22 PM
Ravz
Will ultrasonic sensors detect obstacles when cloth or any other objects covers the sensor????

Downloads

Comments

designAAA
Sat Jan 30 2016, 08:49 AM
syavash_kasraeee
Sat Jan 16 2016, 05:54 AM
hamudi
Thu Jan 07 2016, 04:40 AM
Spandan89
Tue Jan 05 2016, 04:06 PM
siimao
Thu Dec 24 2015, 04:00 PM
moinabbasqureshi
Thu Dec 17 2015, 03:35 PM
dodo
Tue Dec 15 2015, 11:36 AM
embeddedashish
Thu Dec 10 2015, 12:50 PM

Online

Guests: 56, Members: 0 ...

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

Members: 37727
Newest member: designAAA
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Feb 04 2016, 04:10 AM
Sir I didn't understand that. Could you explain ab...
sankalp_s Avatar
Posted By sankalp_s
Tue Feb 02 2016, 07:26 PM
but good use of sub routines will save a lot of ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 02 2016, 12:25 AM
after removing ALLON instruction it's working fine...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 02 2016, 12:14 AM
Which micro controller are you using ?.Does it hav...
sankalp_s Avatar
Posted By sankalp_s
Sat Jan 30 2016, 07:40 PM
You need to explain exactly what you want the code...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Jan 30 2016, 06:57 PM
>sir can you code this in any other method?You nee...
sankalp_s Avatar
Posted By sankalp_s
Sat Jan 30 2016, 06:47 PM
CALL ALLONCLR L1CLR L2CLR L3CLR L4CALL DELAY ;del...
designAAA Avatar
Posted By designAAA
Sat Jan 30 2016, 10:03 AM
I have used to timer 2 external pin for other purp...
designAAA Avatar
Posted By designAAA
Sat Jan 30 2016, 09:00 AM
Hello,I am building the dotmatrix display, where I...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Jan 30 2016, 12:40 AM
ok sir but what is solution for it. will i have to...