2020-12-23 10:37 AM
I'm trying to find what voltage reference my ADC is using, as it is not going up to 0xFFF. Along the line, I have become quite confused about the Vref - I used to use other chips where the Vref is just a reference voltage for the ADC, but with STM32 it seems it's more complicated.
I'm confused by the function of the Vref / Vdda pin on the STM32L412 - is this a power pin, or a voltage reference pin? I looked through the reference manual but the information was ambiguous. If it's a power pin, how much current does it need? And how does the Vref work?
2020-12-23 10:53 AM
VDDA is a power pin. It must be the same as VDD for most (all?) STM32 chips.
VREF+ is a voltage reference pin.
On smaller packages, these two pins are bonded together, which means VREF+ = VDDA. This means it is both a power pin and a voltage reference pin.
2020-12-23 10:56 AM
There is an internal intVRef (1.25V as I recall) that can attach to the ADC and can be used as a calibration point
2020-12-23 11:21 AM
ok.. so if my chip runs off 3.3V but I want to run the ADC of a 3v reference, I can only do this on a chip with separate VDDA and Vref+ pins?
2020-12-23 12:18 PM
2020-12-23 04:46 PM
My take on the topic.
JW
2022-08-05 01:33 AM
Hello TDK. I'm currently having some ADC problems on my STM32L496RGT6 and I'm trying just about everything I can think of (If I knew how to link to my question where I describe what's going on I would; the subject is "STM32L496RGT6 ADC")
How sure are that VDDA must be equal to VDD? I can't find anything about that in the data sheet.
2022-08-05 05:29 AM
2022-08-05 05:34 AM
Thanks a lot; I'm relieved to hear that.
At this point, I've got a trivial application which reads the ADC channel and the VREF channel. The ADC channel is several tens of millivolts down (depending on the applied voltage) and the VREF channel is coming out about several millivolts down from the expected value with a couple of millivolts of noise.
Can you imagine a way to explain this as a software issue or should I start looking more closely at the board?
2022-08-05 07:00 AM
I'm *not* an analogue guy, but I don't think any of this is marketed as high accuracy/precision stuff, and is apt to have all manner of offsets and biases. And is built on a CMOS MCU process. The VDDA runs the PLL/VCO doesn't it?
I'd consider it suitable for measuring analogue joysticks and generating 50 Hz servo PWM signals. Or getting a reasonable RSSI measurement from an RF downconverter.
For precision/critical stuff I'd perhaps be looking at different means, and getting the analogue leaning guys to design it.