Starting with SPI. Need some help!

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Francesco.C
Posts: 41
Joined: Thu Feb 26, 2009 6:54 pm
Location: UK

Starting with SPI. Need some help!

Post by Francesco.C » Tue May 19, 2009 10:00 pm

Hi guys,
I need to some info to get me started with SPI comms.

I would like some clarification regarding the SPI protocol.

Is the SPI protocol universal for all devices that implents it?
For example is the SF SPI module compatable with all SPI memory devices?

I had a look to some SPI devices from ATMEL and the SPI seems to be similar.
But I think in reality this is just too good to be true.

I had a look on the Wiky page, but got a little confused by the example given there!

Any info to get me started will be greatly appretiated.

Regards

Francesco C.

richardb
Posts: 310
Joined: Tue Oct 03, 2006 8:54 pm

Post by richardb » Wed May 20, 2009 8:20 am

Hmmm..

Doj
Posts: 362
Joined: Wed Apr 11, 2007 10:18 pm
Location: East Sussex

Post by Doj » Wed May 20, 2009 8:35 am

Hello Francesco, in my own experience SPI is more about the hardware interface rather than the code to drive it.

Having used SPI on many devices I have found that you need to pick the device you want to use then get to grips with its own requirements.
Memory devices tend to have similarities between them but this code may be completely useless with an RF Modem for instance.

As a purely test case it might be a good idea to make a development board with the device used in the WiKi article and then you can take apart
working code rather than try to get new hardware and new software going at the same time.

Post Reply