Lecture 15 Filters and Op Amps

advertisement
Lecture 15
Filters and Op Amps
Mark Horowitz
Stanford University
horowitz@ee.stanford.edu
Copyright © 2014 by Mark Horowitz
M. Horowitz
E40M Lecture 15
1
Roadmap
We start by finishing up the material on RC filters, and show
how on can create low-pass, high-pass, and bandpass filters
using just resistors and capacitors. We also show how it is
easy to understand how these circuits work by using the
concept of impedance.
Next we turn to the problem of measuring the small electrical
signals that the body produces. We introduce a new
component, an Op Amp, that can amplify the small signal, and
show how using feedback we can build an amplifier with the
gain that we need. In the next lecture we will show how to
combine impedance ideas with op amps to create filters that
have a peak gain greater than one.
M. Horowitz
E40M Lecture 15
2
Learning Objectives
•  Use impedance to solve a circuit with multiple capacitors
•  Understand what an op amp is:
–  The inputs take no current
–  The output is 106 times larger than the difference in input
•  The “golden rules” of op amps
–  Input current is 0; Vin- = Vin+
•  Be able to use feedback to control the gain of the op amp
–  For inverting and non-inverting amplifiers
M. Horowitz
E40M Lecture 15
3
PREVIOUSLY IN E40M
M. Horowitz
E40M Lecture 15
4
Impedance
• 
M. Horowitz
E40M Lecture 15
5
Frequency Domain Analysis
• 
M. Horowitz
E40M Lecture 15
6
Want to Measure our Heart’s Electrical Signal
M. Horowitz
E40M Lecture 15
7
RC FILTERS
M. Horowitz
E40M Lecture 15
8
RC Circuits are Sometimes Called Filters
•  Is a circuit that changes the relative strength of different frequencies
•  Named for what they do
–  Low pass filter:
•  Passes low frequencies, attenuates high frequency
–  High pass filter
•  Passes high frequencies, attenuates low frequencies
–  Band pass filter
•  Attenuates high and low frequencies, lets middle frequencies pass
M. Horowitz
E40M Lecture 15
9
High Pass Filter
•  Another voltage divider
M. Horowitz
E40M Lecture 15
10
High Pass Filter
• 
M. Horowitz
E40M Lecture 15
11
Low Pass Filter
• 
M. Horowitz
E40M Lecture 15
12
Bandpass Filter?
M. Horowitz
E40M Lecture 15
13
Bandpass Filter
•  Look at the circuit at different frequency regions
–  Low, middle, high
M. Horowitz
E40M Lecture 15
14
Bandpass Filter: Find Z1 & Z2
M. Horowitz
E40M Lecture 15
15
Bandpass Transfer Function
M. Horowitz
E40M Lecture 15
16
What is the Output Waveform?
•  With frequency analysis we generally don’t compute the output
–  We are interest in what the circuit does to the input
–  And the transfer function provide this information
•  If we want the output waveform
–  Simulate the differential equation
–  Multiply the Fourier coefficients with the transfer function
•  Then generate the waveform by adding the sinewaves
M. Horowitz
E40M Lecture 15
17
OP AMPS
M. Horowitz
E40M Lecture 15
18
Op Amp
•  Is a common building block
–  It is a high-gain amplifier
–  Gain is 10K – 1M
•  Output voltage can be + or –
–  Often runs from +Vdd and -Vdd supply
•  But gain of 10K-1M is too large for our needs
–  And we want to build circuits with well controlled gain
–  Using feedback will accomplish both objectives
M. Horowitz
E40M Lecture 15
19
Op Amp Behavior
• 
M. Horowitz
E40M Lecture 15
20
Since the Output Swing is Limited
•  The high gain only exists for a small range of input voltages
–  If the input difference is too large, the output “saturates”
•  Goes to the max positive or negative value possible
•  Close to supply voltages
M. Horowitz
E40M Lecture 15
21
What Does This Do?
Vcc = 5 V
5
+
4
vin +
-
+
-
+ vout
vout
2.5 V
2
1
-
M. Horowitz
3
E40M Lecture 15
1
2
3
5
4
22
How To Get A Useful Amplifier
•  The gain of the op amp is to high to make a good amplifier
–  We need to do something to make it useful
•  We will use analog feedback to fix this problem
–  Feedback makes the input the error between the value of the
output, and the value you want the output to have.
•  Let’s see how to do this
M. Horowitz
E40M Lecture 15
23
Connect Vout to Vin-
Vcc = 5 V
+
vin +
-
+
-Vcc = -5 V
vout
-
M. Horowitz
E40M Lecture 15
24
Op-Amp Characteristics
• 
M. Horowitz
E40M Lecture 15
25
Ideal Op Amps
The Two Golden Rules for circuits with ideal op-amps*
No voltage difference between
op-amp input terminals
No current into op-amp inputs
* when used in negative feedback amplifiers
M. Horowitz
E40M Lecture 15
26
USEFUL OP AMPS CIRCUITS
M. Horowitz
E40M Lecture 15
27
Non-inverting Amplifier
At node vn
M. Horowitz
E40M Lecture 15
28
Inverting Amplifier
vn = v p = 0
M. Horowitz
E40M Lecture 15
29
Summing Amplifier
KCL at the summing point (or summing node):
Output voltage is a scaled sum of the input voltages:
M. Horowitz
E40M Lecture 15
30
Current-to-Voltage Converter
KCL at the vn node:
M. Horowitz
E40M Lecture 15
31
Learning Objectives
•  Use impedance to solve a circuit with multiple capacitors
•  Understand what an op amp is:
–  The inputs take no current
–  The output is 106 times larger than the difference in input
•  The “golden rules” of op amps
–  Input current is 0; Vin- = Vin+
•  Be able to use feedback to control the gain of the op amp
–  For inverting and non-inverting amplifiers
M. Horowitz
E40M Lecture 15
32
Reading
A&L: Chapter 15, pp. 863-866.
•  Noninverting Amp
–  http://www.electronics-tutorials.ws/opamp/opamp_3.html
•  Inverting Amp
–  http://www.electronics-tutorials.ws/opamp/opamp_2.html
•  Summing Amp
–  http://www.electronics-tutorials.ws/opamp/opamp_4.html
M. Horowitz
E40M Lecture 15
33
Download