When my ADC is in freerunning mode, and I change the channel, the first conversion produces a ridiculous value.
All conversions afterwards are correct. What I do on the following sequence, before I change the channel:
1. Disable ADC
2. Setting to single shot mode
3. Flushing the ADC
3. Changing the channel
4. Setting to freerunning mode
5. Enabling the ADC
But I get the problem above. What is wrong in my train of thoughts?
At present I use the much slower single shot mode, working perfectly.
But my postprocessing of datas (gain- and offset correction, averaging) costs a lot of time in this mode.