spi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
spi [ 04.02.2025 21:48] – [API] lars | spi [ 05.02.2025 01:31] (current) – lars | ||
---|---|---|---|
Line 2: | Line 2: | ||
Different variants exist. Usually SPI refers to the Motorola Serial Peripheral Interface. Other variants are the Texas Instruments Serial protocol (SSP) and the National Instruments Microwire. | Different variants exist. Usually SPI refers to the Motorola Serial Peripheral Interface. Other variants are the Texas Instruments Serial protocol (SSP) and the National Instruments Microwire. | ||
+ | |||
+ | ===== Protocol ===== | ||
+ | |||
+ | Most significant bit first | ||
Line 23: | Line 27: | ||
- data bits are read when clock goes to idle level. | - data bits are read when clock goes to idle level. | ||
| | ||
- | ^ mode ^ CPOL ^ CPHA ^ write bit ^ read bit ^ | + | ^ mode ^ CPOL ^ CPHA ^ write bit |
- | | 0 | 0 | 0 | falling | + | | 0 | 0 | 0 | clock goes low, and when /CS activates |
- | | 1 | 0 | 1 | rising | + | | 1 | 0 | 1 | clock goes high | clock goes low |
- | | 2 | 1 | 0 | rising | + | | 2 | 1 | 0 | clock goes high, and when /CS activates | clock goes low |
- | | 3 | 1 | 1 | falling | + | | 3 | 1 | 1 | clock goes low |
spi.1738702113.txt.gz · Last modified: 04.02.2025 21:48 by lars