Академический Документы
Профессиональный Документы
Культура Документы
Mark Fowler
Note Set #32
C-T Systems: Transfer Function and Frequency Response Reading Assignment: Section 8.5 of Kamen and Heck
1/37
Ch. 2 Convolution
C-T System Model Convolution Integral D-T System Model Convolution Sum
H ( ) vs. H ( ) vs.
It is, of course, easy to use computers to compute the data and plot it Anyone can be trained to do that good engineers are valuable because they understand what the plots show!!!!
Next 3/37
Example of Computing the Frequency Response Recall the series RLC circuit
+
x(t ) y (t )
Recall:
H (s) =
1 / LC s 2 + ( R / L) s + (1 / LC )
L = 1mH
C = 1 F
FREQS Laplace-transform (s-domain) frequency response. H = freqs(B,A,w) returns the complex frequency response vector H of the filter B/A: B ( s ) b(1) s nb 1 + b(2) s nb 2 + ... + b(nb) H (s) = = A( s ) a(1) s na 1 + a (2) s na 2 + ... + a (na ) given the numerator and denominator coefficients in vectors B and A.
109 H (s) = 2 s + (2 10 4 ) s + 109
2 1.5
>> w=0:100:20e4; >> H=freqs(1e9,[1 2e4 1e9],w); >> subplot(2,1,1) Create w in units of rad/sec convert to kHz >> plot((w/(2*pi))/1e3,abs(H)) >>%%% Plots are vs. f in kHz >> subplot(2,1,2) >> plot((w/(2*pi))/1e3,angle(H))
|H(f)|
1 0.5 0 0 -1 0 5 10 15 20 f (kHz) 25 30 35
<H(f)
-2 -3 -4 0 5 10 15 20 f (kHz) 25 30 35 Next
5/37
Although the previous plots are correct, there are two problems Suppose we are interested in using this filter in an audio application:
2 1.5 |H(f)| 1 0.5 0 0 5 10 15 20 f (kHz) 25 30 35
1.
We may be just as interested in 0 5 kHz as we are in 5 30 kHz But this plot has the 0 5 kHz region all scrunched up Values of |H| of, say, 0.1 and 0.01 affect the signal by significantly different amounts But they show up looking virtually the same on the plot above
2.
Next 6/37
The fixes to these problems are: 1. Plot on a logarithmic frequency axis 2. Plot the magnitude in dB
Decibels
Such plots are Bode Plots named after the engineer who introduced them Our Original Plots
2
|H(f)| (dB) 10 0 -10
Bode Plots
1.5 |H(f)| 1
0.1 0.01
10
0
0.5 0 0 0 -1 <H(f) -2
<H(f)
10
15 20 f (kH z)
25
30
35
-60 -1 10
10
10 f (Hz)
10
10
10
-3 -4 0 5 10 15 20 f (kH z) 25 30 35
Next
10
0
10
10 f (Hz)
10
10
7/37
10
To convert |H()| into dB we use 20 log10(|H()|) well see more about this in just a bit
2000 points from 10-1 Hz to 105 Hz, equally spaced on a log axis
f=logspace(-1,5,2000); % create log-spaced frequencies in Hz w=2*pi*f; % convert into rad/sec for use in freqs H=freqs(1e9,[1 2e4 1e9],w); % compute H as before semilogx(f,20*log10(abs(H))) % plot with log x-axis w/ 20 log10( ) for dB subplot(2,1,2) semilogx(f,angle(H)) semilogx makes a plot
with a log x-axis and linear (ordinary) y-axis
Use 20 because |H| is not a power gain (See next few pages)
semilogx gives log x-axis, linear y-axis semilogy gives linear x-axis, log y-axis loglog gives log x-axis, log y-axis
Next 8/37
A Semi-Log Axis
40 30 20
|H()| (dB)
10 0 10 20 30 40 50 10
20 40 60 100
102
80 200
103
400 800 600
104
105
106
Next 9/37
(rad/sec)
Defining the Decibel Definition: use decibels as a logarithmic unit of measure for a ratio between two powers
P 10log10 1 P 2
bel decibel
Next 10/37
Know These!!
~ -3 dB
Next 11/37
= 20 log 10
I = 20 log 10 1 I 2
Use 20 for V & I, but use 10 for P To apply dB to a power quantity: use 10 log10( )
Next 12/37
Know These!!
~ -6 dB
~ 3 dB
Next 13/37
Sounds
Jet Plane (@ 30 m) Threshold of Pain Chainsaw Rock Concert/Club Busy Street Normal Speech
20 2 0.2 0.02
20 20 log10 0.0002
Reference Level = 0 dB
Threshold of Hearing
Next 14/37
When applying dB to frequency response magnitude use: Why? Because |H()| relates Voltages (or current)!!!
20 log10(|H()|)
A cos(0t + )
Input voltage amplitude =A
h(t) H()
A H (0 ) cos(0t + + H (0 ))
| H (0 ) |=
20 log10(|H()|)
Next 15/37
a H ( s) = s+a
Single Pole (a is real) We can write this as:
a H ( ) = j + a
1 H ( ) = 1 + j / a
Manipulate like this for convenience well find the (1+j-term) makes things easy when finding approximations.
1 H ( ) = 1 + j / a
Next 17/37
1 H ( ) = 1 + j / a
Approximate behavior when << a:
/a << 1
What qualifies?
1 1 H ( ) = =1 1 + j (small ) 1 + j 0
Approximate behavior when >> a: 1 << /a
0.1a
What qualifies?
10a
1 1 a a H ( ) = = = ( small ) + j / a j / a j
1 1 + j / a
So we now know: H ( ) =
=0
From our approximations above this is yields: For << a: 1 vs. log10
Drops 20dB for every unit change in log10 Drops 20dB for every 10x change in
Next 19/37
H ( s) =
a s+a
Blue: True Plot Red: Approximations Approximation for << a We can extend the approximations to get a ROUGH approximation Approximation for >>a
|H()| (dB)
10 0 10 20 30 40 50 10
102
0.1a
103
105
106
Next 20/37
Quick steps for making a Bode Plot for a Single Pole Term
Now that weve done all this work once we can now just quickly make the Bode plot for this type of H(s):
a H ( s) = s+a
1. Find = a on the -axis 2. Draw a horizontal line at 0 dB from left-edge up to = a 3. Go over 1 decade and down 20 dB draw a point 4. Draw a sloped line from the end of the first line through this point
Approximate Bode Plot for Single Real Pole a = 1/RC = 3000 rad/sec
40 30 20 1. Find = a on the -axis 2. Draw a horizontal line at 0 dB from left-edge up to = a 3. Go over 1 decade and down 20 dB draw a point
H ( s) =
a s+a
|H()| (dB)
4. Draw a sloped line from the end of the first line through this point
10 0 10 20 30 40 50 10 102 103
105
106
Next 22/37
s+a H ( s) = a
Using the same kind of steps
j + a H ( ) = a
H ( ) = 1 + j / a
Next 23/37
H ( s) =
s+a a
|H()| (dB)
10 0 10 20 30 40 50 10 102 103
20 dB up 1 decade over
a
104
10a
105 106
(rad/sec)
Next 24/37
Note: (line #1) + (line #2) = line with slope of (sum of slopes)
Slopes add
Next 25/37
H ( s) =
a ( s + b) b( s + a )
|H()| (dB)
10 0 10 20 30 40 50 10
(rad/sec)
Next 26/37
Approx. Bode Plot for One Real Zero & One Real Pole a = 300 rad/sec b = 10000 rad/sec
40 30 20
H ( s) =
a ( s + b) b( s + a )
|H()| (dB)
(rad/sec)
Next 27/37
Same Structure but zero first, then pole a = 10000 rad/sec b = 3000 rad/sec
40 30 20
H ( s) =
a ( s + b) b( s + a )
|H()| (dB)
(rad/sec)
Next 28/37
Summary of Bode Plot Examples so Far (only real poles & zeros)
1. 2. We can use simple approximations and graphing tricks to create a rough approximation to the magnitude of the Frequency Response A first-order pole (not a complex-pair) will cause the Bode plot to a. b. 3. a. b. Break at the pole frequency Decrease at -20 dB/decade above the pole frequency Break at the zero frequency Increase at +20 dB/decade above the zero frequency
Now, given any H(s) with only real zeros and poles we can easily extend these ideas:
H (s) = K
( s + z1 )( s + z 2 ) Kz z (1 + s / z1 )(1 + s / z2 ) = 1 2 p1 p2 (1 + s / p1 )(1 + s / p2 ) ( s + p1 )( s + p2 )
Each term is 0dB at small enough
Next 29/37
f (Hz)
The A string on a guitar has a fundamental frequency of 110 Hz The A note on 17th fret of the high-E string has a fundamental frequency of 880 Hz
From our Bode Plot Insight we know we can get this from a single real pole, single real zero system with the zero first, then the pole:
(1 + s / 1 ) H ( s) = (1 + s / 2 )
(1 + j / 1 ) H ( ) = (1 + j / 2 )
Let : 1 = 1 / R1C1
2 = 1 / R2C2
Z1 ( ) C2 (1 + j / 1 ) = Z 2 ( ) C1 (1 + j / 2 )
Next 31/37
Okayhow do we build a circuit that has a transfer function that is a ratio of impedances?! Recall the op-amp inverting amplifier!
Rf Ri
Ratio of resistances
vin (t )
Gain =
vo (t )
Z f (s )
Z i (s ) vin (t ) vo (t )
H ( s) =
Z f ( s) Zi ( s)
vin (t )
Now, you can choose the Rs & Cs to give the desired frequency points
vo (t )
p. 98, The Art of Electronics, Horowitz & Hill, Cambridge Press, 1980
But wait!! You then remember that op amps must always have negative feedback at DC so putting Cf here is not a good idea So we have to continue We also might not like this circuit because it might not give us a very large input impedance and that might excessively load the circuit that you plug into this (e.g., the guitar) Back to the drawing board!!!
Next 33/37
vin (t )
Gain = 1 +
vo (t )
Rf Ri
We still have the no DC feedback issue but lets charge on and see what might happen!!
H ( s) = 1 +
Rf + 1/ C f s Ri + 1 / Ci s
( Ri + R f ) + (1 / C f s + 1 / Ci s ) Ri + 1 / Ci s
Next 34/37
vin (t )
vo (t )
Has DC feedback!! And has the desired ( R f + Ri )Ci s + 1 frequency response form: H ( s ) = Ri Ci s + 1 Set: 1 =
(R + R ) C
i f
= 628 rad/s
Choose:
R f = 15k Ci = 0.1F
Ri = 1.5k
Next 35/37
2 =
|H( f )| (dB)
f (Hz)
Next 36/37
Summary of Bode-Plot-Driven Design Example 1. 2. 3. 4. 5. Through insight gained from knowing how to do Bode plots by hand we recognized the kind of transfer function we needed Through insight gained in circuits class about impedances we recognized a key building block needed: Series R-C Through insight gained in electronics class about op-amps we found a possible solution the inverting op-amp approach We then scrutinized our design for any overlooked issues a. We discovered two problems that we needed to fix We used further insight into op-amps to realize that we could fix the input impedance issue using a non-inverting form of the op-amp circuit We didnt give up at first sign that we might still have the no DC feedback problem a. Through mathematical analysis we showed that we could remove the feedback capacitor without changing the circuits function!!!!!!
6.
Stop 37/37