19.4.1.8.1 SCKx in Framed SPI Modes
When FRMEN (SPIxCON1[23]) = 1
and MSTEN (SPIxCON1[5]) =
1
, the SCKx pin becomes an output and the SPI clock at SCKx becomes
a free-running clock.
When FRMEN = 1
and MSTEN = 0
, the SCKx pin becomes an
input. The source clock provided to the SCKx pin is assumed to be a free-running
clock.
The polarity of the clock is selected by the CKP bit (SPIxCON1[6]). The CKE bit (SPIxCON1[8]) is not used for the Framed SPI modes.
When CKP or CKE = 0
, the Frame Sync pulse output and the SDOx data
output change on the rising edge of the clock pulses at the SCKx pin. Input data is
sampled at the SDIx input pin on the falling edge of the serial clock.
When CKP or CKE = 1
, the Frame Sync pulse output and the SDOx data
output change on the falling edge of the clock pulses at the SCKx pin. Input data is
sampled at the SDIx input pin on the rising edge of the serial clock.