SBAA336B December 2018 – September 2024 ADS124S08
AVDD | AVSS, DGND | DVDD, IOVDD |
---|---|---|
3.3V | 0V | 3.3V |
This cookbook design describes a temperature measurement for a four-wire RTD using the ADS124S08. This design uses a ratiometric measurement for a PT100 type RTD with a temperature measurement range from –200°C to 850°C. The four-wire RTD measurement is the most accurate of the RTD wiring configurations because the lead-resistance is not a factor in the measurement. Included in this design are ADC configuration register settings and pseudo code to configure and read from the device. This circuit can be used in applications such as analog input modules for PLCs, lab instrumentation, and factory automation. For more information about making precision ADC measurements with a variety of RTD wiring configurations, see A Basic Guide to RTD Measurements.
As an example, a PT100 RTD has a range of approximately 20Ω to 400Ω if the temperature measurement range is from −200°C to 850°C. The reference resistor must be larger than the maximum RTD value. The reference resistance and PGA gain determines the positive full scale range of the measurement.
In this design, the IDAC current source drives the RTD through lead 1. The current exits the RTD through lead 4 and is shunted by RREF to create a ratiometric measurement. The measurement is made between lead 2 and lead 3 by the ADC, making a Kelvin connection to remove the lead resistance error. With this four-terminal sensing, the 4-wire RTD measurement is the most accurate of the RTD wiring configurations.
The excitation current source in this design is selected to be 1mA. This maximizes the value of the RTD voltage while keeping the self-heating of the RTD low. The typical range of RTD self-heating coefficients is 2.5mW/°C for small, thin-film elements and 65mW/°C for larger, wire-wound elements. With 1-mA excitation at the maximum RTD resistance value, the power dissipation in the RTD is less than 0.4mW and keeps the measurement errors from self-heating to less than 0.01°C.
After selecting the IDAC current magnitude, set RREF = 1620Ω. This sets the reference at 1.62V and the maximum RTD voltage is 400mV. The reference voltage acts as a level shift to place the input measurement to near mid-supply, putting the measurement in the PGA input operating range. With these values, the PGA gain can be set to 4 so that the maximum RTD voltage is near the positive full scale range without exceeding it.
The reference resistor, RREF must be a precision resistor with high accuracy and low drift. Any error in RREF reflects the same error in the RTD measurement. The REFP0 and REFN0 pins are shown connecting to the RREF resistor as a Kelvin connection to get the best measurement of the reference voltage. This eliminates any series resistance as an error from the reference resistance measurement.
Using the maximum RTD resistance, the ADC input voltages are calculated in the following:
First, verify that VAIN1 and VAIN2 are within the input range of the PGA given that the gain is 4 and that AVDD is 3.3V and AVSS is 0V. As the ADS124S0x Low-Power, Low-Noise, Highly Integrated, 6- and 12-Channel, 4-kSPS, 24-Bit, Delta-Sigma ADC with PGA and Voltage Reference data sheet shows, the absolute input voltage must satisfy the following:
Because the maximum and minimum input voltages seen at AIN1 and AIN2 (2.02V and 1.62V) are between 0.75V and 2.55V, the inputs are in the PGA operating range.
Second, verify that the voltage at the IDAC output pin is within the current source compliance voltage. The IDAC pin is AIN0, which have the same voltage as AIN1. At the maximum voltage, VAIN0 is 2.02V. As shown in the Electrical Characteristics table in the ADS124S0x Low-Power, Low-Noise, Highly Integrated, 6- and 12-Channel, 4-kSPS, 24-Bit, Delta-Sigma ADC with PGA and Voltage Reference data sheet, the output voltage of the IDAC must be between AVSS and AVDD − 0.6V for an IDAC current of 1mA. In this example, with AVDD = 3.3V, the IDAC output must be:
With the above result, the output compliance of the IDAC is satisfied.
This design includes differential and common-mode input RC filtering. The bandwidth of the differential input filtering is set to be at least 10 × higher than the data rate of the ADC. The common-mode capacitors are selected to be 1/10 of the value the differential capacitor. Because of capacitor selection, the bandwidth of common-mode input filtering is approximately 20 × higher than the differential input filtering. While series filter resistors offer some amount of input protection, keep the input resistors lower than 10kΩ, to allow for proper input sampling for the ADC.
With input filtering, differential signals are attenuated at a lower frequency than the common-mode signals, which are significantly rejected by the PGA of the device. Mismatches in common-mode capacitors cause an asymmetric noise attenuation, appearing as a differential input noise. With a lower bandwidth for differential signals, the effects from the mismatch of input common-mode capacitors be reduced. Input filtering for the ADC inputs and reference inputs are designed for the same bandwidth.
In this design, the data rate is chosen to be 20SPS using the low-latency filter of the ADS124S08. This filtering provides a low noise measurement with single-cycle settling and the ability to reject 50-Hz and 60-Hz line noise. For the ADC input filtering, the bandwidth frequency for the differential and common-mode filtering is approximated in the following equations.
For the ADC input filtering, RIN = 4.99kΩ, CIN_DIFF = 47nF, and CIN_CM = 4.7nF. This sets the differential filter bandwidth to 330Hz and the common-mode filter bandwidth to 5kHz.
The bandwidth for the reference input filtering is approximated in the following equation.
For the reference input filtering, RIN_REF = 3.16kΩ and CREF_DIFF = 100nF. This sets the reference filter bandwidth to 330Hz. Because REFN0 is set to ground, the common-mode filtering is removed. Matching the ADC input and reference input filtering may not be possible. However, keeping the bandwidths close may reduce the noise in the measurement.
For an in-depth analysis of component selection for input filtering, see the RTD Ratiometric Measurements and Filtering Using the ADS1148 and ADS1248 Family of Devices application report.
RTD measurements are typically ratiometric measurements. Using a ratiometric measurement, the ADC output code does not need to be converted to a voltage. This means that the output code gives a measurement only as a ratio of the value of the reference resistor and does not require a precise value for the excitation current. The only requirement is that the current through the RTD and reference resistor are the same.
Equations for the measurement conversion are shown for a 24-bit ADC:
The ADC converts the measurement to the RTD equivalent resistance. Because of non-linearity in the RTD response, the conversion of the resistance to temperature requires an calculation from equation or look-up table. For more information about the conversion of RTD resistance to temperature, see A Basic Guide to RTD Measurements.
Register Address | Register Name | Setting | Description |
---|---|---|---|
02h | INPMUX | 12h | Select AINP = AIN1 and AINN = AIN2 |
03h | PGA | 0Ah | PGA enabled, Gain = 4 |
04h | DATARATE | 14h | Continuous conversion mode, low-latency filter, 20-SPS data rate |
05h | REF | 12h | Positive reference buffer enabled, negative reference buffer disabled, REFP0 and REFN0 reference inputs selected, internal reference always on |
06h | IDACMAG | 07h | IDAC magnitude set to 1mA |
07h | IDACMUX | F0h | IDAC1 set to AIN0, IDAC2 disabled |
08h | VBIAS | 00h | VBIAS not used for any input |
09h | SYS | 10h | Normal mode of operation |
The following shows a pseudo code sequence with the required steps to set up the device and the microcontroller that interfaces to the ADC to take subsequent readings from the ADS124S0x in continuous conversion mode. The dedicated DRDY pin indicates availability of new conversion data. Pseudo code is shown without the use of the STATUS byte and CRC data verification. ADS124S08 firmware example code is available from the ADS124S08 product folder.
Configure microcontroller for SPI mode 1 (CPOL = 0, CPHA = 1)
Configure microcontroller GPIO for /DRDY as a falling edge triggered interrupt input
Set CS low;
Send 06;// RESET command to make sure the device is properly reset after power-up
Set CS high;
Set CS low;// Configure the device
Send 42// WREG starting at 02h address
05// Write to 6 registers
12// Select AINP = AIN1 and AINN = AIN2
0A// PGA enabled, Gain = 4
14// Continuous conversion mode, low-latency filter, 20-SPS data rate
12// Positive reference buffer enabled, negative reference buffer disabled
// REFP0 and REFN0 reference selected, internal reference always on
07// IDAC magnitude set to 1 mA
F0;// IDAC1 set to AIN0, IDAC2 disabled
Set CS high;
Set CS low; // For verification, read back configuration registers
Send 22// RREG starting at 02h address
05// Read from 6 registers
00 00 00 00 00 00;// Send 6 NOPs for the read
Set CS high;
Set CS low;
Send 08;// Send START command to start converting in continuous conversion mode;
Set CS high;
Loop
{
Wait for DRDY to transition low;
Set CS low;
Send 12// Send RDATA command
00 00 00;// Send 3 NOPs (24 SCLKs) to clock out data
Set CS high;
}
Set CS low;
Send 0A;//STOP command stops conversions and puts the device in standby mode;
Set CS to high;
RTD Circuit Topology | Advantages | Disadvantages |
---|---|---|
Two-wire RTD, low-side reference | Least expensive | Least accurate, no lead-resistance cancellation |
Three-wire RTD, low-side reference, two IDAC current sources | Allows for lead-resistance cancellation | Sensitive to IDAC current mismatch, mismatch can be removed by swapping IDAC currents and averaging two measurements |
Three-wire RTD, low-side reference, one IDAC current source | Allows for lead-resistance cancellation | Requires two measurements, first for RTD measurement, second for lead-resistance cancellation |
Three-wire RTD, high-side reference, two IDAC current sources | Allows for lead-resistance cancellation, less sensitive to IDAC mismatch than using low side reference | Requires extra resistor for biasing, added voltage may not be compatible with low supply operation |
Four-wire RTD, low-side reference | Most accurate, no lead-resistance error | Most expensive |
Device | Key Features | Link | Other Possible Devices |
---|---|---|---|
ADS124S08 | 24-Bit, 4kSPS, 12-Ch Delta-Sigma ADC With PGA and Voltage Reference for Precision Sensor Measurement | 24-bit, 4kSPS, 12-ch delta-sigma ADC with PGA and voltage reference for sensor measurement | Precision ADCs |
ADS114S08(1) | 16-Bit, 4kSPS, 12-Ch Delta-Sigma ADC With PGA and Voltage Reference for Precision Sensor Measurement | 16-bit, 4kSPS, 12-ch delta-sigma ADC with PGA and voltage reference for sensor measurement |