SBAS976A May 2019 – May 2020 ADS7138
PRODUCTION DATA.
The eight channels of the ADS7138 can be independently configured as analog inputs, digital inputs, or digital outputs. Table 7 describes how the PIN_CFG and GPIO_CFG registers can be used to configure the 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 |
The 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.