Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Zero/hardware/gpio"

< Zero‎ | hardware
m (fix functions of pins 27 & 28 to match GPIOAO in Quick Reference and schematic ~~~~)
Line 36: Line 36:
 
|  
 
|  
 
|-
 
|-
 +
| 490
 
|  
 
|  
 
|  
 
|  
|  
+
| I2C_EE_M3_SDA
| I2CEE_SDA_M3
+
 
| GPIOA_14
 
| GPIOA_14
 
| style="background-color:#008000; color:#FFF;" | 3
 
| style="background-color:#008000; color:#FFF;" | 3
Line 50: Line 50:
 
|  
 
|  
 
|-
 
|-
 +
| 491
 
|  
 
|  
 
|  
 
|  
|  
+
| I2C_EE_M3_SCL
| I2CEE_SCL_M3
+
 
| GPIOA_15
 
| GPIOA_15
 
| style="background-color:#008000; color:#FFF;" | 5
 
| style="background-color:#008000; color:#FFF;" | 5
 
|  
 
|  
| style="background-color:#000000; color:#FFF;" | 6
+
| style="color:#FFF;" | 6
 
| GND
 
| GND
 
|  
 
|  
Line 64: Line 64:
 
|  
 
|  
 
|-
 
|-
|  
+
| 415
|  
+
| I2C_AO_S0_SDA
| UARTAO_B_TX
+
| UART_AO_B_RX
| I2CAO_SCL_M0
+
| I2C_AO_M0_SDA
 
| GPIOAO_3
 
| GPIOAO_3
 
| style="background-color:#008000; color:#FFF;" | 7
 
| style="background-color:#008000; color:#FFF;" | 7
Line 73: Line 73:
 
| style="background-color:#008000; color:#FFF;" | 8
 
| style="background-color:#008000; color:#FFF;" | 8
 
| GPIOAO_0
 
| GPIOAO_0
| style="background-color:#FFA500;" | UARTAO_A_TXD
+
| style="background-color:#FFA500;" | UART_AO_A_TXD
|
+
 
|  
 
|  
 
|  
 
|  
 +
| 412
 
|-
 
|-
 
|  
 
|  
Line 83: Line 83:
 
|  
 
|  
 
| GND
 
| GND
| style="background-color:#000000; color:#FFF;" | 9
+
| style="color:#FFF;" | 9
 
|  
 
|  
 
| style="background-color:#008000; color:#FFF;" | 10
 
| style="background-color:#008000; color:#FFF;" | 10
 
| GPIOAO_1
 
| GPIOAO_1
| style="background-color:#FFA500;" | UARTAO_A_RXD
+
| style="background-color:#FFA500;" | UART_AO_A_RXD
|
+
 
|  
 
|  
 
|  
 
|  
 +
| 413
 
|-
 
|-
|  
+
| 414
|  
+
| I2C_AO_S0_SCL
| UARTAO_B_RX
+
| UART_AO_B_TX
| I2CAO_SDA_M0
+
| I2C_AO_M0_SCL
 
| GPIOAO_2
 
| GPIOAO_2
 
| style="background-color:#008000; color:#FFF;" | 11
 
| style="background-color:#008000; color:#FFF;" | 11
Line 101: Line 101:
 
| style="background-color:#008000; color:#FFF;" | 12
 
| style="background-color:#008000; color:#FFF;" | 12
 
| GPIOX_9
 
| GPIOX_9
| SPIA_MISO
+
| SPI_A_MISO
|
+
 
|  
 
|  
 
|  
 
|  
 +
| 509
 
|-
 
|-
 +
| 503
 
|  
 
|  
|  
+
| I2C_EE_M1_SCL
| I2C_EE_SCL_M1
+
| SPI_A_SCLK
| SPIA_SCLK
+
| GPIOX_11
| GPIOX11
+
 
| style="background-color:#008000; color:#FFF;" | 13
 
| style="background-color:#008000; color:#FFF;" | 13
 
|  
 
|  
| style="background-color:#000000; color:#FFF;" | 14
+
| style="color:#FFF;" | 14
 
| GND
 
| GND
 
|  
 
|  
Line 124: Line 124:
 
|  
 
|  
 
|  
 
|  
| ADC1
+
| SARADC_CH1
 
| style="background-color:#008000; color:#FFF;" | 15
 
| style="background-color:#008000; color:#FFF;" | 15
 
|  
 
|  
 
| style="background-color:#008000; color:#FFF;" | 16
 
| style="background-color:#008000; color:#FFF;" | 16
 
| GPIOX_10
 
