2012-12-13 06:12 PM
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 #adc2012-12-13 07:07 PM
2015-03-09 03:37 AM
Hi,
could you please explain me which step you took in order to route the Vref output to a pin?I'm using the same STM8L052 you are using, and I tried setting bit CH7E of RI_IOSR1 register in order to route Vref out of PC2, but I see nothing...I assume bit VREFOUTEN of COMP_CSR3 is always set because in 052 family there is no comparators, therefore I assume there is no COMP_CSR3 register. Am I right?Thanks,Vivy2015-03-09 04:27 AM