SPI Mode | CPOL | CPHA |
---|---|---|
0 (or 0,0) | 0 | 0 |
1 (or 0,1) | 0 | 1 |
2 (or 1,0) | 1 | 0 |
3 (or 1,1) | 1 | 1 |
The meaning is:
CPOL:
- 0 = Clock Idle low level
- 1 = Clock Idle high level
- 0 = SDO transmit edge (*) active to idle
- 1 = SDO transmit edge idle to active
(*): the transmit edge is the clock edge at which the SDO level changes.
The Transmit edge is the clock edge at which the SPI output data changes,
The Sampling edge is the clock edge at which the sampling of the SPI input data takes place.The sampling edge is normally the opposite one of the transmit edge.
References: www.rosseeld.be, dlnware.com
No comments:
Post a Comment