
5
GPIO
ADS126xEVM Software
3.4.5
Tab 5: GPIO
Tab 5, shown in
, controls the GPIO functions available on the AIN3-AIN9 and AINCOM pins.
The
GPIO Functions
controls select the GPIO direction and logic value. Note that the GPIO logic levels
are referenced to the analog supply voltage (5V-logic). The
Value
radio buttons serve dual purposes as
both controls and indicators.
Value
indicates the logic value when configured as an input, and controls the
logic value when configured as an output. The
Value
buttons are grayed out until the GPIO function is
enabled on the respective channel. Controlling the GPIO value does nothing when configured as an input.
Figure 21. Tab 5 Settings
Clicking
Read GPIO
or modifying any of controls on this tab reads the GPIODAT register and updates all
value indicators.
NOTE:
The GPIODAT register bits corresponding to GPIO inputs are
read
-only, and the GPIODAT
register bits corresponding to GPIO outputs are
write
-only. Therefore, you cannot read back
any GPIO output values from the GPIODAT register.
Store a copy of the GPIODAT register settings in memory (as this software does) in order to
recall the GPIO output configuration from memory.
NOTE:
The software does not allow for simultaneous GPIO, Test DAC, IDAC, or VBIAS functions to
be enabled on the same pin.
24
ADS126xEVM-PDK
SBAU206 – April 2015
Copyright © 2015, Texas Instruments Incorporated