UNIVERSIDAD DE LAS FUERZAS ARMADAS ESPE
SIGNAL AND SYSTEMS
Fausto Granda G.
Sangolqui - Ecuador
Signal and Systems
Filtering
References
• Oppenheim, A. Willsky, and H. Nawab, Signals and Systems, 2ª edición, 1997, Prentice Hall, ISBN # 0-13-
814757-4.
• Hwei P. Hsu, “Signals and Systems”, 2nd Edition, McGrawHill Schaum Outlines, ISBN: 978-0-07-163473-1, 2011.
• Chaparro Luis, “Signal and Systems using Matlab”, Elsevier, Oxford UK, ISBN 978-0-12-374716-7 , 2011
• https://www.ti.com/lit/an/snoa224a/snoa224a.pdf, march 03, 2021
Filtering.
- In circuit theory, a filter is an electrical network that alters the amplitude and/or
phase characteristics of a signal with respect to frequency.
- Ideally, a filter will not add new frequencies to the input signal, nor will it
change the component frequencies of that signal.
- Filters are intender to change the relative amplitudes of the various frequency
components and/or their phase relationships.
- Filters are often used in electronic systems to emphasize signals in certain
frequency ranges and reject signals in other frequency ranges.
Filtering
- Since filters are defined by their frequency-domain effects on signals, it makes
sense that the most useful analytical and graphical descriptions of filters also
fall into the frequency domain.
- Curves of gain vs frequency and phase vs frequency are commonly used to
illustrate filter characteristics and the most widely-used mathematical tools are
based in the frequency domain.
- The frequency-domain behavior of a filter is described mathematically in
terms of its transfer function or network function.
Filtering
Filtering
• This is a 2nd order system. The order of a filter is the highest power of the variable s in its transfer
function.
• The order of a filter is usually equal to the total number of capacitors and inductors in the circuit. (A
capacitor built by combining two or more individual capacitors is still one capacitor.)
• Higher-order filters will obviously be more expensive to build, since they use more components, and they
will also be more complicated to design. However, higher-order filters can more effectively discriminate
between signals at different frequencies.
Filtering
With no explicit passband limits, the passband
limits are usually assumed to be the
frequencies where the gain has dropped by 3
2
decibels (to or 0.707 of its maximum voltage
2
gain).
These frequencies are therefore called the −3 dB
frequencies or the cutoff frequencies.
However, if a passband gain variation (i.e., 1 dB)
is specified, the cutoff frequencies will be the
frequencies at which the maximum gain variation
specification is exceeded.
Filtering
Since the range of amplitudes may also be
large, the amplitude scale is usually
expressed in decibels (20log|H(jω)|). - > (
logarithmic frequency scales and a decibel
amplitude scale.)
Filtering
The precise shape of a band-pass filter's amplitude response curve will depend on the particular
network. The center frequency is equal to the geometric mean of the −3 dB frequencies:
Another quantity used to describe the performance of a filter is the filter's “Q”. This is a measure of the
“sharpness” of the amplitude response. The Q of a band-pass filter is the ratio of the center frequency to the
difference between the −3 dB frequencies (also known as the −3 dB bandwidth). Therefore:
Filtering: Classification of Filters
Switched-capacitor
Filtering: Classification of Filters
Filtering: Classification of Filters
Filtering: Classification of Filters
Filtering: Classification of Filters
Filtering: Classification of Filters
https://www.softpedia.com/get/Science-CAD/FilterPro-Desktop.shtml
https://filterpro.software.informer.com/download/#downloading
deactivated
40 dB/decade
Filtering: Classification of Filters
• All-Pass or Phase-Shift Filter: has no effect on the amplitude of the signal at different frequencies.
Instead, its function is to change the phase of the signal without affecting its amplitude.
• Are typically used to introduce phase shifts into signals in order to cancel or partially cancel any
unwanted phase shifts previously imposed upon the signals by other circuitry or transmission media.
Filtering: Classification of Filters
• The differences between different filter responses within one filter type
(e.g., low-pass) can include, among others, characteristic frequencies, filter
order, roll-off slope, and flatness of the passband and stopband regions.
• The transfer function ultimately chosen for a given application will often be
the result of a tradeoff between the above characteristics.
• The pole-zero diagram can be helpful to filter designers as an aid in visually
obtaining some insight into a network's characteristics. We obviously want to
avoid filter designs with poles in the right half-plane!
Filtering: shape
• The basic shape of the curve is determined by the filter's Q, which is
determined by the denominator of the transfer function. The change in the
gain scale factor (Ho) or frequency scale factor (Wo) will alter the amplitude or
frequency scale on an amplitude response curve, but the shape, will remain
the same.
Filtering: Filter approximations
• Deciding the best filter response involves making a compromise between various
properties of the filter’s transfer function:
• Filter Order: related to the number of components in the filter, therefore, higher-order
filters are more expensive, take up more space, and are more difficult to design,
however they will have a steeper rolloff slope than a similar lower order filter.
• Ultimate Rolloff Rate: Usually expressed as the amount of attenuation in dB for a
given ratio of frequencies. The most common units are “dB/octave” and “dB/decade”.
• Transient Response. It is often of interest to know how the filter will behave under
transient conditions. An input step function signal provides a good indication of this.
As a rule of thumb, filters with sharper cutoff characteristics or higher Q will have
more pronounced ringing.
Filtering: Filter approximations
• Monotonicity: A filter has a monotonic amplitude response if its gain slope never
changes sign (ej. low-pass or high-pass filters).
• Passband Ripple. Some not monotonic filters (pass-band and stop-band filters) have
responses with “ripple” within the passband. Some systems don't necessarily require
monotonicity but do require that the passband ripple be limited to some maximum
value (usually 1 dB or less).
• Stopband Ripple. Some filter responses also have ripple in the stopbands. We are
normally unconcerned about the amount of ripple in the stopband, as long as the
signal to be rejected is sufficiently attenuated.
The acceptability of a filter design will depend on many interrelated factors,
including the amplitude response characteristics, transient response, the
physical size of the circuit and the cost of implementing the design.
Filtering: Filter approximations
Filtering: Filter responses
In real filters, various tradeoffs are made attempting to approximate the ideal:
Some filter responses are optimized for gain flatness in the passband; some trade off
gain variation (ripple) in the passband for steeper roll-off; still others trade off both
flatness and rate of roll-off in favor of pulse-response fidelity
Filter responses
Linear
Butterworth Chevyshev Bessel Gaussian
Phase
Filtering: Filter responses
Filter responses
Linear
Butterworth Chevyshev Bessel Eliptic Gaussian
Phase
Filtering: Filter responses
Filtering: Passive filters
Filters made up of passive components: resistors, capacitors, and inductors, so they are
referred to as passive filters. A passive filter is simply a filter that uses no amplifying
elements (transistors, operational amplifiers, etc.).
ADVANTAGES
✓ It is the simplest (in terms of the number of necessary components) implementation of
a given transfer function.
✓ Require no power supplies.
✓ Work well at very high frequencies.
✓ Can be used in applications involving larger current or voltage levels than can be
handled by active devices.
✓ Generate little noise (thermal noise from the resistive components ) when compared
with circuits using active gain elements. With careful design, the amplitude of this noise
can be very low.
Filtering: Passive filters
DISADVANTAGES
▪ Since they use no active elements, they cannot provide signal gain.
▪ Input impedances can be lower and output impedances can be higher the
optimum for some applications, so buffer amplifiers may be needed.
▪ Inductors are necessary for the synthesis of most passive filter characteristics, and
these can be prohibitively expensive if high accuracy, small physical size, or
large value are required.
▪ Tuning these to the required values is time-consuming and expensive when
producing large quantities of filters.
▪ Complex passive filters (higher than 2nd-order) can be difficult and time consuming
to design.
Filtering: Active filters
Active filters use amplifying elements, especially op amps, with resistors and capacitors in
their feedback loops, to synthesize the desired filter characteristics.
ADVANTAGES
✓ They have high input impedance, low output impedance, and virtually any arbitrary
gain
✓ They are also usually easier to design than passive filters.
✓ Possibly their most important attribute is that they lack inductors, thereby reducing the
problems associated with those components
Filtering: Active filters
Active filters use amplifying elements, especially op amps, with resistors and capacitors in
their feedback loops, to synthesize the desired filter characteristics.
DISADVANTAGES
▪ Performance at high frequencies is limited by the gain-bandwidth product of the
amplifying elements, but within the amplifier's operating frequency range, the op
amp-based active filter can achieve very good accuracy, provided that low-tolerance
resistors and capacitors are used.
▪ Active filters will generate noise due to the amplifying circuitry, but this can be minimized
by the use of low-noise amplifiers and careful circuit design
Filtering: the switched-capacitor filter
Switched-capacitor filters are clocked, sampled-data systems; the input signal is
sampled at a high rate and is processed on a discrete-time, rather than continuous,
basis.
▪ The switched-capacitor approach overcomes some of the problems inherent in
standard active filters.
▪ Switched-capacitor filters need no external capacitors or inductors, and their
cutoff frequencies are set to a typical accuracy of ±0.2% by an external clock
frequency.
▪ This allows consistent, repeatable filter designs using inexpensive crystal-
controlled oscillators, or filters whose cutoff frequencies are variable over a
widerange simply by changing the clock frequency.
▪ Switched-capacitor filters can have low sensitivity to temperature changes.
▪ The primary weakness of switched-capacitor filters is that they have more noise
at their outputs—both random noise and clock feedthrough—than standard active
filter circuits.
Filtering: Which approach is the best?
Each filter technology offers a unique set of advantages and disadvantages:
- Accuracy: Switched-capacitor filters have the advantage of better accuracy. Better
accuracy for active/passive filters means additional cost.
- Cost: For a single pole, a passive RC network may be an ideal solution. For more
complex designs, switched-capacitor filters can be very inexpensive and versatile.
When speed and accuracy are not important concerns, active filters are good choice.
- Noise: Passive filters generate very little noise (the thermal noise of the resistors), and
conventional active filters generally have lower noise than switched-capacitor IC’s.
- Offset Voltage: Passive filters have no inherent offset voltage. Switched-capacitor
filters are inappropriate for applications requiring DC precision unless external circuitry
is used to correct their offsets.
- Frequency Range: A switched-capacitor filter can cover a center frequency range
from 0.1 Hz or less to 100 kHz or more. Operation at very low frequencies in
passive/active filters will require large/expensive reactive components.
Filtering: Which approach is the best?
Each filter technology offers a unique set of advantages and disadvantages:
▪ Tunability: It is difficult to vary the center frequency without changing the values of
several components in active/passive filters. A switched-capacitor filter's center
frequency can be easily varied with no change in external circuitry. This can be an
important advantage in applications that require multiple center frequencies.
▪ Component Count/Circuit Board Area: The switched-capacitor approach wins easily
in this category. The dedicated, single-function monolithic filters use no external
components other than a clock.
▪ Aliasing: Switched-capacitor filters are sampled-data devices, and will therefore be
susceptible to aliasing when the input signal contains frequencies higher than one-half
the clock frequency.
▪ Design Effort: Depending on system requirements, either type of filter can have an
advantage in this category.
Filtering: Design of an audio equalizer.
Filtering: Active filters
https://tools.analog.com/en/filterwizard/
Filtering: Active filters
https://tools.analog.com/en/filterwizard/
Filtering: Active filters
Filter Pro https://www.softpedia.com/get/Science-CAD/FilterPro-Desktop.shtml
fc = 400𝑥100 = 632 𝐻𝑧 𝑤𝑒 𝑤𝑖𝑙𝑙 𝑐ℎ𝑜𝑜𝑠𝑒 650 𝐻𝑧
40 dB/decade means active filter with order n=2
Bandwidth = fh-fl = 1000-400 = 600Hz
Filtering: Active filters
Filter Pro
fc = 400𝑥1000 = 632 𝐻𝑧 𝑤𝑒 𝑤𝑖𝑙𝑙 𝑐ℎ𝑜𝑜𝑠𝑒 650 𝐻𝑧
40 dB/decade means active filter with order n=2
Filtering: Active filters
Filter Pro
Filtering: Active filters
Filter Pro
Filtering: Active filters
Filter Pro
Filtering: Design of an audio equalizer.
Filtering: Design of an audio equalizer.
The Sallen–Key topology is an electronic filter topology used to implement second-order active filters that is
particularly valued for its simplicity.
Aporte de : Moya Román David Stalin (2019)
Filtering: Design of an audio equalizer.
W. Electrónica. (2017). Filtros analógicos, [Online]. Available: https://wilaebaelectronica.blogspot.com/2017/01/filtros-analogicos.html (visited on 01/18/2021).
Filtering: Design of an audio equalizer.
W. Electrónica. (2017). Filtros analógicos, [Online]. Available: https://wilaebaelectronica.blogspot.com/2017/01/filtros-analogicos.html (visited on 01/18/2021).
Filtering: Design of an audio equalizer.
W. Electrónica. (2017). Filtros analógicos, [Online]. Available: https://wilaebaelectronica.blogspot.com/2017/01/filtros-analogicos.html (visited on 01/18/2021).
Filtering: Design of an audio equalizer.
W. Electrónica. (2017). Filtros analógicos, [Online]. Available: https://wilaebaelectronica.blogspot.com/2017/01/filtros-analogicos.html (visited on 01/18/2021).
Filtering: Design of an audio equalizer.
W. Electrónica. (2017). Filtros analógicos, [Online]. Available: https://wilaebaelectronica.blogspot.com/2017/01/filtros-analogicos.html (visited on 01/18/2021).
Filtering: References
• Filter Pro:
https://www.ti.com/lit/an/sbfa001c/sbfa001c.pdf?ts=1615854006761&ref_url=https%253A%252F%252Fwww.google.com%252F,
march 2021
• A Basic Introduction to Filters - Active, Passive,and Switched Capacitor, https://www.ti.com/lit/an/snoa224a/snoa224a.pdf, march 2021
• Filter designer : https://www.ti.com/design-resources/design-tools-simulation/filter-designer.html, march 2021
• Filter design software: https://www.nutsvolts.com/magazine/article/filter-design-software
• Filter design tool: https://webench.ti.com/filter-design-tool/filter-type, march 2021
• RF Tools : https://rf-tools.com/lc-filter/, marzo 2021
• ANALOG FILTERS, https://www.analog.com/media/en/training-seminars/design-handbooks/Basic-Linear-Design/Chapter8.pdf, march
2021
• http://www.analogzoo.com/2015/12/deriving-the-rc-filter-transfer-function/
• https://wilaebaelectronica.blogspot.com/2017/01/filtro-pasa-banda-pasivo-de-2do-orden-rc.html
https://www.youtube.com/watch?v=hzGb6FVRU8E
Filtering: Fly your mind!
https://www.cartagena99.com/recursos/alumnos/apuntes/Teoria_Tema_3a.pdf
Filtering: Fly your mind!
I forgot Laplace….What can I do?
We can use SAPWIN to find the transfer fuction from it’s circuit.
I don’t know: is a third order or sixth order ??? Orden: n=6 ???
Filtering: Fly your mind!
Band-pass analogue/passive filter
Half – power cut-off frequencies
From 10 hz to 100 hz = 60db/decade - > order n=3
From 50Hz to 500Khz = 70 db/decade - > order n=?
From 80Hz to 800Khz = 85 db/decade - > order n=?
From 90Hz to 900Khz = 105 db/decade - > order n=?
Minimum n = 3 (60 db/decade) -> Filter order 3 ( High pass) / Filter
order 3 (Low-pass) / Filter order 6 (band-pass).
https://www.cartagena99.com/recursos/alumnos/apuntes/Teoria_Tema_3a.pdf
Filtering: Homework
Filter type: (Band-pass, Low-pass,
High pass? )
Transfer function?
Filter order: n=1 ???, n=2 ???
Half – power cut-off frequencies
step roll-off = 20dB/decade ???,
40dB/decade???
https://www.cartagena99.com/recursos/alumnos/apuntes/Teoria_Tema_3a.pdf
Filtering: Fly your mind!
Design an all-pass filter with phase shift of 60 degrees and cut-off frequency of 1000 Hz. Test your
design in Ltspice
Phase_shift= Td*360*f
Td = 60/(360*1000) = 0.000167
https://webench.ti.com/filter-design-tool/filter-type
Filtering: Fly your mind!
Design an all-pass filter with phase shift of 60 degrees and cut-off frequency of 1000 Hz. Test your
design in Ltspice
It Looks OK. For
f=1000Hz the phase
shift is approximate -60
degrees.
Let test in LTSPICE!
Filtering: Fly your mind!
Design an all-pass filter with phase shift of 60 degrees and cut-off frequency of 1000 Hz. Test your
design in Ltspice
For f=1000Hz the phase
shift is 87 degrees.
What happens?
The phase shift is
different from the
configurated in Filter
Pro !!
Filtering: Fly your mind!
Design an all-pass filter with phase shift of 60 degrees and cut-off frequency of 1000 Hz. Test your
design in Ltspice
For f=1000Hz the phase
shift is 87,8 degrees.
What happens?
The phase shift is
different from the
configurated in Filter
Pro !!
Filtering: Fly your mind!
Design an all-pass filter with phase shift of 60 degrees and cut-off frequency of 1000 Hz. Test your
design in Ltspice
For f=1000Hz the phase
shift is:
Ps = 246.077us*360*1000
Ps= 88.58 degrees
The phase shift is
different from the
configurated in
Filter Pro !!
Filtering: Fly your mind!
Design an all-pass filter with phase shift of 60 degrees and cut-off frequency of 1000 Hz. Test your
design in Ltspice
A B
We have
implemented the
configuration B,
so, let’s calculate
the phase shift !
At the corner frequency ω=1/RC the circuit introduces a 90° phase lead.
https://en.wikipedia.org/wiki/All-pass_filter
Filtering: Fly your mind!
𝒓𝒂𝒅
∅ = π − 𝟐 ∗ 𝒂𝒓𝒄𝒕𝒂𝒏 𝟐 ∗ π ∗ 𝟏𝟎𝟎𝟎 ∗ 𝟏𝟔. 𝟓 𝒐𝒉𝒎𝒔 ∗ 𝟏𝟎 𝒏𝑭
𝒔
𝒓𝒂𝒅
∅ =1.534
𝒔
∅ 𝒅𝒆𝒈𝒓𝒆𝒆𝒔 = 88 degrees.
Summary: LTSPICE is correct. Filter Pro has mistake!
We have designed an all-pass filter with phase shift of 88 degrees and cut-off frequency of 1000 Hz!