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.

MSP430FR6047: MCU018

Part Number: MSP430FR6047


Tool/software:

Hi,

What If I enables  #ifdef USS_APP_AGC_CALIBRATE_ENABLE in code.

where it can impact my calculation of time of flight?

Regards,

Anup Kumar

  • Let's waiting for the USS expert to answer this question.

  • Hi,

    The AGC(auto gain calibration) function is used to calibrate the PGA gain setting to always keep the maximum ADC capture signal level at a certain number. It does not directly impact the calculation of TOF. 

    Best regards,

    Cash Hao

  • Thanks for your reply,

    So, can I use this at run time when I am calculating the Flow rate?

    Also, I have seen in the code if you are measuring the flow rate at say every 1 second and if I set calibration interval to 60, then does it mean that after every 1 minute it will calibrate/adjust the gain?

    In code it is hard coded that 3dB value of 2^11 (12-bit ADC) that is around 1449. Is this value works as reference point for AGC gain calibration?

    Regards,

    Anup Kumar

  • Hi,

    You can use it at run time. 

    And yes, it means calibrating every 1 minute. You can decide the interval as you needed. 

    For 3rd question, you can refer to below image. 

    Best regards, 

    Cash Hao

**Attention** This is a public forum