I've set a 3x multichannel ADC, timer-triggered and DMA with STM32L476. My reference is 2.5V and my zero is Vref/2 = 1.25V. So when there's no input signal, I should measure 1.25V or ~2048 counts. This is what I see in the buffer:
ADC[0] = 2044; //input 0
ADC[1] = 2047; //input 1
ADC[2] = 2046; /input 2
ADC[3] = 2046; //Vref/2
ADC[0] tends to stay at 2044. The rest of the channels move around 2046-2047 but they don't go down to 2044. What I'm noticing is that missing count on ADC[0] really makes a difference compared to the rest of the channels. Let's say you substract the reference value from the inputs, for ADC[0] you get about 2044-2046 = -2 and that affects further calculations depending on how the counts processing is done. It will also offset the coming input signals.
So my question would be if there's an efficient filter scheme that eliminates or mitigates this behavior to get a smoother "zero" for all the channels. If ADC[0] stays at 2044 I don't know if a filter would help. At the end I'm not sure why the first channel differs a bit from the others when they all have the same signal.