Pages: [1]   Go Down
Author Topic: Anyone can give me many examples of I2C and Serial SPI communication?  (Read 522 times)
0 Members and 1 Guest are viewing this topic.
universe
Offline Offline
Sr. Member
****
Karma: 0
Posts: 258
I'm enjoying my Life
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am doing my project using Arduino UNO and Arduino Ethernet board W5100, now I pile it up together.

After reading some sources, they said that SPI communication using 4 lines, here:
http://dev.emcelettronica.com/i2c-or-spi-serial-communication-which-one-to-go

It means when I connect my arduino UNO to my computer, it uses SPI to communicate.
It also means that when I connect my arduino UNO to my Ethernet Board using 4 pins, it uses also SPI to communicate, doesn't it? Correct me if I am wrong.

Then, what the example of I2C communication?
What about the LAN jack on the Ethernet Board, what type of communication it uses? SPI or I2C?

I am newbie in this electronic device, and kindly hope your help.
Thank you. smiley-grin
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 620
Posts: 33991
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It means when I connect my arduino UNO to my computer, it uses SPI to communicate.
No it uses the serial port through the USB connector.
Logged

universe
Offline Offline
Sr. Member
****
Karma: 0
Posts: 258
I'm enjoying my Life
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh I think Serial and SPI is the same...
Because SPI (Serial Peripheral Interface)...
Can you give me other example for the I2C and SPI communication?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 620
Posts: 33991
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Oh I think Serial and SPI is the same..
It is not.
He computer talks through an aysynchronous serial protocol. SPI is as you say Serial Periphal Interface a totally diffrent thing.
This is sounding like a homework question.
What sort of example do you want, just look at some of my projects they contain examples of both those.www.thebox.myzen.co.uk
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 481
Posts: 18737
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you give me other example for the I2C and SPI communication?

http://www.gammon.com.au/i2c

http://www.gammon.com.au/spi

http://www.gammon.com.au/forum/?id=10894  (serial)
Logged


Pages: [1]   Go Up
Jump to: