Slave Mode Receive Options

The RXR bit controls the nature of receptions in Slave mode. When RXR is set, the SDI input data will be stored in the receive FIFO if it is not full. If the receive FIFO is full, the RXOIF bit will be set to indicate a receive FIFO overflow error and the data is discarded. When RXR is cleared, all received data will be ignored and not stored in the receive FIFO (although it may still be used for transmission if the transmit FIFO is empty). The following figure shows a typical Slave mode communication, showing a case where the master writes two then three bytes, showing interrupts as well as the behavior of the transfer counter in Slave mode (see Transfer Counter in Slave Mode for more details on the transfer counter in Slave mode as well as SPI Interrupts for more information on interrupts).

Figure 1. SPI Slave Mode Operation – Interrupt-Driven, Master Writes 2+3 Bytes