6. LW2 Programmer's Reference
UMX-HDMI-140 series– User's Manual
79
Applied firmware package: v1.3.0b5 | LDC software: v2.5.6b2
6.7. GPIO Configuration
6.7.1. Query the Level and Direction for Each Pins
Level and direction of the GPIO pins can be queried as follows. See more details about GPIO connector in
GPIO - General Purpose Input/Output Ports
section and about the interface in the
section.
Command and Response
#gpio
ȩ
{GPIO
<pin_number>
=?}
Ȩ
(GPIO
<pin_number>
=
<direction>
;
<level>
)CrLf
Parameters
Parameter
Parameter description
Value
Parameter value
<pin_number>
GPIO pin number
0 ...8
GPIO pin number 1 to 8
<direction>
Direction of the
communication
I
Input
O
Output
<level>
Level of the pin
L
Low
H
High
Example
ȩ
{gpio1=?}
Ȩ
(GPIO1=O;L)
Explanation
GPIO pin 1 is an input with low level.
6.7.2.
Setting of Level and Direction for Each Pins
GPIO pins can be configured as follows. See more details about GPIO connector in the
section and about the interface in the
section.
Command and Response
ȩ
{GPIO
<pin_number>
=
<direction>
;
<level>
}
Ȩ
(GPIO
<pin_number>
=
<direction>
;
<level>
)CrLf
Parameters
Parameter
Parameter description
Value
Parameter value
<pin_number>
GPIO pin number
0 ...8
GPIO pin number 1 to 8
<direction>
Direction of the
communication
I
Input
O
Output
<level>
Level of the pin
L
Low
H
High
T
Toggle
Example
ȩ
{gpio1=i;h}
Ȩ
(GPIO1=I;H)
Explanation
GPIO pin 1 is set to input with high level.