Part Number:ADS1248
Hello,
we are working on an application given the following design:
The general spi communication is working (verified with oscilloscope). We can write/read registers and get data results via RDATA command.
We need support for
a) finding the correct register settings given the attached schematics
b) converting the digital result back to thermocouple voltage.
To a) Currently we tried the following register settings for reading the first channel
SetRegisterValue(MUX0, MUX_SP2_AIN0 | MUX_SN2_AIN1); // channel 1
SetRegisterValue(MUX1, REFSELT1_ON| VREFCON1_ON); // ADS Reference on Intern, Internal Reference on
SetRegisterValue(IDAC0, IMAG2_1000); // IDCA0 = 1000µA
SetRegisterValue(IDAC1, I1DIR_AIN1); // IDAC1 = AIN1
SetRegisterValue(VBIAS, VBIAS_RESET); // no bias
SetRegisterValue(SYS0, PGA2_32); // pga 32 default sps 5
To b) From data sheet topic 9.5.2 Data Format 1 LSB = (2 × VREF / Gain) / 2^24 = +FS / 2^23 Is the following equation the correct way to get the thermocouple voltage?
raw_value = RDATA_RESULT();
lsb = (2 * 2.048 / 32) / 16777216;
voltage = raw_value * lsb
Thank you for any help on this.
Greetings,
Daniel