SPIxCON0

Note:
  1. 1.Do not change this bit when EN = 1.
SPI Control Register 0
Name:
SPIxCON0
Address:
0x084,0x091
Reset:
Access:
Bit76543210
ENLSBFMSTBMODE
AccessR/WR/WR/WR/W
Reset0000

Bit 7 – EN: SPI Enable

SPI Enable

ValueDescription
1 SPI is enabled
0 SPI is disabled

Bit 2 – LSBF: LSb-First Data Exchange Select(1)

LSb-First Data Exchange Select(1)

ValueDescription
1 Data is exchanged LSb first
0 Data is exchanged MSb first (traditional SPI operation)

Bit 1 – MST: SPI Master Operating Mode Select(1)

SPI Master Operating Mode Select(1)

ValueDescription
1 SPI module operates as the bus master
0 SPI module operates as a bus slave

Bit 0 – BMODE: Bit-Length Mode Select(1)

Bit-Length Mode Select(1)

ValueDescription
1 SPIxTWIDTH setting applies to every byte: total bits sent is SPIxTWIDTH*SPIxTCNT, end-of-packet occurs when SPIxTCNT = 0
0 SPIxTWIDTH setting applies only to the last byte exchanged; total bits sent is SPIxTWIDTH + (SPIxTCNT*8)