Confidential Document
Page
8
of
27
* 1-Wire® Protocol supports up to three 1-Wire™ devices simultaneously, which means you can have one
iButton® sensor (DS1990A) and two 1-Wire™ temperature sensor probes (DS18B20).
** You may configure the
AT$IOCG
command to change these specific I/O pins to any of those functions
mentioned as above.
Note: Please do not connect a positive voltage to any output pin!
3
3
.
.
4
4
.
.
A
A
T
T
$
$
I
I
O
O
C
C
G
G
C
C
o
o
n
n
f
f
i
i
g
g
u
u
r
r
e
e
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 AK11. 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>,<IO4>
Response
$OK
Read Command
AT$IOCG=?
Response
$IOCG=<IO1>,<IO2>,<IO3>,<IO4>
Parameter Description
Parameters
Description
Data Type
Default
<IO1>
1: Input 4
2: Output 5
3: Analog Input 1
U8
1
<IO2>
1: Input 7
2: Output 2
3: Analog Input 2
U8
2
<IO3>
1: Input 6
2: Output 1
U8
2
<IO4>
1: Input 8
2: Output 4
U8
2
Example
(1)
Change all ports to inputs:
AT$IOCG=1,1,1,1
(2)
Change IO1, IO3 and IO4 to inputs, and IO2 to analog input:
AT$IOCG=1,3,1,1
Remark
MEMO
SERIAL
SMS
GPRS