Post on 13-Jul-2018
Page 1 of 16 ECEN 622 Homework #1
Texas A&M University Department of Electrical and Computer Engineering
ECEN 622: Active Network Synthesis Homework #1, Fall 2016
Carlos Pech Catzim 723002156
Page 2 of 16 ECEN 622 Homework #1
1. Design a Low Pass filter with the following specs: HLP(0) = 1, wo= 2ฯ x 106 rad/s, Q = 2. Using the Sallen and Key unity gain implementation.
a) Assume an ideal Op Amp and determine the component values and plot the magnitude and phase vs frequency.
R2
C1
C2
R1
VoVi
Figure 1. Sallen and Key Unity Gain Topology.
Assuming and ideal operational amplifier we can use nodal analysis to obtain the following transfer function.
๐ป๐ฟ๐(๐ ) =
1๐ 2๐ถ1๐ถ2
๐ 2 + ๐ (2
๐ ๐ถ2) + (
1๐ 2๐ถ1๐ถ2
)=
๐ค๐2
๐ 2 +๐ค๐
๐๐ + ๐ค๐
2
(1)
Where we assumed that ๐ 1 = ๐ 2 = ๐ , ๐ถ1 = ๐ถ, ๐ถ2 = 4๐ถ๐2, and ๐ ๐ถ =1
2๐ค๐๐. Using the previous assumptions
and using the desired values for gain and cut-off frequency we can find the values for our components.
COMPONENT VALUE
R 40k ฮฉ C1 1p F C2 16p F
Figure 2. Sallen and Key Unity Gain Topology frequency response with Ideal Op Amp.
Page 3 of 16 ECEN 622 Homework #1
Figure 2 shows the behavior of our filter, the magnitude stays close to 0dB with peaking of 6dB at ๐ค๐ due
to Q = 2, as ๐ป(๐๐ค๐) โ ๐. The phase also shows the expected behavior of a second order low pass filter with โ -90ยฐ of phase at ๐ค๐ and -180ยฐ of phase at higher frequencies.
b) Assume now a real Op amp characterized by: ๐จ(๐) =๐จ๐
๐+๐/๐๐=
๐ฎ๐ฉ
๐+๐๐, with macromodel shown below.
Let ๐๐ = ๐๐ ๐๐๐๐๐๐๐ /๐ Determine the value of GB yielding a magnitude or phase error of less than
1% of the filter.
Figure 3. Non Ideal Op Amp Macromodel
From the equation given we can find that ๐ค๐ = 1/๐ ๐๐ถ๐ which then we can use to find the desired values.
COMPONENT VALUE
RP 100kฮฉ CP 1.6nF
Now in order to find the value of GB we need to find a transfer function which takes the non-ideality of the opamp into account, resulting in the following expression.
๐ป(๐ ) =
1
(1 +1
๐ด(๐ )) ๐ 2๐ถ1๐ถ2
๐ 2 + ๐ [1
๐ ๐ถ1+
2๐ ๐ถ2
โ (1
๐ ๐ถ1 (1 +1
๐ด(๐ ))
) ] +1
๐ 2๐ถ1๐ถ2
(2)
Now using the previously found values for R, C1 and C2, ๐ค๐ = 1/4๐ ๐ถ, in addition to the approximation
1
1+1/๐ด(๐ )โ 1 โ 1/๐ด(๐ ) for |๐ด(๐ )| โซ 1, we can derive an expression for the error, the new Q and new ๐ค๐.
๐ป(๐ ) =๐ค๐
2 (1 โ1
๐ด(๐ ))
๐ 2 + ๐ ๐ค๐ (0.5 +4
๐ด(๐ )) + ๐ค๐
2=
๐ค๐2 (1 โ
๐ + ๐ค๐
๐บ๐ต)
๐ 2 + ๐ ๐ค๐ (0.5 +4(๐ + ๐ค๐)
๐บ๐ต) + ๐ค๐
2
๐ป(๐ ) = ๐ค๐
2 (1 โ๐ + ๐ค๐
๐บ๐ต)
๐ 2(1 +4๐ค๐
๐บ๐ต) + ๐ ๐ค๐ (0.5 +
4๐ค๐
๐บ๐ต) + ๐ค๐
2
Where we can define 1 + ๐ = 1 + 4๐ค๐/๐บ๐ต or ๐ =4๐ค๐
๐บ๐ตโ
4
|๐ด(๐๐ค๐)|
Now we redistribute H(s) as
๐ป(๐ ) =
๐ค๐2
1 + ๐(1 โ
๐ + ๐ค๐
๐บ๐ต)
๐ 2 + ๐ [๐ค๐
โ1 + ๐
(0.5 +4๐ค๐
๐บ๐ต)
โ1 + ๐] +
๐ค๐2
1 + ๐
Page 4 of 16 ECEN 622 Homework #1
Now we have that
๐ค๐๐ =๐ค๐
โ1 + ๐โ ๐ค๐ (1 โ
๐
2) โ ๐ค๐ โ ฮ๐ค๐ , ๐คโ๐๐๐ ฮ๐ค๐ =
2๐ค๐
๐บ๐ต
๐๐ =โ1 + ๐
0.5 +4๐ค๐
๐บ๐ต
โ1 + ๐/2
0.5 +4๐ค๐
๐บ๐ต
โ = 1 โ๐ + ๐ค๐
๐บ๐ต
In the previous expressions we can see how the non-idealities of the op amp affects wo, Q and creates a zero.
In order to determine the value of GB yielding a magnitude error < 1% we calculate the magnitude of (1) and (2) using MATLAB and we find that the necessary GB = (2ฯ) (72.5177 MHz), or Ao = 72.5177k V/V = 97.2dB. Figure 4 shows the response of the designed non-ideal op amp.
Figure 4. Non-ideal Op Amp.
Figure 5. Sallen and Key Unity Gain Topology frequency response with non-Ideal Op Amp.
Page 5 of 16 ECEN 622 Homework #1
Figure 6. Sallen and Key Unity Gain Topology frequency response Comparison.
In figure 5 we show the frequency response of the filter using the non-ideal op amp, and in figure 6 we show a comparison of the two with markers that show that both responses behave within the 1% of error within the band of operation.
The calculations made demand for an extremely high open loop gain, however to achieve such gain we would have to design a three or four stages op amp, that comes with the challenge of compensation and power.
Measurement Ideal Non-Ideal Error
Q 2 2.009 -0.45 %
๐ค๐ 2ฯ 106 2ฯ 972.42k -2.83%
2. Design for the same LP specs a KHN biquad
R3
R1
R2
R5
R4
R6 R7C1 C2
Vi
Vo
Figure 7. KHN Biquad Schematic.
Page 6 of 16 ECEN 622 Homework #1
a) Determine the conditions of R1, R2, R3, R4, and R5 such that the adder is fully balanced, then determine the component values of the KHN biquad.
As discussed in class in order for the summing amplifier to be fully balanced we need that the sum of the admittances at the input nodes of the op amp to be equal, that is:
1
๐ 3+
1
๐ 4+
1
๐ 5=
1
๐ 1+
1
๐ 2= ๐๐๐๐ก๐๐
To better represent the system, and simplify the calculation of the transfer function along with the case of non-ideality we draw the block diagram of the circuit as shown in figure 8.
Figure 8. Block Diagram Representation of KHN biquad with ideal opamps
Where the gain values are
๐พ1 = โ๐ 5
๐ 3 , ๐พ2 = โ
1
๐ถ1๐ 6, ๐พ3 = โ
๐ 5
๐ 4, ๐พ4 =
๐ 5
๐ 2, ๐พ5 = โ
1
๐ถ2๐ 7
Now using mason rules, we can find the transfer function
๐ป(๐ ) = โ๐ป๐๐ค๐
๐ 2 + ๐ (๐ค๐
๐) + 1
= โ๐พ1/๐พ3(๐พ2๐พ5๐พ3)
๐ 2 + ๐ (๐พ2๐พ4) + ๐พ2๐พ5๐พ3
๐ป๐ represents an extra gain coefficient which forces ๐พ1 = ๐พ3 ๐๐๐ 4
๐ 3= 1, furthermore we can express ๐ =
1/๐พ4 which points to a condition of ๐ 2 = 2 ๐ 5 and ๐ค๐ = ๐พ2 = 1/๐ถ1๐ 6, in order to fulfill the condition for a fully balanced circuit we will make ๐ 3 = ๐ 4 = ๐ 5, and ๐ 3 = 2.5๐ 1, now we have an expression for every
component except for R7 which will be calculated using the relationship ๐ 7 =1
๐ค๐2๐ถ1๐ 6๐ถ2
.
Component Value Component Value
R3, R4, R5 10Kฮฉ R2 20Kฮฉ
R1 4Kฮฉ C1 1pF
R6 160kฮฉ C2 1.5pF R7 105kฮฉ
b) Using Simulink simulate your designed filter for
i) Ideal Op Amp
Using the same block diagram from figure 8 we are able to simulate the frequency response of the KHN filter as shown in figure 9. Again we notice the peaking at wo due to the value of Q, also we notice that this time the phase starts at -180ยฐ as this configuration is provides an inverting low pass behavior.
Page 7 of 16 ECEN 622 Homework #1
Figure 9. Frequency Response for KHN Filter with ideal Op Amp
ii) A non-ideal Op Amp with A(s) โGB/s when GB = 20wo.
For this case we have to consider the non-ideality of each op amp used in the circuit. First we will start with the summing amplifier.
Previously we used the property of sum of admittances so the gain of each input would be given by a ratio of resistors, this time as the voltage at both inputs is not equal we must rewrite the node equations using admittances as:
R3
R1
R2
R5
R4
Vo
V2
Vi
V1
Figure 10. Non Ideal Op Amp, Summing Amplifier.
๐โ(๐3 + ๐4 + ๐5) โ ๐๐๐3 โ ๐2๐4 = ๐๐๐5 (3) ๐+(๐1 + ๐2) โ ๐1๐2 = 0 (4)
๐ด(๐ )(๐+ โ ๐โ) = ๐๐ (5)
Page 8 of 16 ECEN 622 Homework #1
Now we make ๐๐ก๐๐ก๐๐ = ๐1 + ๐2 = ๐3 + ๐4 + ๐5, use (5) and substract (4) of (3) we obtain:
๐๐ =1
๐5 +๐๐๐๐ก๐๐
๐ด(๐ )
[๐1๐2 โ ๐๐๐3 โ ๐2๐4] =1
1 +๐5๐๐๐๐ก๐๐
๐บ๐ต/๐
[๐1๐5/๐2 โ ๐๐๐5/๐3 โ ๐2๐4/๐5]
As before the gain from each input is given by the ratio of impedances but now there is a scaling factor for each input which depends on GB and the frequency.
For the lossless integrators we have that instead of using the ideal integrator block 1/๐ we will use a block that represents the losses due to the non-ideality of the op amp. This case in particular was reviewed in class where we found that the new expression for the lossless integrator is given by
๐ป๐๐๐ก(๐ ) = โ1
๐ ๐ ๐ถ (1 +๐
๐บ๐ต)
Where R and C are the impedances connected to the operational amplifier. Now use the block diagram shown in figure 11 and simulate the frequency response shown in figure 12.
Figure 11. Block Diagram Representation of KHN filter with non-ideal Op Amp
Figure 12. Frequency Response for KHN Filter with non-ideal Op Amp.
Page 9 of 16 ECEN 622 Homework #1
We notice that using GB = 20GB causes the gain peaking around wo doubled as each individual non-ideal integrator introduces an error magnitude and phase of approximately 2.5%, and the non-ideal summing amplifier introduces another error. In the next figure we show that increasing the value of GB minimizes the error.
Figure 13. Frequency Response for KHN Filter with non-ideal Op Amp, multiples GB.
Similar with the previous exercise the non-idealities of the op amp causes error in the desired frequency response, that can only be fix increasing the open loop gain of the op amp or to change design parameters accordingly.
Figure 14. Group Delay for KHN Filter with ideal and non-ideal Op Amp.
Page 10 of 16 ECEN 622 Homework #1
Measurement Ideal Op Amp Non-Ideal Op Amp
(GB=20wo) Error %
(GB=20wo) Non-Ideal Op Amp
(GB=50wo) Error %
(GB=50wo)
Magnitude @ wo 6dB 12dB 99% 7.98dB 25.3%
Phase @ wo -269ยฐ -271ยฐ 0.743% -270ยฐ 0.371.75%
Group Delay @ wo 84.47ns 81.5ns -3.5% 83.29ns -1.397%
3. Design a RC Miller integrator for ๐๐ = ๐๐ ๐๐๐๐๐๐๐ /๐
a) Assume an ideal Op Amp.
R C
Vi Vo
Figure 15. Miller Integrator
We know that the miller integrator has a transfer function ๐ป(๐ ) =1
๐ ๐ ๐ถ, where we can easily find the
component values by setting a desired C and finding ๐ =1
๐ค๐๐ถ.
Component Value Component Value
R 31.8kฮฉ C 5pF
Figure 16. RC Miller Integrator Frequency Response, Ideal Op Amp.
Page 11 of 16 ECEN 622 Homework #1
In figure 16 we show that the Miller integrator follows the expected frequency response.
b) Let ๐ฎ๐ฉ = ๐๐ ๐๐๐๐๐๐ for ๐จ(๐) = ๐ฎ๐ฉ/๐
Assuming a non-ideal integrator, we have the following transfer function
๐ป๐๐๐(๐ ) =1
๐ ๐ถ๐ (1 +๐
๐บ๐ต)
Figure 17. RC Miller Integrator Frequency Response, Non-Ideal Op Amp.
In figure 17 we show that the non-ideal op amp introduces an extra pole that creates an error in phase given by
๐(๐ค) = โ90ยฐ โ tanโ1(๐ค/๐บ๐ต) โ 101.3ยฐ
ฮ๐(๐ค) =90 โ 101.3
90โ 12.5%
c) Add a resistor ๐น๐ in series with the feedback capacitor such that an ideal integrator is obtained.
By placing a ๐ ๐ resistor in series with the feedback capacitor we create a zero that can cancel the parasitic
pole created by the op am, given that the resistor value is well defined. This cancellation occurs if ๐ ๐ =1
๐บ๐ต๐ถ= 6.36๐ฮฉ.
R C
Vi
Vo
Rc
Figure 18. Compensated RC Miller Integrator
Page 12 of 16 ECEN 622 Homework #1
๐ป(๐ ) =1 + ๐ ๐๐ถ๐
๐ ๐ถ๐ (
1
1 +๐
๐บ๐ต+
1๐บ๐ต๐ ๐ถ
+๐ ๐ ๐
๐บ๐ต๐
) =1 + ๐ /๐บ๐ต
๐ ๐ถ๐ (
1
1 +1
๐บ๐ต๐ ๐ถ+
๐ ๐บ๐ต
(1 +1
๐บ๐ต๐ ๐ถ)
)
= 1 + ๐ /๐บ๐ต
๐ ๐ถ๐ (
1
(1 +๐
๐บ๐ต) (1 +
1๐บ๐ต๐ ๐ถ
) ) =
1
๐ ๐ถ๐ (
1
(1 +1
๐บ๐ต๐ ๐ถ)
) =1
๐ ๐ถ๐ (1 +1
๐บ๐ต๐ ๐ถ)
From the equation above we can see that our new transfer function ๐ป(๐ ) only has imaginary part which corrects the error in phase but introduces an error in magnitude given by
|๐ป(๐๐ค๐)| =1
๐ ๐ถ๐ค๐ +๐ค๐
๐บ๐ต
โ 833.33๐๐ โ โ1.5836๐๐ต
Figure 19. RC Miller Integrator Frequency Response, Compensated Non-Ideal Op Amp.
Measurement Ideal Op Amp Non-Ideal Op Amp Compensated Op Amp
|๐ฏ(๐๐๐)| -0.02267dB -0.177dB -1.59dB
๐ฝ(๐๐๐) -90ยฐ -101ยฐ -90ยฐ
Page 13 of 16 ECEN 622 Homework #1
Extra Credit, Repeat problem 1 for the LP Rauch Filter, for HLP(0) = 1, wo = 2ฯ x106 rads/s, Q = 2.
a) Assume an ideal Op Amp and determine the component values and plot the magnitude and phase vs frequency
R3
C1
C2
R2
VoVi
R1
Figure E1. Rauch Low Pass Filter
Assuming an ideal operational amplifier, we can use nodal analysis to obtain the following transfer function
๐ป๐ฟ๐(๐ ) =
โ (๐ 1
๐ 3) (
1๐ 1๐ 2๐ถ1๐ถ2
)
๐ 2 + ๐ (๐ 1๐ถ2 + ๐ 2๐ถ2 + ๐ 1๐ 2๐ถ2/๐ 3
๐ 1๐ 2๐ถ1๐ถ2) + (
1๐ 1๐ 2๐ถ1๐ถ2
)=
๐ป๐๐ค๐2
๐ 2 +๐ค๐
๐๐ + ๐ค๐
2
(E1)
Where ๐ค๐ = 1/โ๐ 1๐ 2๐ถ1๐ถ2 , ๐ = โ๐ 1๐ 2๐ถ1๐ถ2
๐ 1๐ถ2+๐ 2๐ถ2+๐ 1๐ 2๐ถ2/๐ 3, ๐ป๐ = ๐ 1/๐ 3. Now Assuming ๐ = ๐ 1 = ๐ 2 = ๐ 3, ๐ถ = ๐ถ2,
and ๐ถ1 = ๐๐ถ we can rewrite our parameters as
๐ค๐ =1
๐ ๐ถโ๐ ๐๐๐ ๐ =
โ๐
3
Using the previous assumptions and using the desired values for gain and cut-off frequency we can find the values for our components.
COMPONENT VALUE
R 10.2k ฮฉ C1 93.6p F C2 2.6p F
Figure E2. LP Rauch Filter Frequency Response with Ideal Op Amp.
Page 14 of 16 ECEN 622 Homework #1
Figure E2 shows the expected behavior of the filters frequency response, as happened in the salley and key filter the peaking at wo appears due to the value of Q.
b) Assume now a real Op amp characterized by: ๐จ(๐) =๐จ๐
๐+๐/๐๐=
๐ฎ๐ฉ
๐+๐๐, with macromodel shown below.
Let ๐๐ = ๐๐ ๐๐๐๐๐๐๐ /๐ Determine the value of GB yielding a magnitude or phase error of less than
1% of the filter.
Figure E3. Non Ideal Op Amp Macromodel
For the non-ideal op amp, we will use the same that was designed and used in previous exercises.
Now in order to find the value of GB we need to find a transfer function which takes the non-ideality of the opamp into account, resulting in the following expression.
๐ป(๐ ) =
๐ป๐๐๐2 1
(1 +1
๐ด(๐ ))
๐ 2 + ๐ [๐ค๐
๐+
๐ค๐2๐ 1๐ถ1
1 + ๐ด(๐ ) ] + ๐๐
2 [1 +
๐ 1
๐ 3
1 + ๐ด(๐ ) ]
(E2)
Now using the approximation 1
1+1/๐ด(๐ )โ 1 โ 1/๐ด(๐ ) for |๐ด(๐ )| โซ 1, we can derive an expression for the
error, the new Q and new ๐ค๐.
๐ป(๐ ) =๐ป๐๐๐
2 (1 โ1
๐ด(๐ ))
๐ 2 + ๐ [๐ค๐
๐+
๐ค๐2๐ 1๐ถ1
1 + ๐ด(๐ ) ] + ๐๐
2 [1 +
๐ 1
๐ 3
1 + ๐ด(๐ ) ]
๐ป(๐ ) =๐ป๐๐๐
2 (1 โ๐ + ๐ค๐
๐บ๐ต)
๐ 2 + ๐ [๐ค๐
๐+
๐ค๐2๐ 1๐ถ1(๐ + ๐ค๐)
๐บ๐ต ] + ๐๐
2 [1 +
๐ 1
๐ 3(๐ + ๐ค๐)
๐บ๐ต ]
๐ป(๐ ) =๐ป๐๐๐
2 (1 โ๐ + ๐ค๐
๐บ๐ต)
๐ 2[1 +๐ 1๐ถ1๐ค๐
2
๐บ๐ต] + ๐ [
๐ค๐
๐+
๐ค๐2๐ 1๐ถ1๐ค๐
๐บ๐ต+
๐ค๐2๐ 1/๐ 3
๐บ๐ต ] + ๐๐
2 [1 + ๐ค๐๐ 1/๐ 3
๐บ๐ต ]
Where we can define 1 + ๐ = 1 + ๐ 1๐ถ1๐ค๐2/๐บ๐ต or ๐ =
6๐ค๐
๐บ๐ตโ
6
|๐ด(๐๐ค๐)|
Page 15 of 16 ECEN 622 Homework #1
Now we redistribute H(s) as
๐ป(๐ ) =๐ป๐๐๐
2 (1 โ๐ + ๐ค๐
๐บ๐ต) (
11 + ๐
)
๐ 2 + ๐ [๐ค๐
โ1 + ๐] [
1๐
+๐ค๐๐ 1๐ถ1๐ค๐
๐บ๐ต+
๐ค๐๐ 1/๐ 3
๐บ๐ต
โ1 + ๐ ] + ๐๐
2 [1 +
๐ค๐๐ 1/๐ 3
๐บ๐ต 1 + ๐
]
Now we have that
๐ค๐๐ =๐ค๐
โ1 + ๐โ ๐ค๐ (1 โ
๐
2) โ ๐ค๐ โ ฮ๐ค๐ , ๐คโ๐๐๐ ฮ๐ค๐ =
6๐ค๐
๐บ๐ต
๐๐ =โ1 + ๐
1๐
+๐ค๐๐ 1๐ถ1๐ค๐
๐บ๐ต+
๐ค๐๐ 1/๐ 3
๐บ๐ต
โ1 + ๐/2
1๐
+๐ค๐๐ 1๐ถ1๐ค๐
๐บ๐ต+
๐ค๐๐ 1/๐ 3
๐บ๐ต
๐ค๐ง = 1 โ๐ + ๐ค๐
๐บ๐ต
In the previous expressions we can see how the non-idealities of the op amp affects wo, Q and creates a zero, without affecting the DC gain.
In order to determine the value of GB yielding a magnitude error < 1% we calculate the magnitude of (1) and (2) using MATLAB and we find that the necessary GB = (2ฯ) (232.4MHz), or Ao = 232.4k V/V = 107.32dB.
Figure E4. LP Rauch Filter frequency response with non-Ideal Op Amp.
Page 16 of 16 ECEN 622 Homework #1
Figure E5. LP Rauch Filter frequency response Comparison.
In figure E4 we show the frequency response of the filter using the non-ideal op amp, and in figure E5 we show a comparison of the two with markers that show that both responses behave within the 1% of error in magnitude within the band of operation, for a 1% error in phase a much higher open loop gain is needed
The calculations made demand for an extremely high open loop gain, however to achieve such gain we would have to design a three or four stages op amp, that comes with the challenge of compensation and power.
Measurement Ideal Non-Ideal Error
Q 2 1.98 -1 %
๐ค๐ 2ฯ 106 2ฯ 987.09k -1.3 %
An extra table is provided in which we show the comparison between the Sallen and key, and KHN low-pass filters with the same specs considering non-ideal op amps.
Measurement Sallen and Key KHN Rauch Ideal
Magnitude @ wo 5.97085dB 6.1dB 5.934dB 6dB Phase @ wo -91.7ยฐ -91.7ยฐ 86.85887ยฐ -90ยฐ
Minimum GB for 1% error
72.51 * wo 1200 * wo 232.4 * wo -
The minimum GB needed in the KHN low pass filter is higher due to the accumulative error in each stage. We could reduce the GB needed by Q-compensation schemes in order to reduce the overall error of the system.