Abstract
This paper mathematically investigates a special kind of digital infinite-impulse response (IIR) filters, suitable for filtering out very low frequencies near zero from digital signals. We investigate the transfer functions of such filters from 1st to 3rd order and provide formulas to calculate the filter coefficients from the desired cutoff frequency.
1 Introduction
Digital filtering plays a very important role in many data processing systems. Sometimes it is necessary to remove a time-invariant additive offset from a signal [1], [2]. Such signal components are often named “DC offset”, the respective filter “DC blocker” (DC = “Directed Current” in contrast to “Alternating Current” = AC). For example, Analog-to-Digital converters (ADCs) often possess such a small constant offset that needs compensation or removal [2], [3]. The required filter is a high-pass filter that lets uniformly pass all signal frequencies except extremely low ones, say few percent of the sampling rate or even less.
This paper investigates a special kind of digital DC blocker filters. We provide formulas to calculate the filter coefficients when the desired corner frequency is known. The filter structure can be implemented in software or digital hardware.
2 Digital filter basics
A digital filter is a hardware or software unit that processes an (infinite) series of digital input samples {x k }, producing a series of output samples {y k }. Each output sample y k is a linear combination of a number M of preceding input samples x k−m (m = 0–M) and (optionally) a number N of previous output samples y k−n (n = 1–N). If N = 0, we call it a “Finite Impulse Response” (FIR) filter, since a singular non-zero pulse at the input will lead to a finite number of output pulses (at most M of them). If N > 0, the number of emerging output pulses may theoretically be infinite. This is the “Infinite-Impulse Response” (IIR) filter. It may possess some complications such as insufficient stability, but normally the desired spectral shaping of the output signal, i.e., the filtering, can be achieved with less computational effort than in FIR filters.
Mathematically, the filter is described by its equation
where the x k−m are the input samples, y k−n the output samples, and the b m and a n are constant real coefficients. Their values determine the characteristics of the filter, i.e., the spectral shaping of the signal when it passes the filter.
The samples are almost always taken at constant intervals in time Δt, or, in other words, at a constant sampling frequency
For investigating the spectral properties, we perform a Fourier transform (in the following we only show important final results, for more details consult a textbook like [4], [5], [6]).
Here, X(Ω) and Y(Ω) are the Fourier-transformed input and output signals. Ω is the normalized angular frequency. We normalize all frequencies to the sampling frequency f S.
According to the Nyquist theorem, the highest frequency component in the signal, which makes sense, is the Nyquist frequency f N = ½ f S. Thus, the sensible range for Ω is from 0 to π = 180° = Nyquist frequency. The sampling frequency f S would correspond to Ω = 2π.
The ratio of the output signal to the input signal in frequency domain is denoted “transfer function” H(Ω).
The transfer function is a complex function of the (normalized) frequency, i.e., it has a real and an imaginary part, or an absolute value and a phase. The squared absolute value
Finally, we investigate the stability of the filter. This means, that the filter output samples {y k } are and remain finite (limited) for any finite input sequence {x k }. In particular, they must remain finite after a single input pulse. Mathematically, instability occurs at poles of the transfer function H(Ω). For investigating this property, we transform (5) into the z domain by substituting e iΩ = z:
The poles occur when the denominator is zero, i.e.,
The filter is stable when all complex poles z
k
of (7), equivalent to the polynomial roots of (8), are inside the unit circle of the z domain or, in other words, all
The stability of a filter depends only on the recursive (feedback) coefficients a n . FIR filters, where all a n = 0, are always stable.
3 DC blocker filters
The DC blocker filter shall block very low frequencies near zero and let all higher signal components pass unchanged. This is the high-pass behavior. The transfer function shall be H(Ω) = 0 for Ω = 0 and H(Ω) = 1 for Ω = π (Nyquist frequency).
3.1 First order
The textbook DC blocker filter ([4] chapter 13.23, [2]) is a 1st order IIR filter having the transfer function
This corresponds to the filter equation
Parameter α determines the corner frequency. For the DC blocker it is slightly less than one, say in the range 0.95–0.99.
We will now derive these equations from our general formulas in Section 2. Naming and normalization will slightly differ from the conventions in (1.1) and (1.2). For example: from (1.1) we deduce a pass-band gain of H(Ω = π) = 2/(1 + α); in our normalization we get H(Ω = π) = 1 for any high-pass filter.
Inserting M = N = 1 into (5) leads to
For a high-pass filter we set the boundary conditions H(Ω = 0) = 0 (frequency zero shall be blocked) and H(Ω = π) = 1 (the Nyquist frequency component shall pass unchanged). This allows elimination of two of the unknown coefficients b 0, b 1 and a 1.
From the first condition we get with e –i0 = 1:
or, in other words, b 1 = −b 0 (provided that a 1 ≠ 1).
From the second condition we get with e –iπ = −1:
or, in other words, b 0 − b 1 = 1 + a 1. We redefine the one remaining free parameter as b in the following way:
We insert this into (6):
We transform this equation using the trigonometric relations (1 − cos(Ω)) = 2⋅sin2(1/2 ⋅ Ω), (1 + cos(Ω)) = 2⋅cos2(1/2 ⋅ Ω), and sin2(1/2 ⋅ Ω) + cos2(1/2 ⋅ Ω) = 1.
We re-formulate the free parameter again as b = 1 − 1/2 ω or ω = 2(1 − b) (we will see the reason later):
For Ω in the range 0 ≤ Ω ≤ π, |H(Ω)|2 is a monotonic function. Figure 1 shows some graphs. The larger ω, the higher the corner frequency of the filter, i.e., the transition point from blocking to passing behavior. In case ω = 0 Equation (1.9) has a singularity at Ω = 0.
![Figure 1:
Transfer function of 1st order DC blocker filters (Equation [1.9]).](/document/doi/10.1515/freq-2020-0177/asset/graphic/j_freq-2020-0177_fig_001.jpg)
Transfer function of 1st order DC blocker filters (Equation [1.9]).
A common criterion for the corner frequency is the point, where the filter’s attenuation reaches 3 dB, i.e., |H(Ω)|2 = ½. We calculate this point from (1.9):
For a DC blocker, the corner frequency shall be low: Ω3dB << 1. In this case, we apply the series expansion for tan(x) = x − 1/3 x 3 + … Also ω will be small, so that ω << 2.
Our parameter ω equals the (normalized, angular) 3 dB corner frequency of the filter. If the latter is given, we can calculate the filter coefficients b 0, b 1 and a 1 (see (1.6) and text above (1.9)):
These equations are valid only for small corner frequencies. Equation (1.10), however, applies to any frequency.
Finally, we verify the stability of the filter, which is not always certain for IIR filters. For doing this, we have to find the poles of (1.3). Inserting (1.12), the equation reads as:
We substitute e iΩ = z for transforming into the z domain:
The pole occurs when the denominator is zero, i.e.,
In the z domain, the filter is stable when |z| < 1 [6]. This is the case when 0 < ω < 2, which is fulfilled for a DC blocker filter. However, the nearer ω to 0 (i.e., the smaller the corner frequency), the more the filter approaches the stability limit.
3.2 Second order
Figure 1 depicts that the first order filters are not very steep. For many applications, a smaller transition range between stop and pass behavior is highly desired. This can be achieved by increasing the order of the filter, i.e., the number of coefficients.
For a 2nd order filter we have to set M = N = 2 in (5)
The boundary conditions for high-pass filter do not change: H(Ω = 0) = 0 (frequency zero shall be blocked) and H(Ω = π) = 1 (Nyquist frequency shall pass unchanged). This again allows elimination of two of the unknown coefficients, but we have five of them now: b 0, b 1, b 2 and a 1, a 2.
From the first condition we get with e −i0 = 1:
or, in other words, b 1 = −(b 0 + b 2) (provided that a 1 + a 2 ≠ 1).
From the second condition we get:
or, in other words, b 0 − b 1 + b 2 = 1 + a 1 − a 2. Combining this with the result from (2.2) leads to 2(b 0 + b 2) = −2b 1 = 1 + a 1 − a 2 or a 1 = 2(b 0 + b 2) + a 2 − 1. Inserting into (6) yields
We transform this equation in a way similar to (1.6). Only main intermediate results are given.
This formula already looks pretty similar to the 1st order transfer function (1.8), provided that b 0 = b 2 and a 2 = −b 0 ⋅ b 2. It will turn out that this setting is indeed a good solution. Thus, we may set our remaining free parameters as b 0 = b 2 = b and a 2 = −b 0 ⋅ b 2 = −b 2.
More generally, we may set b 0 = b + β, b 2 = b − β and a 2 = α − b 0 ⋅ b 2 = α − (b 2 − β 2). Inserting into (2.5) leads to:
Comparing (2.6) and (2.7) one finds that a small non-zero β is almost equivalent to a change in b, i.e., to a shift of the corner frequency. Moreover, only β 2 is present in (2.7), i.e., the sign of β is irrelevant. In contrast, a negative α can lead to |H(Ω)|2 > 1 when the term 4α ⋅ sin2(1/2⋅Ω) + ((1−b)2 − α − β 2)2 becomes negative.
Figure 2 shows some numerical simulations. It turns out that α = 0 is in fact a good choice. Positive α leads to flatter curve shape of the transfer function, whereas a negative α may result in a peak of |H(Ω)|2. Both is not desired. A slightly improved curve shape may be obtained for small negative α ≈ −(1−b)2/8 = −ω 2/16.
Coming back to our simple case (2.6), we re-define the parameter b that determines the corner frequency as ω = √2 (1 − b). The 2nd order Formula (2.8) is now very similar to the 1st order Formula (1.9), but it has an additional factor ω/2 sin(1/2 ⋅ Ω) before the cot() term. This term is responsible for the steeper transfer curve of the 2nd order filter, compared to the 1st order one.
For Ω in the range 0 ≤ Ω ≤ π, |H(Ω)|2 is a monotonic function. Figure 3 shows some graphs. The larger ω, the higher the corner frequency of the filter, i.e., the transition from blocking to passing behavior. In the case ω = 0 Equation (2.8) has a singularity at Ω = 0.

