Introduction To Filters
Introduction To Filters
Background:
Filters
Background:
Filters
Background:
Filters
Background:
lowpass
highpass
bandpass
bandstop
Realistic Filters:
lowpass
highpass
bandpass
bandstop
VI
R
C
VO
_
1
VO ( jw)
jwC
1
Vi ( jw)
R
jwC
1
1 jwRC
Bode
1/RC
1
0.707
1/RC
Linear Plot
+
Vi
C
R
VO
_
VO ( jw)
R
Vi ( jw)
R 1
jwC
jwRC
1 jwRC
-3 dB
Bode
1/RC
1/RC
1
x.
0.707
Linear
0
1/RC
+
Vi
L
R
VO
R
s
VO ( s)
L
Vi ( s) s 2 R s 1
L
LC
lo
hi
0.707
Bode
Linear
lo
hi
Example
Suppose we use the previous series RLC circuit with output across R to
design a bandpass filter. We will place poles at 200 rad/sec and 2000 rad/sec
hoping that our 3 dB points will be located there and hence have a bandwidth
of 1800 rad/sec. To match the RLC circuit form we use:
2200 s
2200s
2200 s
0.0055 jw
jw
jw
(1
)(1
)
200
2000
Example
From this last expression we notice from the part involving the zero we
have in dB form;
20log(.0055) + 20logw
200
dB
log
x 20
0.828 dB
wlow
dec
Example
This gives an wlow = 182 rad/sec. A similar thing occurs at whi where
the new calculated value for whi becomes 2200. These calculations
do no take into account a 0.1 dB that one pole induces on the other
pole. This will make wlo somewhat lower and whi somewhat higher.
One other thing that should have given us a hint that our w1 and w2
were not going to be correct is the following:
R
s
( w1 w2 ) s
L
2
R
1
(s2 s
) ( s ( w1 w2 ) s w1 w2 )
L
LC
What is the problem with this?
Example
R
w1 w2 BW ( w2 w1 )
L
Therein lies the problem. Obviously the above cannot be true and that
is why we have aproblem at the 3 dB points.
We can write a Matlab program and actually check all of this.
We will expect that w1 will be lower than 200 rad/sec and w2 will be
higher than 2000 rad/sec.
-3 dB
-5
-10
-15
100
50
To: Y(1)
-5 dB
0
-50
-100
10
10
10
bw = 200;
% wo is the center freq
% bw is the bandwidth
[numbbs,denbbs] = lp2bs(numzb,denpb,wo,bw);
w = 1:1:1200;
Hbbs = freqs(numbbs,denbbs,w);
Hb = abs(Hbbs);
plot(w,Hb)
grid
xlabel('Amplitude')
ylabel('frequency (rad/sec)')
title('10th order Butterworth filter')
A Bandpass Filter
+
Vi
VO
Gv (s ) C
_
The transfer function for VO/Vi can be expressed as follows:
1
s
LC
Gv ( s )
R
1
s2 s
L
LC
2
1
LC
From the characteristic equation we see we have two poles. The poles
an essentially be placed anywhere in the left half of the s-plane. We
see that they will be to the left of the zeros on the jw axis.
We now consider an example on how to use this information.
s 2 300000
s 2 3100 s 300000
We now write a Matlab program to simulate this transfer function.
num = [1 0 300000];
den = [1 3100 300000];
w = 1 : 5 : 10000;
Bode(num,den,w)
Bode
Matlab
Vin
_
Rin
VO
_
Rin
Vin
_
VO
_
R1
C1
+
Vin
_
R1
R2
R2
R fb
Ri
+
VO
_
Vin
C2
Ri
+
VO
_