What's the purpose of specifying SPI CE0 and CE1 when you can just toggle regular GPIO?

1 Answer 1


The difference is that the Pi's SPI hardware will automatically assert and deassert those GPIO as needed.

As you suggest this isn't a great benefit and in fact the current Raspberry Pi Linux SPI driver does toggle the slave select GPIO itself rather than letting the hardware do so. It does this so you can more easily add additional slave select GPIO.

If you have more slaves than are supported by the SPI drivers you have no choice but to toggle the GPIO yourself.

  • Huh, that's kinda silly then.
    – Izzo
    Commented May 24, 2020 at 22:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.