This is an old revision of the document!
A combination of phase and polarity produces 4 standard modes for the clock in SPI:
Mode | CPOL/CKPL | CPHA/CKPH |
---|---|---|
0 | 0 | 0 |
1 | 0 | 1 |
2 | 1 | 0 |
3 | 1 | 1 |
It is important that the right phase and polarity are selected so that the slave and master both capture the bit at the correct clock transition.