Influence of non-zero α and β in Equation (2.7).
![Figure 3:
Transfer function of 2nd order DC blocker filters (Equation [2.8]).](/document/doi/10.1515/freq-2020-0177/asset/graphic/j_freq-2020-0177_fig_003.jpg)
Transfer function of 2nd order DC blocker filters (Equation [2.8]).
We calculate the 3 dB corner frequency from (2.8):
For a DC blocker, the corner frequency shall be low: Ω3dB << 1. In this case, we apply the series expansion for tan(x) = x − 1/3 x
3 + … and sin(x) = x − 1/6 x
3 + … Also ω will be small, so that
Our parameter ω again equals the (normalized, angular) 3 dB corner frequency of the filter. If the latter is given, we can calculate the filter coefficients:
These equations are valid only for small corner frequencies. Equation (2.8), however, applies to any frequency.
Finally, we verify the stability of the filter. We have to find the poles of (2.1). Inserting (2.10), the z-transformed equation reads as:
The poles occur when the denominator is zero, i.e.,
This is a quadratic polynomial. Its roots are given by Vieta’s formula:
For small ω << 1 the term under the square root is negative, i.e., the two poles are conjugate complex. Their absolute value is given by the sum of the squares of real and imaginary parts:
The filter is stable when |z| < 1. This is the case when 0 < ω < 2
3.3 Third order
In order to further increase the steepness of the transfer function, we may further increase the order of the filter. We will provide here the results for the 3rd order filter, without giving all intermediate steps and results. The way of calculations is similar to the 2nd order filter.
For a 3rd order filter we have to set M = N = 3 in (5)
The boundary conditions for high-pass filter do not change: H(Ω = 0) = 0 (frequency zero shall be blocked) and H(Ω = π) = 1 (Nyquist frequency shall pass unchanged). This again allows elimination of two of the unknown coefficients, but we now have seven of them: b 0, b 1, b 2, b 3 and a 1, a 2, a 3.
From these boundary conditions we get:
The calculations proceed in the same way as for 2nd order. Since we have two more free coefficients, we need more criteria to pre-select some of them. On one-hand side, we have chosen the b k coefficients to behave like binomial coefficients (i.e., to have a relation b 0 = b, b 1 = −3b, b 2 = 3b, b 3 = −b) in concordance with the lower order filter’s b k coefficients. On the other hand, the target |H(Ω)|2 transfer function should have only one cot2(Ω/2) term. The calculations are quite lengthy, so we report only the final results. The transfer function reads as:
Compared with (2.8), the power of the sin() term is increased to 2nd power, which results in a higher steepness at the corner frequency (see Figure 4). The corner frequency is calculated from

