We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
Can we use internal regulator for ref voltage of ADC of STM32L152? if you have experienced it please tel me how to do?
What values are you reading, and what do you expect to see?
I'm not sure the ADC *uses* it as a reference as much as it allows you to determine the value of your supplied +VREF
Thanks for reply. I read by this command:
battery_val=ADC_Supply();
which calls
ADC_GetConversionValue(ADC1);
I have not connected VREF+ to any power source in my board is there a way to connect it internally to vref of MCU by software?
Which part exactly are you using? Some devices have +VREF internally bonded to VDDA, and -VREF internally bonded to VSSA. On devices with VREF pins *you* have to connect them to the supplies yourself, in your design. I'm reasonably sure there is not a magic software setting, but try reading the manuals.
Isn't VREFINT on CHANNEL 17?
www.st.com/.../CD00277537.pdf