User's Manual

Confidential Document
Page 19 of 28
5
5
.
.
A
A
T
T
$
$
I
I
O
O
C
C
G
G
C
C
o
o
m
m
m
m
a
a
n
n
d
d
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
5
5
.
.
1
1
.
.
C
C
o
o
n
n
f
f
i
i
g
g
u
u
r
r
e
e
o
o
r
r
Q
Q
u
u
e
e
r
r
y
y
I
I
/
/
O
O
P
P
i
i
n
n
C
C
h
h
a
a
r
r
a
a
c
c
t
t
e
e
r
r
i
i
s
s
t
t
i
i
c
c
s
s
Command Description
This command is used to set or query the I/O port characteristics of the AS3/AS3E. It is recommended to disconnect all
I/O connections prior to changing the I/O characteristic in order to avoid damage to the I/O port.
Syntax
Write Command
AT$IOCG=<IO1>,<IO2>,<IO3>
Response
$OK
Read Command
AT$IOCG=?
Response
$IOCG=<IO1>,<IO2>,<IO3>
Parameter Description
Parameters
Description
Data Type
Default
<IO1>
I/O configuration on Pin#3 (Green wire)
1: Input2 (VSS ,Pulse counter)
3: Analog Input
4: 1-Wire Data
U8
1
<IO2>
I/O configuration on Pin#4 (Blue wire)
1: Input 1
2: Output 1
U8
2
<IO3>
I/O configuration on Pin#5 (White wire)
1: Input 3 (RPM)
2: Output 2
U8
2
Example
(1) Change all ports to inputs:
AT$IOCG=1,1,1
(2) Change Pin#3 to 1-Wire Data input
AT$IOCG=4,2,2
(3) Change Pin#4 and Pin#5 to digital inputs, and Pin#3 to analog input:
AT$IOCG=3,1,1
Remark
MEMO SERIAL SMS GPRS