| GPIOX_10
| SPIA_SS0
+
| SPI_A_SS0
| I2C_EE_SDA_M1
+
| I2C_EE_M1_SDA
|  
+
 
|  
 
|  
 +
| 502
 
|-
 
|-
 
|  
 
|  
Line 143: Line 143:
 
| style="background-color:#008000; color:#FFF;" | 18
 
| style="background-color:#008000; color:#FFF;" | 18
 
| GPIOX_8
 
| GPIOX_8
| SPIA_MOSI
+
| SPI_A_MOSI
| PWMC
+
| PWM_C
|  
+
 
|  
 
|  
 +
| 500
 
|-
 
|-
 +
| 447
 
|  
 
|  
|  
+
| SPI_B_MOSI
| SPIB_MOSI
+
| UART_EE_C_RTS
| UARTEE_C_RTS
+
 
| GPIOH_4
 
| GPIOH_4
 
| style="background-color:#008000; color:#FFF;" | 19
 
| style="background-color:#008000; color:#FFF;" | 19
 
|  
 
|  
| style="background-color:#000000; color:#FFF;" | 20
+
| style="color:#FFF;" | 20
 
| GND
 
| GND
 
|  
 
|  
Line 162: Line 162:
 
|  
 
|  
 
|-
 
|-
|  
+
| 448
 
| PWMF
 
| PWMF
| SPIB_MISO
+
| SPI_B_MISO
| UARTEE_C_CTS
+
| UART_EE_C_CTS
 
| GPIOH_5
 
| GPIOH_5
 
| style="background-color:#008000; color:#FFF;" | 21
 
| style="background-color:#008000; color:#FFF;" | 21
Line 174: Line 174:
 
|  
 
|  
 
|  
 
|  
|  
+
| 475
 
|-
 
|-
|  
+
| 450
|  
+
| I2C_EE_M1_SCL
| SPIB_SCLK
+
| SPI_B_SCLK
| UARTEE_C_TX
+
| UART_EE_C_TX
 
| GPIOH_7
 
| GPIOH_7
 
| style="background-color:#008000; color:#FFF;" | 23
 
| style="background-color:#008000; color:#FFF;" | 23
Line 185: Line 185:
 
| style="background-color:#008000; color:#FFF;" | 24
 
| style="background-color:#008000; color:#FFF;" | 24
 
| GPIOH_6
 
| GPIOH_6
| UARTEE_C_RX
+
| UART_EE_C_RX
| SPIB_SS0
+
| SPI_B_SS0
|  
+
| I2C_EE_M1_SDA
|  
+
| 449
 
|-
 
|-
 
|  
 
|  
Line 195: Line 195:
 
|  
 
|  
 
| GND
 
| GND
| style="background-color:#000000; color:#FFF;" | 25
+
| style="color:#FFF;" | 25
 
|  
 
|  
 
| style="background-color:#008000; color:#FFF;" | 26
 
| style="background-color:#008000; color:#FFF;" | 26
| ADC2
+
| SARADC_CH2
 
|  
 
|  
 
|  
 
|  
Line 204: Line 204:
 
|  
 
|  
 
|-
 
|-
|  
+
| 415
|  
+
| I2C_AO_S0_SDA
| UARTAO_B_RX
+
| UART_AO_B_RX
| I2CAO_SDA
+
| I2C_AO_M0_SDA
 
| GPIOAO_3
 
| GPIOAO_3
 
| style="background-color:#00F; color:#FFF;" | 27
 
| style="background-color:#00F; color:#FFF;" | 27
Line 213: Line 213:
 
| style="background-color:#00F; color:#FFF;" | 28
 
| style="background-color:#00F; color:#FFF;" | 28
 
| GPIOAO_2
 
| GPIOAO_2
| I2CAO_SCL
+
| I2C_AO_M0_SCL
| UARTAO_B_TX
+
| UART_AO_B_TX
|  
+
| I2C_AO_S0_SCL
|  
+
| 414
 
|-
 
|-
 
|  
 
|  
Line 225: Line 225:
 
| style="background-color:#008000; color:#FFF;" | 29
 
| style="background-color:#008000; color:#FFF;" | 29
 
|  
 
|  
| style="background-color:#000000; color:#FFF;" | 30
+
| style="color:#FFF;" | 30
 
| GND
 
| GND
 
|  
 
|  
Line 244: Line 244:
 
|  
 
|  
 
|  
 
|  
|  
+
| 416
 
|-
 
|-
 
|  
 
|  
Line 253: Line 253:
 
| style="background-color:#008000; color:#FFF;" | 33
 
| style="background-color:#008000; color:#FFF;" | 33
 
|  
 
