AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page111of233
#GPIO - General Purpose Input/Output Pin Control
#GPIO: 1,1 // gpio 1 is output and output value is HIGH
#GPIO: 0,0
#GPIO: 1,1
#GPIO: 0,0
#GPIO: 0,1 // gpio 5 is input and input value is HIGH
#GPIO: 1,0
OK
Note
All gpio’s states (mode and direction) are saved in nv memory, so the last state is
restored after power cycle.
Read Analog/Digital Converter Input - #ADC
#ADC - Read Analog/Digital Converter Input
AT#ADC=
[<adc>,<mode>
[,<dir>]]
Execution command reads pin<adc> voltage, converted by ADC, and outputs it in
the format:
#ADC: <value>
where:
<value> - pin<adc> voltage, expressed in mV
Parameters:
<adc> - index of pin
1 - available for LE9x0 family
2 - available for LE9x0 family
3 - available for LE9x0 family
<mode> - required action
2 - query ADC value
<dir> - direction; its interpretation is currently not implemented
0 - no effect.
Note: The command returns the last valid measure.
AT#ADC?
Read command reports all pins voltage, converted by ADC, in the format:
#ADC: <value>[<CR><LF>#ADC: <value>[…]]
AT#ADC=?
Test command reports the supported range of values of the command parameters
<adc>, <mode> and <dir>.