Replies: 2 comments 1 reply
-
This |
Beta Was this translation helpful? Give feedback.
1 reply
-
ADC_REF_VDD_1 doesn't seem to work here too |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use VDD as a reference for the ADC? I tried and got the error "Invalid channel reference" which I found comes from the following snippet in "adc_stm32.c" driver:
This suggests to me that it isn't possible to use VDD as reference for the ADC, is this correct?
It is a drawback for me. Although, generally, it is better to use internal reference than VDD for accuracy, here is a case (my case) when it is more accurate to use VDD as reference:
VDD supplies a divider bridge to measure the value of a thermistor. Since the divider bridge is supplied by VDD and not internal voltage reference, using VDD as a reference allows to measure the ratio between VDD and the bottom resistor, without caring about the accuracy of VDD. Using internal reference adds the error of VDD on top of all the other errors.
Additionally, I think this also means it is not possible to use the external references, which could potentially be more accurate than the internal one.
Beta Was this translation helpful? Give feedback.
All reactions