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