This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:applications:gpio:40pin-header [2022/10/17 00:20] hyphop [Set-up GPIO direction] |
products:sbc:common:applications:gpio:40pin-header [2023/08/16 06:33] jacobe |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== GPIO Header ====== | ====== GPIO Header ====== | ||
- | Universal GPIO 40 pins board header, provided for wide range communication... | + | ===== GPIO usage examples |
- | + | ||
- | ===== Boards reference table vendor kernel ===== | + | |
- | + | ||
- | <WRAP important > | + | |
- | Current GPIO numbers valid for vendor kernel only. Mainline linux kernel GPIO numbers will be different... | + | |
- | </ | + | |
- | + | ||
- | ==== VIM1 ==== | + | |
- | + | ||
- | ^ GPIO ^ Name ^ Physical | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | 420 | | + | |
- | | | + | |
- | | 506 | PIN.AO5 | 15 | + | |
- | | 505 | PIN.AO4 | 16 | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | + | ||
- | ==== VIM2 ==== | + | |
- | + | ||
- | ^ GPIO ^ Name ^ Physical | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | 470 | PIN.DV21 | + | |
- | | 471 | PIN.DV22 | + | |
- | | 472 | PIN.DV23 | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | 420 | PIN.H4 | + | |
- | | | + | |
- | | 506 | PIN.AO5 | + | |
- | | 505 | PIN.AO4 | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | + | ||
- | ==== VIM3 VIM3L ==== | + | |
- | + | ||
- | ^ GPIO ^ Name ^ Physical | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | 506 | PIN.AO10 | + | |
- | | | + | |
- | | 433 | PIN.H6 | + | |
- | | 434 | PIN.H7 | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | + | ||
- | ==== VIM4 ==== | + | |
- | + | ||
- | ^ GPIO ^ Name ^ Physical | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | 420 | SPDIFOUT | + | |
- | | | + | |
- | | 491 | PIN.Y7 | + | |
- | | 490 | PIN.Y6 | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | + | ||
- | + | ||
- | ==== VIM1S ==== | + | |
- | + | ||
- | ^ GPIO ^ Name ^ Physical | + | |
- | | | 5V | | + | |
- | | | 5V | | + | |
- | | | USB_DM | + | |
- | | | USB_DP | + | |
- | | | | + | |
- | | | VCCMCU | + | |
- | | | MCU_NRST | + | |
- | | | MCU_SWIM | + | |
- | | | | + | |
- | | | | + | |
- | | | VDD1V8 | + | |
- | | | | + | |
- | | | + | |
- | | | | + | |
- | | | + | |
- | | | + | |
- | | | | + | |
- | | | PIN.D1 | + | |
- | | | PIN.D0 | + | |
- | | | | + | |
- | + | ||
- | ==== Edge-V ==== | + | |
- | + | ||
- | ^ GPIO ^ Name ^ Physical | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | 112 | SPDIF/ | + | |
- | | | + | |
- | | 50 | + | |
- | | 49 | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | + | ||
- | ==== Edge2 ==== | + | |
- | + | ||
- | ^ GPIO ^ Name ^ Physical | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | 112 | SPI1_MOSI_M1/ | + | |
- | | 111 | SPI1_MISO_M1/ | + | |
- | | 114 | SPI1_CS_M1/ | + | |
- | | 113 | SPI1_CLK_M1/ | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | + | ||
- | + | ||
- | ===== Control | + | |
<WRAP important > | <WRAP important > | ||
Line 201: | Line 23: | ||
```shell | ```shell | ||
$ echo out | sudo tee / | $ echo out | sudo tee / | ||
- | $ echo in | sudo tee / | + | $ echo in | sudo tee / |
``` | ``` | ||
Line 223: | Line 45: | ||
``` | ``` | ||
- | ===== Troubleshooting | + | ==== Troubleshooting ==== |
If you got the similar error below, it means that the PIN you try to export is used for another function, you need to edit [[products: | If you got the similar error below, it means that the PIN you try to export is used for another function, you need to edit [[products: |