Question
Cannot read VREFINT Accurately on STM8L052C6 48 pin package
Posted on December 14, 2012 at 03:12
I route VREFINT to an output pin and it reads correctly at 1.22V.
If I vary my input voltage, the VREFINT raw count value drifts around between 1100 and 1300 counts using VDD at 3.22V. The higher the voltage, the higher the count.I checked VDD going in and it is rock solid. Same with VREFINT going out the PC6 (?) pin.I am in single conversion mode using PF0 (ADCIN24) as my input pin.Any help appreciated. thanks, Jim #adc