ZHCSJX5 June 2019 ADS7028
ADVANCE INFORMATION for pre-production products; subject to change without notice.
The eight channels of the ADS7028 can be independently configured as analog inputs, digital inputs, or digital outputs. Table 3 shows 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_OUTPUT_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.