19.4.1.8.2 SPI Buffers in Framed SPI Modes
When FRMSYNC (SPIxCON1[22]) = 0
, the SPI module is in the Frame Host
mode of operation.
In this mode, the Frame Sync pulse is initiated by the module when the user software writes the transmit data to a SPIxBUF location (thus, writing the SPIxTXB register with transmit data). At the end of the Frame Sync pulse, SPIxTXB is transferred to SPIxTXSR and data transmission/reception begins.
When FRMSYNC = 1
, the module is in Frame Client mode. In this mode, the
Frame Sync pulse is generated by an external source. When the module samples the Frame
Sync pulse, it will transfer the contents of the SPIxTXB register to SPIxTXSR, and data
transmission/reception begins. The user must make sure that the correct data is loaded
into the SPIxBUF for transmission before the Frame Sync pulse is received.