ESP32 SPI slave interrupt
Posted: Fri Feb 05, 2021 4:37 pm
Hello,
I have the ESP32 connected to another mico. The other micro is the main and I want to set up the VSPI spi line as a slave. I want to be able to trigger a SPI slave interrupt everytime the main micro sets the CS line low indicating it wants to send data.
The example code uses a GPIO line as a handshake. i do not want to do that since I have only one pin available on main micro so it needs to be the CS pin to the ESP32. Can this be done. Can someone post an example code on how to setup esp32-wroom-32u with a slave interrupt?
Thanks
I have the ESP32 connected to another mico. The other micro is the main and I want to set up the VSPI spi line as a slave. I want to be able to trigger a SPI slave interrupt everytime the main micro sets the CS line low indicating it wants to send data.
The example code uses a GPIO line as a handshake. i do not want to do that since I have only one pin available on main micro so it needs to be the CS pin to the ESP32. Can this be done. Can someone post an example code on how to setup esp32-wroom-32u with a slave interrupt?
Thanks