Go Down

Topic: Anyone can give me many examples of I2C and Serial SPI communication? (Read 594 times) previous topic - next topic

creativen

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. :D

Grumpy_Mike

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.

creativen

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?

Grumpy_Mike

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

Nick Gammon


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)
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up