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.

CCS/PGA970: ADC3 configuration for external temperature sensor

Part Number: PGA970

Tool/software: Code Composer Studio

Hi team,

We are currently trying to configure ADC3 for use with an external temperature sensor.  We have tried to follow the configuration steps listed in the datasheet, but are still getting an incorrect reading.  Below is a snip of the code we are using.  Any help in properly configuring ADC3 would be greatly appreciated.  I've also noticed that despite me changing the values for the functions shown above such as ADC3_VI_LPF_Config, when I go to the register view in debug mode, these values have not actually changed.  For example, the snippet below shows ADC3_VI_LPF_Config = (0x0000,0x0000), but the register view shows 0x4A07 and 0x6C71 ( the previous values).  I've also attached an snip of the register view.  Again, any help with these issues would be greatly appreciated.  Thank you for your time.

  • As an update, we have figured out what was causing the registers to not update and have fixed that issue.  However, we are still having trouble with the ADC3 configuration.  Thank you for any help you can provide.

  • Hi Victor,

    Are you working off of the example firmware? If so, what version is it?

    Which LPF coefficient registers are you trying to change? There are ones for the PTAT, AIN1, and AIN2. It's hard to tell based on the name of the variables you have in the register view.

    If you are using the example firmware there should already be some shell functions available for changing any of the registers I mentioned above. The definitions are located in the PGA970_adc.h file, and their names are structured like so: CONFIG_ADC3_AIN1_LPF_A2(x).

    I suggest using those function shells.

    Regards,

  • Hi Scott,

    thanks for the reply, we managed to get it figured out today and appreciate your help.