STM32L476RET6 no pinout for ADC1_IN0? How to calculate VDDA with Vrefint?
Hi,
I am making updates to a custom PCB where I would like to add ADC functionality. My board is powered by batteries and I expect the supply voltage to fluctuate slightly and I need the ADC conversions to be accurate. The reference manual says I can use the internal Vrefint to calculate what the value of VDDA/VREF+ so that I may calculate my conversions with better accuracy. Additionally, I wanted to follow this guide (https://community.st.com/t5/stm32-mcus/how-to-use-the-stm32-adc-s-internal-reference-voltage/ta-p/621425) to understand how I may implement this in firmware.
The issue I see now is that on the chip's datasheet it mentions that Vrefint is internally connected to ADC1_IN0, however, ADC1_IN0 has no pinout on this package of the chip. Furthermore, in STM32CubeMX the ADC1_IN0 channel is not able to be selected (although Vrefint channel is able to be selected).
Now I have some confusion since the datasheet mentions the internal connection. Maybe this package does not have this available? But STM32CubeMX allows me to select the Vrefint channel still, so I may not understand something.
Is there some way I may achieve ADC accuracy with some other method? Or perhaps I am missing some information?
Please let me know if anyone may be able to help me understand this better.
Thank you,
Kaitlyn
