Difference between revisions of "Rock/extension header"
< Rock
(Created page with " __TOC__ Radxa Rock has two 2.54mm 40 pins(20*2) extension header on board, which includes GPIO, I2C, SPI, Line in, USB 2.0, PWM, ADC, LCD etc interfaces. You can easily conn...") |
|||
(17 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Rock_header}} | |
+ | {{Languages|rock/extension_header}} | ||
__TOC__ | __TOC__ | ||
− | Radxa Rock has two 2.54mm 40 pins(20*2) extension header on board, which includes GPIO, I2C, SPI, Line in, USB 2.0, PWM, ADC, LCD etc interfaces. You can easily connect the breadboard or other sensor board to the rock. | + | ==80 pin 2.54mm extension header== |
+ | Radxa Rock(pro/lite) has two 2.54mm 40 pins(20*2) extension header on board, which includes GPIO, I2C, SPI, Line in, USB 2.0, PWM, ADC, LCD etc interfaces. You can easily connect the breadboard or other sensor board to the rock. All the rock/rock pro/rock lite is compatible on the extension header, so it works on any hardware revision. | ||
+ | |||
+ | === Extension header as GPIO only === | ||
+ | [[File:extension_header_funca.png]] | ||
+ | |||
+ | === Other function on extension header=== | ||
+ | |||
+ | [[File:extension_header_funcb.png]] | ||
+ | |||
+ | Thanks [http://talk.radxa.com/topic/476/gpio-to-pinout-legend @zwanni] for the picture and the [http://dl.radxa.com/rock/docs/hw/GPIO.xlsx excel table]. | ||
+ | |||
+ | ===Full function table=== | ||
+ | {| class="wikitable" style="width:80%; white-space:nowrap" | ||
+ | ! colspan=8 | J8 <small>(Near USB host and RTC battery)</small> | ||
+ | |- | ||
+ | ! colspan=8 | USB Host | ||
+ | |- | ||
+ | ! 1 | ||
+ | | colspan=3 style="width:50%;" | ''Ground'' | ||
+ | ! 2 | ||
+ | | colspan=3 style="width:50%;" | VCC-5V | ||
+ | |- | ||
+ | ! 3 | ||
+ | | colspan=3 | HOST_DP2 | ||
+ | ! 4 | ||
+ | | colspan=3 | HOST_DM2 | ||
+ | |- | ||
+ | ! colspan=8 | Audio Input | ||
+ | |- | ||
+ | ! 5 | ||
+ | | colspan=3 | LINE Left | ||
+ | ! 6 | ||
+ | | colspan=3 | LINE Right | ||
+ | |- | ||
+ | ! colspan=8 | GPIO | ||
+ | |- | ||
+ | ! 7 | ||
+ | | colspan=3 | GPIO0_A7 | ||
+ | ! 8 | ||
+ | | colspan=3 | GPIO0_A6 | ||
+ | |- | ||
+ | ! 9 | ||
+ | | colspan=3 | GPIO0_B1 | ||
+ | ! 10 | ||
+ | | colspan=3 | GPIO0_A1 | ||
+ | |- | ||
+ | ! colspan=8 | PWM | ||
+ | |- | ||
+ | ! 11 | ||
+ | | PWM2 || colspan=2 | GPIO3_D5 | ||
+ | ! 12 | ||
+ | | PWM1 || colspan=2 | GPIO3_D4 | ||
+ | |- | ||
+ | ! colspan=8 | UART0 | ||
+ | |- | ||
+ | ! 13 | ||
+ | | UART0_RX || colspan=2 | GPIO1_A0 | ||
+ | ! 14 | ||
+ | | UART0_TX || colspan=2 | GPIO1_A1 | ||
+ | |- | ||
+ | ! 15 | ||
+ | | UART0_CTS || colspan=2 | GPIO1_A2 | ||
+ | ! 16 | ||
+ | | UART0_RTS || colspan=2 | GPIO1_A3 | ||
+ | |- | ||
+ | ! 17 | ||
+ | | colspan=3 | ''Ground'' | ||
+ | ! 18 | ||
+ | | colspan=3 | VCC-2.8V | ||
+ | |- | ||
+ | ! colspan=8 | SPI1 / UART3 / GPS | ||
+ | |- | ||
+ | ! 19 | ||
+ | | SPI1_CSN0 || colspan=2 | GPIO0_D7 | ||
+ | ! 20 | ||
+ | | UART3_RTSN || colspan=2 | GPIO1_B5 | ||
+ | |- | ||
+ | ! 21 | ||
+ | | SPI1_RX || colspan=2 | GPIO0_D4 (GPS_PWR) | ||
+ | ! 22 | ||
+ | | UART3_RX || GPIO1_B2 || GPS_MAG | ||
+ | |- | ||
+ | ! 23 | ||
+ | | SPI1_CLK (GPS_SCLK) || colspan=2 | GPIO0_D6 | ||
+ | ! 24 | ||
+ | | UART3_TX || GPIO1_B3 || GPS_SIG | ||
+ | |- | ||
+ | ! 25 | ||
+ | | colspan=3 | SARADC_ANI2 (GPS_LRADC) | ||
+ | ! 26 | ||
+ | | UART3_CTSN || GPIO1_B4 || GPS_CLK | ||
+ | |- | ||
+ | ! 27 | ||
+ | | colspan=3 | GPIO0_A5 | ||
+ | ! 28 | ||
+ | | colspan=2 | SPI1_TX (GPS_MOSI) || GPIO0_D5 | ||
+ | |- | ||
+ | ! colspan=8 | I2C | ||
+ | |- | ||
+ | ! 29 | ||
+ | | colspan=3 | ''Ground'' | ||
+ | ! 30 | ||
+ | | colspan=3 | VCCIO_WL | ||
+ | |- | ||
+ | ! 31 | ||
+ | | I2C0_SCL || colspan=2 | GPIO1_D1 | ||
+ | ! 32 | ||
+ | | I2C0_SDA || colspan=2 | GPIO1_D0 | ||
+ | |- | ||
+ | ! colspan=8 | ADC (Analog-to-digital converters) | ||
+ | |- | ||
+ | ! 33 | ||
+ | | colspan=3 | SARADC_ANI0 | ||
+ | ! 34 | ||
+ | | colspan=3 | SARADC_ANI1 (RECOVERY) | ||
+ | |- | ||
+ | ! colspan=8 | MISC | ||
+ | |- | ||
+ | ! 35 | ||
+ | | colspan=3 | POWER_SW | ||
+ | ! 36 | ||
+ | | colspan=3 | PWR_EN | ||
+ | |- | ||
+ | ! 37 | ||
+ | | colspan=3 | HSIC_DATA | ||
+ | ! 38 | ||
+ | | colspan=3 | HSIC_STROBE | ||
+ | |- | ||
+ | ! 39 | ||
+ | | colspan=3 | ''Ground'' | ||
+ | ! 40 | ||
+ | | colspan=3 | VDD-5V | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | {| class="wikitable" style="width:80%; white-space:nowrap" | ||
+ | ! colspan=8 | J12 <small>(Near Power Key and DC Jack)</small> | ||
+ | |- | ||
+ | ! colspan=8 | LCD | ||
+ | |- | ||
+ | ! 1 | ||
+ | | colspan=3 style="width:50%;" | ''Ground'' | ||
+ | ! 2 | ||
+ | | colspan=3 style="width:50%;" | LCDC0_D0 | ||
+ | |- | ||
+ | ! 3 | ||
+ | | colspan=3 | LCDC0_D1 | ||
+ | ! 4 | ||
+ | | colspan=3 | LCDC0_D2 | ||
+ | |- | ||
+ | ! 5 | ||
+ | | colspan=3 | LCDC0_D3 | ||
+ | ! 6 | ||
+ | | colspan=3 | LCDC0_D4 | ||
+ | |- | ||
+ | ! 7 | ||
+ | | colspan=3 | LCDC0_D5 | ||
+ | ! 8 | ||
+ | | colspan=3 | LCDC0_D6 | ||
+ | |- | ||
+ | ! 9 | ||
+ | | colspan=3 | LCDC0_D7 | ||
+ | ! 10 | ||
+ | | colspan=3 | LCDC0_D8 | ||
+ | |- | ||
+ | ! 11 | ||
+ | | colspan=3 | LCDC0_D9 | ||
+ | ! 12 | ||
+ | | colspan=3 | LCDC0_D10 | ||
+ | |- | ||
+ | ! 13 | ||
+ | | colspan=3 | LCDC0_D11 | ||
+ | ! 14 | ||
+ | | colspan=3 | LCDC0_D12 | ||
+ | |- | ||
+ | ! 15 | ||
+ | | colspan=3 | LCDC0_D13 | ||
+ | ! 16 | ||
+ | | colspan=3 | LCDC0_D14 | ||
+ | |- | ||
+ | ! 17 | ||
+ | | colspan=3 | LCDC0_D15 | ||
+ | ! 18 | ||
+ | | colspan=3 | LCDC0_D16 | ||
+ | |- | ||
+ | ! 19 | ||
+ | | colspan=3 | LCDC0_D17 | ||
+ | ! 20 | ||
+ | | colspan=3 | LCDC0_D18 | ||
+ | |- | ||
+ | ! 21 | ||
+ | | colspan=3 | LCDC0_D19 | ||
+ | ! 22 | ||
+ | | colspan=3 | LCDC0_D20 | ||
+ | |- | ||
+ | ! 23 | ||
+ | | colspan=3 | LCDC0_D21 | ||
+ | ! 24 | ||
+ | | colspan=3 | LCDC0_D22 | ||
+ | |- | ||
+ | ! 25 | ||
+ | | colspan=3 | LCDC0_D23 | ||
+ | ! 26 | ||
+ | | colspan=3 | LCDC0_HSYNC | ||
+ | |- | ||
+ | ! 27 | ||
+ | | colspan=3 | LCDC0_VSYNC | ||
+ | ! 28 | ||
+ | | colspan=3 | LCDC0_DE | ||
+ | |- | ||
+ | ! 29 | ||
+ | | colspan=3 | ''Ground'' | ||
+ | ! 30 | ||
+ | | colspan=3 | LCDC0_CLK | ||
+ | |- | ||
+ | ! colspan=8 | GPIO / PWM | ||
+ | |- | ||
+ | ! 31 | ||
+ | | colspan=3 | GPIO0_B0 (LCD_EN) | ||
+ | ! 32 | ||
+ | | colspan=3 | GPIO0_A2 (BL_EN) | ||
+ | |- | ||
+ | ! 33 | ||
+ | | PWM3 (LCD_BL) || colspan=2 | GPIO3_D6 | ||
+ | ! 34 | ||
+ | | SPI0_CSN1 || colspan=2 | GPIO1_B7 | ||
+ | |- | ||
+ | ! colspan=8 | SPI0 / UART1 | ||
+ | |- | ||
+ | ! 35 | ||
+ | | SPI0_CSN0 || GPIO1_A7 || UART1_RTSN | ||
+ | ! 36 | ||
+ | | SPI0_RXD || GPIO1_A4 || UART1_RX | ||
+ | |- | ||
+ | ! 37 | ||
+ | | SPI0_CLK || GPIO1_A6 || UART1_CTSN | ||
+ | ! 38 | ||
+ | | SPI0_TXD || GPIO1_A5 || UART1_TX | ||
+ | |- | ||
+ | ! 39 | ||
+ | | colspan=3 | VCC-5V | ||
+ | ! 40 | ||
+ | | colspan=3 | ''Ground'' | ||
+ | |} | ||
+ | |||
+ | == FPC extension header== | ||
+ | |||
+ | Rock Pro and Lite(2014 Mid) has three FPC header at the back of the board. | ||
+ | |||
+ | === LVDS connector=== | ||
+ | PIN number | ||
+ | |||
+ | {| class="wikitable" border="1" | ||
+ | |- | ||
+ | | Number | ||
+ | | 1 | ||
+ | | 2 | ||
+ | | 3 | ||
+ | | 4 | ||
+ | | 5 | ||
+ | | 6 | ||
+ | | 7 | ||
+ | | 8 | ||
+ | | 9 | ||
+ | | 10 | ||
+ | | 11 | ||
+ | | 12 | ||
+ | | 13 | ||
+ | | 14 | ||
+ | | 15 | ||
+ | | 16 | ||
+ | | 17 | ||
+ | | 18 | ||
+ | | 19 | ||
+ | | 20 | ||
+ | |- | ||
+ | | Name | ||
+ | | LED1+ | ||
+ | | LED2+ | ||
+ | | VGH | ||
+ | | CABCEN0 | ||
+ | | CABCEN1 | ||
+ | | VGL | ||
+ | | U/D | ||
+ | | L/R | ||
+ | | LED2- | ||
+ | | LED1- | ||
+ | | GND | ||
+ | | AVDD | ||
+ | | SELB | ||
+ | | DIMO | ||
+ | | NC | ||
+ | | GND | ||
+ | | NC | ||
+ | | NC | ||
+ | | GND | ||
+ | | RXIN3+ | ||
+ | |} | ||
+ | {| class="wikitable" border="1" | ||
+ | |- | ||
+ | | Number | ||
+ | | 21 | ||
+ | | 22 | ||
+ | | 23 | ||
+ | | 24 | ||
+ | | 25 | ||
+ | | 26 | ||
+ | | 27 | ||
+ | | 28 | ||
+ | | 29 | ||
+ | | 30 | ||
+ | | 31 | ||
+ | | 32 | ||
+ | | 33 | ||
+ | | 34 | ||
+ | | 35 | ||
+ | | 36 | ||
+ | | 37 | ||
+ | | 38 | ||
+ | | 39 | ||
+ | | 40 | ||
+ | |- | ||
+ | | Name | ||
+ | | RXIN3- | ||
+ | | GND | ||
+ | | RXCLKIN+ | ||
+ | | RXCLKIN- | ||
+ | | GND | ||
+ | | RX_IN2+ | ||
+ | | RX_IN2- | ||
+ | | GND | ||
+ | | RX_IN1+ | ||
+ | | RX_IN1- | ||
+ | | GND | ||
+ | | RX_IN0+ | ||
+ | | RX_IN0- | ||
+ | | GND | ||
+ | | STDBY | ||
+ | | RESET | ||
+ | | NC | ||
+ | | VDD | ||
+ | | VDD | ||
+ | | VCOM | ||
+ | |} | ||
+ | [[Category:Hardware]] |
Latest revision as of 04:13, 6 January 2015
Contents
80 pin 2.54mm extension header
Radxa Rock(pro/lite) has two 2.54mm 40 pins(20*2) extension header on board, which includes GPIO, I2C, SPI, Line in, USB 2.0, PWM, ADC, LCD etc interfaces. You can easily connect the breadboard or other sensor board to the rock. All the rock/rock pro/rock lite is compatible on the extension header, so it works on any hardware revision.
Extension header as GPIO only
Other function on extension header
Thanks @zwanni for the picture and the excel table.
Full function table
J8 (Near USB host and RTC battery) | |||||||
---|---|---|---|---|---|---|---|
USB Host | |||||||
1 | Ground | 2 | VCC-5V | ||||
3 | HOST_DP2 | 4 | HOST_DM2 | ||||
Audio Input | |||||||
5 | LINE Left | 6 | LINE Right | ||||
GPIO | |||||||
7 | GPIO0_A7 | 8 | GPIO0_A6 | ||||
9 | GPIO0_B1 | 10 | GPIO0_A1 | ||||
PWM | |||||||
11 | PWM2 | GPIO3_D5 | 12 | PWM1 | GPIO3_D4 | ||
UART0 | |||||||
13 | UART0_RX | GPIO1_A0 | 14 | UART0_TX | GPIO1_A1 | ||
15 | UART0_CTS | GPIO1_A2 | 16 | UART0_RTS | GPIO1_A3 | ||
17 | Ground | 18 | VCC-2.8V | ||||
SPI1 / UART3 / GPS | |||||||
19 | SPI1_CSN0 | GPIO0_D7 | 20 | UART3_RTSN | GPIO1_B5 | ||
21 | SPI1_RX | GPIO0_D4 (GPS_PWR) | 22 | UART3_RX | GPIO1_B2 | GPS_MAG | |
23 | SPI1_CLK (GPS_SCLK) | GPIO0_D6 | 24 | UART3_TX | GPIO1_B3 | GPS_SIG | |
25 | SARADC_ANI2 (GPS_LRADC) | 26 | UART3_CTSN | GPIO1_B4 | GPS_CLK | ||
27 | GPIO0_A5 | 28 | SPI1_TX (GPS_MOSI) | GPIO0_D5 | |||
I2C | |||||||
29 | Ground | 30 | VCCIO_WL | ||||
31 | I2C0_SCL | GPIO1_D1 | 32 | I2C0_SDA | GPIO1_D0 | ||
ADC (Analog-to-digital converters) | |||||||
33 | SARADC_ANI0 | 34 | SARADC_ANI1 (RECOVERY) | ||||
MISC | |||||||
35 | POWER_SW | 36 | PWR_EN | ||||
37 | HSIC_DATA | 38 | HSIC_STROBE | ||||
39 | Ground | 40 | VDD-5V |
J12 (Near Power Key and DC Jack) | |||||||
---|---|---|---|---|---|---|---|
LCD | |||||||
1 | Ground | 2 | LCDC0_D0 | ||||
3 | LCDC0_D1 | 4 | LCDC0_D2 | ||||
5 | LCDC0_D3 | 6 | LCDC0_D4 | ||||
7 | LCDC0_D5 | 8 | LCDC0_D6 | ||||
9 | LCDC0_D7 | 10 | LCDC0_D8 | ||||
11 | LCDC0_D9 | 12 | LCDC0_D10 | ||||
13 | LCDC0_D11 | 14 | LCDC0_D12 | ||||
15 | LCDC0_D13 | 16 | LCDC0_D14 | ||||
17 | LCDC0_D15 | 18 | LCDC0_D16 | ||||
19 | LCDC0_D17 | 20 | LCDC0_D18 | ||||
21 | LCDC0_D19 | 22 | LCDC0_D20 | ||||
23 | LCDC0_D21 | 24 | LCDC0_D22 | ||||
25 | LCDC0_D23 | 26 | LCDC0_HSYNC | ||||
27 | LCDC0_VSYNC | 28 | LCDC0_DE | ||||
29 | Ground | 30 | LCDC0_CLK | ||||
GPIO / PWM | |||||||
31 | GPIO0_B0 (LCD_EN) | 32 | GPIO0_A2 (BL_EN) | ||||
33 | PWM3 (LCD_BL) | GPIO3_D6 | 34 | SPI0_CSN1 | GPIO1_B7 | ||
SPI0 / UART1 | |||||||
35 | SPI0_CSN0 | GPIO1_A7 | UART1_RTSN | 36 | SPI0_RXD | GPIO1_A4 | UART1_RX |
37 | SPI0_CLK | GPIO1_A6 | UART1_CTSN | 38 | SPI0_TXD | GPIO1_A5 | UART1_TX |
39 | VCC-5V | 40 | Ground |
FPC extension header
Rock Pro and Lite(2014 Mid) has three FPC header at the back of the board.
LVDS connector
PIN number
Number | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
Name | LED1+ | LED2+ | VGH | CABCEN0 | CABCEN1 | VGL | U/D | L/R | LED2- | LED1- | GND | AVDD | SELB | DIMO | NC | GND | NC | NC | GND | RXIN3+ |
Number | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
Name | RXIN3- | GND | RXCLKIN+ | RXCLKIN- | GND | RX_IN2+ | RX_IN2- | GND | RX_IN1+ | RX_IN1- | GND | RX_IN0+ | RX_IN0- | GND | STDBY | RESET | NC | VDD | VDD | VCOM |