STM32F767 ADC value significantly larger than expected
We're using the ADC function built into the STM32F767.
The problem is that when the analog signal input to the ADC is around 200mV, the digital value output from the ADC appears to be around 240-260. We're trying to obtain a stable value by collecting 60 of these digital values and calculating a moving average.
However, quite often, out of the 60 data points, 20-30 values exceed 3000. Therefore, even when averaging the data, the readings are completely different from the actual analog value.
When I measured the input analog signal with an oscilloscope, it was around 200mV +/- 40mV, so I don't think it's due to input signal noise.
I suspect there's something wrong with the MCU's ADC settings or program. Please advise on what I suspect.
