Академический Документы
Профессиональный Документы
Культура Документы
1 Introduction
1.1 Gain
1.2 Thvenins theorem
1.3 Input and output impedance
1.4 Circuits carrying ac and dc currents
2 Bipolar Transistors
2.1 Transistor operation
2.2 Transistor characteristics
2.3 Operating conditions
3 The common emitter configuration
3.1 A usable common emitter amplifier
3.2 Variations on the common emitter amplifier circuit
4 The common collector configuration
4.1 The simple emitter follower
4.2 Bootstrapping
4.3 The Darlington connection
4.4 Bootstrapped Darlington pair
4.5 Current mirror and transistor biasing
4.6 Push pull amps and amplifier operation classes
5 Frequency response
5.1 R and C together
5.2 The low frequency limit
5.3 The high frequency limit
6 Differential amplifiers
7 Operational amplifiers
7.1 Introduction
7.2 Feedback
7.3 Feedback and amplifiers
7.4 Operational amplifier circuits
7.5 The inverting amplifier
7.6 Frequency response
7.7 Non-inverting amplifier
7.8 An op-amp constant current source
7.9 Differential amplifiers using op-amps
7.10 A summing amplifier
7.11 Integrator
7.12 Differentiating circuit
7.13 Solving differential equations with op-amps
7.14 Logarithmic amplifiers
7.15 Exponential amplifiers
7.16 Multipliers and dividers
7.17 Bridge amplifier
7.18 High and low pass active filters
7.19 Comparators and the Schmidt trigger
7.20 Relaxation oscillator
1 Introduction
PHY108 is about amplifiers in general; then transistor amplifiers, their circuits
and properties; and finally about a particular class of amplifier called and
operational amplifier. Lets start by looking at the properties of a general
amplifier, without (for the moment) worrying about the circuit details.
What does it do? Well, usually it has an electrical input and output. In
PHY107 last term I used lower case letters to represent time varying voltages
v and currents i. These are often sinusoidal in time, but they dont have to be.
So suppose the input voltage and current are vin and Iin, and the
corresponding output vout and iout. Usually the outputs are bigger than the
input, and we have amplification or gain.
1.1 Gain
We can define three sorts of gain.
Voltage gain Av = vout/ vin ;
Current gain Ai = iout/ iin ; and
Power gain Ap = Av.Ai since power (watts) is volts x amps.
We can imagine an ideal amplifier in which each of these parameters is
independent of the size and shape of the input. In particular, with an input of
the form
vin = v0 sin(2 ft) ,
with f frequency and t time, such an amplifier would have gains independent
of f and v0. Our ideal amplifier would for instance have a voltage output
vout = Av v0 sin(2 ft) ,
just Av times the input. Generally, things are not so simple.
Frequency dependence
First, and perhaps most important, the gains of real amplifiers will be
frequency dependent. Usually there is a well-defined frequency range over
which Ap (for example) is at least roughly constant, with regions at high and
low frequency where the gain falls to zero. We refer to the width of the flat
gain region as the amplifiers bandwidth. For a quality audio amplifier one
might want a flat region from about 10 Hz to 25 kHz, to suit the ear. For a
telecoms amplifier for optical cable work, the upper limit will be over 10 GHz.
The flatter the gain curve in this central region, the closer the amplifier is to
our ideal one at these frequencies.
Notice that even if the gain is frequency dependent, the output may still have
the form sin(2ft); the output is not distorted. This is usually the case for small
inputs and outputs.
Waveform distortion
Once the inputs and outputs are large, the shape of the two may differ, and an
input of the form above may not yield a sinusoidal output. We saw an
example of such distortion at the end of PHY107 with a simple common
emitter amplifier
lecture1\Transistor1.cyt
with a 50 mV input there is severe distortion; the peak-to-peak input is about
100/600 = 12% of the quiescent (or d.c.) base voltage.
One can describe the distorted output wave form in terms of a sum of sine
waves with frequencies f, 2f, 3f etc, or harmonics. This is what you hear with
an overloaded amplifier.
Phase distortion
Even without waveform distortion, i.e. when the output is sinusoidal, the
output may be subtly different from the input, and have the form
vout = Av v0 sin(2 ft + ).
, the phase shift, is an angle between 0 and 2 radians. It may be a
constant; for example, in the common emitter amplifier above the voltage gain
is negative. One way of interpreting that is to say the gain is positive but the
phase shift is , which shifts the wave by half a wavelength, inverting it.
Worse though, we may have frequency dependent phase shifts. These will
distort a non-sinusoidal input i.e. a square wave into a different shape, even if
the voltage gain is flat. Generally this matters, though there has been a lot of
discussion about the ears sensitivity to phase distortion.
dB (decibels)
Power and voltage ratios are often expressed in dB. For power P the
definition is
dB = 10 log10 (P1 / P2).
For voltages, since powers go as the square of them
dB = 20 log10 (v1 / v2).
RTh
Voc
Here is the circuit. If we put a load on the output, RL say, we get by inspection
Vload = Voc RL / (RTh + RL) and
Iload = Voc/ (RTh + RL).
These results are more easily obtained using the equivalent circuit. They of
course agree with the open and short-circuit results; you can check out the
last two results.
Zout
appears to dc as,
emitter
base
collector
n p
Each has a sandwich structure, with a lightly doped and thin base region. The
current into the base controls the current between the two outer regions.
Each type has three connections, labelled emitter, base and collector. As the
name suggests, the carriers originate in the emitter region, so that if they are
electrons as in the n-p-n device, the conventional current flows out of the
emitter away from the transistor. For the p-n-p transistor, conventional current
flow is into the transistor. This immediately tells us something about the
polarity of the voltage across the transistor.
Consider the n-p-n transistor. First, the collector must be positive with respect
to (wrt) the emitter. We also want the n-p (emitter-base junction) in forward
bias for conduction, and so the base needs to be about 600 mV wrt the
emitter in n-p-n case. The current that passes, though, is base current
controlled, as incoming holes replace those lost to electron-hole
recombination and reduce the number of electron-repulsive negative acceptor
cores. This results in an approximately linear relationship between the base
current Ib and those in the collector (Ic) and emitter (Ie). The number of
electrons lost in the base is small, so these two last currents are
approximately equal. Finally, we would expect the collector to be positive wrt
the base, to help the electrons on their way, making this junction reverse
biased. Overall, the conventional current flows from collector to emitter in the
n-p-n transistor, since the carriers are negatively charged electrons.
Real n-p-n transistors are not symmetrical, since the collector is less heavily
doped than the base.
In p-n-p transistors, with positive carriers all signs are reversed.
10
It looks much like a diode under forward bias, lifting off around 600 mV. Note,
though, that it depends on the emitter-collector voltage Vce. This is because Ib
= Ie Ic, and Vce increases Ic gently through changes in the bias of the CB
junction, an effect seen more clearly in the next set of characteristics.
The local slope of this plot is called gM, and as we saw in PHY107 is important
in determining the gain of a single transistor amplifier stage. The bigger the
ac voltage vbe, the bigger the ac collector current output ib.hfe.
The reciprocal of gM has the dimensions of a resistance and is called the
emitter resistance. It is analogous to the dynamic resistance of a diode
(dynamic = local inverse slope).
We often want to calculate re, and its worth noting that
11
12
Amplifiers normally work in the region where the base and collector currents
are linearly related, the flattish part of the output characteristic. This is the
region where the base-collector junction is solidly reverse biased.
13
Here the 2k resistor forms a voltage divider for the output, with only ac going
through the capacitor. On the input side the other capacitor isolates the
source from the rail, and the1.8M resistor provides the required base current
or dc voltage bias. The supply voltage to the collector is generally labelled
VCC, = 9 V here.
The analysis of PHY107 (equation 6.6) showed that the voltage gain of this
circuit is
AV = vc / vbe = - gM .Rc .3.1
= - 40 Ic Rc,
where gM, the transconductance, is = 1/re = 40 Ic via the ideal diode equation.
We set the gain by choosing the bias resistor (the1.8 M) to fix Ib and hence Ic
since Ic = hFE Ib.
This circuit will work, but it has two undesirable features. The gain depends
on hFE, which varies greatly from transistor to transistor, and also on re, which
depends on the quiescent current (the operating point) and on temperature.
The 40 in 3.1 is an approximation to the room temperature value of e/kT, and
hence falls as T increases, so re increases.
It turns out, as we will see that this does several things. It stabilises the
current through the transistor; it increases the input impedance; but it reduces
the gain.
14
How does it stabilise things? Imagine that the collector current increases
because of temperature. Then the voltage drop over RE will also increase.
Supposing the base voltage wrt ground is fixed somewhere around 0.6 V (we
will see how to do this in a moment), then the base emitter voltage will fall,
taking this junction closer to being off and reducing the current. The collector
current drops back towards its original value. This is an example of negative
feedback, which always stabilises systems.
What is the voltage gain now? The argument is much as before,
remembering lower case letters are a.c. amplitudes. The base voltage (wrt
ground) is
vb = ve + vbe = ie (RE + re)
where vE is across RE. The output a.c. voltage (vce) is
- ic RC,
so the voltage gain is the ratio of these
AV = - RC / (RE + re) .3.2.
This is the same as equation 3.1 when RE becomes small compared with re as
it should. Recall that re is, typically, a few ohms. We will see shortly that RE
may need to be a few k, so the result of including this resistor is to drop the
gain quite a lot. However, we are now able to separate the gain from the
transistors dynamic resistance re, which is both temperature dependent and Ic
dependent, to make it only depend on the values of RC and RE.
The other thing RE does is to change the input impedance. We would like this
to be high, so our amplifier does not draw too much current from its source.
Z in = vb/ ib = (RE + re)ie / (ie/hfe) = (RE + re) hfe RE hfe , 3.3
where I have approximated ie = ic (equivalently that hfe >> 1). Remembering
that re is small, even a modest value for increases the input impedance
greatly. With RE say thousands of ohms, Zin is a fraction of a M. It does,
however depend on the variable parameter hFE.
I mentioned two other amplifier parameters, the current gain and the output
impedance. The first is very simple, since
Ai = ic / ib = hfe .. 3.4;
(hfe rather than hFE is fussy, but right) this is still transistor dependent. The
output impedance is a messier calculation, but it turns out to be approximately
RC, so long as this is not too big. This is because this resistor is effectively
(for ac signals) across the load (output) for the reasons discussed in 1.3, and
RC, being quite low value shunts any others.
15
What happens when we add an external load RL? This shunts the output
impedance, i.e. is in parallel with Zout RC, so that in expressions like 3.2, we
should replace RC with the impedance of RC and RL in parallel. This is a
reminder of why we would like amplifier stages to have relatively high input
impedances, so they have a small effect on those feeding into them.
This deals with the effects of RE. We were also worried about the way we set
the base bias. In the simple circuit, our decision to fix the base current left us
exposed to variations in hFE. It turns out that if we fix the (quiescent) value of
Vbe, then transistor to transistor variations are less acute. We can set this
voltage with the simple voltage divider, where the relative values of R1 and R2
set the base voltage bias. We will want input and output capacitors to isolate
the dc, quiescent settings from the ac signals.
VCC
RC
R1
R2
RE
i)
The first step is the choice of RC. From what we said above (c.f. the
output characteristics), we want the base collector junction reversed
biased, so VC > 1.6 V. In order to get the maximum a.c amplitude,
we should aim to operate at a quiescent value half way between
this minimum value and the maximum provided by the supply.
Then the output can swing by (15 1.6)/2 V = 6.7 V. Since the
collector current is 0.5 mA, RC must be 6.7 / 0.5 = 13.4 k.
16
ii)
iii)
iv)
We can now calculate the current and power gains, using equation 3.4. We
get
Ai = hfe = 100, and hence Ap = 670.
The input impedance in the absence of the divider is RE hfe from equation 3.3,
but with the divider is Zin || R1||R2 R2. The bias resistor lowers the input
impedance and effectively determines it. If we want to increase it we need to
scale up R1 and R2 together, and decrease the input capacitor by the same
factor to keep the same bandwidth. However, remember that R2 has to be
<< REhfe, about 200 k, so unless we increase RE we have a problem in
getting a higher input impedance. Increasing RE decreases the gain,
however.
A CC version of this circuit is at lecture2/CEamp1.cyt. The output capacitor
blocks dc. At 1 kHz and 100mV input we measure a gain of about 6.2 about
as expected. We get the same gain at 10kHz. If we go down to say 100 Hz,
well below our design frequency, the gain drops to about 3.9. We would need
a bigger input capacitor to work at these frequencies.
17
We can also measure the input impedance i.e. vb / ib. I did this by putting a
small (10, to little to affect the base bias) resistance into the base
connection to find the voltage drop across it with the scope, and hence ib. I
got 21.7 k, close to R2 = 20k as expected.
Finally, what about the maximum voltage output? We had designed for a
amplitude of 6.7 V, i.e. a maximum input of 1 V given our calculated gain of
6.7. The CC model with that input shows significant distortion: the output is
asymmetric, with a maximum of 5.2 V and minimum of 6.2. The negative
going part of the output is evidently not distorted, but the positive side is being
limited. bearing in mind the negative sign of the gain, the distortion is
occurring on the negative swing of the input, as we would expect from the
discussion of PHY107.
RE
This does leave the gain dependent on the variable parameter re. We can get
around this by only by passing part of RE, by splitting it into two resistors and
only bypassing the ground side one.
18
RE2
RE1
19
There are two differences between this and the common emitter circuits we
have been looking at: there is no collector resistance, and the output is
between ground and the emitter.
As before, we will want the two gains and two impedances. What about AV?
The transistor acts (for ac signals) like a resistance re, and this is in series
with, with the signal across the latter. So we have a voltage divider, and the
voltage gain is
AV = RE / (RE + re) < 1. 4.1.
A voltage gain of unity does not sound promising, but wait. At least one can
now understand the name of emitter follower, since the emitter voltage output
follows the input.
This circuit on the input side is exactly the same as the common emitter, so
Z in = (R+ re) hfe RE hfe, 3.3.
20
therefore in phase, whereas now the emitter (load) current is out of the
transistor and out of phase with the base current. In the common emitter
case, it was the voltage output that was out of phase (negative AV).
Finally, we need to calculate Zout. There is no RC to dominate it as in the
common-emitter, and you might think, given the picture above, that this will be
RE||re. This certainly makes a contribution, but there is another and more
interesting part. Suppose the input is represented in its Thevenin form of a
voltage source (voltage vs say) and resistance rs in series. How does this
affect the output impedance?
rs
RE
iii)
ib = vs /rs.
21
ii)
R1
RC
R2
RE
As before, we need to look at the biasing with the aid of a numerical example.
Suppose the power supply produces = 10 V, that hfe =100 and the desired
quiescent current is Ie = 2.5 mA.
22
Here is the working circuit EmitterFollower. The output R and C are just there
to provide a load and segregate the ac as before. Notice the near unit gain
(positive, in phase).
Just because these bias resistors have to be small compared with Zin, they
will inevitably decrease the prized high input impedance of the emitter-follower
to around R1||R2, i.e. by our factor 10. Lowering this factor turns out to lower
the thermal stability, the reason for this choice of biasing. Can we get the
high input impedance and the stability together?
4.2 Bootstrapping
Looking again at the impedance problem, it occurs that there are really two
things going on here. One is the need not to shunt the bias resistors
23
significantly under dc conditions, the other the wish not to short out Zin by the
bias resistors for the ac signal. Perhaps we can avoid the problem by treating
ac and dc differently.
Suppose we take the same circuit as above, but add a link between the base,
emitter and bias chain as shown. For the moments the two new components,
which we will call RB and CB have not yet had their values fixed. Note the
absence of a connection where the input crosses the bias chain.
Think first about the dc circuit by mentally removing the capacitors, leaving a
break. The circuit looks like
the only difference compared with the non-bootstrapped circuit being the base
resistor RB = 10k.
The Thevenin resistance of the new divider turns out unsurprisingly to be
(R1||R2)+RB. This is the dc impedance as seen from the transistor base. In
our example of 4.1, we set this equal to 20 k to be much less than Zin.
Because of the extra resistance, we can lower the values of R1 and R2 by a
common factor of 2, say, which leaves the fraction of the supply voltage on
the base unchanged since
Vb = VCC.R2/(R1 + R2).
24
25
T1
T2
I shall not give the detailed analysis, but it will not surprise you that this pair
acts as a single transistor which has
i)
ii)
26
RBE
RE
Here is a biased circuit using a Darlington pair. This one is designed around
a pair of VC109 transistors each with hfe =250. The 10 k resistor is the one
mentioned in the previous paragraph. The standard bias resistors shunt the
base input impedance of (hfe)2 RE= (250)2x3.3 k = 200 M to 330||330 =
165 k.
27
RB.RE/ re
To find re we measure the emitter current Ie Ic from the simulated circuit via
the voltage over RE, and then using re = 1/(40 Ic), the ideal diode result. I
found re = 25 and hence the impedance
= 10x3.3/25 = 1.3 M.
The base impedance looking in is, as above, 200 M, much greater than this,
so the input impedance is about 1.3 M. The measures value in the
simulation is just this.
28
Having pushed up the base impedance with the Darlington, we are still in the
situation where the bias resistors are setting the input impedance, but
because we are bootstrapping, we have made this contribution much bigger
(factor 8 in this example, 1.3 M compared with R1||R2 = 165 k). Anything
over a M is a respectable input impedance for many current sources like
photomultipliers, photodiodes etc.
The simulation is at Current Mirror. Since they are p-n-p transistors the
emitter is positive.
Think of it in two parts, the left and right sides, and start to understand it by
looking at the left first. There is no emitter resistance and the base is
connected to the collector. We then have a variable collector resistance to
ground.
29
Since the base and collector are common, Vce = Vbe 0.6 V. Then, with a
101 k resistance, there is a collector current Ic = (15-0.6)/101 mA = 143 A.
In fact, Vbe is exactly 0.6 V at this current, so the left hand ammeter reads
143 A. Of course, as we lower the resistance the current increases, with a
small increase of Vbe. The 1k resistor prevents the current getting
damagingly large. The maximum current is 14.3 mA at Vbe = 0.7 V. You will
recall the input characteristic Ie vs.Vbe. We could plot the load line
R Ic = 15 - Vbe on it to determine Vbe, but the main point is that the latter
depends on the current.
The base voltage of the left-hand transistor is just that needed to produce the
current we have set by the variable resistor, so the right-hand chain will
produce exactly the same current; it mirrors the left. To about 2%, the
simulation does this when then right-hand resistance is zero.
You can see very clearly that we have a current source by varying the righthand resistor. Whatever value between 0 and 1 k is used, the current stays
fixed where we have set it. However, if we use a 10 k variable resistance
we start to hit the limits of the circuit. We find that roughly when the
resistance in the left chain is less than that on the right, the mirror starts to fail.
The reason for this is straightforward: the current on the left is (VCC Vbe)/
Rleft and that on the right (VCC Vbe - Vbc)/ Rright. Since Vbc (which is 0 only on
the left) Rleft cannot be less than 0 on the right, we can only get equality of
currents whilst Rleft > Rright.
The right and left currents are not quite equal since identical small currents
flow (out, since these are p-n-p transistors) from both bases, and these can
only go to ground via the base-collector connection on the left leg. Thus the
left current is bigger than the right one by a factor 1+ 2/ hfe.
For lower resistances though, we have a good current source, that is one with
an output impedance close to infinity so that the addition of a load in series
has little effect on the current.
Ive not checked this out with real transistors, but some books suggest the
impedance is not as high as here, with maybe 25% variation in current over
the compliance range. If so, it maybe that CCs output characteristics are
flatter than real ones.
There are many variants on this simple circuit, including some that increase
the output impedance with, for example, a couple of 1 k emitter resistors.
Control of a current by a current is much used in integrated circuits, largely
because a single resistor (generating losses and heat) can run many mirrors
to set up different operating currents. The overall heat savings are valuable.
Its worth noting that identical transistors are most easily achieved on a single
piece of silicon.
30
31
This is called class A operation, and offers low distortion. The main price is
the power drain caused by the non-zero quiescent current, always on
whatever the signal. This applies to both common emitter and common
collector class A amplifiers.
32
There are less power hungry solutions if we can accept some distortion. One
of these is the push-pull amplifier, working in what is known as class B. We
bias the amplifier so that with no, or negative signals, the transistor is off. The
quiescent current is then zero and power likewise; but the distortion is horrid
because we are only amplifying the positive part of the signal.
The answer is to use a pair of transistors, one to handle the positive part of
the cycle and one the negative. We use a complementary pair, one p-n-p
and one n-p-n with matching characteristics. The circuit is as below, with p-np at the bottom. It is a power amplifier, with the usual near unit voltage gain
of emitter followers but a current and hence power gain of about hfe
Notice that the supply is symmetric, not grounded (standard notation is VEE for
the emitter side supply) and that as a consequence the oscillator and speaker
are earthed to the centre point of the supply. The simulation is at PushPull.
Note VEC VCC as here are no collector resistances.
VCC
-VEE
As the signal voltage swings from positive to negative, first one transistor then
the other conducts. There is a time, though, when neither is conducting, that
is when then signal magnitude is less than the diode voltage required to turn
on the transistor The output is about 0.7 V less than the input, i.e. a gain of 1
with a diode drop of 0.7 V. There is significant distortion because of the loss
of the first 0.7 V of the forward and reverse swings, or if you like because of
the non-conducting period mentioned above. This is known as cross-over
distortion, and is the price we pay for low power class B operation.
It is not difficult to improve things by getting rid of this of period. We add a
pair of resistors and diodes as shown below. The resistors bring the diodes
in forward conduction, each with a diode drop across them, so the base of the
upper transistor is a diode drop above the signal and the base of the lower
transistor a diode drop below the signal. Now as the signal goes through zero
conduction switches immediately from one transistor to the other.
33
with the simulation at PushPullAB. This shows that the diodes have done
their stuff and there is no non-conducting period at cross-over. By eye, there
is little distortion. You might want to tweak the system to make sure the diode
and transistor drops were as close as possible by adjusting the chain current.
The other point to watch is that the resistors are low enough to provide the
base current necessary for the collector current amplitude required. On the
other hand, we must not let the base current get so high we destroy the
transistor.
We can check out these numbers by noting we have a voltage amplitude at
the speaker of about 2 V. This is across the speakers impedance of 15 , so
the collector current amplitude is 133 mA. With hfe= 100, ib is 1.3 mA. The
current through the resistors is (18 - 1.2)/10000 = 1.6 mA, which is just big
enough to allow the swings. With an input of 3 V (ib = 2.0 mA) we get serious
clipping.
5 Frequency response
As I said earlier, all amplifiers have some limits on the frequencies they can
handle. An audio amplifier might give nearly constant gain from 15Hz to 30
kHz, rolling off at frequencies above and below. A telecoms amp might only
need to deal with frequencies close to 10 GHz. The details of these two
amplifiers will be very different, but they will both have limits to the frequency
range over which the gain is constant, and beyond which the gain falls. The
details of their frequency response may again be complicated, but usually
bandwidth is set by capacitance effects.
34
linear in frequency.
2f0, 5.2
This is why the amplification falls at low frequencies: the impedance of the
capacitor gets bigger and most of the voltage falls across it and not across the
input of the amplifier. Of course we need the capacitor to separate the a.c.
signals and d.c. bias, so we will need larger capacitors to get to lower
frequencies. We did these sums before when we required 2RCf >> 1 = 10
say to make the input impedance (R here) dominate the divider.
The fall off is often characterised by the frequency at which the gain has fallen
by 3 dB. That is where the power, which goes as v2 has fallen by 50%. The
dB is a log measure = 10 log10(fractional power) or 20 log10(fractional voltage),
35
36
Rload
Ccb
CL
Rin
Cbe
Rin and Rout are the source || input resistance (RS||hfeRE) and load || collector
resistors (RL||RS) respectively and CL is the combination of a discrete output
capacitor and the stray output capacitance. The other two capacitances are
due to the transistor junctions and do not correspond to a discrete component.
Their values depend on operating conditions, in particular on IC. Cbe also
includes any stray input capacitance. There are several RC combinations to
worry about, and the usual approach is to look at output and input sides
separately, to see which provides the bandwidth bottleneck.
On the output side we have (RL|| RC) (CL + Ccb), noting that the capacitors are
in parallel like the resistors, but parallel capacitors add (like series resistors).
We also see this capacitor Ccb on the input side. It effective value, though, is
enhanced by the amplifier gain to Av C cb, a result known as the Miller effect.
Notice that the input impedance for the common emitter amplifier is about
RE hfe RE Av (equation 3.3). However on the input side Rin is usually
dominated by the source resistance (<<RE hfe ) and so
in = RS (Av C cb + Cbe).
So with a 1 k load, much less than RC, RS = 50, negligible load
capacitance, Cbe = Ccb =5 pF, AV = 100 and RE = 2k , we have
out = 5 ns and in = 25 ns.
In this amplifier the input side would limit the upper 3 dB point to
in (25 + 5) ns, or a 3 dB point of about 5 MHz. For serious high frequency
working (GHz) we need to avoid the Miller effect, and happily there are ways
of doing this.
One approach is to use a low gain, low output impedance stage like an
emitter follower to produce a low source resistance for an subsequent
37
38
VCC
RC1
RC2
out
signal 1
RE2
RE1
signal2
RT
-VEE
39
40
We could make this bigger (150) by having no emitter resistances, but the
cost would be to lower the differential input impedance fro about 250 k to
50 k. One could of course use Darlingtons to get M impedance. We set
the gain with RE, then sort the impedance.
The common mode gain from 6.4a is
Acom = - RC / (2RT + RE2 + re2) = - 75/ (2x75 + 1 + 0.25) = - 0.496 - 0.5.
The CMRR = Adif / Acom = 30 / 0.5 = 60. In dBs it is 20xlog10(60) = 36 dB.
The simulation of this circuit is at DiffAmp. At opening it is set up with two 10
mV oscillators 180 out of phase. The difference should be 20 mV amplitude,
and the output with a gain of 30 = 600 mV The oscilloscope shows peak to
peak 1200 mV. In phase we measure about 10 mV p-p, or the 5 mV
expected from a common mode gain of 0.5.
It is perhaps worth noting with the simulation that we do not need the resistor
RC1, since we are not measuring the collector voltage here. Power saving!
I mentioned the fact that high CMRR are obtained with high RT, values but this
required high voltages to carry the 2IC. One can replace this resistor with a
current source such as the current mirror we looked at earlier, though there
are alternative circuits. Current sources have almost infinite resistance and
through equation 6.4a this brings down the common mode gain enormously.
In current terms, the current source keeps the sum of emitter currents
constant at whatever value we have chosen, what ever the base voltages, so
the are no common mode collector current changes and no voltage output.
These matching voltage changes across RT do not show up in the differential
output (see, e.g. equation 6.2), and the differential gain remains as before.
7 Operational amplifiers
7.1 Introduction
We have already begun to find out about operational amplifiers, since they are
differential amplifiers at heart. They have though, much higher gains ( 105
106) than our earlier circuits and also lower output impedances. The output
can swing through most of the VCC to VEE (typically 15 V) supply.
What we are going to concentrate on is the application of these integrated
circuits, rather than examining the internal design and detailed operation of
the circuits themselves. We will start, though by having a look at the outside
and inside of a typical mid 1980s example, the LF114. This comes in a mini
Dual Inline Package (mini-DIP), and the picture shows what it looks like.
41
The 7 connections within the 8 pins are shown below. The triangle is the
amplifier symbol. With op-amps the power connections are not normally
shown on the symbol, but we include them here. So we have two (differential)
inputs and one output, plus power plus two offset nulls that we use to trim the
circuit to the symmetric state of the ideal long tailed pair.
The full circuit (from the data sheets ) is quite frightening, with 26 transistors
and three Zener diodes (21 BJTs, 3 FETs, 1 cap and 11 resistors) . The
transistor symbol with three parallel wires like a on its side represents FET
transistors, different from the bi-polars we have talked about and giving
greater input impedances. There are few (3) capacitors; we want this circuit
to work under near d.c. conditions.
42
However, the manufacturers provide a simplified circuit diagram, and this has
some familiar features. We see that in essence we have a differential
amplifier, with a current mirror souce in the tail, followed by a class AB pushpull amplifier. The FETs make the input impedance so high that mostly we
can neglect the input current, which is about 200 pA for an LF114 and less for
more expensive op-amps.
43
Voltage gain
Unity gain bandwidth
Maximum slew rate
Maximum supply voltage
Minimum supply voltage
Output voltage swing
(with 15 V supply)
Output resistance
Short-circuit output current
Maximum input voltage
(with 15 V supply)
Input impedance
CrocClips
LF411
20 000
(86dB)
1 MHz
0.5 V/s
99 V
3 V
200V/mV (2.105)
(106dB)
4 MHz
15 V/s
18 V
4.5 V
13 V
75
25 mA
13.5 V
(h.f.) 40
16 V
15 V
1012
The input notation is (for any op-amp) that the output is positive when the
non-inverting input voltage is bigger than the non-inverting. Hence the
names.
7.2 Feedback
Feedback is used in all sorts of circuits, not just those with op-amps, but it is
crucial in the use op-amps. Part of the output is sent back (fed back) to the
input, which in turn modifies the output. If the feedback is negative, it reduces
the signal in a way that is proportional to the output, and hence reduces the
output still more ... This way we get low gains, which sounds bad until we
remember the emitter follower with its near unit voltage gain. It was
nonetheless a useful configuration.
With positive feedback, which sounds more exciting, we get growth in the
output as the feedback increases the input. But eventually this growth must
stop. This way we get oscillators.
There are many non-electronic examples of feedback, from the processes
that control the global climate to the thermostat in your living space. Left to
itself, the temperature in your room would climb until heat losses to the
outside world matched the input to the outside. If its cold outside, you lose
more heat and the room is colder; warm outside, and low losses make the
inside hotter. With a thermocouple feeding back information to the heater, the
latter can be told to produce less heat when the temperature is high, more
when it is low (note: the usual thermostat is a digital device, but we are
thinking analogue here), The dependence of the room temperature on that
outside is decreased.
This shows three features common to systems with feedback:
44
vi - vo
vo
Somehow, inside the first ellipse the fed back and input signals are combined
to feed vi - vo into the amplifier. The minus sign means negative feedback.
Thus, when things have settled,
v = A (vi -vo), or
v / vi = A/ (1 + A)
....... 7.1
This ratio is called the closed loop gain, i.e. the gain with the feedback loop
closed or connected. Recalling that we have an op-amp with a high gain,
maybe 105, then unless is very small then the closed loop gain is 1/.
This assumption about is saying that A >> 1 or 1/ << A; the closed loop
gain is much less than the open loop gain because of negative feedback.
45
ii)
iii)
iv)
These are not exact but helpful. They lead to two golden rules:
I)
II)
The first follows from the infinite gain (i) and the expression vo=A (vi -vo).
With infinite A, the input in the sense of (vi -vo) must be zero. Slightly more
realistically, with the LF411s A = 2x105an output voltage of 10V requires an
input of 10/ (2x105) = 50 V, small enough to be ignored mostly.
The second follows immediately from (ii). The LF411 input impedance is
1012 , so an input voltage of 50 V requires a current of 50x10-6/ 1012 =
5x10-17 A. Thats small!
The other point to note is that we want negative feedback and that means that
the feedback in all (non-oscillatory ) circuits goes to the inverting input. This,
if you like, supplies the negative sign.
46
vo
The power connections to the op-amp are indicated but not completed. Input
is to the inverting input via R1, with the non-inverting input grounded. We
shall improve on that but it will do for now. Shunt feedback is via R2.
Lets compare voltages at points a and b. According to GR I these are the
same, so a is at ground. This means that
i)
ii)
vi./ R1 + vo / R2 = 0,
closed loop voltage gain = vo / vi = - R2 / R1 ...... 7.2.
The minus sign shows it is an inverting amplifier. One thing needs noting
here: the gain does not depend on the op-amp properties, only on the external
resistors. That is characteristic of op-amp circuits.
If we compare equations 7.1 and 7.2, we see that in this circuit = - R1 / R2
since the closed loop gain is 1/ for A >> 1.
Lets look at what is going on in the feedback process to get this result 7.2.
Suppose, for example that R1 = 10 k and R2= 100 k, giving a gain of 10.
Start with an input voltage of 1 V and an output initially of 0 V. All voltages are
wrt ground unless stated otherwise. The two resistors form a divider of total
resistance 110 k with 1V across it, so the inverting input is at +10/110 = +
0.91 V. With this large inverting input the output is driven negative until it
47
Faster op-amps exist, and glancing through a data table I noticed that the
CLC203 has unit open circuit gain at 5 GHz. We will see how to drop the gain
at low frequencies shortly.
7.7 Non-inverting amplifier
In 7.5 we got an inverting amplifier, with a rather low input impedance. Its
easy to produce a non-inverting amplifier with a much higher input impedance
using the following circuit.
R1
R2
Notice that the op-amp has been inverted, so the signal goes to the noninverting input. The two resistors are in the same place as before, but R1 is
now grounded.
To analyse, first find va = v0 R1 /( R1 + R2). By GRI va = vin for zero input,
and hence
closed loop gain = v0/ vin = 1+ R2 / R1 ...... 7.3.
It is non-inverting since the sign is positive. The signal only sees the
impedance of the op-amp, which is very high (1012 for the LT411); there are
no resistors in the input line.
The demo is at Non-inverting Amp. With these resistors, equation 7.3 gives a
gain of 11.
There are a couple of modifications one might make for a.c use. If the source
is ac coupled, i.e. just a capacitor then we need a resistor to ground between
the capacitor and the non-inverting input to provide a current path to ground.
Its value will determine the low pass cut-off point in the usual way.
If the source is not ac coupled but we do not want to amplify dc, we might put
a capacitor between R1 and ground. At low frequencies its impedance
becomes large and adds to R1, reducing the low frequency gain via equation
7.3. With R1= 2 k, R2=18 k and C = 4.7 F we have a combined
impedance of R1 and C (they add in a Pythagorean way, recall 5.1)
49
= (R12 + (1/2fC)2)1/2.
If you ignore the 1 in 7.3, on the basis that it only changes the gain by 10%,
then you can find the 3 dB point fast by recalling from 5.1 that 3 dB was a
1/2 fall in voltage, and this will happen when the impedance of capacitor and
resistance are equal, doubling the high frequency total of just R1. In the
approximation the 3 dB point is given by
R1 = 1/(2fC), or f = 17 kHz.
If you leave the 1 in, then the result is 22 kHz. Its a good check, even if you
want the exact result, and often good enough.
There is one interesting special case of the non-inverting amplifier that takes
us back to the emitter-follower of 4.1. Suppose we take out R1 (put it equal
to infinity) and short out R2 (put it equal to 0). The gain is then +1. Its
properties are like the emitter follower: high input impedance, unit voltage but
high current and power gain via a low output impedance. Such circuits are
sometimes known as buffers.
7.8 An op-amp constant current source
We often need a constant current source, and we looked at one such in 4.5,
the current mirror, which used a current to set a current, and whose output
current was practically independent of load over a useful range. There were, I
mentioned other transistor based circuit. There are also op-amp based ones,
for example the very simple one shown here.
RL
We show the load as a variable resistor and there is a fixed vin. The circuit is
the same as the non-inverting amplifier, so use equation 7.3 to get
v0 = vin ( R + RL) /R.
The current through the load is
50
v0 /( R + RL) = vin/ R,
independent of the load and so our desired current source.
There is a better way of thinking about this result. Use GRI, so feedback
means there is vin on the inverting input; thus the current through R is vin/ R,
and also through the load.
The simulation is at Constant current source. it will reach its limits at the max
and min voltage swing of the op-amp, depending on type and power supply.
There is though problem with this circuit, in that neither side of the load is at
ground (and they usually are). The grounding is actually set by the power
supply, which normally has its common terminal grounded. Instead, we can
float it as shown in
Fig 4.10 H&H,
grounding one end of the load as desired. The voltage divider sets vin. Te
circuit is otherwise exactly as before and will work fine. However, the voltage
reference is now floating and this means we cannot reference from a
grounded source. The usual way out of this one is to a transistor or two. For
example, consider this circuit.
Feedback forces vin on the inverting input, so there is a voltage VCC - vin
across R and hence a current (VCC - vin) / R (= (9-3)/1000 above) through it.
The feedback process works via the base voltage but we dont need to follow
this in detail, just use GRI. This emitter current (slightly less than Ic) flows
through the load. The simulation is at Constant current with grounded load. it
shows again a current independent of load. The circuit is the first we have
51
met with more active components than just one op-amp. It shows how easily
they can be brought together and how the GRs still rule.
7.8 Photodiodes and the current to voltage converter
Many devices produce a current output proportional to some stimulus. Light
detectors are common and important examples, with a current output
proportional to the light intensity or photons/ sec. Sometimes we can get
away with just a resistor to convert this current signal into a voltage, but this
voltage appears across the device and may (for some devices ) change the
current. It is worth a brief diversion to understand how a photodiode works.
You recall the standard diode characteristic from PHY107. We will refer to
this from now on as the dark characteristic In forward bias the diode is
conducting, but reverse biasing produces only a small current. The device
works with electrons and hole from the doped n and p (respectively) parts of
the junction. The potential energy diagram for electrons and holes looks like
Potential
energy of
electrons
p-type
Potential
energy of
holes
n-type
field
with reverse bias increasing the step and preventing significant current flow.
What happens when a light falls on the device? More electrons and holes are
generated in the junction region and are separated and swept out by the
internal field. Notice that the electrons travel down the potential from p to n
regions, or if you prefer the conventional photocurrent current goes from n to
p. This is the reverse direction, since in forward bias the p-contact is biased
positive and the current goes from p to n.
So what does this do to the dark diode characteristic? It is the current
generated (electrons s-1 proportional to photons s-1) that is constant for a fixed
light intensity and subtracts (its a reverse current) from the dark characteristic
at all voltages, so the light characteristic moves down with respect to the dark
one.
52
Sketch
Obviously one thing one could do is reverse bias the diode and measure the
current. Thats fine, and the more usual way to measure optical signals, but
one gets slightly better sensitivity (lower noise) in the absence of the dark
reverse current which is there if we reverse bias. We could just put a resistor
in
Sketch
and we get the reverse current shown and what is clearly forward bias.
Where are we on the characteristic?
Sketch
Fix the resistor value, draw the load line and you can work out the current
(and hence the light intensity) from the voltage across the resistor. I think you
can see, though, that the voltage and current are not linearly related (actually
approximately logarithmic). It would be good if we could measure the current
directly, at effectively constant voltage. The current to voltage converter does
that. Its very simple:
53
54
v1
v2
R1
R2
R1
vo
R2
The only difficulty is getting exactly matching resistors. One can get
tolerances down to 0.01%, but beware the standard 10%. The analysis is
standard. We work out the voltages on the two inputs and equate them.
Thus
vni = v2 R2 / (R1 + R2) and
vi = vo + (v1 vo) R2 / (R1 + R2), so that, putting these equal
v2 R2 = vo (R1 + R2 ) + (v1 vo) R2 or
vo = (R2 / R1) (v2 - v1).
We have a closed loop gain of (R2 / R1) and a signal proportional the input
difference.
What about the common mode rejection ratio that we met earlier? This
expressed the ability of the amplifier to reject signals common to both inputs.
Suppose the two resistors going to the non-inverting input are slightly different
from the other pair, say R1* and R2*. Then the expression for
vni = v2 R2*/ (R1* + R2*) and equating this with the unaltered expression for vi
gives, after a little tidying up
R + R2 v 2R2*
vR
vo = 1
1 2
*
*
R1 R1 + R2 R1 + R2
This is the same as before if the two pairs of resistors are identical. If they are
not, then the output is not exactly proportional to the input difference; one
input is slightly weighted wrt to the other.
We can use this result to find the CMRR, since it is the ratio of the output
when the inputs are v1 = v say and v2 = 0 to the with v1 = v2 = v. Substituting
in, and cancelling the left hand brackets top and bottom and the vo terms
straight away, we have
55
CMMR =
R2*
R1* + R2*
R2*
R2
*
R1 + R2 R1 + R2
We could tidy this up, but this way it is easy to see that when the two pairs of
resistors are equal i.e R1* = R1 and R2* = R2 the CMMR goes to the ideal
value of infinity.
Suppose the inequality was such that
R2*
0.99R2
,
=
*
*
R1 + R2 R1 + R2
i.e. the two terms differ by 1%. We have immediately that the CMMR is
1/(1-0.99) =100 or 20log10(100) = 40 dB.
A typical choice of values for a gain of 100 might be 1 M and 10 k. As
always output voltage swings must stay within the linear range of the op-amp,
a volt or so below the supply.
R1
R2
v3
R3
56
If we want |gain| >1, then put all the input resistors equal but increase R. If
we want a weighted sum, then that is easy; the weights are Rj /R. So what is
the output of the circuit below?
It weights the three inputs in the ratio 1:1/2:1/3 and adds them, and the
feedback resistor R = 5.454 k is chosen so that (in k)
1/R = 1/10 + 1/20 +1/30 = 11/60
so that with 1 V on each input we get 1 V output. Mathematicians and
physicists would call this last step normalising. The simulation is at Weighted
sum.
If we wanted just to add in the ratio 1:1/2:1/3 we would set R = R1. Here we
have a circuit that does this and has the inverter (equal resistors so gain 1)
included.
7.11 Integrator
We cannot do this with resistors alone, but it is easy with a capacitor C. The
key is that the voltage across a capacitor is Q/C. We deal with currents rather
than charge, but if a constant current i flows into a capacitor for time T , then
the charge is i T. If the current is time dependent, i(t) then the charge is
57
i ( t ) dt
i ( t ) dt
vC = (1/C)
With the inverting input a virtual ground, the current vsig(t) /R flows into the
capacitor and the output voltage is that across the capacitor.
T
1
v o = i (t )dt
C0
T
1
=
v s (t )dt
RC 0
The minus sign is familiar (its the inverting amplifier configuration) but in detail
positive charge arrives on the left late of the capacitor, so the output side is
negative and likewise the output voltage.
We can see it at work most easily if we put in a square wave signal or similar.
It integrates sine and cosine waves to, but they look like their integral apart
from the phase. A square wave, though integrates to a triangular one. Here it
is in the simulation Integrator. Note it is inverted, the integral decreasing
whilst the input is positive and constant.
In the simulation the square wave input has amplitude 0.5 V, so its integral is
0.5xT. RC is 10 ms, so vo = - (1/10-2) x0.5xT = - 0.5 since in the simulation T
is also 10mV.
Its worth noting that if we used a sine wave vssin(2ft) the integral would
gives us an output -vs (1/2fRC) cos(2ft). That is, the magnitude of the gain
58
is 1/(2fRC). This should come as no surprise since for the normal inverting
amplifier the gain is R2 / R1. Their equivalents here are 1/(2fC) and R, so we
have the same result.
It is interesting to see what happens when we put in a triangular waveform.
For a moment this looks sinusoidal, but it is not quite the right shape.
Actually, we are integrating (during the rising art of the wave) a voltage
proportional to t, so the integral is t2. During the falling part of the triangular
wave, the integral is proportional to t2, so we get a series of rising and falling
parabolas. Remember the inversion when thinking about this. The point of
inflexion occurs at the maxima and minima of the input as it should.
Integrating circuits are a common feature of filters. One way of improving
noisy signals is to average them, smoothing out fluctuations. That is done
with an integrator. One can use simple capacitors, or circuits like this one, or
digital circuits.
One other variant of the integrating circuit is the adder-integrator. You can
guess what this is like and what it does from its name. The circuit looks like
this.
It adds the voltages then integrates the result. It works, as did the adder,
because both input currents flow to the virtual ground and add to go through
the feedback loop.
59
Why does this work? Noting that i = dQ/ dt and Q = VC, we have
i = C dV/ dt.
Thus the output voltage (again the inverting input is a virtual ground) is - R
times this current,
vo = -R C dV/ dt.
The output is proportional to the differential of the input. We can check the
result as we did in 7.11, noting that our inverting amplifier now has R1 =
1/(2fC) and R2 = R, so the expected gain is R2/ R1 = RC 2f. The 2f comes
from differentiating the sine wave and our two arguments agree.
The simulation is Differentiator. A triangular input yields an inverted square
wave as expected, constant and negative whilst the input is rising linearly.
60
the equation of forced shm. Now suppose is another forces force acting,
slowing the motion down via frictional forces and proportional to the velocity
dx/dt. Our equation then looks like
d 2x
dx
= B
kx + A cos(2 ft )
2
dt
dt
Suppose we integrate both sides of this, getting
dx
dx
= B
kx + A cos(2 ft )dt
dt
dt
Because out integrator inverts, it makes sense to rewrite the equation again as
dx
dx
= (B
+ kx A cos(2 ft )dt )
dt
dt
.
We are going to represent these quantities with input voltages into an adderintegrator circuit. Out of it will come the derivative or velocity. Ill continue to
use the variable x rather than v to avoid confusion with velocities. Of course
we will have to know what values to use for the parameters k, f, B and A.
Knowing the latter, its straightforward to generate a cosine voltage function,
but how to cope with x and its derivative? Dont worry; all will become clear!
So to begin with we use this the adder-integrator below, with the inputs
shown.
C1
R11
-Acos(2ft)
R12
x
R13
dx/dt
We will use the three resistors to set the coefficients of these terms. We will
work in seconds and chose the capacitor C1=1 F. Remember the weighting
(gain) of the adder/integrators terms goes as 1/ RC. Suppose k= s-2 and B =
3 s-1. Then if we choose R11 =1 M, R12 = 4 M and R13 = 1/3 M we have
R1jC1 values 1, 0.25 and 3 s respectively, the required coefficients.
61
OK, but what about x and dx/dt. These are quantities we are trying to find, so
of course we do not know them. But wait! The output is dx/dt, so why not feed
this back?
dx/dt
So that has sorted. What about x? Well, we can get that from dx/dt using
another integrator.
C2
R2
62
R4
R3
k
2
= 0.08Hz .
This is really too low for CC, though it is very plausible for a mechanical
system. The easiest way to get quickly to handier frequencies is to change
the two capacitors to 1 nF. This pushes the free resonant frequency up by
1000 to about 25 Hz. One can then explore, for example, the amplitude
versus frequency response.
63
As ever the inverting input is a virtual ground, so the current is vsig / R and
vo = - vd = - (1/) loge(vsig / isR ).
The simulation is at Logarithmic amplifier. The CC diode is modelled
approximately by an ideal diode with = 38.37 V-1 and is = 3.83.10-14 A in the
forward region. Thus with an input of 1000 mV and R = 10 k we expect an
output of -565 mV, at 100 mV 505 mV, at 10 mV 445 mV etc. The
magnitude of the output increases in steps of 60 mV = (1/) loge(10) for each
decade fall in input. The prediction of 60 mV per decade is robust, in the
sense that it will be about right for any diode whatever its saturation current.
This is what we see in the simulation, though from 10 to 1 mV input the step is
58 mV; the current is dropping into a region where the diode response is not
accurately exponential (less than 0.4 V). Nonetheless the output is linear in
log(input) to <2% from 10 V to 1 mV, 4 orders of magnitude.
It is not hard to improve on this, and the LF411 is a better performer than the
CC 741-alike which draws relatively high currents (80 nA). (A 1 mV input to a
10 k resistor gives a current of 100 nA.) In this way one can get linearity
over at least 7 decades. Quite often a transistor with a grounded base is
used in place of the diode, using the observation that Ic is accurately
exponential in Vbe.
64
The input to the log amplifier section is the output vo, so loge(vo). Thus
vin loge(vo) , or
vo exp(vin).
We have our exponential amplifier, though it is a rather simple version.
There is an alternative way of doing this. Remember the integrator and
differentiator circuits of 7.11 and 7.12? Integration and differentiation are
another pair of inverse functions. In this case we swapped the resistance and
capacitor around to switch between circuits. We can do the same thing here:
move the diode from the feedback loop to the input, as shown below.
This works in the usual way: vo = - id R since the inverting input is a virtual
ground. The diode current is given by
65
id = is exp(vd)
as before, and vd = vsig. Thus vo = -R is exp(vsig) as we wished.
The simulation is at Exponential Amplifier . Notice the rather high supply
voltage; one result of producing an output which is proportional to exp(input)
is that the former rapidly increases, and we can easily saturate the amplifier.
This one saturates with input > about 600 mV, even with the high supply.
As before, the CC diode is modelled approximately by an ideal diode with
=38.37 V-1 and is = 3.83.10-14 A in the forward region. Thus at 500 mV,
id =3.83.10-14xexp(38.37x0.5) = 8.22A, which through 10 k produces 82 mV.
Ive plotted out the actual CC output and you see that we have linearity on a
semi-log plot over about 5 decades of output, but not with inputs below about
350 mV. We are looking at the diode I V characteristic, with log[IR]
vertically. The input range in this simple version is therefore limited between
about 350 and 600 mV.
v1
log amp 1
v1
adder
v2
exp
amp
log amp 2
so at the adder we have log(v1) + log(v2) = log(v1v2)and the exp amp turns this
into the product v1v2.
If we wanted v1 / v2 we should put a unit gain inverting amplifier in the lower
path after the log amp, so the adder output is log(v1) - log(v2) = log(v1 / v2).
66
vref
Suppose for simplicity (we do not have that choice) that the two top fixed
resistors have resistance R. Below than is a variable resistor and the sensor,
shown as a thermistor. One way we could do the measurement is to adjust
the variable resistor until the voltage on the meter is zero. Then the values of
the variable resistance and the sensor are equal, since the mid point
potentials in both legs are the same.
This is fine, but what we would really like is a voltage output proportional to
the difference in value of the two lower resistors. Think about a simpler
circuit, with the variable resistor and the upper two all of value R, and the
thermistors resistance equal to R + R. It is that interests us, as it shows
the fractional change in temperature from that value where the thermistors
resistance was also R.
The voltage drop over the bottom left resistor is vref R / (R +R) = vref / 2, and
on the right is R / (R +R +R ) = vref /( 2+ ). So the voltage on the meter is
vo =vref (1/ 2 1/( 2+ ))
= vref /(2( 2+ ))
vref /4
if <<2. So we get a signal which is proportional to the fractional change in
temperature.
67
We might just pause to see how the voltage and temperature are related in
detail. Suppose the thermistor has resistance R at temperature T0 and that its
resistance increases at temperature T to R + ( T - T0). The temperature
coefficient is in ohms per degree and is the usual way of specifying the
behaviour of a thermistor. So R = ( T - T0), and if we measure we know
the temperature change.
Lets put in some numbers. Say R = 10 k (determined by the resistance of
the themistor at T0), and =1 /C. Then for a 1C rise the change of
resistance is 1 in 10 k, or =1x10-4. With a 10 V reference source the
output voltage is 10 x1x10-4 /4 = 250 V.
The sensitivity is 250 V /C. Here is the circuit with values
and where I have replaced the thermistor with a series pair 10 k plus a
variable 1 - 10 resistor. The latters value is R = ( T - T0) and 1 with
=1 /C corresponds to a rise of 1C. The simulation is at Wheatstone
Bridge.
Incidentally, the reason for not using CCs therrmistor is that it is rather nonlinear (i.e. is itself temperature dependent) which whilst more realistic is a
complication we can live without for now.
Can we do better with an op-amp difference amplifier? Happily we dont need
to do a lot of analysis, because we can make use of what we did in 7.9.,
where we looked at this circuit,
68
v1
v2
R1
R2
R* 1
vo
R* 2
Now suppose all the resistors have the same value, R say, apart from R*2 (it
doesnt matter which wee choose) which we put equal to R + R. Also we will
put the two input voltages the same, equal to vref.
vref
R
vo
R+R
69
1
R + R
v o = 2v ref
R + R + R 2
1+ 1
= 2v ref
2+ 2
2 + 2 2
= v ref
2 +
= v ref
2 +
v ref
2
the approximation holding as before if <<2. The output is bigger (better) by
a factor 2. With the component values used before, the sensitivity is
500 V /C. The simulation is at Bridge amplifier.
Youll notice I have added a very small trimming resistor (2.5 m) to the
sensor resistor. This gets rid of a few V of signal when the circuit should be
balanced, due to the rather high leakage current of CCs 741 op-amp. In
reality we always have to do a bit of trimming, with or without op-amps,
because resistors are never identical. The signal for a 1 imbalance is
500 V as calculated. We can easily add an amplifying stage if we need a
higher value.
70
vs
2 fC
1
R2 +
2 fC
vs
( 2 fRC )
+1
so we get all the input when 2fRC <<1. For higher frequencies the voltage
falls as 1/f, a factor 2 or 6 dB per octave. This is quite gentle.
For the high pass filter the voltage is, similarly
v s 2 fCR
( 2 fCR )
+1
and the output is vs when 2fRC >>1. We get a fall of 6dB/octave at low
frequencies.
We might try improving the low pass filter by cascading a pair of RC filter as
below, but we still end up with the same 6 dB/ octave.
R1
C1
R2
C2
You ca imagine that we might want to make a filter that passed a relatively
narrow range of frequencies, with a high pass at the bottom and a low pass at
the top. These very simple RC filters might do the trick, but for a narrow pass
band we might well want steeper sides. We need to boost the frequency
response with active components.
There are many designs, but one classic is the Sallen and Key filter, which
uses cascaded RC filters plus bootstrapping via an op-amp. This is the low
pass version.
71
C1
R2
R1
C2
We have the same circuit as above with an emitter follower of unit positive
gain in the dotted box. This keeps the voltage over C2 equal to the output and
holds off its fall at higher frequency; in the absence of bootstrapping this
voltage would otherwise fall as 1/f. Once this boost is lost as the frequency
rises the output falls rapidly.
The detailed analysis is a bit messy, but the result is a low pass filter with a
faster fall. To compare the filters, I have computed and drawn plots of
log(output) versus log(frequency) for a simple RC filter (with RC = 1), a
cascaded pair (with R1C1 = R2C2 = 1) and the Sallen and Key filter with
R2C1 = 1, R2C2 = 0.3, R1C2 = 3 and R1 C1 = 10. The latter values set the
start of the fall at about the same frequency as in the simpler circuits.
log( vo( w ) )
0
log( w )
72
log( V( w ) )
0
log( w )
The cascaded filter, with a weak bump and earlier initial fall but at high
frequencies the same roll off
2
log( yy( w ) )
4
2
0
log( w )
The Sallen and Key filter with a much faster roll off (note the cange in vertcal
scale)
The Sallen and Key example above shows a slope of 12 dB per octave, and
this is always the high frequency limit for this filter (the output falls as 1/f2
rather than the 1/f of the RC filter) but can be steeper at the start of the roll off.
The simulation is at Low pass filter.
We can make the equivalent high pass filter by swapping the Rs and Cs. The
output rises faster than 6 dB per octave with increasing frequency for the
same reasons as above.
73
The plot below shows the high pass Sallen and Key filter characteristics with
R1C1 = R1C2 = 0.1 and R2C2 = 1. The slope is again 12 dB per octave
(1/f2) but can be steeper. Notice also the little bump or resonance. This is
characteristic of the Sallen and Key and most active filters, high pass or low,
though they are not always seen as our earlier low pass filter example shows.
If we had changed C2 so that R1C2 = 1 rather than 3, this too would have
shown a resonance.
log( outz( w ) )
0
log( w )
In the days before active filters one would have used an inductance to get
resonance effects and steep roll offs, but they (coils) are not easily made
small and modern electronics avoids them, using op-amps instead.
The simulation is at High Pass filter.
74
Im going to end with a couple of related examples of the use of op-amps with
positive feedback. Up to now we have always used negative feedback by
connecting the output and the inverting connection. Inverting means that the
output is multiplied by 1.
Positive feedback is associated with oscillators, Ill discuss a simple oscillator
shortly, but first lets look at an even simpler circuit. Suppose we have a
changing voltage and we wish to know if it is higher or lower than a particular
reference voltage. We can do this with the next circuit.
The resistors form a divider to provide a reference voltage. Remember the opamp without negative feedback has very high gain, so when the non-inverting
input is even slightly more positive then the other, the amplifier will saturate
positively. If the differential input is negative the amplifier output will swing
into negative saturation. The output has two states, depending on whether
the signal is greater or less than the reference voltage. This is a basic
comparator.
Its worth reminding ourselves that the Golden Rules no longer apply; they
were for negative feedback only. These inputs will stay different.
Lets see this working at Comparator. We set the reference at 3.0 V with the
divider. For signals > 3.0 V we are in negative saturation, and vice versa at
7.0V. The battery plus variable voltage represent signal and the oscillator
provides some (monochromatic!) noise. The circuit work fine with zero noise
(oscillator at zero mV), certainly able to tell whether the input is +25 mV or
25 mV below the threshold. It is indecisive at the exact threshold, but worse it
shows jitter between high and low states when at the threshold with as little as
5 mV noise. Every time the signal falls above or below threshold, switching
occurs
This circuit is OK if the input is a very well defined though steadily changing
voltage. Switching will occur at the reference voltage. However, if the input
is noisy, the output may show jitter, switching on and off several times as the
signal passes through the reference voltage. Also, switching can be quite
75
slow. Both these defects can be sorted with positive feedback. One the
output goes from negative to positive (say), there is an additional (fed back)
voltage to keep it this way. It also speeds the switching process up. Such a
circuit is called a Schmidt trigger, at Schmidt Trigger. With up to about
200 mV peak to peak noise it is jitter free even at the 3 V threshold, but
otherwise behaves like the earlier circuit. It is very widely used.
This oscillator, the most basic kind, has things in common with the Schmidt
trigger. It, too has two states, with an op-amp in either positive or negative
saturation. The difference is that it oscillates between the two in a regular
way. The circuit is below. Being an oscillator, it doesnt have an input.
C
R1
R2
How does it work? Imagine there is some noise in the circuit, so there is a
differential input. The oscillator swings into saturation, and is held there by
positive feedback via R2 as in the similar Schmidt trigger. If - its random
the output is positive, the capacitor will begin to charge with a time constant
RC, increasing the potential of the inverting input. Eventually, when this
voltage gets to be R1/(R1+R2) of the saturation voltage, the polarity of the input
changes sign and the output swings to negative saturation, and the capacitor
begins to charge with opposite sign, or discharge if you like. It swings
between Vsat. It is a square wave generator.
The simulation is at Relaxation Oscillator. With 10k and 1 F, the measured
period is 22 ms. The wave is square, though a close look shows that it
switches from +8 V to 8V in 32 s. If we look back to the CC op-amp
specifications we see a maximum slew rate of 0.5 V/s, i.e. 16 V in 32 s.
The maximum swing (8 V) is 2 V less than the supply, again as the
specification suggests.
The amplitude and period are easily calculated. The CC op-amp saturates at
2 V below the supply (10 V here) so the amplitude = Vsat = 8 V. The capacitor
has to charge from -Vsat (since R1=R2 here) to +Vsat, but (if it did not get
interrupted by the switching of the op-amp) would rise to Vsat. We need to
know how long it takes to get from Vsat to -Vsat. This will be the same time
as taking a capacitor from 0 to Vsat with a charging voltage of 3/2Vsat (adding
76
Vsat to all three voltages does not affect the timing. So the time t for the
capacitor voltage to rise from 0 to Vsat is given by
Vsat = 3/2Vsat ( 1 exp(-t/RC), i.e.
2
/3 = (1 exp(-t /RC) or
77