ADuCM350 FAQ Amperometric Measurement Example

Document created by emoloney on Apr 30, 2014Last modified by emoloney on May 1, 2014
Version 2Show Document
  • View in full screen mode

Q: I want to change the calibration resistor (RCAL) on my board. How do I reflect this change in the Amperometric Measurement example?

 

A: Insert the following into AmperometricMeasurement.c (see screen capture below for location):

  • Define a constant for Rcal (1000 used as example):

          /* RCAL value in Ohms */

          #define RCAL                        (1000)

 

  • Insert a call to the AFE driver to set the resistor value in the handler:

          /* Set RCAL value */

          if (ADI_AFE_SUCCESS != adi_AFE_SetRcal(hAfeDevice, RCAL))

          {

               FAIL("adi_AFE_SetCal");

           }

 

 

Q: I want to change the TIA resistor (RTIA) on my board. How do I reflect this change in the Amperometric Measurement example?

 

A: Insert the following into AmperometricMeasurement.c (see screen capture below for location):

  • Define a constant for Rtia (7500 used as example):

          /* RTIA value in Ohms */

          #define RTIA                        (7500)

 

  • Insert a call to the AFE driver to set the resistor value in the handler:

          /* Set RTIA value */

          if (ADI_AFE_SUCCESS != adi_AFE_SetRtia(hAfeDevice, RTIA))

          {

               FAIL("adi_AFE_SetTia");

           }

 

RCAL_RTIA_Defines.JPG

 

RCAL_RTIA_FunctionCalls.JPG

Attachments

    Outcomes