Lecture #19 amplifier examples: comparators, op amps. Reminder:

advertisement
Lecture #19 amplifier examples:
comparators, op amps.
Reminder:
MIDTERM coming up one week from
today (Monday October 18th)
This week: Review and examples
10/13/2004
EE 42 fall 2004 lecture 19
1
Midterm
• Monday, October 18,
• In class
• One page, one side of notes
10/13/2004
EE 42 fall 2004 lecture 19
2
Topics
Today:
• Amplifier examples
– Comparator
– Op-Amp
10/13/2004
EE 42 fall 2004 lecture 19
3
Amplifier
V+rail
VIN
+

• V0=AVIN
+

V0
V+rail
• Output is referenced to “signal ground”
• V0 cannot rise above some physical voltage related to the
positive power supply VCC (“ upper rail”)
V0 < V+RAIL
• V0 cannot go below most negative power supply, VEE i.e.,
limited by lower “rail”
V0 > V-RAIL
10/13/2004
EE 42 fall 2004 lecture 19
4
WHAT ARE I-V CHARACTERISTICS OF AN ACTUAL
HIGH-GAIN DIFFERENTIAL AMPLIFIER ?
VIN
+

+

V0
• Circuit model gives the essential linear part
• The gain may be 100 to 100,000 or more
• But V0 cannot rise above some physical voltage V0 < V+RAIL
• And V0 cannot go below the lower “rail”
V0 > V-RAIL
• CMOS based amplifiers can often go all the way to their
power supplies, perhaps ± 5 volts
10/13/2004
EE 42 fall 2004 lecture 19
5
High gain Amplifier
VIN
+

+

VIN
V0
• We can make very high gain amplifiers by cascading lower
gain amplifiers.
• For example, if we have two amplifiers, each with a gain of
100, then when the output of the first is feed into the input
of the second, the total gain is 10,000.
• With a very high gain amplifier, a very small change in the
input causes a large change in the output voltage, so the
range of voltages over which the input results in a linear
output is very narrow.
10/13/2004
EE 42 fall 2004 lecture 19
6
OP-AMPS AND COMPARATORS
A very high-gain differential amplifier can function either in extremely
linear fashion as an operational amplifier (by using negative feedback)
or as a very nonlinear device – a comparator.
Differential Amplifier
V+
V
+
A

“Differential”
V0  A( V  V )
V0
Ri
+

V1
+

AV1
+

 V0 depends only on difference (V+  V-)
“Very high gain”  A  
10/13/2004
Circuit Model in linear region
But if A ~ , is the
output infinite?
EE 42 fall 2004 lecture 19
7
V0
I-V Characteristics of a real high-gain amplifier
Example: Amplifier with gain of 105, with max V0 of 3V and min V0 of 3V.
(a)
V-V near V0 (V)
origin
(b)
V-V over wider V0 (V)
range
3
0.2
0.1
3 2 1
.2
10/13/2004
upper “rail”
2
1
1
2
3
VIN(V)
lower “rail”
30 20 10
EE 42 fall 2004 lecture 19
1
2
3
10 20 30
VIN(V)
8
I-V CHARACTERISTICS OF AN ACTUAL HIGH-GAIN
DIFFERENTIAL AMPLIFIER (cont.)
Example: Amplifier with gain of 105, with upper rail of 3V and lower rail
of 3V. We plot the V0 vs VIN characteristics on two different scales
(b)
V0 (V)
V-V over
wide range 3
upper
“rail”
(c)
Same V0 vs VIN over even
wider range
V0 (V)
3
2
1
2
1
lower
“rail”
10/13/2004
30 20 10
1
2
3
10 20 30
VIN(V)
3 2 1
EE 42 fall 2004 lecture 19
1
2
3
1
2
3
VIN(V)
9
I-V CHARACTERISTICS OF AN ACTUAL HIGH-GAIN
DIFFERENTIAL AMPLIFIER (cont.)
Now plot same thing but with equal horizontal and vertical scales
(volts versus volts)
(c)
V-V with equal
Note:
X and Y axes
• (a) displays linear amplifier
V0 (V)
behavior
3
2
1
3 2 1
1
2
3
10/13/2004
1
2
3
VIN(V)
•
(b) shows limit of linear region –
(|VIN| < 30 V)
•
(c) shows comparator function (1 bit
A/D converter centered at VIN = 0)
where lower rail = logic “0” and
upper rail = logic “1”
EE 42 fall 2004 lecture 19
10
EXAMPLE OF A HIGH-GAIN DIFFERENTIAL AMPLIFIER
OPERATING IN COMPARATOR (A/D) MODE
Simple comparator with threshold at 1V. Design lower rail at 0V and
upper rail at 2V (logic “1”). A = large (e.g. 102 to105 )
VIN
+

V0
2
1
V0
1V +

