OT: SPI voodoo?

trm

Who loves you, and who do you love?
Feedback
2 (100%)
Credits
2,877CR
Hi all,

I'm trying to get a weird SPI shield working with my Arduino Mega. I have a schem for the shield and it lists which SPI pins are which but I'm not sure if the schem is reversed (e.g. they list MISO on the schem but they really mean it's a MOSI-client pin wired to a MISO on the Arduino).

As in, does MISO on the master (Arduino) connect to MOSI on the slave device, and vice versa for MOSI/MISO client/slave? Like a x-over 232 cable, or am I being dumb and it's MISO-client to MISO-slave etc.

My logic analyser is just showing me activity (MOSI, tracked from the Master pinout), not whether it's good activity.
 

Mitchell Gant

Active member
vacBacker
Feedback
2 (100%)
Credits
888CR
paulcan69 said:
Ok I'll say it...
What the hell is everyone talking about?

Lol

It's not particularly arcade related, it's a serial communication protocol that's useful to connect to memory or other devices without lots of wires:

http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

This week I have mostly been writing code to read data from an SPI flash memory chip and also some graphics functions to write to a small OLED display that has an SPI connection mode.

Trust me, it's not very exciting really
smiley5.gif
 
Top