4.4 Transfer-Off Mode

In this mode, the SPI master clock signal (SCK) will not toggle and no data will be exchanged between the master and slave devices on the SPI bus. Writes will continue to be transferred to the TXFIFO, which will be transmitted if the TXR bit of SPIxCON2 is set.

CONFIGURATION OF A SPI MASTER IN TRANSFER OFF MODE

void SPI1_Master_NoTransmit (void)
{
// Note: SCK will NOT toggle in this mode of operation;
SPI1CON2bits.TXR = 0; //Transmit Data-Required Bit;
SPI1CON2bits.RXR = 0; // Receive FIFO Space-Required Bit;
}