Comb Filter Introduction and Analysis - Wave Walker DSP (2024)

DSP Algorithms for RF Systems

Trending

  • Install and Run LaTeX on macOS posted on January 5, 2022
  • Cross Correlation Explained With Real Signals posted on December 1, 2021
  • Designing FIR Filter Gain posted on February 23, 2022

Comb Filter Introduction and Analysis

March 1, 2023

PrevPrevious BlogBand Pass Single Pole IIR Filter Design

Next BlogDiscrete Fourier Transform (DFT) of Complex SinusoidNext

Table of Contents

Introduction

A comb filter is a multiplier-less filter, meaning it only uses additions when computing the impulse response. The comb filter is one of the two major building blocks in the cascaded integrator comb (CIC) filter.

This blog post will describe both the impulse response and frequency response of the comb filter and demonstrate how to analyze the comb filter in the frequency domain.

Related DSP blogs:

  • Minimizing Filter Length: Explaining Why
  • FIR Low Pass Filter Design With Remez
  • Single Pole IIR: Substitute for Moving Average Filter

Comb Filter Time Domain

The difference equation for the comb filter is defined by [harris2021,p.395]:

(1) Comb Filter Introduction and Analysis - Wave Walker DSP (13)

where Comb Filter Introduction and Analysis - Wave Walker DSP (14) which is the delay between the two samples being added.

Comb Filter Frequency Domain

It is difficult to assertain the impact of the filter only looking at the time domain in (1) but transformation into the frequency domain can make the analysis easier. Apply the Z-transform:

(2) Comb Filter Introduction and Analysis - Wave Walker DSP (15)

and combine like terms:

(3) Comb Filter Introduction and Analysis - Wave Walker DSP (16)

The transfer function H(z) is therefore

(4) Comb Filter Introduction and Analysis - Wave Walker DSP (17)

SubstitutingComb Filter Introduction and Analysis - Wave Walker DSP (18), the frequency response is therefore

(5) Comb Filter Introduction and Analysis - Wave Walker DSP (19)

The magnitude-squared of the the frequency response is therefore

(6) Comb Filter Introduction and Analysis - Wave Walker DSP (20)

Using Euler’s formula(6) can be written as

(7) Comb Filter Introduction and Analysis - Wave Walker DSP (21)

Comb Filter Passband Analysis

The maximum values, or pass-bands, of the comb filter’s frequency response (7) occur when

(8) Comb Filter Introduction and Analysis - Wave Walker DSP (22)

such that

(9) Comb Filter Introduction and Analysis - Wave Walker DSP (23)

Using an example to illustrate (8), a comb filter with a delay M=2 will have maxima when

(10) Comb Filter Introduction and Analysis - Wave Walker DSP (24)

Substituting Comb Filter Introduction and Analysis - Wave Walker DSP (25),

(11) Comb Filter Introduction and Analysis - Wave Walker DSP (26)

when

(12) Comb Filter Introduction and Analysis - Wave Walker DSP (27)

therefore the maxima of the passband occur at

(13) Comb Filter Introduction and Analysis - Wave Walker DSP (28)

The values of Comb Filter Introduction and Analysis - Wave Walker DSP (29) in (13) are limited to

(14) Comb Filter Introduction and Analysis - Wave Walker DSP (30)

because it is a discrete-time filter and Comb Filter Introduction and Analysis - Wave Walker DSP (31) and Comb Filter Introduction and Analysis - Wave Walker DSP (32) correspond to the negative sampling frequency and positive sampling frequency in radians.

Comb Filter Stopband Analysis

The minimum values, or stop-bands, of the comb filter’s frequency response occur when

(15) Comb Filter Introduction and Analysis - Wave Walker DSP (33)

such that

(16) Comb Filter Introduction and Analysis - Wave Walker DSP (34)

Using an example to illustrate (15), a comb filter with a delay M=2 will have minima when

(17) Comb Filter Introduction and Analysis - Wave Walker DSP (35)

Substituting Comb Filter Introduction and Analysis - Wave Walker DSP (36),

(18) Comb Filter Introduction and Analysis - Wave Walker DSP (37)

when

(19) Comb Filter Introduction and Analysis - Wave Walker DSP (38)

therefore the minima of the passband occur at

(20) Comb Filter Introduction and Analysis - Wave Walker DSP (39)

Examples of Comb Filter Frequency Responses

The magnitude of the frequency response of a comb filter with M=2 is given in Figure 1. Compare the result in Figure 1 against the result of the passband and stopband analysis in (13) and (20).

Comb Filter Introduction and Analysis - Wave Walker DSP (40)

