Teleorigin RB900 User Manual page 39

Rb-900 series
Hide thumbs Also See for RB900:
Table of Contents

Advertisement

#GPIO - General Purpose Input/Output Pin Control
AT#GPIO?
Example
<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 has following meaning:
- GPIO1-GPIO5 - alternate function is "ADC"
- GPIO6 - alternate function is "I2C SDA"
- GPIO7 - alternate function is "I2C SCL"
Note: <pull> parameter has no meaning when <pin>=6 or 7. GPIO6 and
GPIO7 has always 2k pull-up resistors.
Read command reports the read direction and value of all GPIO pins, in the
format:
#GPIO: <dir>,<stat>,<pull>
...
#GPIO: <dir>,<stat>,<pull>
where
<dir> - as seen before
<stat> - as seen before
<pull> - as seen before
Read all inputs state:
AT#GPIO?
#GPIO: 0,1,1
#GPIO: 0,1,1
#GPIO: 0,1,1
#GPIO: 0,1,1
#GPIO: 0,1,1
#GPIO: 0,1,1
#GPIO: 0,1,1
OK
Set GPIO1 as input with pull-up resistor
39

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents