2024-07-30 07:17 PM
I want to use my ADC of NUCLEO-H563ZI, but there is a problem with my ADC. ADC output does not match to input voltage. Test results are as fallows.
I am using ADC2 IN1, IN2, IN3, IN5, IN6, all singled ended. And I am using 25MHz HSE OSC of NUCLEO-H563ZI instead of ST-LINK 8MHz output, and disabled ICACHE.
Is there a problem with my ADC/Clock configuration settings?
2024-07-30 07:56 PM
The ADC needs to be calibrated on every startup before it is used. Are you doing that?
Sampling time generally has the largest impact. Use the longest sampling time for the highest accuracy on a DC signal.
Lots of other factors go into ADC accuracy. This application notes talks about many of them:
cd00211314-how-to-get-the-best-adc-accuracy-in-stm32-microcontrollers-stmicroelectronics.pdf
2024-07-30 09:21 PM
I am using ADC as below, to calibration my ADC before ADC Start.
Is this a normal way to use it? It seems that HAL_ADCEx_Calibration_Start() doesn't work.