Hi
I'm currently setting up a EVAL AD7124-8 and have some problems with calibration.
Im following the instructions given in the datasheet and from here.
- Reset the ADC, wait 1 ms
- Configure Channel_0 to use Setup0
- Configure Setup0
- CONFIG0_REG with unipolar mode, no buffers, internal reference, gain 1
- FILTER_0_REG with FS=384, sinc4 filter
- GAIN and OFFSET unchanged
- Output the registers (see below)
- Calibrate
- Set AD7124_ADC_CONTROL_REG to Idle
- Set AD7124_OFFSET_0_REG to 0x800000
- Set AD7124_ADC_CONTROL_REG to INternal full-scale calibration (mode 0b0110)
- wait 500 ms
- Set AD7124_ADC_CONTROL_REG to zero-scale calibration (mode 0b0101)
- wait 500 ms
- Output Offset and Gain register (see below)
I get this output:
Point 4:
CONFIG_0_REG: 0x0010
FILTER_0_REG: 0x010180
OFFSET_0_REG: 0x800000
GAIN_0_REG: 0x5554d1
CHANNEL_0_REG: 0x0001
Point 6:
OFFSET_0_REG: 0x7fffDA
GAIN_0_REG: 0x000000
And subsequently the measurement in continuous read mode does not make sense. Why does my Gain get cleared to 0?
(Also I noticed then when reading the ID_REG with 0x45 i receive 0x14 as an answer and not 0x17 as specified in the datasheet. Is this because it is the Evaluation board?)
Thanks for any help in advance!
Edit Notes
added AD specification to title[edited by: epdg at 3:45 PM (GMT -5) on 27 Nov 2024]