1

I want to use the internal reference voltage (1.2V) of stm32f103 blue pill using Arduino IDE. I searched the whole internet but couldn't find anything. I need help with this. Thanks.

asked Apr 22, 2021 at 7:49
4
  • Did the whole internet include the datasheet for the chip? Commented Apr 22, 2021 at 8:15
  • 2
    Link to the core you're using, please. It should implement analogReference(INTERNAL) or something similar. Commented Apr 22, 2021 at 9:18
  • Maybe this will help a little: efton.sk/STM32/STM32_VREF.pdf (usualy it can be used to compute VREF+ or VDDA, as it can't be used directly as ADC reference) Commented Apr 22, 2021 at 11:47
  • And (different family, but it should be similar) community.st.com/s/question/0D50X00009XkePgSAJ/… Commented Apr 22, 2021 at 11:53

1 Answer 1

1

There's no way of using the internal 1,2v reference as the ADC reference. (in the same way that you can do on an AVR) You can only use the ADC to read the internal vref, and use that value to adjust the next ADC reading you take. Like a compensation factor.

answered Jun 6, 2022 at 8:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.