Page 1 of 1

spi and chip select

Posted: Tue Jan 22, 2019 2:39 am
by smhodge
It appears the /SS line is not implemented. Am I correct that one can just use any available digital output pin as a chip select, driving it low with pin.value(0) to select the desired device on the SPI bus?

Re: spi and chip select

Posted: Tue Jan 22, 2019 12:53 pm
by chrismas9
Yes, you can use any GPIO in SPI master mode and you can have multiple devices on same SPI buss each with their own GPIO CS. SS is only needed in slave mode where it is an input to the SPI block.

Re: spi and chip select

Posted: Sat Jan 26, 2019 2:22 am
by smhodge
Thanks, especially for the tip on Slave use, even though that's unlikely for me, it's good to know.