XM1630S Software Reference Manual
No. XM1630S-A00-104
xmodus swiss GmbH
25 / 32
set_ddr:
set_ddr [4,5] [i/o]
=
Set port type of Ports 4,5
Ports: 4,5
Type: i = input / o = output
Example:
set_ddr 4 o<cr>
/ Port 4 is defined as output
get_ddr:
get_ddr [4,5]
= Read type of port 4,5
Example:
get_ddr 4<cr>
/ Answer: Port direction:INPUT
read_port:
read_port [0..5]
= Read input status of ports 0..5.
Example:
read_port 0<cr>
/ Answer: Port state: 1
write_port :
write_port [0..5][0,1]
= Write status of ports 0..5 with 0/1.
Example:
write_port 5 1<cr>
= Status of port 5 = 1
set_ddr 5 o<cr>
= type of port 5 = output
read_adc:
read_adc [6..8]
= Read ADC input of ports 6..8.