2 setting gpio pin as input, At#gpio=,,0 Page 77
Page 77

GM862-QUAD / PY Software User Guide
1vv0300747 Rev. 3 - 10/07/07
Reproduction forbidden w ithout Telit Communications S.p.A. w ritten authorization - All Rights Reserved
page 77 of 96
For example:
1- Let's assume you want to set GPIO3 pin as Output and you want it to be in LOW status:
command:
AT#GPIO=3,0,1
response:
OK
In this case, the GPIO3 pin was successfully put in output direction and its status has been set to
LOW.
3.6.1.2 Setting GPIO pin as INPUT
When you set a GPIO as input, you must specify also a dummy value for the pin state:
•
Send command
AT#GPIO=
where:
1 – GPI1
7 – GPIO7
8 – GPIO8
3 – GPIO3
9 – GPIO9
4 – GPIO4
10 – GPIO10
5 – GPIO5
11 – GPIO11
6 – GPIO6
12 – GPIO12
13 – GPIO13
0 – dummy value
1 – dummy value
•
wait for response
OK
NOTE: The #GPIO setting for all GPIO except from GPIO4, GPIO5, GPIO6 and GPIO7, is not
saved and will be lost on power off, so at start-up repeat pin initialization commands.
At start-up all the GPIOs except from GPIO5, GPIO6 & GPIO7 are configured by default as
INPUT, but the setting for GPIO4, GPIO5, GPIO6 and GPIO7 instead is maintained even after a
shutdown to permit the Alternate feature to work always.
For example:
1- Let's assume you want to set GPIO4 pin as Input:
command:
AT#GPIO=4,0,0
response:
OK
In this case, the GPIO4 pin was successfully put in input direction.