Library for interfacing Analog Devices AD7792/AD7793 3-Channel 16-/24-Bit ∑-Δ ADC
The AD7792/AD7793 are low power, low noise, complete analog front ends for high precision measurement applications and contain a low noise 16-/24-bit ∑-Δ ADC with three differential analog inputs. The on-chip, low noise instrumentation amplifier means that signals of small amplitude can be interfaced directly to the ADC.
Features:
typical SPI clock speed to be used
configuration of clock polarity and clock phase for the AD7792
Initializes SPI communication with the AD7792
First of all the CS port and SPI interface are copied to the transferred device handle. The used CS pin is configured as output and set to high to avoid data transfer at the beginning. Then the AD7792 is reset by writing 32-Bits consecutive 1s to the SPI interface. Afterwards the ID and configuration register are checked to ensure that the AD7792 was initialised correctly
absolute maximum SPI clock speed (5MHz)
internal reference voltage (1.17V)
Available register (Address | R/W | Default | Description)
Communications register configuration bits
Status Register register bits
Indication which channel is being converted by the ADC (Status Register, bit 0-2)
Mode Register configuration bits (operating mode, filter update rate and clock source)
Operating mode (Mode Register, bit 13-15 )
Clock source (Mode Register, bit 6-7 )
Filter Update Rate (Mode Register, bit 0-3 )
Configuration Register configuration bits ( unipolar or bipolar mode, enable or disable the buffer, enable or disable the burnout currents, select the gain, and select the analog input channel)
Bias Voltage Generator Enable (Configuration Register, bit 14-15)
Gain Select Bits (Configuration Register, bit 8-10)
IO Register configuration bits (enable and select the value of the excitation currents)
Current Source Direction (IO Register, bit 2-3)
Current Source Value (IO Register, bit 0-1)
Reads register of AD7792
Writes register of AD7792