Specifications
UC864-E/G AT Commands Reference Guide
80304ST10041a Rev. 3 - 18/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 166 of 259
#GPIO - General Purpose Input/Output Pin Control
- Reports a no meaning value if <dir>=2 - ALTERNATE FUNCTION
<dir> - GPIO pin direction
0 - pin direction is INPUT
1 - pin direction is OUTPUT
2 - pin direction is ALTERNATE FUNCTION (see Note).
Note: when <mode>=2 (and <dir> is omitted) the command reports the
direction and value of 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: "ALTERNATE FUNCTION" value is valid only for following pins:
• GPIO4 - alternate function is “RF Transmission Control”
• GPIO5 - alternate function is “RF Transmission Monitor”
• GPIO6 - alternate function is "Alarm Output" (see +CALA)
• GPIO7 - alternate function is "Buzzer Output" (see #SRP)
• GPIO10 – alterantive function is “DVI TX” (See #DVI)
• GPIO12 – alternative function is “call key”
• GPIO13 – alternative function is “ACTIVE”
• GPIO17 – alternative function is “DVI SYNC” (See #DVI)
• GPIO18 – alternative function is “DVI RX” (See #DVI)
Note: while using the pins in the alternate function, the GPIO read/write
access to that pin is not accessible and shall be avoided.
AT#GPIO? Read command reports the read direction and value of all GPIO pins, in the
format:
#GPIO: <dir>,<stat>[<CR><LF>#GPIO: <dir>,<stat>[…]]
where:
<dir> - as seen before
<stat> - as seen before
AT#GPIO=? Test command reports the supported range of values of the command
parameters <pin>, <mode> and <dir>.
Example
AT#GPIO=3,0,1
OK