If VIN > 1.010 V,
V0 = 2V = Logic “1”
0
1
2
VIN
If VIN < 0.99 V,
V0 = 0V = Logic “0”
NOTE: The actual diagram of a comparator would not show an
amplifier with “offset” power supply as above. It would be a simple
triangle, perhaps with the threshold level (here 1V) specified.
VIN
V0
Comparator
10/13/2004
EE 42 fall 2004 lecture 19
11
Conversion from signals to digital data
Signals are conveyed as voltages, but signal levels must be converted
into digital data. ( 1 bit A/D)


pulses in
transmission
pulses out
comparator regenerated
pulses
We set comparator threshold at a suitable value (e.g.,
halfway between the logic levels) and comparator output
goes to:
+rail if VIN > VTHRESHOLD and to rail if VIN < VTHRESHOLD.
The rails of the comparator are the logic levels, for
example +rail = “1” or “true” and -rail→”0” or “false”
10/13/2004
EE 42 fall 2004 lecture 19
12
OP-AMPS
A very high-gain differential amplifier can function in extremely linear
fashion as an operational amplifier by using negative feedback.
R1
R2
R1
R2

+
VIN
EXAMPLE
V0
Ri
VIN
+
V1
+
AV1

+

V0
Circuit Model
Negative feedback
 Stabilizes the output
We will show that that for A   (and Ri  0 for simplicity)
V0  VIN 
10/13/2004
R1  R 2
R1
Stable, finite, and independent of
the properties of the OP AMP !
EE 42 fall 2004 lecture 19
13
OP-AMPS – “TAMING” THE WILD HIGH-GAIN AMPLIFIER
KEY CONCEPT: Negative feedback
Example:
R1
1K
VIN
Circuit (assume R IN  )
R1
R2
R2
9K
+
1K
V0
VIN
()
(+)
9K
V0
+ A  ( V  V )

First of all, notice that if the input resistance of the
amplifier is so large that the current into it is negligible,
then R1 and R2 form a voltage divider to give the input
to the negative terminal
10/13/2004
EE 42 fall 2004 lecture 19
14
OP-AMP
very high gain →predictable results
Analysis:
V(  )
R1

 Vo
R1  R2
V(  )
R1

 A(V  V )
R1  R2
V  VIN
Lets solve for Vthen find Vo from
Vo = A (V+ - V-)

 R1 
R1A 
V(  ) 1 
  AVIN 

 R1  R 2 
 R1  R 2 
AR1
V(  ) 
VIN
( A  1) R1  R 2
10/13/2004
EE 42 fall 2004 lecture 19
15
OP-AMP very high gain →predictable results


AR 1

 V0  A(V  V )  AVIN 1 
 (A  1)R 1  R 2 
A(R 1  R 2 )
V0  VIN
(A  1)R 1  R 2
if A  
R1  R 2
V0  VIN
R1
10/13/2004

V0  10VIN
EE 42 fall 2004 lecture 19
16
OP-AMPS – Another Basic Circuit
Now lets look at the Inverting Amplifier
Example:
R1
VIN
1K
When the input is
not so large that
the output is hitting
the rails, we have
a circuit model:
R2
9K
+
VIN
V0
R1
1K
R2
()
(+)
9K
V0
+
 A  ( V  V )
Assume RIN  
10/13/2004
EE 42 fall 2004 lecture 19
17
Inverting amplifier analysis
V(  )  0 so VO  -AV(  )
V(  )
Analysis:
R1
 VIN 
 (-AV(  )  VIN )
R1  R 2
Solve for V- then find VO from
VO = - AV-

 R2 
R 1A 
  VIN 

V(  ) 1 
 R1  R 2 
 R1  R 2 
R2
V(  ) 
VIN
(A  1)R 1  R 2
taking A  
R2
V0  -AVIN  -VIN
 -9VIN
R1
10/13/2004
EE 42 fall 2004 lecture 19
18
Solving Op-Amp circuits
We can take a very useful short-cut for OPAmp circuits with high gain if we notice
that if the circuit is in the linear range, then
(V+-V-) must be very small, and it goes to
zero as the gain goes to infinity.
The shortcut is just to assume (V+-V-) =0,
and then to check later to make sure that
the amplifier is truly in the linear range.
10/13/2004
EE 42 fall 2004 lecture 19
19
Capacitor in the feedback
Now lets look at the Inverting Amplifier
Example:
R1
VIN
1K
+
In the linear range,
the circuit model:
VIN
V0
R1
1K
V0
()
(+)
+
 A  ( V  V )
Assume RIN  
10/13/2004
EE 42 fall 2004 lecture 19
20
Integrator
• Since the positive terminal is grounded, the
negative terminal will be near zero volts
• The input terminal also takes in no current
dVout (t )
Vin (t )
I in 
 I C  C
R
dt
dVout (t )
1

Vin (t )
dt
RC
1
Vout (t )   
Vin (t ) dt
RC
10/13/2004
EE 42 fall 2004 lecture 19
21
Download