2 Replies Latest reply on Nov 19, 2020 7:55 AM by DaCh_1995281

    ADC reading incorrect values after changing from dietemp config to topdesign config


      I have an ADC configured in the topdesign to read a pin to be able to calculate the battery level. The device will periodically switch the configuration to read the dietemp then switch back to reading the battery level pin.


      I can change the configuration in the code to read the dietemp correctly based on CE220974, however when the config is changed back to the one defined in the topdesign the battery level readings are incorrect.


      I tried reinitializing the ADC config by calling ADC_InitConfig(&ADC_allConfigs[0u]) but it didn't seem to work.

      Is there something that I am missing?


      Any help would be appreciated.


      I have attached the configuration used in the top design for reference.