Filter design example

Ming Sun

Ming Sun / December 25, 2022

9 min read––– views

Background

The techniques described in this blog post is based on the class and materials taught by Prof. Hongjiang Song at ASU EEE598 Serial link class. Please refer to Ref. [1] for more detailed information about the class.

Design target

The design target is to use the above techniques to design a circuit which will have the following transfer function:

`H(s) = 1/(1+s/(omega_nQ) + (s/omega_n)^2)`
(1)

Building blocks

In this section, we are going to make several building blocks with active-RC circuit.

  • Integrator G. Let us first make an integrator building block with the following transfer function:
`G(s) = -omega_0/s`
(2)

Fig. 1 shows an integrator by using the active RC circuit.

Active RC integrator
Fig. 1Active RC integrator[1]

Let us try to derive the transfer function for Fig. 1. We have:

`X/R == -Y*sC`
(3)

Therefore, we have:

`G(s) = Y/X = -1/(sRC) = -omega_0/s`
(4)

Where,

`omega_0=1/(RC)`
(5)
  • Adder. Fig. 2 shows an adder created by the active RC circuit.
Active RC adder
Fig. 2Active RC adder[1]

From Fig. 2, we have:

`X_1/R+X_2/R = -Y/R`
(6)

Therefore,

`Y = -(X1+X2)`
(7)
  • Scaler. Fig. 3 shows an scaler (gain block) created by the active RC circuit.
Active RC scaler
Fig. 3Active RC scaler[1]

From Fig. 3, we have:

`X/R = -Y/(KR)`
(8)

Therefore, we have:

`Y = -KX`
(9)

Filter design based on signal flow chart

By combining Eq. 1 and Eq. 2, we have:

`Y/X=H(s) = 1/(1+s/(omega_nQ) + (s/omega_n)^2) = 1/(1-1/(GQ) + 1/G^2)`
(10)

Eq. 10 can be rewritten as:

`Y/X = G^2/(G^2-G/Q + 1)`
(11)

Or,

`Y*(G^2-G/Q + 1) = X*G^2`
(12)

Eq. 12 can be further written as:

`Y = (X-Y)*G^2 + G/Q*Y`
(13)

The signal flow chart can be drawn based on Eq. 13, which is as shown in Fig. 4.

SFG - signal flow graph
Fig. 4SFG - signal flow graph[1]

From Fig. 4, we have:

`Y = ((X-Y)*G + Y/Q)*G = (X-Y)*G^2 + G/Q*Y`
(14)

Which matches exactly with Eq. 13.

Since we have three basic building blocks (integrator, adder and scaler), Fig. 4 can be re-drawn as:

Redrawn SFG based on the three basic building blocks
Fig. 5Redrawn SFG based on the three basic building blocks[1]

Let us pick R=100kΩ and C=100pF. As a result,

`omega_0=1/(RC) => f_0 = 1/(6.28*100k*100p) = 16kHz`
(15)

Verification

The test bench is as shown in Fig. 6. We have an active RC circuit and a Laplace transfer function block so that we can compare the Bode plot between the actual circuits and the Math equations.

Verification of the actual filter implementation in SIMetrix
Fig. 6Verification of the actual filter implementation in SIMetrix

The Bode plot from SIMetrix AC simulation is as shown in Fig. 7.

Verification of the actual filter implementation in SIMetrix
Fig. 7Verification of the actual filter implementation in SIMetrix

References and downloads

[1] EEE598 - by Prof. Hongjiang Song

[2] Prof. Hongjiang Song

[3] Prof. Hongjiang Song's LinkedIn

[4] Filter test bench in SIMetrix - pdf

[5] Filter test bench in SIMetrix - download


HomeWikis
SnippetsAbout
Google ScholarLinkedIn