SPI_SSPCR1 register
| CPHA | Clock phase
|
| CPOL | Clock polarity
|
| MSTR | Master selection
|
| BR | Baud rate control
|
| SPE | SPI enable
|
| LSBFIRST | Frame format
|
| SSI | Internal slave select This bit has an effect only when the SSM bit is set. The value of this bit is forced onto the NSS pin and the I/O value of the NSS pin is ignored. |
| SSM | Software slave management When the SSM bit is set, the NSS pin input is replaced with the value from the SSI bit.
|
| RXONLY | Receive only mode enabled. This bit enables simplex communication using a single unidirectional line to receive data exclusively. Keep BIDIMODE bit clear when receive only mode is active.This bit is also useful in a multislave system in which this particular slave is not accessed, the output from the accessed slave is not corrupted.
|
| CRCL | CRC length This bit is set and cleared by software to select the CRC length.
|
| CRCNEXT | Transmit CRC next
|
| CRCEN | Hardware CRC calculation enable
|
| BIDIOE | Output enable in bidirectional mode This bit combined with the BIDIMODE bit selects the direction of transfer in bidirectional mode
|
| BIDIMODE | Bidirectional data mode enable. This bit enables half-duplex communication using common single bidirectional data line. Keep RXONLY bit clear when bidirectional mode is active.
|