ADC channel 12 less accurate than the other ?
Hello,
Since two year, I am experiencing an issue with the ADC_CHANNEL_12 (pin PC12) of my STM32F767. I suspect it's a hardware issue coming from the MCU.
- a stable offset is added (randomly change each time I reboot the STM)
- this read value (via DMA) is way less accurate than the other inputs (I also use 3 other ADC pins that are working great), look like a lot of noise is disturbing the ADC (read value randomly change +2/-2% between the "real" voltage value)
I use a proper custom PCB circuit, no noise / EMI should be added. Again, the 3 other ADC input pins (PC3, PA0, PA1) are very accurate. Also tested with an oscilloscope, the signals are very clean.
What I've tried:
- changing ADC_RESOLUTION_12B to ADC_RESOLUTION_10B = it fixes the offset problem!
- reducing ADC_SAMPLETIME = some values are improving a bit the accuracy problem (in fact, changing the ADC_SAMPLETIME of the other ADC inputs also change the accuracy of the PC12 ADC !)
- Using ADC2 instead of ADC1 = does not change anything
- Using the tips of the STM32F7 errata sheet (setting the bit SYSCFG_PMC_ADC2DC2) = does not change anything
- Every other ADC configurations does not change anything
Maybe some of you came across this issue?
Thanks a lot for your help!
Cheers,