Transfer function of 1st–3rd order DC blocker filters.
For small corner frequencies the series expansion again finally results in
The filter coefficients compute as:
Finally, we report without proof that for small Ω3 dB the filter is stable. The pole’s absolute values are approximately at |z| ≈ (1 − ω).
Figure 4 shows the transfer functions 1st–3rd order for filters with corner frequencies Ω3dB = 1/32 and Ω3dB = 1/8. It is clearly visible that the steepness of the transition region between pass and stop regions increases with increasing filter order. Please notice the reduced x axis range when comparing with Figures 1 and 3.
4 Low-pass filters
The same principle can also be applied to low-pass filters with a corner frequency near to the Nyquist frequency. Also such filters are needed in communication systems, for example in those based on OFDM modulation [7], [8].
We sketch the calculations for the 1st order filter here. The starting point is again (1.3), but for a low-pass filter we have to swap the boundary conditions: H(Ω = 0) = 1 (frequency zero shall pass) and H(Ω = π) = 0 (Nyquist frequency shall be blocked). Equations (1.4) and (1.5) are the replaced by
or, in other words, b 0 = b 1 and b 0 + b 1 = 1 − a 1. Combining leads to 2b 0 = 2b 1 = 1 − a 1. We set ω = 1 + a 1 and insert these relations into (6):
Compared with (1.9), the cot() function is replaced with tan(). The corner frequency, where the filter’s attenuation reaches 3 dB, computes as:
The corner frequency is now near to the Nyquist frequency, which corresponds to Ω = π. This means (π − Ω3dB) << 1. Under this condition, we transform (4.4) using the relation cot(x) = tan(π/2 − x). After that, the normal series expansion for tan(x) is possible.
Our parameter ω equals the distance of the (normalized, angular) 3 dB corner frequency of the filter to the Nyquist frequency (half sampling rate). If the corner frequency is given, we can calculate the filter coefficients b 0, b 1 and a 1 (see text above (4.3)):
The low-pass filter coefficients (4.6) are equivalent to their high-pass counterparts (1.12) except for the sign of a 1 and b 1. Inserting these coefficients into (1) results in the instruction to compute the output samples y k of the filter from the input x k .
The filter equations and coefficients for higher-order low-pass filters can be derived in the same way as for the DC blocker filters. This is left to another publication.
5 Implementation aspects
5.1 Calculating filter coefficients
When practically using the above results for designing one of the investigated IIR high-pass filters, one first has to calculate the normalized angular corner frequency (filter attenuation 3 dB) that equals our filter parameter ω. From (4) we get:
where f 3 dB is the corner frequency in user units (e.g., MHz) and f S is the sampling rate of the filter in the same units.
The filter equation for the first order DC blocker (or high-pass) filter is then given by:
For the second order filter it is given by:
For the third order filter this equation is given by:
In many cases, the exact value of the corner frequency is not so critical. Then, one can attempt to choose the parameter ω (or
5.2 VHDL simulation
To test the designed filter architectures, we have undertaken a simulation of example filters in time domain in the hardware description language VHDL, which would be a preferred candidate for a filter implementation in digital hardware. The simulation presented here uses real arithmetics for all data, but also fixed point simulations were carried out.
Figure 5 shows simulation waveforms of 1st–3rd order filters with ω = 1/8 for the frequency range 0 < Ω/π < 0.1 (see also Figure 4). The pink wave at the top is the input chirp signal (frequency varies from 0 to 0.1 f N = 0.05 f S ). The three blue waveforms are the outputs of the 1st–3rd order DC blocker filters. The gray line above each approximates the un-squared transfer function |H(Ω)| (not |H(Ω)|2) as determined from the signal maxima. The red curve at the bottom gives the actual signal frequency as fraction of the Nyquist frequency.

Simulated signal waveforms of 1st–3rd order DC blocker filters.
6 Conclusions
We have investigated a class of IIR filters, namely high-pass filters with very low corner frequency, also named as DC blockers. The proposed 2nd and 3rd order filters show a significantly smaller and steeper transition range between stop and pass-band than the commonly used 1st order filters. We have proven that the filters are intrinsically stable (i.e., when not considering rounding errors) and provide analytical formulas to calculate the filter coefficients from the desired cutoff frequency.
Funding source: European Horizon 2020 Programme
Award Identifier / Grant number: 857201
Acknowledgment
The author wishes to thank Nebojsa Maletic for critically reading and commenting the manuscript.
-
Author contribution: The author had accepted responsibility for the entire content of this submitted manuscript and approved submission.
-
Research funding: The research leading to these results has received funding by the European Horizon 2020 Programme for research, technological development and demonstration under Grant Agreement Number 857201 (H2020 5G-VICTORI).
-
Conflict of interest statement: The author declares no conflicts of interest regarding this article.
References
[1] R. Yates and R. Lyons, DC Blockers Algorithms, IEEE Signal Processing Magazine, 2008, pp. 132–134.10.1002/9781118316948.ch10Search in Google Scholar
[2] D. Babic, “Simple efficient digital filters for specific applications”, 25th Telecommunications Forum TELFOR, 2017.10.1109/TELFOR.2017.8249354Search in Google Scholar
[3] L. Zhang, X. Ouyang, X. Shao, and J. Zhao, “Experimental demonstration of a real-time high-throughput digital DC blocker for compensating ADC imperfections in optical fast-OFDM receivers”, Optic Express, vol. 24, no. 13, pp. 14215–14226, 2016, https://doi.org/10.1364/OE.24.014215.Search in Google Scholar PubMed
[4] R. G. Lyons, Understanding Digital Signal Processing, Upper Saddle River, Prentice-Hall, 2004.Search in Google Scholar
[5] W. Hess, Digitale Filter, Stuttgart, B.G.Teubner, 1993.10.1007/978-3-322-96768-8Search in Google Scholar
[6] W. H. Press, B. P. Flannary, S. A. Teukolsky, and W. T. Vetterling, Numerical Recipes in Pascal, Cambridge University Press, Cambridge, New York, Melbourne, 1992, chapter 12.9.Search in Google Scholar
[7] Y-M. Chen and I-Y. Kuo, “Design of lowpass filter for digital down converter in OFDM receivers,” in 2005 International Conference on Wireless Networks, Communications and Mobile Computing, vol. 2, Maui, HI, 2005, pp. 1094–1099.10.1109/WIRLES.2005.1549565Search in Google Scholar
[8] A. Troya, K. Maharatna, M. Krstic, E. Grass, U. Jagdhold, and R. Kraemer, “Low-Power VLSI implementation of the inner receiver for OFDM-based WLAN systems,” IEEE Trans. Circ. Syst., vol. 55, no. 2, pp. 672–686, 2008, https://doi.org/10.1109/TCSI.2007.913732.Search in Google Scholar
© 2021 Klaus Tittelbach-Helmrich, published by De Gruyter, Berlin/Boston
This work is licensed under the Creative Commons Attribution 4.0 International License.
Articles in the same Issue
- Frontmatter
- Research Articles
- Compact dual-band balanced bandpass filter based on circular SIW cavity
- Digital DC blocker filters
- A metasurface-enabled Fabry–Pérot (FP) circularly polarized antenna with continuous wideband polarization conversion purity
- Review Article
- A single-layer low-cost reflectarray antenna using dual-resonant element approach
- Research Articles
- Bilayer split-ring chiral metamaterial based reconfigurable antenna for polarization conversion
- Circularly polarized array antenna based on dual split ring resonators (DSRRs)
- An analysis of leaky hybrid modes depending on structural parameters in a circular dielectric rod
- Square DRA feed for parabolic reflector antenna for satellite communication application
- An ultra-wideband rectangular ring dielectric resonator antenna integrated with hybrid shaped patch for wireless applications
- Compact super-wideband MIMO antenna with improved isolation for wireless communications
- In-Band Full-Duplex FSK transceiver for IoT
- Review Article
- A survey on the characterization parameters and lifetime improvement techniques of wireless sensor network
Articles in the same Issue
- Frontmatter
- Research Articles
- Compact dual-band balanced bandpass filter based on circular SIW cavity
- Digital DC blocker filters
- A metasurface-enabled Fabry–Pérot (FP) circularly polarized antenna with continuous wideband polarization conversion purity
- Review Article
- A single-layer low-cost reflectarray antenna using dual-resonant element approach
- Research Articles
- Bilayer split-ring chiral metamaterial based reconfigurable antenna for polarization conversion
- Circularly polarized array antenna based on dual split ring resonators (DSRRs)
- An analysis of leaky hybrid modes depending on structural parameters in a circular dielectric rod
- Square DRA feed for parabolic reflector antenna for satellite communication application
- An ultra-wideband rectangular ring dielectric resonator antenna integrated with hybrid shaped patch for wireless applications
- Compact super-wideband MIMO antenna with improved isolation for wireless communications
- In-Band Full-Duplex FSK transceiver for IoT
- Review Article
- A survey on the characterization parameters and lifetime improvement techniques of wireless sensor network