Professional Documents
Culture Documents
Analysis is a process by which the input-output behavior of a given circuit (in general, any
system) is determined. On the other hand, design is a process by which a circuit (in general,
a system) is constructed that satisfies a given set of specifications regarding its input-output
behavior. We emphasize that a needed circuit that satisfies the given set of specifications is
not constructed out of thin air by dreaming it. Every design makes use of analysis as a tool.
In fact, analysis is the back bone of design. That is, a careful understanding of the results of
analysis lays a road map for design. In the case of filter design, understanding of asymptotic
Bode plots leads us to the process of design as illustrated in this notes. Note that most of
the design problems are open-ended, meaning that the final design is not unique, there could
exist several designs which are all equally good.
As we shall see in this notes, several steps are needed in any design:
before one calls it a final design, a sensitivity analysis needs to be made as to how
changes in parameters affect the specifications.
• To conclude, any design although it is based on strong foundations of theory is not
completely ‘science’. It is an ‘art’ which one gains by experience.
(1, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2) × 10n
by MdB ) versus the radian frequency ω (or equivalently MdB versus the cyclic frequency f )
where the frequency axis is in a logarithmic scale. A piecewise linear plot consists of segments
of straight lines each straight line having a certain slope and length. The analytical equation
of a straight line can be easily written by knowing its slope and one of the points on it. This
is illustrated below.
A segment of asymptotic Bode Magnitude plot A segment of asymptotic Bode Magnitude plot
MdB (ω) MdB (ω)
6 6
20 dB • • 20 dB •
0
•
ω. o
• • • • • • • - 0
• • • • • •
ω.o
• -
• •
. .
. ω → @ ω →
.
−20 dB • .
MdB (ωo ).• . . . . .•
−20 dB •
@ .
MdB (ωo ).• . . . . . . . . . . . . . . •.
−40 dB • −40 dB • @
տ Slope −S dBր@
•
Slope S
dB
−60 dB • −60 dB •
per decade per decade @•
−80 dB • −80 dB •
MdB (ω) = MdB (ωo )+S log10 ωωo MdB (ω) = MdB (ωo )−S log10 ωωo
MdB (f ) = MdB (fo )+S log10 ffo MdB (f ) = MdB (fo )−S log10 ffo
In certain applications, the power frequency (the frequency of the source that supplies power)
is 400 Hz. The frequency 400 Hz and its harmonics could contaminate the information
signal. It is desired to design an active Op-Amp filter circuit such that its roll off attenuates
frequency components at 400 Hz by more than 37 dB. Also, it is desired to have the pass
band gain positive that does not deviate from 20 dB by more than 3 dB. The pass band
frequency needed is 20 kHz and above. Note that in the filter design that is sought the corner
frequency or frequencies are not exactly specified. One can choose them appropriately to
meet the given specifications.
4 Feasibility Study
Design specifications do not seem to be very stringent. We could perhaps accomplish the
design by using either first or second order or at the most third order filters as discussed
below.
First order filter design: We need a positive gain. Thus, we need an inverting amplifier
circuit and a first order filter circuit cascaded together to get positive gain. The circuit is as
shown in Fig. 1.
4
Figure 1 − −80 dB •
Figure 2
Rf 1
Rf 2 s
K ωsc
H(s) = − − =
Ri1 Ri2 s + ωc 1 + ωsc
where
Rf 1 Rf 2 1
K= and ωc = .
Ri1 Ri2 Ri2 Ci2
Note that K is the pass band gain. i.e. the eventual gain at high frequencies. Fig. 2 shows
the schematic asymptotic Bode magnitude plot.
Note that the basic shape of the Bode magnitude plot is always fixed by the filter transfer
function. Since the chosen circuit is of first order, the frequency roll off in the rejection band
is 20 dB per decade (or equivalently, 6 dB per octave) and it is fixed. There are two degrees
of freedom to shape the Bode plot, one is the location of corner frequency fc , and the other
is filter pass band gain K. By an appropriate choice of the corner frequency fc , we can move
the Bode magnitude plot to left and right. Also, by an appropriate choice of the filter gain
K, we can move the Bode magnitude plot up and down.
We would like to investigate next the feasibility of using the first order filter circuit for our
design. That is, we like to investigate whether we can select the corner frequency fc and the
pass band gain K such that the given specifications are met. To do so, the best way to get
started is to utilize the asymptotic Bode magnitude plot, and in particular the roll off in the
rejection band. Let us select the needed gain at 400 Hz as −40 dB, and pass the asymptote
of Bode magnitude plot through −40 dB at 400 Hz with a slope of 20 dB per decade. Then
the asymptote will pass through −20 dB at 4 kHz, 0 dB at 40 kHz. If the corner frequency
of first order filter is placed around 10 kHz or even at 20 kHz, the achievable pass band gain
would be much less than the need 20 dB gain. In other words, having only a slope of 20 dB
per decade for the frequency roll off in the rejection region does not give us enough freedom
to shape the gain characteristic as needed. The above reasoning can be explained in different
words as follows: The dB gain difference between the two frequencies 400 Hz and 20 kHz is
57 dB. However, from 400 Hz to 20 kHz we have log[ 20000 400
] = 1.669 decades. With 20 dB
slope per decade, we could move only 20 × 1.669 = 33.38 dB and not 57 dB as required.
The slope that is needed to move 57 dB in 1.669 decades is 34.15 dB per decade which a
first order filter cannot provide but a second order filter can. In view of this discussion, we
abandon the first order filter design and proceed next to the second order filter design.
Second order filter design: A second order circuit having two degrees of freedom for
frequency roll off (one with a slope of 40 dB per decade and another with a slope of 20 dB
per decade) has more flexibility to shape the magnitude plot as desired.
5
Figure 3 − −80 dB •
Figure 4
We have the choice between one second order filter circuit and two cascaded first order
filter circuits. We choose the two cascaded first order filter circuits since it would provide a
positive gain. The circuit is as shown in Fig. 3.
The transfer function of the filter circuit is given by
Rf 1
s
Rf 2 s
K ωsc1 ωsc2
H(s) = − − =
Ri1 s + ωc1 Ri2 s + ωc2 (1 + ωsc1 )(1 + s
ωc2
)
where
Rf 1 Rf 2 1 1
K= , ωc1 = , and ωc2 = . (1)
Ri1 Ri2 Ri1 Ci1 Ri2 Ci2
Note that K is the pass band gain. i.e. the eventual gain at high frequencies, and fc1 and
fc2 are the corner frequencies. The actual magnitude frequency response is given by
K ffc1 ffc2
M(f ) = s (2)
f 2 f 2
1+ fc1
1+ fc2
where ω = 2πf , ωc1 = 2πfc1 , and ωc2 = 2πfc2 . Fig. 4 shows the schematic asymptotic Bode
magnitude plot.
Note once again that the basic shape of the Bode magnitude plot is always fixed by the filter
transfer function. Since the chosen circuit is of second order, the frequency roll off in the
rejection band can have two slopes, 40 dB per decade and 20 dB per decade (or equivalently,
12dB per octave and 6 dB per octave). There are three degrees of freedom to shape the
Bode plot, two are the locations of corner frequencies fc1 and fc2 , and the other is filter pass
band gain K. By an appropriate choice of the corner frequencies fc1 and fc2 , we can change
or stretch the Bode magnitude plot. Also, by an appropriate choice of the filter gain K, we
can move the Bode magnitude plot up and down.
We have concluded earlier that the second filter has the potential to satisfy the given spec-
ifications. Let us next investigate the feasibility of using the second order filter circuit in
a slightly different way. That is, we like to investigate whether we can select the corner
frequencies fc1 and fc2 as well as the pass band gain K such that the given specifications
are met. To do so, as in the case of first order filters, the best way to get started is to
utilize the asymptotic Bode magnitude plot, and in particular the roll off in the rejection
band. Although the exact locations of corner frequencies are yet unknown, when we look at
the Bode plot at the low frequency end, we have an asymptote with a slope of 40 dB per
decade in the rejection region. Let us once again as in the first order case select the needed
6
gain at 400 Hz as −40 dB, and pass the asymptote of Bode magnitude plot through −40
dB at 400 Hz with a slope of 40 dB per decade. Then the asymptote will pass through 0 dB
at 4 kHz, 12 dB at 8 kHz, and 24 dB at 16 kHz. This indicates that there is a possibility
of designing a second order filter circuit that meets the given specifications. Note that the
asymptotic Bode magnitude plot is only an approximation of the actual magnitude plot. As
such, at this time, there is only a possibility that a second order filter circuit can meet the
given specifications.
As seen above, placing both the corner frequencies at 12.649 kHz results in MdB at f = 20
kHz as 17.0775 dB. This barely meets the requirements. However, guided by this, we can
7
try several corner frequency locations, and calculate MdB at f = 20 kHz as well as at
f = 400 Hz while utilizing equation (2) with the gain K = 10. The following tabular column
shows numerical data. Let us emphasize that numerical experience in one trial leads to the
guess of corner frequency locations in the next trial. I have not shown all the trials I made.
So, do not be discouraged if you happen to make several trials before hitting the set that
meets the given specifications. Note that at this time all we need to do is to meet the given
specifications roughly. This is because when we choose actual parameter values we may
change slightly the gain K as well as the corner frequencies fc1 and fc2 .
The above method of selecting the corner frequencies imitates a common procedure used
when designing a filter of high order, say 50th order filter. Since we are designing only
a second order filter, we could have analytically computed unknown corner frequencies by
using equation (2). From equation (2), when f = 400 Hz and from the specification that we
need at this frequency a gain of -37 dB, we get
−37
20
K 400
fc1
400
fc2
10 = s 2 2
. (3)
400 400
1 + fc1 1 + fc2
Similarly, when f = 20000 Hz and from the specification that we need at this frequency a
gain of 17 dB, we get
17
20
K 20000
fc1
20000
fc2
10 = s
2 2
. (4)
20000 20000
1+ fc1
1+ fc2
Using K = 10, we can solve for fc1 and fc2 from equations (3) and (4). One can do so by
using MATLAB or some other tool.
8
Let us first select the resistors to get a pass band gain K that equals 10. As seen from
equation (1), the gain K is the product of gains of both the stages. We can divide the gain
between the stages in a number of ways.
Choice 1 for resistor values: We can divide the gain equally between the stages, that is we
can select the gain of each stage as 3.16 or around it. Looking at the available values of
resistors, we note that there exists several ratios close to 3.16. In particular, we note that
8.2 6.8 5.6 4.7 3.9
= 3.03 = 3.09 = 3.11 = 3.13 = 3.25.
2.7 2.2 1.8 1.5 1.2
Note that if the desired ratio cannot be obtained by the available resistor values, one can
always combine the resistors in series and parallel combinations. We choose the first stage
ratio as 3.25 and the second stage ratio as 3.09 so that the over all gain is 10.0455. This
leads us to the set,
Choice 2 for resistor values: By looking at the available values of resistors and their ratios,
8.2
we can select the gain of one stage as 1.2 = 6.834 and another stage as 1.5
1
= 1.5 so that the
over all gain is 10.25. This leads us to the set,
Or, alternatively
Choice 3 for resistor values: By looking at the available values of resistors and their ratios,
we can select the gain of one stage as 8.2
1.5
= 5.467 and another stage as 3.3
1.8
= 1.834 so that
the over all gain is 10.026. This leads us to the set,
Or, alternatively
7 Sensitivity analysis
In any practical design, the next task is to see how the design gets affected by the precision
limitations of the available resistors and capacitors. Clearly, the magnitude M is a function
of the six parameters, Ri1 , Rf 1 , Ci1 , Ri2 , Rf 2 , and Ci2 . In fact, an analytical expression of
M as a function of these parameters can be easily obtained by substituting equation (1) in
equation (2),
Rf 1 Rf 2 Ci1 Ci2 (2πf )2
M(f ) = r . (5)
2 2
1 + (2πf Ri1 Ci1 ) 1 + (2πf Ri2 Ci2 )
differential coefficient of M with respect to each parameter. Then, by utilizing Taylor series
expansion and omitting all higher order derivatives except the first, we get
∂M ∂M ∂M
∆M = ∆Ri1 + ∆Rf 1 + ∆Ci1
∂Ri1 ∂Rf 1 ∂Ci1
∂M ∂M ∂M
+ ∆Ri2 + ∆Rf 2 + ∆Ci2 . (6)
∂Ri2 ∂Rf 2 ∂Ci2
In the above equation, every differential coefficient is evaluated by utilizing the nominal
values for the parameters. At each frequency f , the term ∆M indicates the change in M
due to the changes in parameter values as represented by ∆Ri1 , ∆Rf 1 , ∆Ci1 , ∆Ri2 , ∆Rf 2 ,
and ∆Ci2 . Once the differential coefficients or otherwise called sensitivity functions are
evaluated, equation (6) gives a numerically easy but some what an approximate way of
computing ∆M at each frequency.
In what follows there are nine filter design problems with different but comparable specifica-
tions. A method of what problem is assigned to you depending on your name is described later
on. A detailed technical report of your work on the assigned problem must be submitted by
the date to be specified in the class. The technical report you submit must be comprehensive
and complete. It must be written in such a way that a fellow engineer, who knows the theory
behind the Bode plots but has not done any design work, should be able to understand and
learn the design process by just reading your report. (As an engineer working for a company,
you along with your colleagues might be involved in designing products, constructing them,
and writing reports on them. We are trying to emulate that process here.) The report you
write must consist of the following in the least:
how to use freqs(num,den). Once you plot the frequency response characteristics, you
can find out 3 dB point if you need it. Some versions of MATLAB may have functions
that give BODE plots by invoking bode(num,den). Again seek help by typing ‘help
Bode’. Your report should contain the MATLAB code or any other software
code you use to obtain the frequency response characteristic.
8. Frequency response magnitude characteristic of the circuit you designed when the
values of any two components (one resistance and another capacitance) deviate 5% from
their nominal values while the rest of all other components have nominally designed
values. (Use Matlab for this purpose).
9. Construct the low-pass filter circuit you designed and plot the experimentally measured
frequency response magnitude characteristic. This probably takes at the most one hour
of lab work. During one of the alloted lab periods, you need to do this after completing
the regularly assigned lab work. Let me know if you have problems finding time to do
this experiment. If you face a problem of not being able to submit the experimental
results within the specified time, at first submit the rest of the report and then submit
the experimental part.
10. Conversion of a low-pass filter to a high-pass filter: One can design a high-pass
filter from that of a low-pass filter. From item 7, determine the radian frequency ωo
at which the gain is 3 dB below the passband gain, the so called 3 dB frequency or
half-power frequency. Consider the transfer function of item 6, and replace the Laplace
2
variable s in it by ωso . The resulting transfer function has a high-pass frequency response
characteristic. Determine a filter circuit that has such a transfer function, and plot its
frequency response magnitude characteristic (Use Matlab for this purpose). What is
its 3 dB frequency of the high pass filter you designed?
11. Conversion of a low-pass filter you designed to another low-pass filter with
a different 3 dB frequency: Come up with the transfer function of a low-pass filter
whose 3 dB frequency is 10 times the 3 dB frequency of the filter you designed. (Scale
the component values of the filter you designed appropriately to come up with the new
filter). Draw the magnitude frequency response of the new filter by using MATLAB
or otherwise.
12. Finally write conclusions commenting on the results and design experience you gained.
Experimental versus Theoretical Results: Let us make a comment about the exper-
imentally measured versus the designed frequency response magnitude characteristic. De-
pending upon the quality of Op-Amps that are used and depending upon the precision
limitations of components that are used, the measured frequency characteristic may or may
not completely agree with that for which the circuit is designed. This is where the ability of
a designer to visualize what seems to be occurring in the circuit and accordingly compensate
for it comes into picture. This reemphasizes the notion that a critical understanding of the
theory that is developed in the class and in the text book is essential for practical applica-
tions so that one can point out the source of the problem. If you suspect that the component
values used are the source of the problem, you can measure them and change them as needed
(this is not feasible for a design meant for mass production). On the other hand, the source
of the problem might be with the quality of Op-Amp. At high frequencies, the parasitic
12
capacitances and so called slew rate of Op-Amps comes into play to deteriorate the perfor-
mance of an active circuit. Although there exist certain methods of compensating for the
parasitics, designing circuits meant for utilizing cheap not so precise components while still
obtaining good useful results is always a challenge. Practice and critical understanding of
what is going on are always essential for any task to yield fruitful results.
Your experimental results may not match the theoretical results. The following need to be
observed.
• In performing the experiment, you need to be cautious of not rendering the Op-Amps
saturate, and also noise not to dominate the measurements. All you need is the ratio
of output voltage to the input voltage of the filter at each frequency. In the pass band,
input values are to be small enough to make sure that Op-Amps do not saturate. On
the other hand, in rejection band, input values are to be large enough to make sure
that the output voltage is not dominated by noise.
• Make sure Op-Amps are not burnt out.
• Make sure that there is only one ground point. Too many ground points may render
one or the other components grounded at both ends.
• Parasitics may dominate. To avoid parasitic effects, use as small components as you
can, do not use big boxes for resistances and capacitances.
• If proper components are not available, use magnitude scaling. That is, increase each
resistance by a factor of km and decrease each capacitance by the same factor km . Such
a scaling does not affect the transfer function of the filter. You can also use frequency
scaling by decreasing all the capacitances by a factor kf . This however changes the
transfer function. If your original design called for a magnitude M1 at frequency f1 ,
for the scaled circuit the magnitude M1 will occur at frequency kf f1 .
13
Problem 1: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 7.5 kHz or more by more than 15 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 500 Hz and below.
Problem 2: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 7.5 kHz or more by more than 10 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 600 Hz and below.
Problem 3: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 9 kHz or more by more than 15 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 600 Hz and below.
Problem 4: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 8.75 kHz or more by more than 10 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 700 Hz and below.
Problem 5: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 10.5 kHz or more by more than 15 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 700 Hz and below.
Problem 6: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 10 kHz or more by more than 10 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 800 Hz and below.
Problem 7: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 12 kHz or more by more than 15 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 800 Hz and below.
Problem 8: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 11.25 kHz or more by more than 10 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 900 Hz and below.
Problem 9: Design a low-pass active filter circuit such that its roll off attenuates frequency
components at 13.5 kHz or more by more than 15 dB. Also, it is desired to have the passband
gain positive that does not deviate from 20 dB by more than 3 dB. The passband frequency
needed is 900 Hz and below.
14
The above problems are worded in accordance with the common language in filter design.
However, some students might have difficulty in interpreting them properly. So let me explain
them in different words. To do so, let me use the numbers associated with Problem 9. At
first understand that you are to design a low-pass active filter circuit. That filter circuit
should attenuate the frequency components at 13.5 kHz or more by more than 15 dB. This
means that the magnitude (in dB) of the transfer function at frequencies 13.5 kHz or more
should be -15 dB or less. Also, that filter circuit should pass frequencies 900 Hz and below
such that the magnitude (in dB) of the transfer function at frequencies 900 Hz and below is
20 dB with a tolerance of 3 dB (in between 23 dB and 17 dB).
15
Follow the procedure given below to select your problem depending on your name:
We will select certain letters from your name and assign integer numbers to them. To do so,
each letter of the alphabet is assigned an integer number in accordance with its location in
the alphabetical string. That is, the assignment is as follows:
a= 1 b= 2 c= 3 d= 4 e= 5 f= 6 g= 7 h= 8 i= 9
j= 10 k= 11 ℓ= 12 m= 13 n= 14 o= 15 p= 16 q= 17 r= 18
s= 19 t= 20 u= 21 v= 22 w= 23 x= 24 y= 25 z= 26.
where
• F1 , F2 , and Fℓ are respectively the integer numbers associated with the first, second,
and the last letters of your First name,
• L1 , L2 , and Lℓ are respectively the integer numbers associated with the first, second,
and the last letters of your Last name.