|  
| style="background-color:#000000; color:#FFF;" | 34
+
| style="color:#FFF;" | 34
 
| GND
 
| GND
 
|  
 
|  
Line 260: Line 260:
 
|  
 
|  
 
|-
 
|-
 +
| 420
 
|  
 
|  
 
|  
 
|  
| UARTAO_B_TX
+
| UART_AO_B_TX
| TDMB_SCLK
+
 
| GPIOAO_8
 
| GPIOAO_8
 
| style="background-color:#008000; color:#FFF;" | 35
 
| style="background-color:#008000; color:#FFF;" | 35
Line 272: Line 272:
 
|  
 
|  
 
|  
 
|  
|  
+
| 451
 
|-
 
|-
 +
| 421
 
|  
 
|  
 
|  
 
|  
| UARTAO_B_RX
+
| UART_AO_B_RX
| MCLK0
+
 
| GPIOAO_9
 
| GPIOAO_9
 
| style="background-color:#008000; color:#FFF;" | 37
 
| style="background-color:#008000; color:#FFF;" | 37
Line 283: Line 283:
 
| style="background-color:#008000; color:#FFF;" | 38
 
| style="background-color:#008000; color:#FFF;" | 38
 
| GPIOAO_10
 
| GPIOAO_10
| TDMB_D1
+
| PWMAO_D
|
+
 
|  
 
|  
 
|  
 
|  
 +
| 422
 
|-
 
|-
 
|  
 
|  
Line 293: Line 293:
 
|  
 
|  
 
| GND
 
| GND
| style="background-color:#000000; color:#FFF;" | 39
+
| style="color:#FFF;" | 39
 
|  
 
|  
 
| style="background-color:#008000; color:#FFF;" | 40
 
| style="background-color:#008000; color:#FFF;" | 40
Line 300: Line 300:
 
|  
 
|  
 
|  
 
|  
|  
+
| 423
 
|}
 
|}
  

Revision as of 06:17, 3 October 2021

 Radxa Zero >  Hardware >  GPIO


GPIO number Function4 Function3 Function2 Function1 Pin# Pin# Function1 Function2 Function3 Function4 GPIO number
+3.3V 1 2 +5.0V
490 I2C_EE_M3_SDA GPIOA_14 3 4 +5.0V
491 I2C_EE_M3_SCL GPIOA_15 5 6 GND
415 I2C_AO_S0_SDA UART_AO_B_RX I2C_AO_M0_SDA GPIOAO_3 7 8 GPIOAO_0 UART_AO_A_TXD 412
GND 9 10 GPIOAO_1 UART_AO_A_RXD 413
414 I2C_AO_S0_SCL UART_AO_B_TX I2C_AO_M0_SCL GPIOAO_2 11 12 GPIOX_9 SPI_A_MISO 509
503 I2C_EE_M1_SCL SPI_A_SCLK GPIOX_11 13 14 GND
SARADC_CH1 15 16 GPIOX_10 SPI_A_SS0 I2C_EE_M1_SDA 502
+3.3V 17 18 GPIOX_8 SPI_A_MOSI PWM_C 500
447 SPI_B_MOSI UART_EE_C_RTS GPIOH_4 19 20 GND
448 PWMF SPI_B_MISO UART_EE_C_CTS GPIOH_5 21 22 GPIOC_7 - 475
450 I2C_EE_M1_SCL SPI_B_SCLK UART_EE_C_TX GPIOH_7 23 24 GPIOH_6 UART_EE_C_RX SPI_B_SS0 I2C_EE_M1_SDA 449
GND 25 26 SARADC_CH2
415 I2C_AO_S0_SDA UART_AO_B_RX I2C_AO_M0_SDA GPIOAO_3 27 28 GPIOAO_2 I2C_AO_M0_SCL UART_AO_B_TX I2C_AO_S0_SCL 414
NC 29 30 GND
NC 31 32 GPIOAO_4 PWMAO_C 416
NC 33 34 GND
420 UART_AO_B_TX GPIOAO_8 35 36 GPIOH_8 - 451
421 UART_AO_B_RX GPIOAO_9 37 38 GPIOAO_10 PWMAO_D 422
GND 39 40 GPIOAO_11 PWMAO_A 423

GPIO number

  • GPIO are in two banks, GPIO AO domain and GPIO EE domain
    • AO domain: GPIOAO_0 - GPIOAO_11
    • EE domain: GPIOA_14 - GPIOA_15 | GPIOH_0 - GPIOH_8 | GPIOX_0 - GPIOX_19
  • UARTs
    • AO domain: UARTAO_A | UARTAO_B
    • EE domain: UART_A | UART_B | UART_C