Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on When do I need to put anti-aliasing filter in front of SAR ADC?

Parent

When do I need to put anti-aliasing filter in front of SAR ADC?

+7
−0

Signal characteristics are:

  • 0 to 3.3V span
  • 0 to 100Hz range( there will be noise superposed on top with unknown characteristics)
  • Output resistance Rout=4700 ohm

I want to sample that with a SAR ADC built in the MCU. ADC has following characteristics:

  • internal sample and hold capacitance --> Csh = 7pF
  • sampling switch resistance --> Rsh = 6kOhm
  • sampling time range --> programmable from t_s = 0.1us to t_s = 16us

My idea was to sample the input signal at a much higher rate than needed and implement an RC filter in the firmware so I can modify it easily.

Is there a benefit and what would the benefit of putting an RC filter in front of the ADC be? Or I can implement it purely in FW without drawbacks?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

DMA might help (2 comments)
Post
+2
−0

Anti-Aliasing filter depends on the following parameters;

  1. Signal BW
  2. Sampling Rate
  3. Sampling duration and thus BW of sample
  4. LPF attenuation of alias spectrum above 1. From your SNR spec or dynamic range desired for resolution

When sampling rates of 64x are used, often a 1st order LPF is all that is needed when 32x , a 2nd order filter, when 2x sampling rate, you need a brick wall filter that suffers from group delay distortion near bandedge. These are the benefits of over sampling (order vs SNR are tradeoff estimates only, not precise.)

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Oversampling vs. Filter order (2 comments)
Oversampling vs. Filter order
2kind‭ wrote over 2 years ago

Can you give a bit of background for x64 and x32 oversampling logic?

TonyStewart‭ wrote over 2 years ago

Anti-aliasing filters are always needed when the spectrum above the Nyquist rate fs/2 will degrade SNR with the resulting difference frequency output. Thus dynamic range and spectral values ought to be estimated with desired SNR.

Typically a sampling rate might be 3x the upper frequency is the spectrum is sparce or low at this upper range so that high order LP filtering is not required which also adds considerable phase shift and group delay distortion at the breakpoint.

The advantage of x64 oversampling is that a simple 2nd order filter will keep group delays small at the signal spectrum range necessary for high-quality signals with a large dynamic range.

Different "brick-wall LP filters" exist but these add compromises with group delay spikes, attenuation, and complexity.