SBAS979C June 2019 – September 2024 ADS7038
PRODUCTION DATA
The eight channels of the TLA2518 can be independently configured as analog inputs, digital inputs, or digital outputs. Table 7-2 describes how the PIN_CFG and GPIO_CFG registers can be used to configure the device channels.
PIN_CFG[7:0] | GPIO_CFG[7:0] | GPO_DRIVE_CFG[7:0] | CHANNEL CONFIGURATION |
---|---|---|---|
0 | x | x | Analog input (default) |
1 | 0 | x | Digital input |
1 | 1 | 0 | Digital output; open-drain driver |
1 | 1 | 1 | Digital output; push-pull driver |
Digital outputs can be configured to logic 1 or 0 by writing to the GPO_VALUE register. Reading the GPI_VALUE register returns the logic level for all channels configured as digital inputs or digital outputs. The GPI_VALUE register can be read to detect a failure in external components, such as a floating pullup resistor or a low-impedance pulldown resistor, that prevents digital outputs being set to the desired logic level.