SPIS supports SPI modes [0..3]. Modes CPOL and CPHA are set in the CONFIG register.
| Mode | Clock polarity (CPOL) | Clock phase (CPHA) |
|---|---|---|
| SPI_MODE0 | 0 (Active High) | 0 (Sample on Leading) |
| SPI_MODE1 | 0 (Active High) | 1 (Sample on Trailing) |
| SPI_MODE2 | 1 (Active Low) | 0 (Sample on Leading) |
| SPI_MODE3 | 1 (Active Low) | 1 (Sample on Trailing) |