The SPI Client interface supports four standard modes as determined by the Clock Polarity (CPOL) and Clock Phase (CPHA) settings. These modes are illustrated in the following table and figure.
Mode | CPOL | CPHA |
---|---|---|
0 | 0 |
0 |
1 | 0 |
1 |
2 | 1 |
0 |
3 | 1 |
1 |
SPI MODE 0to communicate with the host.
The red lines in the following figure correspond to Clock Phase = 0
and
the blue lines correspond to Clock Phase = 1
.