This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
products:sbc:common:applications:gpio:spi [2022/12/20 04:35] nick |
products:sbc:common:applications:gpio:spi [2023/11/07 05:06] nick [Table] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SPI ====== | ||
- | ===== Introduction ===== | ||
- | SPI interface usage examples on [[products: | + | ===== SPI Reference table ===== |
- | ===== Reference table ===== | + | | |
- | + | ^ VIM3/ | |
- | | | + | | ::: | ::: |
- | ^ VIM3/ | + | | ::: | ::: |
- | | ::: | ::: | 16 | SPIB_SCLK | + | | ::: | ::: |
- | | ::: | ::: | 35 | SPIB_MISO | + | ^ VIM4 |
- | | ::: | ::: | 37 | SPIB_MOSI | + | | ::: | ::: |
- | ^ VIM4 | + | | ::: | ::: |
- | | ::: | + | | ::: | ::: |
- | | ::: | + | ^ VIM1S | |
- | | ::: | + | | ::: | ::: |
- | ^ VIM1S | | + | | ::: | ::: |
- | | ::: | + | | ::: | ::: |
- | | ::: | + | |
- | | ::: | + | |
===== Enable SPI ===== | ===== Enable SPI ===== | ||
Line 125: | Line 121: | ||
} | } | ||
- | static const char *device = "/ | + | static const char *device = "/ |
static uint32_t mode; | static uint32_t mode; | ||
static uint8_t bits = 8; | static uint8_t bits = 8; | ||
Line 588: | Line 584: | ||
``` | ``` | ||
- | Run '' | + | Connect PIN36(MOSI), |
```shell | ```shell |