STM32F334 - ADC1 returns large output with grounded input
Hello
on the a.m. device I use both ADC1 and ADC2. The initialization is identical on both.
I notice that results fluctuate widely at ADC1 output and reasonably at ADC2 output.
Grounding ADC1 input leads to 330-345 LSB.
Vdda = 2.5V from precise external reference, which is 610uV/LSB.
Source resistance at input is 10R, capacitor is 1nF.
Setting ADC1 to 60mV input results in 580-620 LSB, but only 100 LSB are expected.
Changing ADC clock from 32MHz to 16 MHz changes output of ADC1 to 710-740 LSB
(while the ADC2 outputs are not affected).
Am I missing some details in the initialization? Some setting required on ADC1 with are not needed on ADC2?
Configurations are single conversion, SW triggered, sequencing disabled, regular conversion, single ended inputs. All initialization code is done by STM32CubeIDE, using LL drivers for the ADCs.
Calibration is done prior to starting calibration.
Any idea is welcome - thanks.