This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1261-Q1: Pseudo-Code for ADS126x single ended measurements

Part Number: ADS1261-Q1
Other Parts Discussed in Thread: ADS1260-Q1, ADS1261, LM27762, LM7705

Hi everybody,

I'm about to implement ADS1260-Q1 and ADS1261-Q1 ADC's  and reading the datasheet.

Until set the parameters of analog inputs it is clear how to use those ADC's.

In my specific scenario I have signal voltage range between 0,25 V and 3 V to GND (AVSS).

So I need to use default reference settings (AVDD - AVSS).  AVDD is 5V.

What is the best way to set INPMUX Register to get good resolution?

Is my assumption: GAIN x (MUXP(voltage) - MUXN(voltage)) = digital value after conversation right?

So.. it make more sense to set one of the inputs (P / N) to AINCOM and other (AINx) to the signal?

 

Thanks in advance

 

  • Hi Dimitri,

    Measuring voltages close to to AVSS is always a bit of a challenge. If you have the internal PGA of the ADS1261 or ADS1261-Q1 enabled, then neither of the positive or negative inputs can accept voltages lower than "AVSS + 0.3 V", or else the PGA outputs will saturate and you'll get an erroneous measurement result.

    I'd recommend looking at the ADS1261 PGA common-mode range calculator, which you can download from here: http://www.ti.com/tool/ADS1261-EXCEL-CALC-TOOL 

    To measure a 0.3V or smaller signal (with respect to ground) on the ADS1261 there are a few options:

     

    1. Bypass the internal PGA
      By bypassing the PGA, your single-ended input voltage can swing between AVSS and AVDD without any issues. However, when the PGA is bypassed the input source is connected directly to the input of the delta-sigma modulator which has a much lower input impedance. If the signal source does not have a low output impedance, then you may see a gain error in the measurement due to the loading on the source.
       

    2. Use a bipolar analog supply voltage
      The AVDD and AVSS voltages on the ADS1261 can be configured to bias the input signal to a mid-supply voltage. Typically +/- 2.5V supplies rails are used, but if you need measure a voltage between 0.25V and 3V, then you might consider configuring AVDD to be 4V and AVSS to -1V to allow the input signal to swing between -0.7V and 3.3V, for example). The disadvantage to this approach is the additional circuitry required to generate these supplies, if acceptable supply voltages are not already available in your system.

      In the case of a traditional +/- 2.5V bipolar supply, you could take advantage of the LM27762 to generate both supplies. However, if you only need a slightly negative voltage for AVSS, such as in your case, then the LM7705 might be a good option for generating a -230 mV AVSS supply rail. The ADS1261 allows for up to a 5.25V analog supply, so you could keep AVDD at 5V and connect AVSS to the -230 mV supply.


    3. Use an external amplifier to level-shift the input signal to a desired common-mode voltage
      Refer to https://e2e.ti.com/blogs_/b/analogwire/archive/2016/09/20/three-ways-to-scale-an-analog-input-signal. There are various circuit configurations that can level shift the input voltage. Most require some kind of reference voltage; however, you could most likely use the internal 2.5V reference of the ADS1261 for this purpose. The disadvantage to this approach is that, again it is yet another component, and the noise of the op-amp will add to the overall noise in the measurement result, slightly degrading the overall system resolution.

    If you configure your circuit so AINP swings between 2.5V and 3V, and AINN is fixed to VREF (if AVSS = 0V, then VREF = AVSS + 2.5V = 2.5V), then the differential voltage (AINP - AINN) will always be less than 2.5V and you can utilize the internal 2.5V reference for this measurement.

    However, if your input signal is somehow proportional to the 5V analog supply voltage (for example if you were measuring a bridge voltage that uses the 5V analog supply as an excitation voltage), then I would definitely recommend using the 5V supply voltage as your reference voltage to make the measurement ratiometric.

    Let me know if that helped answer your questions.

  • Hi Chris,

    Thank You for answer.

    Especially for the options how measure small voltages. I'm familiar with excel-sheet you suggest. As long I use MID_SUPPLY (AINCOM MUXP/N = 0h) on one of MUX inputs - the are no errors between 0 – 5V

    My favorite is first one with option to adjust Start-Conversion Delay (DELAY[3:0])  and / or reducing CAPP/CAPN capacitor.

    Do you have an API or other kind of code-structure for ADC?

    Thank You in advance.

  • Hi Dimitri,

    Regarding your last comments...

    Dimitri Weigel21 said:
    As long I use MID_SUPPLY (AINCOM MUXP/N = 0h) on one of MUX inputs - the are no errors between 0 – 5V

    Are you bypassing the PGA in this case?

    If you connect the negative input (AINN) to 2.5V, then the the ADC will measure the differential voltage between -2.5 and +2.5V as AINP swings from 0 to 5V. The ADC can certainly measure signals within this range; however if the PGA is not bypassed, then you may see some linearity errors when your input signal is 0.3V or less.

    Dimitri Weigel21 said:
    My favorite is first one with option to adjust Start-Conversion Delay (DELAY[3:0])  and / or reducing CAPP/CAPN capacitor.

    Increasing the Start-Conversion Delay certain can help to avoid settling errors. However, if the PGA's output is saturating near AVSS + 0.3V, then increasing the conversion start delay will not help with removing this type of measurement error.

    Regarding the CAPP/CAPN capacitor value, I don't advise using a different value unless you plan to thoroughly test the performance of the ADS1261 with this modified value. Please refer to this related E2E question about whether it is okay to use different CAPP/CAPN capacitor values: https://e2e.ti.com/support/data-converters/f/73/t/848255.

    We do have some ADS1261 Example Code available from here:

     

  • Hi Chris,

    Thank You!

    Best regards,