Increasing the delay M results in more passbands and more stopbands. Figure 2 gives the magnitude of the frequency response for M=4.

Comb Filter Introduction and Analysis - Wave Walker DSP (41)

Figure 3 gives the responses for three different comb filters: M=2, 3 and 4. Increasing the delay M results in more maxima and more minima, which appear as more teeth in the comb. Increasing the delay M also narrows the teeth of the comb.

Comb Filter Introduction and Analysis - Wave Walker DSP (42)

Conclusion

The comb filter is multiplier-less filter, making it efficient to implement. The comb filter is also one half of the cascaded integrator comb (CIC) filter. The blog described both the impulse response and frequency response of the comb filter. Analysis was also performed on the passbands and stopbands of the frequency response.

Related DSP blogs:

  • Minimizing Filter Length: Explaining Why
  • FIR Low Pass Filter Design With Remez
  • Single Pole IIR: Substitute for Moving Average Filter

Related

PrevPrevious BlogBand Pass Single Pole IIR Filter Design

Next BlogDiscrete Fourier Transform (DFT) of Complex SinusoidNext

5 Responses

  1. Nice article thanks

    Reply

  2. Is that error that (5) equation does not have M in the exponent?

    Reply

    1. Yes! Thank you, and I’ve updated the equation.

      Reply

  3. Hi,
    Matlab freqz does not agree with your plots. for example:
    num =[1, 0, 0, 0, -1] for M= 4
    freqz(num,1) and see plot is high pass filter.
    Any thoughts please?
    Kadhiem

    Reply

    1. Change the -1 into a +1

      num = [1, 0, 0, 0, 1]

      Reply

Leave a Reply

God, the Lord, is my strength; He makes my feet like the deer's; He makes me tread on my high places. Habakkuk 3:19

For everything there is a season, and a time for every matter under heaven. A time to cast away stones, and a time to gather stones together. A time to embrace, and a time to refrain from embracing. Ecclesiastes 3:1,5

The earth was without form and void, and darkness was over the face of the deep. And the Spirit of God was hovering over the face of the waters. Genesis 1:2

Behold, I am toward God as you are; I too was pinched off from a piece of clay. Job 33:6

Enter His gates with thanksgiving, and His courts with praise! Give thanks to Him; bless His name! Psalm 100:4

Lift up your hands to the holy place and bless the Lord! Psalm 134:2

Blessed is the man who trusts in the Lord, whose trust is the Lord. He is like a tree planted by water, that sends out its roots by the stream, and does not fear when heat comes, for its leaves remain green, and is not anxious in the year of drought, for it does not cease to bear fruit. Jeremiah 17:7-8

He said to him, “You shall love the Lord your God with all your heart and with all your soul and with all your mind. This is the great and first commandment. And a second is like it: You shall love your neighbor as yourself. On these two commandments depend all the Law and the Prophets.” Matthew 22:37-39

Then He said to me, “Prophesy over these bones, and say to them, O dry bones, hear the word of the Lord. Thus says the Lord God to these bones: Behold, I will cause breath to enter you, and you shall live." Ezekiel 37:4-5

Riches do not profit in the day of wrath, but righteousness delivers from death. Proverbs 11:4

The angel of the Lord appeared to him in a flame of fire out of the midst of a bush. He looked, and behold, the bush was burning, yet it was not consumed. And Moses said, “I will turn aside to see this great sight, why the bush is not burned.” When the Lord saw that he turned aside to see, God called to him out of the bush, “Moses, Moses!” And he said, “Here I am.” Exodus 3:2-3

Daniel answered and said: “Blessed be the name of God forever and ever, to whom belong wisdom and might. He changes times and seasons; He removes kings and sets up kings; He gives wisdom to the wise and knowledge to those who have understanding." Daniel 2:20-21

Now the Lord is the Spirit, and where the Spirit of the Lord is, there is freedom. 2 Corinthians 3:17

Previous slide

Next slide

This website participates in the Amazon Associates program. As an Amazon Associate I earn from qualifying purchases.

© 2021-2024 Wave Walker DSP

Comb Filter Introduction and Analysis - Wave Walker DSP (2024)

References

Top Articles
Latest Posts
Article information

Author: Delena Feil

Last Updated:

Views: 5722

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Delena Feil

Birthday: 1998-08-29

Address: 747 Lubowitz Run, Sidmouth, HI 90646-5543

Phone: +99513241752844

Job: Design Supervisor

Hobby: Digital arts, Lacemaking, Air sports, Running, Scouting, Shooting, Puzzles

Introduction: My name is Delena Feil, I am a clean, splendid, calm, fancy, jolly, bright, faithful person who loves writing and wants to share my knowledge and understanding with you.