Page 1 of 1

GPIO as CS for SPI

Posted: Thu Nov 12, 2015 6:12 pm
by danielm
Do you see any issue with using GPIOs as chip-selects for SPI devices if number of regular CS pins is not enough for my application?

Re: GPIO as CS for SPI

Posted: Thu Nov 12, 2015 6:47 pm
by dhylands
I think it should be fine. I also think that would be a useful feature to add to the SPI driver (ability to specify a GPIO pin as a CS).

You may need to not use the builtin CS at all (or configure it as a GPIO) since the current SPI driver probably asserts it all the time.

In the meantime, you could just do it manually.

Re: GPIO as CS for SPI

Posted: Fri Nov 13, 2015 2:20 pm
by nsoatw
I've used GPIO for SPI-CS with good results, nothing unforseen happened.

Re: GPIO as CS for SPI

Posted: Fri Nov 13, 2015 8:59 pm
by danielm
Thank you gentlemen, that's what I was hoping for :)