STM32L051C8 uses ADC to measure voltage value error is 50mV
STM32L051C8 uses ADC to measure the voltage value. The measured voltage value of the AD pin is 0.432V,VCC=3.335V, and the voltage value obtained through AD collection is 0.48V; there is an error of 50mV, and the ADC part of the program and hardware are as follows:

HAL_GPIO_WritePin(GPIOA, GPIO_PIN_11, GPIO_PIN_SET); //¿ªÆôºó²â�?¿9´®µçѹֵ
HAL_Delay(200);
HAL_ADC_Start_DMA(&hadc,(uint32_t *)ADC_ConvertedValue,2);
HAL_Delay(100);
VCC1_r =(float)(ADC_ConvertedValue[0])*3.3/4096; // 9´®ºóµÚ1×éµçѹ
VCC2_r =(float)(ADC_ConvertedValue[1])*3.3/4096; // 9´®ºóµÚ2×éµçѹ
