Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim1s:applications:gpio:40pin-header

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim1s:applications:gpio:40pin-header [2022/07/17 21:42]
nick
products:sbc:vim1s:applications:gpio:40pin-header [2024/08/13 03:14] (current)
xiong [Android]
Line 1: Line 1:
 {{indexmenu_n>1}} {{indexmenu_n>1}}
  
-====== VIM1S 40-Pin Header ======+~~tag>VIM1S GPIO-header~~
  
 +====== VIM1S GPIO Header ======
 +
 +Universal GPIO 40 pins board header, used for communication between board and different external devices.
 +
 +====== Reference table ======
 +
 +<WRAP important >
 +Current GPIO numbers valid for vendor kernel only. Mainline linux kernel GPIO numbers will be different... 
 +</WRAP>
 +
 +<tabbox Linux>
 +
 +^  GPIO num ^ Name              ^ Pin  ^ Pin  ^ Name     ^ GPIO num  ^
 +|           | 5V                |  1    21  | **GND**  |           |
 +|           | 5V                |  2    22  | PIN.D7   | 461       |
 +|           | USB_DM            |  3    23  | PIN.D6   | 460       |
 +|           | USB_DP            |  4    24  | **GND**  |           |
 +|           | **GND**            5    25  | PIN.Z11  | 509       |
 +|           | VCCMCU            |  6    26  | PIN.Z12  | 510       |
 +|           | MCU_NRST          |  7    27  | 3V3      |           |
 +|           | MCU_SWIM          |  8    28  | **GND**  |           |
 +|           | **GND**            9    29  | PIN.Z1   | 499       |
 +|           | ADC_CH0            10  |  30  | PIN.Z6   | 504       |
 +|           | VDD1V8            |  11  |  31  | PIN.Z2   | 500       |
 +|           | ADC_CH2            12  |  32  | PIN.Z0   | 498       |
 +|       470 | SPDIFOUT          |  13  |  33  | PIN.Z3   | 501       |
 +|           | **GND**            14  |  34  | **GND**  |           |
 +|       457 | PIN.D3            |  15  |  35  | PIN.Z5   | 503       |
 +|       456 | PIN.D2            |  16  |  36  | PIN.Z8   | 506       |
 +|           | **GND**            17  |  37  | PIN.Z10  | 508       |
 +|           | UART_RX / PIN.D1  |  18  |  38  | PWR_EN1  |           |
 +|           | UART_TX / PIN.D0  |  19  |  39  | PIN.H9   | 475       |
 +|           | 3V3                20  |  40  | **GND**  |           |
 +
 +<tabbox Android>
 +
 +^  GPIO num ^ Name              ^ Pin  ^ Pin  ^ Name     ^ GPIO num  ^
 +|           | 5V                |  1    21  | **GND**  |           |
 +|           | 5V                |  2    22  | I2C0_SCK |           |
 +|           | USB_DM            |  3    23  | I2C0_SDA |           |
 +|           | USB_DP            |  4    24  | **GND**  |           |
 +|           | **GND**            5    25  | I2C1_SCK |           |
 +|           | VCCMCU            |  6    26  | I2C1_SDA |           |
 +|           | MCU_NRST          |  7    27  | 3V3      |           |
 +|           | MCU_SWIM          |  8    28  | **GND**  |           |
 +|           | **GND**            9    29  | I2S_SCLK |           |
 +|           | ADC_CH0            10  |  30  | I2S_MCLK |           |
 +|           | VDD1V8            |  11  |  31  | I2S_SDO  |           |
 +|           | ADC_CH2            12  |  32  | I2S_LRCK |           |
 +|           | SPDIFOUT          |  13  |  33  | I2S_SDI  |           |
 +|           | **GND**            14  |  34  | **GND**  |           |
 +|           | UART_RX            15  |  35  | PWM_F    |           |
 +|           | UART_TX            16  |  36  | PIN.Z8   | 506       |
 +|           | **GND**            17  |  37  | PIN.Z10  | 508       |
 +|           | Linux_RX          |  18  |  38  | PWR_EN1  |           |
 +|           | Linux_TX          |  19  |  39  | PIN.H9   | 475       |
 +|           | 3V3                20  |  40  | **GND**  |           |
 +
 +</tabbox>
 +
 +====== Get GPIO number ======
 +
 +If the GPIO number above changed, you can also follow the [[:products:sbc:common:applications:gpio:get-gpio-number | documentation]] to get the gpio number.
  
 {{page>products:sbc:common:applications:gpio:40pin-header&noheader}} {{page>products:sbc:common:applications:gpio:40pin-header&noheader}}
  
Last modified: 2022/07/17 21:42 by nick