A slave never knows when the master is going to start a new communication. Interrupts
are a perfect feature to react on such undetermined events. So this is a common way to
implement the SPI in slave mode.
In this example the main program has to be notified about transmission
errors and the completion of the transmission.Figure 4-2. Interrupt Controlled Slave -
Initialization and Transmission
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.