AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page110of233
#GPIO - General Purpose Input/Output Pin Control
While using the pins in the alternate function, the GPIO read/write access to that pin is
not accessible and shall be avoided.
While pins in used by ALT function it cannot be used as GPIO out or by any other ALT
function until the original ALT released it or we change it to GPIO in(default state).
Note:
"ALT1" Reserved.
“ALT2” value is valid for all GPIOs: alternate function is “Alarm Pin”
“ALT3” value is valid for all GPIOs as “TempMon Pin”
“ALT4” value is valid for all GPIOs as “AD_Det Pin”
“ALT5” value is valid for all GPIOs as “AD_rep Pin”
“ALT6” value is valid for all GPIOs as “FASTSHDN”
“ALT7” value is valid for GPIO4 as “WKIO”
“ALT8” value is valid for ALL “FRATTRIGGER”
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
If <mode> = 3,4 the ouput format is
#GPIO:<dir>,<stat>,<mode>[<CR><LF>#GPIO:<dir>,<stat>,<mode>[…]]
AT#GPIO=?
Test command reports the supported range of values of the command parameters.
<pin range>,<mode range>,<dir range>,<save>
Examples at#gpio=?
#GPIO: (1-6),(0-4),(0-1),(0,1)
OK
at#gpio=3,1,1 // setting gpio_3 as output and value is HIGH
OK
at#gpio=4,1,1,1 // setting gpio_4 as output and value is HIGH an GPIO pin save
configuration
OK
at#gpio=3,2 // report gpio_3 state
#GPIO: 1,1
OK
at#gpio? // read command