What is the accuracy of the ADC watchdog [STM32F303]?
I have successfully configured the adc watchdog. But i am a bit dissapointed of the accuracy. I set the bounds to 1000 and 3000, but when i read the values of the adc from the watchdog interrupt, i get also values from within the window (up to 1025/2975).
The signal is 10Hz Triangular. I already measured the time from beeing outside of the window until the interrupt is executed (4us). So there is no timing issue.
In the manual it says:
The analog watchdog feature allows very precise monitoring of the converted voltage of one, some or all selected channels. An interrupt is generated when the converted voltage is outside the programmed thresholds.25 of 4096 at 3.3V is 20mV... I would not call that very precise, not even precise....
Is it a safety margin?
I could compensate this, but i wonder if it could change somehow (temperature etc.)?
I made a diagram, to visualize it and added a cap to smooth out the signal:
x-axis shows the value from the ADC, and the y-axis is the number of measures values. The window has been changed to 3000/3200.
