![Avnet MaaXBoard Nano Скачать руководство пользователя страница 30](http://html.mh-extra.com/html/avnet/maaxboard-nano/maaxboard-nano_user-manual_3033013030.webp)
MaaXBoard-Nano-Linux-Yocto-Lite-UM-V1.0
http://www.embest-tech.com
30
3.13 UART
MaaXBoard Nano supports 2 UART interface.
MaaXBoard Nano (CPU)
Interface Type
UART2
UART TTL (Debug Interface)
UART4
UART TTL
3.13.1 UART 4
In the Yocto system, the node for UART4 is /dev/ttymxc3. Users could also write their own applications to
control the uart.
3.14 Control 40 Pin Interface
This chapter will provide the Control methods of 40 Pin interface, include GPIO, I2C and SPI.
3.14.1 GPIO
System use /sys/class/gpio to control the GPIO pin, refer to the following table:
Table: GPIO corresponding relation table
GPIO
number
PINMUX
Function
PIN
PIN
Function
PINMUX
GPIO
number
3.3V
1
2
5V
145
GPIO5_IO17
SDA1
3
4
5V
146
GPIO5_IO18
SCL1
5
6
GND
130
GPIO5_IO2
GPIO
7
8
UART_TX
GPIO5_IO25
153
GND
9
10
UART_RX
GPIO5_IO24
152
130
GPIO5_IO2
GPIO
11
12
GPIO/PCM_CLK
GPIO5_IO0
128
125
GPIO4_IO29
GPIO
13
14
GND
124
GPIO4_IO28
GPIO
15
16
GPIO
GPIO5_IO28
156
3.3V
17
18
GPIO
GPIO5_IO29
157
135
GPIO5_IO7
MOSI
19
20
GND
136
GPIO5_IO8
MISO
21
22
GPIO
GPIO2_IO8
40
134
GPIO5_IO6
SCLK
23
24
CE0
GPIO5_IO9
137
GND
25
26
CE1
GPIO5_IO5
133
147
GPIO5_IO19
SDA0
27
28
SCL0
GPIO5_IO18
146
15
GPIO1_IO15
GPIO/GPCLK
29
30
GND
1
GPIO1_IO1
GPIO/GPCLK
31
32
GPIO/PWM1
GPIO5_IO4
132