Teleorigin RB800 User Manual page 33

Table of Contents

Advertisement

#GPIO - General Purpose Input/Output Pin Control
- output pin cleared to 0 (Low) if <dir>=1 - OUTPUT
- no meaning if <dir>=2 - ALTERNATE FUNCTION
AT#GPIO?
1 - no meaning if <dir>=0 - INPUT
- output pin set to 1 (High) if <dir>=1 - OUTPUT
- no meaning if <dir>=2 - ALTERNATE FUNCTION
2 - Reports the read value from the input pin (see Note).
<dir> - GPIO pin direction
0 - pin direction is INPUT
1 - pin direction is OUTPUT
2 - pin direction is ALTERNATE FUNCTION (see Note).
<pull> - GPIO pull resistor (see Note).
0 - no pull resistor
1 - pull-down resistor
2 - pull-up resistor
Note: when <mode>=2 the command reports the direction, value of pin
GPIO<pin> and pull resistor setting in the format:
#GPIO: <dir>,<stat>,<pull>
where:
<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>
33

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rb900Rb800u

Table of Contents