RSB-3730 UIO Test
From ESS-WIKI
Revision as of 07:07, 13 November 2023 by Xingxing.li (talk | contribs)
UIO-4030 Function
GPIO Pin | Number |
GPIO 1 | 150 |
GPIO 2 | 151 |
GPIO 3 | 152 |
GPIO 4 | 153 |
GPIO 5 | 85 |
GPIO 6 | 141 |
GPIO 7 | 506 |
GPIO 8 | 140 |
GPIO 9 | 511 |
GPIO 10 | 138 |
GPIO 11 | 0 |
GPIO 12 | 97 |
GPIO_Select | LOW (83) |
Note:
Device:ttymxc0 - COM_3, ttyUSB0 - COM_4(RS-485)
Need one Adam-4520I module for RS-485.
The test method is as follows
RS-232 U-boot setting:
RS-232(COM3)
GPIO-for example
Short GPIO pin1(in) 151 & pin6(out) 141
# echo 150 > /sys/class/gpio/export # echo 141 > /sys/class/gpio/export # echo in > /sys/class/gpio/gpio1/direction # echo out > /sys/class/gpio/gpio2/direction # echo 1 > /sys/class/gpio/gpio2/value # cat /sys/class/gpio/gpio1/value 0 # cat /sys/class/gpio/gpio2/value 1
RS-485
RS-485 U-boot Setting:
RS-485(COM4):