MTD2000 AT Command Guide R12
Confidential
DAVISCOMMS (S) PTE LTD
69 /105
Command
Response
AT$PC=3F
Note: Set port 7 and 8 to output port and
the rest to input ports.
OK
AT$PC?
Note: Query port configuration.
OK
$PC: 3F
18.2 Output Port Default – AT$PD
This command will set the default value of output ports upon power. It is recommended
to set the output port to LOW for power saving if the output port is not used.
Note:
1. If the output port is used as current source, the current direction is from device to the
load when output is set to HIGH (activate output). In this case, set the output to
LOW will deactivate the output.
2. If the output port is used as current sink, the current direction is from load to the
device when output is set to LOW (activate output). In this case, set the output to
HIGH will deactivate the output.
Syntax
Command
Response
AT$PD=<Value>
Note: Write setting.
OK
AT$PD?
Note: Query setting.
OK
$PD: <Value>
Parameters
Value
Output port default value in hexadecimal (00 to FF) with LSB
and MSB as port 1 and port 8 respectively, only output ports
are effective. Default is 0 (LOW).
0 – LOW
1 – HIGH
Port 1 to 4 are input ports, port 5 to 8 can be input or output
port depending on the port configuration.
Bit presentation for ports: