Docsity

Butterworth Filter Design: Theory and Practical Implementation - Prof. Bradley J. Bazuin, Study notes of Digital Communication Systems

Toggle sidebar
bg1
Page 1
Special Note: Filter Design Methods
Spectral Power Responses
For
()
(
)
(
)
(
)
jwTjwTjwT ∠⋅= exp
What is
(
)
jwT
−
Magnitude (must be the same!):
()
∏∏
∏
==
=
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛⋅
⋅+
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
−⋅
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
+⋅
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
+
⋅=
N
nn
n
n
M
mm
R
Q
ii
w
w
w
w
p
w
w
z
w
KjwT
1
2
2
2
1
2
1
2
211
1
ζ
Phase:
()
∑∑∑ === ⎟
⎟
⎟
⎟
⎟
⎠
⎞
⎜
⎜
⎜
⎜
⎜
⎝
⎛
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
−
⋅
⋅
−
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
−⋅−
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
=∠ N
n
n
n
n
M
mm
Q
ii
w
w
w
w
a
p
w
aR
z
w
ajwT
12
11 1
2
tantan
2
tan
ζ
π
()
∑∑∑ === ⎟
⎟
⎟
⎟
⎟
⎠
⎞
⎜
⎜
⎜
⎜
⎜
⎝
⎛
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛−
−
⋅
⋅−
−
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛−
−⋅+
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛−
=−∠ N
n
n
n
n
M
mm
Q
ii
w
w
w
w
a
p
w
aR
z
w
ajwT
12
11 1
2
tantan
2
tan
ζ
π
Therefore
()()
jwTjwT =− and
(
)
(
)
(
)
(
)
0
=
∠
−
+
−
∠
jwTjwT
Then, what is
()( )
(
)
(
)
(
)
(
)()
(
)
jwTjwTjwTjwTjwTjwT ∠−⋅⋅∠⋅=−⋅ expexp
or
(
)
(
)
(
)
2
jwTjwTjwT =−⋅
This is a power term (notice the square), so we use 10*log to create decibels. It is the same
result!! Note, this works for (s,-s) too!!
(
)
(
)
(
)
2
sTsTsT =−⋅
This is the generic form for defining the magnitude response of a filter! Why …
The poles and zeros are symmetric about the jw axis of the s-plane! Therefore, the LHP and
RHP elements can be separated into T(s) and T(s) and guarantee marginal stability!!
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Butterworth Filter Design: Theory and Practical Implementation - Prof. Bradley J. Bazuin and more Study notes Digital Communication Systems in PDF only on Docsity!

Special Note: Filter Design Methods

Spectral Power Responses

For T ( jw ) = T ( jw ) ⋅exp(∠ T ( jw ))

What is T ( − jw )

Magnitude (must be the same!):

∏ ∏

∏

= =

=

N

n (^) n

n

n

M

m (^) m

R

Q

i (^) i

w

w

w

w

p

w w

z

w

T jw K

1

2 2 2

1

2

1

2

Phase:

( ) (^) ∑ ∑ ∑ = = = ⎟

N

n

n

n

n M

m (^) m

Q

i (^) i

w

w

w

w

a p

w R a z

w T jw a 1

2 1 1 1

tan tan 2

tan

( ) (^) ∑ ∑ ∑ = = = ⎟

N

n

n

n

n M

m (^) m

Q

i (^) i

w

w

w

w

a p

w R a z

w T jw a 1

2 1 1 1

tan tan 2

tan

Therefore T ( − jw ) = T ( jw ) and (∠ T ( − jw )) +−( ∠ T ( jw )) = 0

Then, what is T (^ jw )^ ⋅ T (−^ jw )^ = T (^ jw )^ ⋅exp(^ ∠ T (^ jw ))^ ⋅ T (^ jw )^ ⋅exp(−^ ∠ T (^ jw ))

or ( ) ( ) ( )

2 T jw ⋅ T − jw = T jw

This is a power term (notice the square), so we use 10*log to create decibels. It is the same

result!! Note, this works for (s,-s) too!!

2 T s ⋅ T − s = T s

This is the generic form for defining the magnitude response of a filter! Why …

The poles and zeros are symmetric about the jw axis of the s-plane! Therefore, the LHP and

RHP elements can be separated into T(s) and T(s) and guarantee marginal stability!!

The Butterworth Lowpass Filter

n n n

w

w

T jw T jw 2

0

n n

n n

n n n

w

s w

j s j w

s

T s T s 2

0

2

0

2

2

0

Characteristic Eq. 1 ( 1 ) ( ) ( ) 0

2

0

⎟ =Δ ⋅Δ−^ =

  • − s s w

s

n n

Frequency normalized ( ) ( ) 1 ( 1 ) 0

2 Δ ⋅Δ− = + − =

n n s s s

Reference: M.E. Van Valkenburg, Analog Filter Design, Oxford Univ. Press, 1982

ISBN: 0-19-510734-

Matlab Code

% BW Filter generation demonstration %

close all clear all

Rin=1; Rload=1; Rmatch=1;

PBfreq=1;

PiW=logspace(log10(PBfreq)-2,log10(PBfreq)+2,1024); colorseq=['b' 'g' 'r' 'y' 'm' 'c']; ii=0;

PolesRange=6:-1:

for BWn=PolesRange ii=mod(ii,6)+1;

denP=roots([((-1/(PBfreq^2))^(BWn)) zeros(1,2*BWn-1) 1]) [Y,I] = sort(real(denP)); denPsort=denP(I) den=poly(denPsort(1:BWn));

figure(1) plot(real(denP),imag(denP),sprintf('%cx',colorseq(ii)) ); title('Power Magnitude Poles') grid on; hold on;

num = [PBfreq^(BWn)];

zpi=abs(roots(num)); ppi=abs(roots(den)); BWsys=tf(num,den) [PiMAG, PiPHASE]=bode(BWsys,PiW);

figure(2) semilogx(PiW, dBv(squeeze(PiMAG)),colorseq(ii) ); grid on; hold on; title('Power vs. Frequency') xlabel('Freq (rad/sec)'); ylabel('Magnitude dB'); plotv=axis; axis([plotv(1) plotv(2) -120 10])

figure(3) semilogx(PiW, (squeeze(PiPHASE)),colorseq(ii) ); grid on; hold on; title('Phase vs. Frequency') xlabel('Freq (rad/sec)'); ylabel('Phase'); axis([plotv(1) plotv(2) -max(PolesRange)*90 15])

pause end

Results

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1

-0.

-0.

-0.

-0.

0

1

Power Magnitude Poles

10 -2^10 -1^10 0 10 1 10

0

Power vs. Frequency

Freq (rad/sec)

Magnitude dB

10 -2^10 -1^10 0 10 1 10

0

Phase vs. Frequency

Freq (rad/sec)

Phase

Active Audio Frequency Filters

An active lowpass filter implementation of a 1 st order Butterworth filter

R

R

Vin OP- Amp

Vout

C

The transfer function for this circuit is

2 R 1 sRC

R

Vins

Vouts

⋅ +

R

R

MaxGain = G =− 2 2

0

C R

w ⋅

To tune the circuit ….

An alternate approach:

R

Ra

+Vdc

-Vdc

V

OP-

Amp

Vout

C

Rb

R sR C

R R

Vins

Vouts

b

a b

b

a b R

R R

MaxGain G

1 1

0

R C

w =

To tune the circuit ….

Sallen-Key Circuit Lowpass Filter

An active lowpass filter implementation of a unity gain Friend Circuit, also referred to as a

Sallen-Key circuit as described in: Walter G. Jung, IC OP-Amp Cookbook, Howard W. Sams

Co. Inc, Indianapoli, IN, 1974.

R1 R

+Vdc

-Vdc

V

OP-

Amp

Vout

C

R

R

C

The transfer function for this circuit is (a generic second order filter equation is also shown)

2 2

2

2

1 s w s w

K w

C R C C R R

R

R

C R C R

s s

R C C R R

