SPIxCON0
1.| Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EN | LSBF | MST | BMODE | ||||
| AccessR/W | R/W | R/W | R/W | ||||
| Reset0 | 0 | 0 | 0 |
SPI Enable
| Value | Description |
|---|---|
| 1 | SPI is enabled |
| 0 | SPI is disabled |
LSb-First Data Exchange Select(1)
| Value | Description |
|---|---|
| 1 | Data is exchanged LSb first |
| 0 | Data is exchanged MSb first (traditional SPI operation) |
SPI Master Operating Mode Select(1)
| Value | Description |
|---|---|
| 1 | SPI module operates as the bus master |
| 0 | SPI module operates as a bus slave |
Bit-Length Mode Select(1)
| Value | Description |
|---|---|
| 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) |