a7014d01da
This PR adds a custom driver for the ADS1112 ADCs. Unlike ADS1113/4/5 family served by the ADS1x1x driver, the ADS1112 does not use an address pointer to address config registers. Instead, there is only one writable register and all i2c writes will set it. The registers resemble the ADS1119 device, but config bitmap is different, include a distinct data rate table, gain table, and input multiplexing table. There is also not a status register to be monitored with the ADS1112, as it uses config bit 7 for the same purpose instead of a separate register. The driver was tested on hardware using the ADC shell interface. Manual probing validated the voltages for the MUX_SINGLE configs at datarate 15 in CM_SINGLE. Higher gains were not tested and CM_CONTINUOUS is not supported in this initial implementation. The new driver has also been added to the existing ADC test using adc_emul for completeness. Origin: original License: Apache 2.0 Purpose: Adding support for ADS1112 ADCs Signed-off-by: Jordan Montgomery <jordan.montgomery@getcruise.com>
13 lines
314 B
Plaintext
13 lines
314 B
Plaintext
# ADS1112 ADC configuration options
|
|
|
|
# Copyright (c) 2023 Cruise, LLC.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config ADC_ADS1112
|
|
bool "Texas Instruments ADS1112 ADC driver"
|
|
depends on DT_HAS_TI_ADS1112_ENABLED
|
|
select I2C
|
|
select ADC_CONFIGURABLE_INPUTS
|
|
help
|
|
Enable the driver implementation for the ADS1112
|