stm8s003f3 adc value fluctuation
Hi Everyone,
I am measuring an Ac voltage which is biased on 2.5v dc on stm8s003f3. The input is coming from an op-amp. My problem is I am not getting a stable ADC value. there is always 2 3 point ADC fluctuation which ultimately fluctuates the AC voltage that I am measuring. I measure the minimum and maximum peak of the signal with 100 samples and then take an average of min and max with 30 samples. But still, I get fluctuation. For example, if the peak adc at 100 v is 630 I get a 630, 626, 634 wise sample. My hardware is OK as the same hardware is already working fine with someone else coded.
I would appreciate it if you suggest to me how to get stable ADC values.
Thanks
