Hey!
I am working with STM32L051K8 with ADS114S06 ADC.
While most of the code runs fine and as expected, the error we are getting in the raw ADC value is higher in the alternate power cycle. That is at the input of 50mV we are expecting to get ~20970 from the ADC, once we will get 20982 which is a reasonable 0.03% error of the full span. But after the power cycle, we will get a value in the range of 21080 with an error of 0.33%. Again after doing few a power cycles, we go back to getting 0.03% error, and again after few power cycles, it will go bad, so on and so forth.
The only thing that solves the problem is adding a huge delay between two acquisitions on the scale of 25mS and above.
I have tried changing Sample Per Seconds in the ADC with no luck. I'm just not sure where to start digging.
Some more information:
1. The controller is running at 4.194MHz
2. ADC is set for continuous conversion mode, a gain of 32, low latency filter, 2K SPS and uses internal reference and current sources.