User's Manual
Table Of Contents

Page 153 of 187
TECHNICAL MANUAL
Telit GM862 PCS
Tri Band GPRS Data Terminal System Rev.1
2.7.1.11 #GPIO –General Purpose Input/Output pin control
#GPIO –General Purpose Input/Output pin control
Execute command
Read command
AT#GPIO=<pin>,2 Reports the read value for the pin GPIO<pin> in the format:
#GPIO: <dir>,<stat>
where
<dir> - current direction setting for the GPIO<pin>
<stat> - logic value read from pin GPIO<pin> in the case the pin
<dir> is set to input;
- logic value present in output of the pin GPIO<pin> in the case
the pin <dir> is currently set to output;
- no meaning value for the pin GPIO<pin> in the case
the pin <dir> is set to alternate function;
Note for GPIO1: Since the reading is done after the insulating
transistor, the reported value is the opposite of the logic status of the
GPIO1 input pin.
Write command
AT#GPIO =<pin>,
<mode>,<dir>
Sets the value of the general purpose output pin GPIO<pin> according
to <dir> and <mode> parameter.
Not all configuration for the three parameters are valid.
Parameter:
<pin> - GPIO pin number
supported range is from 1 to 7, but GPIO1 is input only and GPIO2
is output only.
<dir> - GPIO pin direction
0 - pin direction in INPUT
1 - pin direction is OUTPUT
2 - pin direction is ALTERNATE FUNCTION *see Note
<mode> - its meaning depends on <dir> setting:
0 - no meaning if <dir> = 0 - INPUT
- output pin cleared to 0 (LOW) if <dir> = 1 - OUTPUT
- no meaning if <dir> = 2 - ALTERNATE FUNCTION