ADC Does not work properly
Hello,
I'm trying to use the ADC to measure the Vbat voltage on my STM32F401RCT6 but i get some strange values. Here is my setup in the device configuration tool:


And here is the code with the returned values:


Vref_Val = 303
Vbat_Val = 932
I have connected a CR1220 battery, but the Vref value seems to be really small for a 12 bits ADC value. I'm pretty new to STM so if anyone could help me thats would be great.
Thanks!



