Hardware resources
一、Hardware interface description
Hardware interface introduction |
Label | name | illustrate |
【1】 | CPU | RK3399,A53,4*1.5GHz+A72,2*2GHz |
【2】 | DDR | K4E8E304EE-EGCF,LPDDR3,2GBytes |
【3】 | eMMC | KLMAG2GEND,16GB(4G,8G Optional) |
【4】 | RTC | RTC battery holder, CR1202 |
【5】 | UART | UART4, TTL level interface |
【6】 | BEEP | buzzer |
【7】 | UART2 | Serial port 2, default debugging serial port, RS232 level |
【8】 | SPDIF | Fiber output interface |
【9】 | DC Block | 5V DC power input |
【10】 | POWER | Power button |
【11】 | Independent button | Volume up, used as Recovery key during upgrade |
【12】 | Independent button | Volume down |
【13】 | Independent button | return key |
【14】 | Independent button | menu |
【15】 | MIPI CSI | MIPI Camera interface |
【16】 | MIPI CSI+DSI | MIPI camera interface and DSI interface, can be connected to dual MIPI screens |
【17】 | MIPI DSI | The screen connected to the MIPI interface |
【18】 | RESET | Reset button |
【19】 | HDMI | HDMI Output Interface |
【20】 | TYPEC | TYPEC interface,Compatible with OTG function |
【21】 | USB3.0 interface | USB HOST3.0 interface |
【22】 | USB HOST | HOST2.0 interface,RK3399 Bring your own |
【23】 | USB HOST | HUB Chip expansion, two HOST2.0 interface |
【24】 | TF card | TF card socket |
【25】 | EDP | EDP interface |
【26】 | SIM card slot | 3G, 4G mobile phone card slot |
【27】 | LED lights | Four programmable LED lights |
【28】 | Headphone holder | Headphone output |
【29】 | Speaker interface | External dual channel speakers |
【30】 | Speaker interface | External dual channel speakers |
【31】 | MIC | Headset, recording input |
【32】 | Camera interface | Standard 24PIN camera interface |
【33】 | Gigabit Ethernet | RT8211E interface |
【34】 | WIFI/BT | AP6354 WIFI/BT Two-in-one module |
【35】 | Infrared receiver | HS0038 infrared integrated receiver |
二、Expansion interface definition::
Pin number | Signal | type | describe |
1 | GPIO4_A3/I2S1_SCLK | GPIO Or I2S serial clock |
|
2 | GPIO4_A7/I2S1_SDO0 | GPIO Or I2S data output |
|
3 | GPIO4_A6/I2S1_SDI0 | GPIO Or I2S data input |
|
4 | GPIO4_A5/I2S1_LRCK_TX | GPIO Or I2S frame clock |
|
5 | GPIO4_A4/I2S1_LRCK_RX | GPIO Or I2S frame clock |
|
6 | GPIO4_A1/I2C1_SDA | GPIO or I2C1 data |
|
7 | GPIO4_A2/I2C1_SCL | GPIO or I2C1 clock |
|
8 | GPIO4_A0/I2S_CLK | GPIO or I2S master clock |
|
9 | GPIO3_D0/I2S0_SCLK | GPIO or I2S serial clock |
|
10 | GPIO3_D1/I2S0_LRCK_RX | GPIO or I2S frame clock |
|
11 | GPIO3_D2/I2S0_LRCK_TX | GPIO or I2S frame clock |
|
12 | GPIO3_D3/I2S0_SDI0 | GPIO or I2S data input |
|
13 | GPIO3_D4/I2S0_SDI1 | GPIO or I2S data input |
|
14 | GPIO3_D7/I2S0_SDO0 | GPIO or I2S data output |
|
15 | GPIO3_D6/I2S0_SDO1 | GPIO or I2S data output |
|
16 | GPIO3_D5/I2S0_SDO2 | GPIO or I2S data output |
|
17 | GPIO4_D4 | GPIO |
|
18 | ADC_IN2 | ADC enter |
|
19 | GPIO2_C4/SDIO0_D0/ SPI5_RXD | GPIO or SDIO interface or |
|
20 | GPIO2_C5/SDIO0_D1/ SPI5_TXD | GPIO or SDIO Interface or SPI interface |
|
21 | GPIO2_C6/ SDIO0_D2/SPI5_CLK | GPIO or SDIO interface or SPI interface |
|
22 | GPIO2_C7/ SDIO0_D3/ SPI5_CSn0 | GPIO or SDIO interface or SPI interface |
|
23 | GPIO2_D0/SDIO0_CMD | GPIO or SDIO interface |
|
24 | GPIO2_D1/SDIO0_CLK | GPIO or SDIO interface |
|
25 | GPIO2_C3/UART0_RTS | GPIO or serial port 0 |
|
26 | GPIO2_C1/UART0_TXD | GPIO or serial port 0 |
|
27 | GPIO2_C2/UART0_CTS | GPIO or serial port 0 |
|
28 | GPIO2_C0/UART0_RXD | GPIO or serial port 0 |
|
29 | PMU_RESET | Reset pin |
|
30 | GPIO4_D6 | GPIO |
|
31 | GPIO4_D1 | GPIO |
|
32 | GPIO4_D3 | GPIO |
|
33 | GPIO4_C6/PWM1_d | GPIO j or PWM1 |
|
34 | PMIC_EXT_EN | PMU Enable pin |
|
35 | RTC_CLKO_WIFI | 32768Hz Clock output |
|
36 | Camera_RST_L | GPIO2_D3 |
|
37 | VCC_RTC | RTC power input | Power input 2.5 to 3V |
38 | GPIO4_C2/PWM0 | GPIO or PWM0 |
|
39 | GPIO2_D4 | GPIO |
|
40 | GPIO4_D2 | GPIO |
|
41 | GPIO4_D5 | GPIO |
|
42 | VCC3V3_S5 | Secondary 3.3V power input | 3.3V input, current is not less than 300mA |
43 | GPIO4_C5/SPDIF_TX | GPIO Or fiber output |
|
44 | GPIO4_C3/UART2DBG_RX | GPIO Or UART2 |
|
45 | GPIO4_C4/UART2DBG_TX | GPIO Or UART2 |
|
46 | GPIO4_C0/ I2C3_SDA/UART2_RX | GPIO Or I2C3 data or serial port 2 |
|
47 | GPIO4_C1/ I2C3_SCL/ UART2_TX | GPIO Or I2C3 data or serial port 2 |
|
48 | GPIO4_C7/HDMI_CEC | GPIO or HDMI CEC function |
|
49 | HDMI_HPD | HDMI hot plug detection pin |
|
50 | VCC_CHAREG_EN | PMIC enable |
|
51 | VCC3V3_SYS | Main 3.3V power input | 3.3V input, power supply is not less than 4.3A |
52 | VCC3V3_SYS | Main 3.3V power input | 3.3V input, power supply is not less than 4.3A |
53 | GND | Reference place |
|
54 | MIPI_TX1/RX1_D0N | DSI/CSI interface |
|
55 | MIPI_TX1/RX1_D0P | DSI/CSI interface |
|
56 | MIPI_TX1/RX1_D1N | DSI/CSI interface |
|
57 | MIPI_TX1/RX1_D1P | DSI/CSI interface |
|
58 | MIPI_TX1/RX1_CLKN | DSI/CSI interface |
|
59 | MIPI_TX1/RX1_CLKP | DSI/CSI interface |
|
60 | MIPI_TX1/RX1_D2N | DSI/CSI interface |
|
61 | MIPI_TX1/RX1_D2P | DSI/CSI interface |
|
62 | MIPI_TX1/RX1_D3N | DSI/CSI interface |
|
63 | MIPI_TX1/RX1_D3P | DSI/CSI interface |
|
64 | MIPI_RX0_D3N | CSI interface |
|
65 | MIPI_RX0_D3P | CSI interface |
|
66 | MIPI_RX0_D2N | CSI interface |
|
67 | MIPI_RX0_D2P | CSI interface |
|
68 | MIPI_RX0_CLKN | CSI interface |
|
69 | MIPI_RX0_CLKP | CSI interface |
|
70 | MIPI_RX0_D1N | CSI interface |
|
71 | MIPI_RX0_D1P | CSI interface |
|
72 | MIPI_RX0_D0N | CSI interface |
|
73 | MIPI_RX0_D0P | CSI interface |
|
74 | MIPI_TX0_D3N | CSI interface |
|
75 | MIPI_TX0_D3P | CSI interface |
|
76 | MIPI_TX0_D2N | CSI interface |
|
77 | MIPI_TX0_D2P | CSI interface |
|
78 | MIPI_TX0_CLKN | CSI interface |
|
79 | MIPI_TX0_CLKP | CSI interface |
|
80 | MIPI_TX0_D1N | CSI interface |
|
81 | MIPI_TX0_D1P | CSI interface |
|
82 | MIPI_TX0_D0N | CSI interface |
|
83 | MIPI_TX0_D0P | CSI interface |
|
84 | GND | Reference place |
|
85 | HDMI_TXCN | HDMI output interface |
|
86 | HDMI_TXCP | HDMI output interface |
|
87 | HDMI_TX0N | HDMI output interface |
|
88 | HDMI_TX0P | HDMI output interface |
|
89 | HDMI_TX1N | HDMI output interface |
|
90 | HDMI_TX1P | HDMI output interface |
|
91 | HDMI_TX2N | HDMI output interface |
|
92 | HDMI_TX2P | HDMI output interface |
|
93 | TYPEC0_SBU1_DC | TYPEC interface |
|
94 | TYPEC0_SBU2_DC | TYPEC interface |
|
95 | TYPEC0_SBU2 | TYPEC interface |
|
96 | TYPEC0_SBU1 | TYPEC interface |
|
97 | TYPEC0_RX1N | TYPEC interface |
|
98 | TYPEC0_RX1P | TYPEC interface |
|
99 | TYPEC0_TX1P | TYPEC interface |
|
100 | TYPEC0_TX1N | TYPEC interface |
|
101 | TYPEC0_RX2N | TYPEC interface |
|
102 | TYPEC0_RX2P | TYPEC interface |
|
103 | TYPEC0_TX2P | TYPEC interface |
|
104 | TYPEC0_TX2N | TYPEC interface |
|
105 | TYPEC0_DM | TYPEC interface |
|
106 | TYPEC0_DP | TYPEC interface |
|
107 | USB3_SSTXP | USB3.0 interface | TYPEC, USB3.0 multiplexing pin |
108 | USB3_SSTXN | USB3.0 interface | TYPEC, USB3.0 multiplexing pin |
109 | USB3_SSRXP | USB3.0 interface | TYPEC, USB3.0 multiplexing pin |
110 | USB3_SSRXN | USB3.0 interface | TYPEC, USB3.0 multiplexing pin |
111 | TYPEC0_U2VBUSDET | TYPECinterface |
|
112 | ADC_IN1 | ADC1 input pin | The reference level is 1.8V |
113 | ADC_IN0 | ADC0 input pin | The reference level is 1.8V |
114 | USB3_DM | USB3.0 interface | TYPEC, USB3.0 multiplexing pin |
115 | USB3_DP | USB3.0 interface | TYPEC, USB3.0 multiplexing pin |
116 | HOST0_DM | USB3.0 interface |
|
117 | HOST0_DP | USB3.0 interface |
|
118 | HOST1_DM | USB3.0 interface |
|
119 | HOST1_DP | USB3.0 interface |
|
120 | VCC1V8_S3 | 1.8V power output | The voltage is 0 during sleep |
121 | POWER_KEY | PMU enable pin | Low level enable |
122 | GPIO2_D2 | GPIO |
|
123 | GPIO0_A4 | GPIO |
|
124 | GPIO0_B2 | GPIO |
|
125 | GPIO0_B1 | GPIO |
|
126 | GPIO0_A3 | GPIO |
|
127 | GPIO4_B4/SDMMC0_CLK | GPIO or SDIO interface |
|
128 | GPIO4_B3/SDMMC0_D3 | GPIO or SDIO interface |
|
129 | GPIO4_B2/SDMMC0_D2 | GPIO or SDIO interface |
|
130 | GPIO4_B1/SDMMC0_D1 | GPIO or SDIO interface |
|
131 | GPIO4_B0/SDMMC0_D0 | GPIO or SDIO interface |
|
132 | GPIO4_B5/SDMMC0_CMD | GPIO or SDIO interface |
|
133 | GPIO0_A7/SDMMC0_DET | GPIO or SDIO interface |
|
134 | GPIO0_A1 | GPIO |
|
135 | EDP_TX3P | EDP interface |
|
136 | EDP_TX3N | EDP interface |
|
137 | EDP_TX2P | EDP interface |
|
138 | EDP_TX2N | EDP interface |
|
139 | EDP_TX1P | EDP interface |
|
140 | EDP_TX1N | EDP interface |
|
141 | EDP_TX0P | EDP interface |
|
142 | EDP_TX0N | EDP interface |
|
143 | EDPAUXP | EDP interface |
|
144 | EDPAUXN | EDP interface |
|
145 | GPIO4_D0 | GPIO |
|
146 | GPIO0_B3 | GPIO |
|
147 | GPIO0_B0 | GPIO |
|
148 | GPIO1_A1 | GPIO |
|
149 | GPIO1_A0 | GPIO |
|
150 | GPIO1_B4/I2C4_SCL | GPIO or I2C interface |
|
151 | GPIO1_B3/I2C4_SDA | GPIO or I2C interface |
|
152 | GPIO0_A2/RK3399_26M_OUT | GPIO port or 26M clock output pin |
|
153 | GPIO0_B4 | GPIO |
|
154 | GPIO0_B5 | GPIO |
|
155 | GPIO0_A6/ | GPIO or PWM interface | The default is infrared receiving port |
156 | GPIO1_C7 | GPIO |
|
157 | GPIO1_A4 | GPIO |
|
158 | GPIO1_A3 | GPIO |
|
159 | GPIO1_B5 | GPIO |
|
160 | GPIO1_A2 | GPIO |
|
161 | GPIO1_B0/SPI1_TXD | GPIO or SPI interface |
|
162 | GPIO1_B2/SPI1_CSn0 | GPIO or SPI interface |
|
163 | GPIO1_B1/SPI1_CLK | GPIO or SPI interface |
|
164 | GPIO1_A7/SPI1_RXD | GPIO or SPI interface |
|
165 | GPIO1_C2/SPI3_CSn0 | GPIO or SPI interface |
|
166 | GPIO1_C4/I2C8_SDA | GPIO or SPI interface |
|
167 | GPIO1_D0 | GPIO |
|
168 | GPIO1_C6 | GPIO |
|
169 | GPIO2_B3/ SPI2_CLK/ CIF_CLKO | GPIO or SPI interface or parallel camera interface |
|
170 | GPIO2_B0/ I2C7_SCL/ CIF_VSYNC | GPIO or SPI interface or parallel camera interface |
|
171 | GPIO2_A7/ I2C7_SDA/ CIF_D7 | GPIO or SPI interface or parallel camera interface |
|
172 | GPIO2_A6/CIF_D6 | GPIO or parallel camera |
|
173 | GPIO2_A5/CIF_D5 | GPIO or parallel camera |
|
174 | GPIO2_A4/CIF_D4 | GPIO or parallel camera |
|
175 | GPIO2_A3/CIF_D3 | GPIO or parallel camera |
|
176 | GPIO2_A2/CIF_D2 | GPIO or parallel camera |
|
177 | GPIO2_A1/ I2C2_SCL/CIF_D1 | GPIO or I2C interface or parallel camera interface |
|
178 | GPIO2_A0/ I2C2_SDA/CIF_D0 | GPIO or I2C interface or parallel camera interface |
|
179 | GPIO2_B4/SPI2_CSn0 | GPIO or SPI interface |
|
180 | GPIO2_B1/ I2C6_SDA/CIF_HREF | GPIO or I2C interface or parallel camera interface |
|
181 | GPIO2_B2/ I2C6_SCL/ CIF_CLKI | GPIO or I2C interface or parallel camera interface |
|
182 | GND | Reference place |
|
183 | GPIO3_B6/ MAC_RXCLK/UART3_RX | GPIO or Gigabit Ethernet interface or serial port |
|
184 | GPIO3_B3/ MAC_MCLK/ I2C5_SCL | GPIO or Gigabit Ethernet interface or I2C interface |
|
185 | GPIO3_B0/ MAC_MDC/ SPI0_CSn1 | GPIO or Gigabit Ethernet interface or SPI interface |
|
186 | GPIO3_A3/ MAC_RXD3/ SPI4_CSn0 | GPIO or Gigabit Ethernet interface or SPI interface |
|
187 | GPIO3_A2/ MAC_RXD2/ SPI4_CLK | GPIO or Gigabit Ethernet interface or SPI interface |
|
188 | GPIO3_A7/ MAC_RXD1/ SPI0_CSn0 | GPIO or Gigabit Ethernet interface or SPI interface |
|
189 | GPIO3_A6/ MAC_RXD0/ SPI0_CLK | GPIO or Gigabit Ethernet interface or SPI interface |
|
190 | GPIO3_C0/ MAC_COL/ UART3_CTSn/ SPDIF_TX | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
191 | GPIO3_C1/ MAC_TXCLK/ UART3_RTSn | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
192 | GPIO3_B2/ MAC_RXER/ I2C5_SDA | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
193 | GPIO3_B7/ MAC_CRS/ UART3_TX | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
194 | GPIO3_A4/ MAC_TXD0 SPI0_TXD | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
195 | GPIO3_A5/ MAC_TXD1/ SPI0_TXD | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
196 | GPIO3_A0/ MAC_TXD2/ SPI4_RXD | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
197 | GPIO3_A1/MAC_TXD3/SPI4_TXD | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
198 | GPIO3_B4/ MAC_TXEN/ UART1_RX | GPIO or Gigabit Ethernet interface or serial port or optical fiber interface |
|
199 | GPIO3_B5/ MAC_MDIO/ UART1_TX | GPIO or Gigabit Ethernet interface or serial port |
|
200 | GPIO3_B1/ MAC_RXDV | GPIO or Gigabit Ethernet |
|
三、Hardware interface
1. Power switch and socket
LQ3399 uses 5V DC power supply. The socket in the picture is a 5V DC power input socket. Be careful not to exceed 5.5V. Although the power chip NB680GD on the baseboard supports 5 to 24V input, other peripherals on the baseboard are also directly powered from here, so If the voltage is too large, it will burn out a bunch of peripheral chips on the bottom board
2. Debugging serial port LQ3399 reserves a RS232 serial port UART2 for debugging, and a common TTL serial port UART4.
Note that UART2 is used as the debug serial port by default, and the user can adjust the debug serial port by modifying the program.
3. HDMI interface
The LQ3399 development board adopts the miniHDMI interface, and with the miniHDMI extension cable, it can perfectly present the audio and video signals on the monitoring terminal that supports the HDMI2.0 protocol, such as TVs, monitors, etc.
4. camera
This interface is a universal 24PIN camera interface, which supports the full range of OV cameras, eliminating the need for the camera adapter board. For different types of cameras, just adjust the output voltage according to the specifications of the camera. This interface is a universal 30PIN MIPI camera interface. If a flash is connected to the camera, it can support the function of the flash.
5. Ethernet interface
LQ3399 supports Gigabit wired Ethernet interface, onboard RTL8211E, users can surf the Internet through wired Ethernet, and experience the extremely fast network.
6 Headphone jack
Connect earphones to this interface to realize earphone output. Of course, it can also be directly sent to the power amplifier input through this interface, such as the audio input port of a home theater, so that the audio signal of the development board can be displayed through the home theater.
7. Speaker interface: The development board directly supports dual-channel 2W speaker output. Connect the speaker to the above interface to achieve speaker output.
8. Recording interface
The development board supports recording input. The headset has been directly loaded on the development board, no need to input through an external headset.
9. TF card slot
LQ3399 leads to an external TF card, which can be used to upgrade the TF card or store some multimedia files.
10. Independent buttons
LQ3399 has six buttons in total, including four independent buttons, a POWER button and a reset button. Independent keys obtain key values through ADC sampling. In the schematic diagram, the corresponding relationship is as follows:
switch
Function
VOL+
Volume plus key
VOL-
Volume down key
ESC
return key
MENU
menu
POWER
Power button
RESET
Reset button
11. TYPEC interface
The TYPEC interface is a brand-new standard interface, which has the functions of fast transmission rate, large output voltage, two-way insertion and two-way transmission. This interface not only supports the traditional USB OTG for program programming and synchronization functions, but it can also drive HDMI, EDP, MIPI screens, the maximum voltage can reach 20V, to achieve the function of fast charging. It is foreseeable that it will be the mainstream of the USB interface in the future.
12. USB HOST interface
RK3399 comes with two USB HOST2.0 interfaces and two TYPEC interfaces, one of which is TYPEC, which is used as a USB3.0 interface on x3399. The leftmost interface in the figure above corresponds to USB3.0. The vertical USB socket on the right side of USB3.0 is a USB HOST2.0 interface that comes with RK3399, and there is a double-layer USB HOST interface on the right. It is another USB HOST2.0 interface that comes with RK3399 and is converted by a HUB chip. Come. Such a rich HOST interface is believed to have satisfied most of the application scenarios.
13. Power button
After connecting the external power adapter, press and hold the POWER button to turn it on. After entering the android system, touch the POWER button to sleep, and press the POWER button again to wake up. Long press the POWER button to display the shutdown interface, and follow the on-screen instructions to shut down.
14. Reset button. When the system is running, lightly press the RESET button to restart the development board to realize the function of hard reset.
15. Recovery button
The volume up button is used as the Recovery button during programming. You need to press this button to enter the recovery mode when flashing.
16. LCD interface
The LQ3399 development board has a 30PIN DSI interface by default, and the MIPI related signals are connected to the LCD control board through a flexible cable to control the LCD. At the same time, the 12th pin of the 30PIN interface is the PWM pin, which is used to control the backlight of the LCD, and realize multi-level backlight brightness adjustment through PWM. At the same time, it also leads to I2C for capacitive touch and interrupt and wake-up signals.
By default, RK3399 supports dual MIPI LCD control output function, which can drive 2K or even 4K screens. On the LQ3399, a dual-screen MIPI interface is also reserved. When you need to drive a screen with dual MIPI interfaces, just connect this interface. In addition, an EDP interface is reserved on the LQ3399 development board, which can also drive high-resolution screens.
17. Backup battery
The backup battery is used to ensure that the RTC can still work after the power is off, to ensure that the system time is not lost.
18. Buzzer
The buzzer is an active buzzer, it will beep when there is a direct current, and the power supply is controlled by a transistor to turn on and off. The hardware circuit controls the triode through a PWM, which can be used for PWM test or for sound prompts on appropriate occasions.
19. Infrared integrated receiver
The HS0038B integrated receiver is used here, which has the advantages of high sensitivity and convenient use. We can use it to realize wireless remote control and use the LQ3399 development board as a high-performance quad-core set-top box.
20. Optical fiber interface
The sound on the LQ3399 development board can not only be output through speakers, earphones, and HDMI, but also through optical fiber output to restore the most authentic sound. Connect to a high-fidelity speaker with an optical input interface through an optical fiber cable, and you can listen to the most realistic sound.
21. SIM card interface
There is a PCIE socket on the back of the LQ3399 development board, which is used to connect the 3G and 4G communication modules of the PCIE interface. Of course, when using 3G and 4G, you need to insert the corresponding mobile phone card into this SIM card slot.
22. WIFI Bluetooth module
The LQ3399 development board comes standard with a SDIO interface WIFI/BT module with 2.4G and 5G dual-band WIFI. The left and upper sides of the above figure are the corresponding PCB antennas of the module.