MTD2000 AT Command Guide R12
Confidential
DAVISCOMMS (S) PTE LTD
68 /105
18 Digital IO Command
18.1 Port Configuration – AT$PC
This command will set the four programmable digital IO ports to either input or output
port. There are total 8 IO ports in which port 1 to 4 are input port and port 5 to 8 are
programmable IO port which can be configured as either input or output port.
Note:
1. Port 3 cannot be used if driver ID option is hardware configured in factory.
2. Port 4 is typically used to connect to the ignition switch as it comes with a key on
reset feature, which allows the hardware reset button to take effect only if ignition is
switched on.
Syntax
Command
Response
AT$PC=<Configuration>
Note: Write setting.
OK
AT$PC?
Note: Query setting.
OK
$PC: <Configuration>
Parameters
Configuration
Port configuration in hexadecimal (00 to FF) with LSB and
MSB as port 1 and port 8 respectively, only port 5 to 8 are
effective.
0 – Output port
1 – Input port
Default port configuration is as follows: port 1 to 8 are input
port.
Bit presentation for ports:
Bit #
7
6
5
4
3
2
1
0
Port #
8
7
6
5
4
3
2
1
Example