31.10 Handling Interrupts in the SPI
The following sequence should be followed to handle interrupts in the SPI:
1. Once an interrupt occurs, read SPIE to determine the interrupt source. Normally,
SPIE bits should be cleared at this time.
2. Process the TxBD to reuse it and the RxBD to extract the data from it. To transmit
another buffer, simply set TxBD[R], RxBD[E], and SPCOM[STR].
3. Clear the interrupt by writing a one to CISR[SPI].
4. Execute an rfi instruction.
MOTOROLA
Part V. The Communications Processor Module
Chapter 31. Serial Peripheral Interface
31-19