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.

ADS131B04-Q1: Scenarios for use and how to use the calibration function

Part Number: ADS131B04-Q1

Tool/software:

Regarding the calibration function of the ADS131B04, can you provide a scenario for using this function, when you need to use this function, and do you need to put this function in a loop when using it? If so, can you provide a routine code for use based on this chip calibration function?

  • Hi ??,

    welcome to our e2e forum and thanks a lot for your interest in our ADCs.

    When you refer to "calibration function", I assume you are referring to the offset and gain calibration registers?
    The device itself doesn't perform any calibration function. What you can do is to measure the offset and gain error of the ADC and then program according compensation values into the offset and gain calibration registers. The device will then automatically scale the output code using those values. Most customers do this scaling in the MCU to be honest.

    Regards,
    Joachim Wuerker

  • Yeah, The calibration function what I mean is the offset and gain calibration registers, and I know that this part of the function has to be written by myself, but I also want to know if this function is compensated before sampling, and then the ADC sampling results only need to add this offset value. Because this part is too little in the manual, is there any sample code that can be used for reference?

  • Hi ??,

    the device takes the values stored in the offset and gain calibration registers and applies them in the digital domain, after the analog input has been converted to digital. It simply adds/subtracts the offset value from the converted conversion result and then multiplies it with the gain correction factor. It is the same function you would implement in the MCU. The only reason we integrate those registers is to offload this function from the MCU. There is no magic behind it.

    We offer example code for the ADS131B04-Q1, but I am not sure if this function is integrated there.
    You can find the example code on the product folder page on ti.com: https://www.ti.com/product/ADS131B04-Q1#software-development

    Regards,
    Joachim Wuerker