6. LW2 Programmer's Reference
UMX-HDMI-140 series– User's Manual
68
Applied firmware package: v1.2.0 | LDC software: v2.4.1b7
6.6.2.
RS-232 Parameters Settings
The parameters of local RS -232 port can be set as follows.
Command and Response
ȩ
{RS232_LOCAL_FORMAT=
<BaudRate>
;
<DataBit>
;
<Parity>
;
<StopBit>
}
Ȩ
(RS232_LOCAL_FORMAT=
<BaudRate>
;
<DataBit>
;
<Parity>
;
<StopBit>
)CrLf
Parameters
Parameter
Parameter description
Value
Parameter value
<BaudRate>
Baud rate
X
No change
4800
4800
7200
7200
9600
9600
14400
14400
19200
19200
38400
38400
57600
57600
115200
115200
<DataBit>
Data bit
X
No change
8
8
9
9
<Parity>
Parity
X
No change
N
None
E
Even
O
Odd
<StopBit>
Stop Bit
X
No change
1
1
1,5
1,5
2
2
Example
ȩ
{rs232_local_format=9600;8;O;X}
Ȩ
(RS232_LOCAL_FORMAT=9600;8;O;X)
Explanation
RS -232 port is set as the following: the baud rate to 9600, data bit to 8, parity to odd, and stop bit is not
changed, remained 1.
INFO:
The actual RS-232 parameters can be queried by the {RS232_LOCAL_FORMAT=?} command.
6.6.3.
RS-232 Control Protocol Port Setting
The control protocol of local RS -232 port can be set as follows.
Command and Response
#protocol
ȩ
{RS232_LOCAL_PROT=
<protocol>
}
Ȩ
(RS232_LOCAL_PROT=
<protocol>
)CrLf
Parameters
Parameter
Parameter description
Value
Parameter value
<protocol>
RS-232 control protocol
LW2
LW2 control protocol
LW3
LW3 control protocol
Example
ȩ
{rs232_local_prot=lw2}
Ȩ
(RS232_LOCAL_PROT=LW2)
INFO:
The actual RS-232 parameters can be queried by the {RS232_LOCAL_PROT=?} command.
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.