R R

V s

Vouts

  • ⋅ ⋅ ⋅ +

(^1) C R s^2 C C R R R

R s C R C R R

R R

V s

Vouts

  • ⋅ ⋅ + ⋅ − ⋅ ⋅ + ⋅ ⋅ ⋅ ⋅

Letting C 1 = C 2 = C and R 1 = R 2 = R and 3

R

R R

G

R

R R

MaxGain G

C R

w ⋅

Function Derivation

The circuit derivation assumes a perfect op-amp, with infinite gain, infinite input impedance, and

zero output impedance, non-limiting power supplies and voltage drops, and no frequency

response considerations.

The circuit derivation follows:

2 Vo s C R

Vp

R

V

s C R R

V ⎟= + + ⋅ ⋅

R

V

s C R

Vp (^) ⎟= ⎠

Vo R R

R

Vn ⋅

Letting Vp = Vn

R

V

s C R R R

R

Vo (^) ⎟= ⎠

Vo R R

R s C R V ⋅

2 Vo s C R s C R

V

R

V

s C R R

V + ⋅ ⋅

2 Vo s C R

V

s C s C R

s C

R

V ⎟= + ⋅ ⋅

R

V

s C Vo s C s C R

s C

R R R

R s C R Vo (^) ⎟− ⋅ ⋅ = ⎠

2

R

V

Vo s C R

s C R s C R s C R s C C R R

R R

R

Vo (^) ⎟⎟− ⋅ ⋅ = ⎠

2

R

V

R

s C C R R R

R

s C R s C R s C R

R R

R

Vo =

⎟

Multiple Feedback (MFB) Circuit Lowpass Filter

An active lowpass filter implementation of a multiple feedback circuit (MFB), that is may also

be referred to as a derivative of the Sallen-Key Filter.

R1 R

+Vdc

-Vdc

V

OP-

Amp

Vout

C

C

R

Figure 1. Sallen-Key Lowpass Filter

The transfer function for this circuit is

C R C R C R C C R R

s s

C C R R

R

R

V

Vo

(^1) C R C R s^2 C C R R R

R s C R R

R

V

Vo

  • ⋅ ⋅ ⋅ + ⋅ + ⋅ + ⋅ ⋅ ⋅ ⋅

Resulting in

R

R

MaxGain = G =− 1 2 2 3

C C R R

w ⋅ ⋅ ⋅

Function Derivation

The circuit derivation assumes a perfect op-amp, with infinite gain, infinite input impedance, and

zero output impedance, non-limiting power supplies and voltage drops, and no frequency

response considerations.

The circuit derivation follows:

R

Vo

R

V

s C R R R

V ⎟= +

R

V

s C Vo

Combining ( )

R

Vo

R

V

s C R R R

Vo s C R ⎟= + ⎠

R

V

R

Vo

R R R

R R R R R R s C R R R Vo s C R ⎟− = ⎠

2

R

V

R R

R s C R R R R R R s C C R R R Vo =− ⎟

2 R s C R R R R R R s C C R R R

R

V

Vo

  • ⋅ ⋅ ⋅ + ⋅ + ⋅ + ⋅ ⋅ ⋅ ⋅ ⋅

C R C R C R C C R R

s s

C C R R

R

R

V

Vo

Resulting in

R

R

MaxGain = G =− 1 2 2 3

C C R R

w ⋅ ⋅ ⋅

And ( )

C R C R C R

w ⋅

Low Pass Filter, 3

rd

Order

The classic 3 rd order LC Ladder Low Pass Filter.

C

Vin Vout

L1 L

Figure 2. LC Ladder 3

rd Order Low Pass Filter

The circuit derivation assumes a source and load resistance. The source resistance is placed prior

to the input voltage and the load is placed on the output.

For Rs = RL = R and L 1 = L 2 = L :

⎟ ⎠

⎞ ⎜ ⎝

⎛ ⋅

  • ⋅

⋅ ⎟⋅ + ⋅ ⎠

⎞ ⎜ ⎝

⎛

  • ⋅

=

2 2

