The STM32L433 adc isnt too accurate.
Hi
I have a STM32L433 processor on a 4 layer board with own ground plane, and below is circuit for VDDA input. I have set the VREF+ to 2.5v, and checked this with my meter, and its perfect (and isnt connected to anything).
I placed an accurate 1.026v DC onto the analogue input , and used an easy HAL example (12 bit) to read the ADC. I read the digital value of 1988 , which works out to 1.213v (2.5/4096)*1988 , which isnt the same. Looking on the scope, and the signal looks clean , and same with the power input 3.3v. I dont understand why it isnt accurate. Anyone any idea?
MX_ADC1_Init();
HAL_ADCEx_Calibration_Start(&hadc1,ADC_SINGLE_ENDED);
while (1)
{
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1,HAL_MAX_DELAY);
raw=HAL_ADC_GetValue(&hadc1);
}
