Difference between revisions of "RockpiX/hardware/gpio"
Line 2: | Line 2: | ||
{{Languages|rockpiX/hardware/gpio}} | {{Languages|rockpiX/hardware/gpio}} | ||
− | + | __TOC__ | |
[[rockpix | ROCK Pi X]] > [[rockpiX/hardware | Hardware]] > [[rockpiX/hardware/gpio | gpio]] | [[rockpix | ROCK Pi X]] > [[rockpiX/hardware | Hardware]] > [[rockpiX/hardware/gpio | gpio]] | ||
Line 19: | Line 19: | ||
| || || || I2C2_SCL || || style="background:green; color:white"| 5 || || style="background:black; color:white"| 6 || || GND || || || | | || || || I2C2_SCL || || style="background:green; color:white"| 5 || || style="background:black; color:white"| 6 || || GND || || || | ||
|- | |- | ||
− | | || || || I2S3_CLK || ISH_GPIO0 || style="background:green; color:white"| 7 || || style="background:green; color:white"| 8 || || UART2_TX || || || | + | | 335 || || || I2S3_CLK || ISH_GPIO0 || style="background:green; color:white"| 7 || || style="background:green; color:white"| 8 || || UART2_TX || || || |
|- | |- | ||
| || || || GND || || style="background:black; color:white"| 9 || || style="background:green; color:white"|10 || || UART2_RX || || || | | || || || GND || || style="background:black; color:white"| 9 || || style="background:green; color:white"|10 || || UART2_RX || || || | ||
Line 27: | Line 27: | ||
| || || SPI2_MISO || UART0_RX || || style="background:green; color:white"|13 || || style="background:black; color:white"|14 || || GND || || || | | || || SPI2_MISO || UART0_RX || || style="background:green; color:white"|13 || || style="background:black; color:white"|14 || || GND || || || | ||
|- | |- | ||
− | | || || || SPI2_CS0 || || style="background:green; color:white"|15 || || style="background:green; color:white"|16 || GPIO_DFX4 || SPI2_MOSI || || || | + | | || || || SPI2_CS0 || || style="background:green; color:white"|15 || || style="background:green; color:white"|16 || GPIO_DFX4 || SPI2_MOSI || || || 346 |
|- | |- | ||
| || || || +3.3V || || style="background:yellow"|17 || || style="background:green; color:white"|18 || || UART2_RTS || || || | | || || || +3.3V || || style="background:yellow"|17 || || style="background:green; color:white"|18 || || UART2_RTS || || || | ||
Line 33: | Line 33: | ||
| || ISH_I2C1_DATA || ISH_SPI_MOSI || I2S5_TX || || style="background:green; color:white"|19 || ||style="background:black; color:white"|20 || || GND || || || | | || ISH_I2C1_DATA || ISH_SPI_MOSI || I2S5_TX || || style="background:green; color:white"|19 || ||style="background:black; color:white"|20 || || GND || || || | ||
|- | |- | ||
− | | || || ISH_SPI_MISO || I2S5_FS || ISH_GPIO9 || style="background:green; color:white"|21 || || style="background:green; color:white"|22 || || UART2_CTS || || || | + | | 334 || || ISH_SPI_MISO || I2S5_FS || ISH_GPIO9 || style="background:green; color:white"|21 || || style="background:green; color:white"|22 || || UART2_CTS || || || |
|- | |- | ||
− | | || ISH_I2C1_CLK || ISH_SPI_CLK || I2S5_RX || || style="background:green; color:white"|23 || || style="background:green; color:white"|24 || ISH_GPIO1 || I2S3_FS || || || | + | | || ISH_I2C1_CLK || ISH_SPI_CLK || I2S5_RX || || style="background:green; color:white"|23 || || style="background:green; color:white"|24 || ISH_GPIO1 || I2S3_FS || || || 332 |
|- | |- | ||
− | | || || || GND || || style="background:black; color:white"|25 || || style="background:green; color:white"|26 || ISH_GPIO4 || I2S4_CLK || || || | + | | || || || GND || || style="background:black; color:white"|25 || || style="background:green; color:white"|26 || ISH_GPIO4 || I2S4_CLK || || || 336 |
|- | |- | ||
| || || || I2C5_DATA || || style="background:blue; color:white"|27 || || style="background:blue; color:white"|28 || || I2C5_CLK || || || | | || || || I2C5_DATA || || style="background:blue; color:white"|27 || || style="background:blue; color:white"|28 || || I2C5_CLK || || || | ||
|- | |- | ||
− | | || || || I2S3_TX || ISH_GPIO2 || style="background:green; color:white"|29 || || style="background:black; color:white"|30 || || GND || || || | + | | 338 || || || I2S3_TX || ISH_GPIO2 || style="background:green; color:white"|29 || || style="background:black; color:white"|30 || || GND || || || |
|- | |- | ||
− | | || || || I2S3_RX || ISH_GPIO3 || style="background:green; color:white"|31 || || style="background:green; color:white"|32 || || PWM0 || || || | + | | 329 || || || I2S3_RX || ISH_GPIO3 || style="background:green; color:white"|31 || || style="background:green; color:white"|32 || || PWM0 || || || |
|- | |- | ||
− | | || || PWM1 || ISH_UART_TX || ISH_GPIO10 || style="background:green; color:white"|33 || || style="background:black; color:white"|34 || || GND || || || | + | | 229 || || PWM1 || ISH_UART_TX || ISH_GPIO10 || style="background:green; color:white"|33 || || style="background:black; color:white"|34 || || GND || || || |
|- | |- | ||
| || || || I2S1_FRM || || style="background:green; color:white"|35 || || style="background:green; color:white"|36 || || I2S1_CLK || || || | | || || || I2S1_FRM || || style="background:green; color:white"|35 || || style="background:green; color:white"|36 || || I2S1_CLK || || || | ||
Line 53: | Line 53: | ||
| || || || GND || || style="background:black; color:white"|39 || ||style="background:green; color:white"|40 || || I2S1_TX || || || | | || || || GND || || style="background:black; color:white"|39 || ||style="background:green; color:white"|40 || || I2S1_TX || || || | ||
|} | |} | ||
+ | |||
+ | =GPIO number= | ||
+ | |||
+ | GPIO is divided into multiple groups, different groups correspond to different bases, xx in GPIO Name Represents the number in the GPIO group, which corresponds to the offset one to one. For example, the GPIO '''N25''' is '''341+25=366'''. | ||
+ | |||
+ | [[File:GPIO-Number-cht.png]] |
Revision as of 11:12, 11 September 2020
ROCK Pi X > Hardware > gpio
General purpose input-output (GPIO) connector
ROCK Pi X has a 40-pin expansion header. Each pin is distinguished by color.
GPIO number | Function3 | Function2 | Function1 | GPIO | Pin# | Pin# | GPIO | Function1 | Function2 | Function3 | GPIO number | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
+3.3V | 1 | 2 | +5.0V | |||||||||
I2C2_SDA | 3 | 4 | +5.0V | |||||||||
I2C2_SCL | 5 | 6 | GND | |||||||||
335 | I2S3_CLK | ISH_GPIO0 | 7 | 8 | UART2_TX | |||||||
GND | 9 | 10 | UART2_RX | |||||||||
SPI2_CLK | UART0_TX | 11 | 12 | GPIO_DFX3 | C0_BPM3_TX | |||||||
SPI2_MISO | UART0_RX | 13 | 14 | GND | ||||||||
SPI2_CS0 | 15 | 16 | GPIO_DFX4 | SPI2_MOSI | 346 | |||||||
+3.3V | 17 | 18 | UART2_RTS | |||||||||
ISH_I2C1_DATA | ISH_SPI_MOSI | I2S5_TX | 19 | 20 | GND | |||||||
334 | ISH_SPI_MISO | I2S5_FS | ISH_GPIO9 | 21 | 22 | UART2_CTS | ||||||
ISH_I2C1_CLK | ISH_SPI_CLK | I2S5_RX | 23 | 24 | ISH_GPIO1 | I2S3_FS | 332 | |||||
GND | 25 | 26 | ISH_GPIO4 | I2S4_CLK | 336 | |||||||
I2C5_DATA | 27 | 28 | I2C5_CLK | |||||||||
338 | I2S3_TX | ISH_GPIO2 | 29 | 30 | GND | |||||||
329 | I2S3_RX | ISH_GPIO3 | 31 | 32 | PWM0 | |||||||
229 | PWM1 | ISH_UART_TX | ISH_GPIO10 | 33 | 34 | GND | ||||||
I2S1_FRM | 35 | 36 | I2S1_CLK | |||||||||
GPIO_DFX2 | C0_BPM2_TX | ISH_GPIO13 | 37 | 38 | I2S1_RX | |||||||
GND | 39 | 40 | I2S1_TX |
GPIO number
GPIO is divided into multiple groups, different groups correspond to different bases, xx in GPIO Name Represents the number in the GPIO group, which corresponds to the offset one to one. For example, the GPIO N25 is 341+25=366.