1 1

2

1

2 C L s

C R s R

L s

Vin

Vout

Theoretical Derivation

The circuit derivation assumes a source and load resistance. The source resistance is placed prior

to the input voltage and the load is placed on the output.

The circuit node equations follow:

s L

V

RL s L

Vout

Rs s L

Vin s L

Vout s L

s C Rs s L

V

Solving for V2 and substituting:

RL

RL s L V Vout

Rs s L

Vin s L

Vout s L

s C RL Rs s L

RL s L Vout

2

Rs s L

Vin s L

Vout Rs s L s L

Rs s L s L s C L Rs s L

RL

RL s L Vout

( ) ( ( )) ( ) Vin s L RL

RL s L Rs s L s L s C L Rs s L Rs s L RL Vout (^) ⎟⎟= ⎠

⎞ ⎜ ⎜ ⎝

⎛

⋅ ⋅

  • ⋅ ⋅ + ⋅ + ⋅ + ⋅ ⋅ ⋅ + ⋅ − + ⋅ ⋅ ⋅ 3

3 1 3 2 3 1 1 2

( RL s L ) ( Rs s L s L s C L ( Rs s L )) ( Rs s L ) RL

s L RL

Vin

Vout

  • ⋅ ⋅ + ⋅ + ⋅ + ⋅ ⋅ ⋅ + ⋅ − + ⋅ ⋅

⋅ ⋅

3 1 3 2 3 1 1

3 2

( 3 2 3 ( 1 )) 3 ( 1 3 2 3 ( 1 ))

3 2 2 RL s L s C L Rs s L s L Rs s L s L s C L Rs s L

s L RL

Vin

Vout

⋅ ⋅ + ⋅ ⋅ ⋅ + ⋅ + ⋅ ⋅ + ⋅ + ⋅ + ⋅ ⋅ ⋅ + ⋅

⋅ ⋅

2 2 1 1 3 2 3 ( 1 ) 2 2 RL s C RL Rs s C L RL Rs s L s L s C L Rs s L

RL

Vin

Vout

  • ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ + + ⋅ + ⋅ + ⋅ ⋅ ⋅ + ⋅

=

( 1 3 2 ) ( 2 1 2 3 ) 2 3 1 2 3 RL Rs s L L C RL Rs s C L RL C L Rs s C L L

RL

Vin

Vout

    • ⋅ + + ⋅ ⋅ + ⋅ ⋅ ⋅ + ⋅ ⋅ + ⋅ ⋅ ⋅

=

Theoretical Derivation Pi-Filter

Vin Vout

L

C1 C

Figure 3. LC Ladder 3 rd Order Low Pass Filter

The circuit derivation assumes a source and load resistance. The source resistance is placed prior

to the input voltage and the load is placed on the output.

For Rs = RL = R and C 1 = C 3 = C :

2 L C

s R

L

s C R s

Vin

Vout

Theoretical Derivation Pi-Filter

The circuit derivation assumes a source and load resistance. The source resistance is placed prior

to the input voltage and the load is placed on the output.

The circuit node equations follow:

s L

s C V RL s L

Vout

Rs

Vin s L

Vout s L

s C Rs

V

Solving for V2 and substituting:

RL

RL s L s L C RL V Vout

2

Rs

Vin s L

Vout s L

s C RL Rs

RL s L s L C RL Vout

2

Rs

Vin s L

Vout s L Rs

Rs s L s C L Rs

RL

RL s L s L C RL Vout

2 2

( ) ( )

( ) ⎟ ⎠

Rs

Vin s L Rs RL

s L C RL L C Rs s L C C RL Rs RL Rs

RL Rs s L Rs L RL s L C RL Rs L C Rs RL L

Vout

3 2 2 4 2

2 2

Rs

Vin Rs RL

s L C RL L C Rs s L C C RL Rs

Rs RL s C RL Rs C Rs RL L

Vout

2 3

s ( L C RL L C Rs ) s L C C RL Rs

Rs RL s C RL Rs C Rs RL L

RL

Vin

Vout

2 3