English
Language : 

AN3984 Datasheet, PDF (7/46 Pages) STMicroelectronics – The purpose of this document is to provide a tool to calculate
AN3984
First-order filter design (LPF and HPF)
3
First-order filter design (LPF and HPF)
The preliminary step to obtain the coefficients for the first-order low-pass filter or high-pass
filter is to define three constants obtained from the filter parameters:
Equation 7
ωc = 2⋅ π ⋅ f c f s
K = tan(ωc 2)
α = 1+ K
In a first-order filter both the coefficients a2 and b2 are null.
The denominator coefficients are identical for both an LPF and an HPF designed for the
same cutoff frequency and they are computed as follows:
Equation 8
a0 = 1
a1
=
−
(1
−K
α
)
The numerator for an LPF can be calculated as follows:
Equation 9
b0
=
K
α
b1
=
K
α
The numerator for an HPF can be calculated as follows:
Equation 10
b0
=
1
α
b1
=
−
1
α
The coefficient used in APWorkbench can be calculated by applying these formulas:
Equation 11
Coefficient
b1 2
=
(b1 2)
a0
Coefficient
b2
=
(b2 )
a0
Coefficient
a1 2
=
(− a1
a0
2)
Coefficient
a2
=
− a2
a0
Coefficient
b0
2
=
(b0 2)
a0
Doc ID 022240 Rev 1
7/46