Gpio; Gpio Pins; Gpio Loopback Test (Using Gpio2 And Gpio4 As Examples) - Advantech ROM-2620 User Manual

Nxp i.mx 8ulp 1200 cortex® -a35 osm 1.1 computer-on-module
Hide thumbs Also See for ROM-2620:
Table of Contents

Advertisement

3.10

GPIO

3.10.1

GPIO Pins

Table 3.1: GPIO1101 (Pin Header)
Pin
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
GPIO8
GPIO9
GPIO10
GPIO11
GPIO12
GPIO13
GPIO14
GPIO15
GPIO16
GPIO17
GPIO18
GPIO19
GPIO20
3.10.2
GPIO Loopback Test (Using GPIO1 and GPIO2 as examples)
Step 1: Connect GPIO1 and GPIO2
Step 2: Export GPIO interface
# echo 416 > /sys/class/gpio/export
# echo 417 > /sys/class/gpio/export
Step 3: Set GPIO direction
# echo out > /sys/class/gpio/gpio1/direction
# echo in > /sys/class/gpio/gpio2/direction
Step 4: Read value and set output value than check
# cat /sys/class/gpio/gpio2/value 0
# echo 1 > /sys/class/gpio/gpio1/value
# cat /sys/class/gpio/gpio2/value
1
Numbers
416
417
418
419
420
428
434
435
436
437
(Use for SDIO)
438
(Use for M2_UART)
439
(Use for M2_UART)
448
449
140
141
193
199
(Use for LVDS_RST)
454
485
42
ROM-2620 User Manual

Advertisement

Table of Contents
loading

Table of Contents