UC864
UC864
UC864
UC864----E/G/WD/WDU
E/G/WD/WDU
E/G/WD/WDU
E/G/WD/WDU AT Commands Reference Guide
AT Commands Reference Guide
AT Commands Reference Guide
AT Commands Reference Guide
80304ST10041a Rev. 6
80304ST10041a Rev. 6
80304ST10041a Rev. 6
80304ST10041a Rev. 6 ---- 2010
2010
2010
2010----0
00
05
55
5----20
20
20
20
Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved.
Page 196 of 329
#GPIO
#GPIO
#GPIO
#GPIO ---- General Purpose Input/Output Pin Control
General Purpose Input/Output Pin Control
General Purpose Input/Output Pin Control
General Purpose Input/Output Pin Control
Parameters:
<pin>
<pin>
<pin>
<pin> - GPIO pin number; supported range is from 1 to a value that depends
on the hardware.
<mode>
<mode>
<mode>
<mode> - its meaning depends on <dir>
<dir>
<dir>
<dir> setting:
0 - no meaning if <dir>=0
<dir>=0
<dir>=0
<dir>=0 - INPUT
- output pin cleared to 0 (Low
Low
Low
Low) if <dir>=1
<dir>=1
<dir>=1
<dir>=1 - OUTPUT
- no meaning if <dir>=2
<dir>=2
<dir>=2
<dir>=2 - ALTERNATE FUNCTION
1 - no meaning if <dir>=0
<dir>=0
<dir>=0
<dir>=0 - INPUT
- output pin set to 1 (High
High
High
High) if <dir>=1
<dir>=1
<dir>=1
<dir>=1 - OUTPUT
- no meaning if <dir>=2
<dir>=2
<dir>=2
<dir>=2 - ALTERNATE FUNCTION
2 - Reports the read value from the input pin if <dir>=0
<dir>=0
<dir>=0
<dir>=0 - INPUT
- Reports the read value from the input pin if <dir>=1
<dir>=1
<dir>=1
<dir>=1 - OUTPUT
- Reports a no meaning value if <dir>=2
<dir>=2
<dir>=2
<dir>=2 - ALTERNATE FUNCTION
<dir>
<dir>
<dir>
<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
<mode>=2
<mode>=2
<mode>=2 (and <dir>
<dir>
<dir>
<dir> is omitted) the command reports the
direction and value of pin GPIO<pin>
GPIO<pin>
GPIO<pin>
GPIO<pin> in the format:
#GPIO: <dir>,<stat>
#GPIO: <dir>,<stat>
#GPIO: <dir>,<stat>
#GPIO: <dir>,<stat>
where:
<dir>
<dir>
<dir>
<dir> - current direction setting for the GPIO<pin>
GPIO<pin>
GPIO<pin>
GPIO<pin>
<stat>
<stat>
<stat>
<stat>
•
logic value read from pin GPIO<pin>
GPIO<pin>
GPIO<pin>
GPIO<pin> in the case the pin <dir>
<dir>
<dir>
<dir> is set
to input;
•
logic value present in output of the pin GPIO<pin>
GPIO<pin>
GPIO<pin>
GPIO<pin> in the case the pin
<dir>
<dir>
<dir>
<dir> is currently set to output;
•
no meaning value for the pin GPIO<pin>
GPIO<pin>
GPIO<pin>
GPIO<pin> in the case the pin <dir>
<dir>
<dir>
<dir> is
set to alternate function.
Note: "ALTERNATE FUNCTION" value is valid only for following pins:
•
GPIO4
GPIO4
GPIO4
GPIO4 - alternate function is “RF Transmission Control”
•
GPIO5
GPIO5
GPIO5
GPIO5 - alternate function is “RF Transmission Monitor”
•
GPIO6
GPIO6
GPIO6
GPIO6 - alternate function is "Alarm Output" (see +CALA
+CALA
+CALA
+CALA)
•
GPIO7
GPIO7
GPIO7
GPIO7 - alternate function is "Buzzer Output" (see #SRP
#SRP
#SRP
#SRP)
•
GPIO10
GPIO10
GPIO10
GPIO10 – alterantive function is “DVI TX” (See #DVI)
•
GPIO12
GPIO12
GPIO12
GPIO12 – alternative function is “call key”
•
GPIO13
GPIO13
GPIO13
GPIO13 – alternative function is “ACTIVE”
•
GPIO17
GPIO17
GPIO17
GPIO17 – alternative function is “DVI SYNC” (See #DVI)
•
GPIO18
GPIO18
GPIO18
GPIO18 – alternative function is “DVI RX” (See #DVI)