SCB SPI Slave - tell when SS is negated? | Cypress Semiconductor
SCB SPI Slave - tell when SS is negated?
I'm looking through the SCB datasheet and API as well as the architecture/registers TRMs and don't see a way to either poll or be notified through an interrupt when the SPI slave is no longer selected.
Is there a way to do this that doesn't involve routing SS to two pins, one for the SCB and another that is just a GPIO with an interrupt configured for rising edge?
The reason I'm looking for this is to cleanly reset my SPI reception stack when a master either aborts or otherwise gets out of sync with the receiver software. Counting bytes won't work with aborted transfers. I thought of maybe using a timer which resets the rx software stack on overflow (and is reset whenever a byte is received) but that's kind of hokey.