SPI communication with multiple slaves

Started by electrolab, June 09, 2014, 11:36:24 am

Previous topic - Next topic

electrolab

Hello guys!
I am new to the Olinuxino world and i want to communicate via SPI with 5 of SPI slave devices.
I am using the GPIO-3 connector which has the SPI_CLK SPI_MOSI SPI_MISO and two SPI_CS.
The fact that it has two SPI_CS means that i can only setup only two SPI slaves?
Or i can setup other pin for slave selection ?
Thank you guys for any kind of help!

Regards

spelle

Hey !

I don't know where you are with this, but you can use GPIOs to select the slave you want to talk to. You can even use a MUX/DEMUX, or an address decoder so that you can use 3 GPIOs to address 8 slaves.

CS are in general active LOW, so don't forget to put a pull-up resistor on it.

Hope this helps.

BTW, does your nick has something to see with this : http://www.electrolab.fr/ ?

electrolab

Hi spelle
Thank you for your interest. I just got it working with gpio's but i have other problems with it anyway.
I will keep you posted if i have anything.
About that blog,It is weird i have no relation with that.

Thank you again

Regards