Welcome, Guest

Author Topic: SPI communication with multiple slaves  (Read 1699 times)

electrolab

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
SPI communication with multiple slaves
« on: June 09, 2014, 11:36:24 AM »
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

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: SPI communication with multiple slaves
« Reply #1 on: July 22, 2014, 04:07:49 PM »
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

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: SPI communication with multiple slaves
« Reply #2 on: July 22, 2014, 08:47:40 PM »
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