Author Topic: Is this normal in SAR ADCs or am I dealing with missing counts?  (Read 1258 times)

0 Members and 1 Guest are viewing this topic.

Offline Red_MicroTopic starter

  • Regular Contributor
  • *
  • Posts: 123
  • Country: ca
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.
 

Offline wraper

  • Supporter
  • ****
  • Posts: 19537
  • Country: lv
Re: Is this normal in SAR ADCs or am I dealing with missing counts?
« Reply #1 on: March 31, 2022, 06:49:54 am »
This is a nonlinearity and/or offset, not missing counts.
 

Offline wraper

  • Supporter
  • ****
  • Posts: 19537
  • Country: lv
Re: Is this normal in SAR ADCs or am I dealing with missing counts?
« Reply #2 on: March 31, 2022, 07:01:48 am »
Also if you sample directly from a resistive voltage divider bypassed by a capacitor in fast bursts and without an opamp buffer, input voltage will actually change. As each time you are charging sampling capacitor from the ADC input.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->