12 - Operational Amplifiers
12 - Operational Amplifiers
12 - Operational Amplifiers
1 Introduction
Operational amplifiers (more commonly referred to simply as op amps)
were originally designed to perform the mathematical operations
of addition, subtraction, multiplication, division, sign changing,
differentiation and integration in analogue computers and analogue
simulators. Although still used to perform these mathematical functions
they are also widely used in a vast range of other applications.
Op amps are produced in integrated circuit (IC) packages, the circuit
chip being embedded in a plastic case. Connections to the internal
circuitry are made via dual-in-line (DIL) connection pins. The simplest
form is an 8-pin DIL package as illustrated in Fig. 1.
For obvious reasons the internal circuitry is not accessible, so if the
device fails it is simply replaced by a new one. Since these devices
are small and cheap, this replacement technique is both fast and
economically sound.
One of the earliest, and still very widely used, op amp ICs is the
741 op amp, which is produced in an 8-pin DIL package as described.
There are also 14 pin ICs which contain two 741 amplifiers. Since all
op amps behave in a similar manner this chapter will concentrate on
the characteristics and function of the 741 package. 81
82 Operational Amplifiers
Fig. 1
Vs
V1
V0
V2
Vs
Fig. 2
Operational Amplifiers 83
Fig. 2 the Vs connections are shown, but in circuit diagrams they are
omitted for the sake of clarity. When using an op amp therefore, don’t
forget to make these connections, otherwise the device will not work!
As with other amplifiers, the 0 V rail forms the common reference
point for both input and output signals.
The ideal characteristics for an op amp and typical actual values for a
741 op amp are listed in Table 1.
Table 1
At the moment do not concern yourself with the last three items listed
in the table. The explanation and significance of these will be dealt
with later under practical considerations. At this stage the first three
characteristics are the most important.
Open-loop gain All op amps have a very high open-loop gain. In this
respect the 741 is quite modest since some op amps have an open-
loop gain up to 30 106 times (150 dB). Due to this it requires a p.d.
between the two inputs of only a few microvolts to cause the amplifier
to saturate, i.e. V0 ⬇ Vs volt (the d.c. supply voltage). Now no
signal amplifier can produce an output voltage that exceeds its d.c.
supply voltage, so any significant voltage applied to the op amp in this
situation will cause the output voltage to be at its saturation value
(in practice this will be slightly lower than Vs). This effect is
illustrated in Fig. 3.
From Fig. 3 it may be seen that the amplifier output will be directly
proportional to the input over only the very small range of inputs
between points X and Y—note that this axis is marked in microvolt.
Any input outside this range will cause saturation and the output voltage
will be meaningless in relation to the actual value of the input. For
this reason, unless the device is to be used for switching purposes, an
op amp is always used as a negative feedback amplifier. This means that
a proportion (or even all) of the input is fed back in opposition to the
input. The effect of negative feedback is that the closed-loop gain (Av)
is greatly reduced and is stabilised, thus allowing a larger range of input
voltages to be applied. In addition, the use of negative feedback has
the benefits of modifying both input and output resistances, increasing
84 Operational Amplifiers
V0 (V)
Vs Saturation
X
(V2 V1) [µV]
O Y
Saturation Vs
Fig. 3
the available bandwidth and reducing noise and distortion in the output
signal. The reduction in closed-loop gain is easily compensated for by
using more than one stage of amplification if necessary.
Rf
2
R1
1
A
V1 B
V0
Fig. 4
Using the virtual earth concept we can say that the input voltage V1 is
applied across resistor R1. Due to the very high input resistance of the
amplifier (ideally infinite) negligible current will flow into it, so I1 I2.
Operational Amplifiers 85
V1 V0
I1 amp, and I 2 amp where the minus sign
R1 Rf indictess inversion
V0 V
but I1 I 2 , so 1
Rf R1
V0 Rf
and Av (1)
V1 R1
Worked Example 1
Q For the circuit of Fig. 4, the following combinations of resistors and input voltages are applied. For
each case calculate the resulting output.
(a) R1 100 k; R1 1 M; V1 0.5 V
(b) R1 100 k; Rf 100 k; V1 6.0 V
(c) R1 100 k; Rf 10 k; V1 12.0 V
(d) R1 10 k; Rf 1 M; V1 0.04 sin t volt
(e) R1 Rf 100 k; V1 2.5 V
A
Rf
In each case, V0 V1 volt
R1
106
(a) V0 0.5 5.0 V Ans
1 05
1 05
(b) V0 ( 6 ) 6.0 V Ans
1 05
10 4
(c) V0 12 1.2 V Ans
1 05
86 Operational Amplifiers
106
(d) V0 0.04 sin t 4 sin t volt Ans
10 4
1 05
(e) V0 2.5 2.5 V Ans
1 05
From this example it can be seen that this configuration performs the
functions of sign changing together with multiplication and division.
It is worth noting at this stage that the inverting mode is used for all
mathematical functions.
Summing f Rf
Junction
1 R1
R2
2
R3
V1 3
V2 V0
V3
Fig. 5
V0 V V V
so, 1 2 3
Rf R1 R2 R3
⎛ Rf Rf Rf ⎞
V0 ⎜⎜⎜ V1 V2 V3 ⎟⎟⎟ (2)
⎜⎝ R1 R2 R3 ⎟⎠
and if Rf R1 R2 R3 then
V0 (V1 V2 V3 ) (3)
Worked Example 2
Q For the summing amplifier of Fig. 5, the following combination of resistors and input voltages is
applied. In each case calculate the resulting output voltage.
(a) R1 R2 R3 Rf 100 k
V1 0.25 V; V2 3.0 V; V3 6.0 V
(b) R1 R2 100 k ; R3 Rf 1 M
V1 1.2 V; V2 0.35 V; V3 6.0 V
A
(a) Since all the resistors are of the same value then equation (3) will apply
V0 (V1 V2 V3 ) volt (1.5 (3.0 ) 6.0 )
(7.5 3.0 )
V0 4.5 V An
ns
⎛R ⎞
V0 ⎜⎜⎜ f V1 f V2 f V3 ⎟⎟⎟ volt
R R
⎜⎝ R1 R2 R3 ⎟⎠
⎛ 106 106 106 ⎞
⎜⎜ 5 1.2 5 0.35 6 ( 6.0 )⎟⎟⎟
⎜⎝ 10 10 10 ⎟⎠
(12 3.5 6 )
V0 9.5 V Ans
From the last example it may be seen that as well as summation, the
circuit can also multiply or divide each input by a specified amount.
V1
V0
Rf
R1
Fig. 6
88 Operational Amplifiers
Since zero current is assumed to flow into the op amp itself, and
internally the two input terminals are connected by the internal
resistance of the device, then no p.d. will be developed across this
resistance and so the input voltage V1 will be effectively developed
across R1.
Resistors Rf and R1 form a potential divider between the output
terminal and the 0 V rail, so the p.d. developed across R1 will be the
appropriate proportion of V0, thus
R1
p.d. across R1 V0 V1
R f R1
V0 R1 R f
Av
V1 R1
Rf
Av 1 (4)
R1
Worked Example 3
Q The circuit of Fig. 6 has the following combination of inputs and resistors applied. In each case
calculate the resulting output voltage.
(a) Rf 1 M; R1 100 k; V1 0.6 V
(b) Rf 100 k; R1 1 M; V1 1.5 V
(c) Rf 100 k; R1 1 M; V1 5 sin t volt
A
In each case, from equation (4)
⎛ R ⎞
V0 V1 ⎜⎜⎜1 f ⎟⎟⎟
⎜⎝ R1 ⎟⎠
⎛ 106 ⎞⎟
(a) V0 0.6 ⎜⎜1 ⎟ 0.6 11
⎜⎝ 105 ⎟⎟⎠
V0 6.6 V Ans
⎛ 105 ⎞⎟
(b) V0 1.5 ⎜⎜1 ⎟ 1.5 1.1
⎜⎝ 106 ⎟⎟⎠
V0 1.65 V Ans
⎛ 105 ⎞⎟
(c) V0 5 sin t ⎜⎜1 ⎟ 5 sin t 1.1
⎜⎝ 106 ⎟⎟⎠
V0 5.5 sin t volt Ans
Operational Amplifiers 89
R1
1
A
B
V1 R1
V0
V2 R2
Fig. 7
R2
The potential at point B, VB V2 VA ……………[1]
R1 R2
V1 VA V V0
Also, I1 I2 where, I1 and I 2 A
R1 R2
V1 VA V V0
so, A
R1 R2
V1 VA VA V0
or, 0
R1 R2
V1 V V V
0 A A 0
R1 R2 R1 R2
V1 V ⎛1 1 ⎞⎟
0 VA ⎜⎜⎜ ⎟⎟ 0
R1 R2 ⎜⎝ R1 R2 ⎟⎠
V1 V ⎛ R R ⎞⎟
0 VA ⎜⎜⎜ 1 2⎟
0
R1 R2 ⎜⎝ R1 R2 ⎟⎟⎠
V0 V V V V1
hence, 2 1 2
R2 R1 R1 R1
R2
and V0 (V2 V1 ) volt (5)
R1
Worked Example 4
Q For the circuit of Fig. 7 the following combination of input voltages and resistors is applied. For each
case calculate the resulting output voltage.
(a) R1 R2 100 k; V1 6.4 V; V2 10.5 V
(b) R1 R2 1 M; V1 2.6 V; V2 4 V
(c) R1 100 k; R2 1 M; V1 4.9 V; V2 3.8 V
A
(a) Since R1 R2, then using equation (6)
V0 ((4 ) 2.6 )
V0 6.2 V Ans
(c) Since R1 R2 then equation (5) applies
R2
V0 (V2 V1 ) volt
R1
106
(3.8 4.9 ) 10 (1. 1)
1 05
V0 11 V Ans
Note that if the supply voltage VS 10 V, then the last circuit with those
values would give an invalid result since the amplifier would saturate at an
output voltage just less than 10 V.
7 The Integrator
The circuit arrangement for an op amp integrator is shown in Fig. 8,
where the feedback resistor is replaced by a capacitor.
V1
The value of I1 at any instant, i1 amp....................... [1]
R
Operational Amplifiers 91
i1 C
i1 R
V1
V0
Fig. 8
O
t (s)
Saturation
Vs
V0 (V)
Fig. 9
92 Operational Amplifiers
of output) depends upon the time constant. Apart from the purely
mathematical function of integration, this production of a linear ramp
voltage is a very useful function that is utilised in a number of practical
applications, as was mentioned in the book Further Electrical and
Electronics Principles, Chapter 8. The principal advantage of using
an op amp as an integrator is that the severe attenuation required for
‘good’ integration produced by a simple CR network can be overcome
by the closed-loop gain of the amplifier. This is achieved by having
CR 1 second, e.g. C 1 µF and R 1 M.
Worked Example 5
Q The integrator circuit of Fig. 8 has R 100 k; C 4 µF; and Vs 10 V. If the input voltage is
maintained at 0.5 V then
(a) sketch (to scale) the resulting output voltage, and
(b) calculate the time taken for the output voltage to reach 6 V.
A
1
CR ∫
(a) V0 V1 dt volt
1
0.5t 2.5 0.5t
4 106 105
V0 1.25t
V0
and the slope of the ramp t
1.25 V/s, and will be a straight line.
The sketch graph is shown in Fig. 10.
2 4 6 8 10
0 t (s)
2
6
8
10
V0
Fig. 10
Operational Amplifiers 93
Worked Example 6
Q An integrator circuit is shown in Fig. 11. For this circuit determine the output voltage when V1 25
sin (314t) volt.
C 10 µF
R
100 kΩ
V1
V0
Fig. 11
A
6
CR ∫
V0 Vi dt volt
1
105 105 ∫ 25 sin (314t )dt
1
( 25 cos 314t )
314
V0 79.6 cos (314t ) mV Ans
8 The Differentiator
For this application the resistor and capacitor of the previous circuit are
transposed as shown in Fig. 12.
i1 R
i1 C
V1
V0
Fig. 12
dq dv V
i1 C 1 and i2 0
dt dt R
V0 dv1
so, C
R dt
dv
V0 CR 1
dt
dV1
or, V0 CR volt (8)
dt
94 Operational Amplifiers
d
V0 CR (Vm sin t )
dt
CR Vm cos t
V0 CRVm cos t or CRVm sin (t / 2) volt
Worked Example 7
Q The differentiator circuit of Fig. 12 uses C 1 µF and R 1 M. In addition to the required input
voltage, a noise signal due to mains ‘hum’ also appears at the input. If the input noise signal vn 5 sin
314t mV, determine the resulting noise signal at the output.
A
CR 106 106 1 s
d
output noise, Von CR (5 sin 314t ) mV
dt
5 314 cos 314t mV
Von 1.57 cos 314t V Ans
Now, this level of noise at the output could have a serious effect on the desired
output signal. Notice that the integrator circuit would in fact reduce the noise
by the factor of 314.
V1
V0 V1
Fig. 13
Operational Amplifiers 95
the input. If the input voltage varies then the output will follow exactly
the same variations, so this arrangement is also known as a voltage
follower. Due to the feedback employed the input impedance of this
amplifier is extremely high and its output impedance is very low. Its
main usage is therefore as a buffer between a high impedance source
and a low impedance load. These features are shared by the BJT and
FET equivalents, namely the emitter follower and source follower
respectively.
10 Voltage Comparator
As the name suggests this device compares the relative values of the
two voltages applied to its inputs. In this mode the op amp utilises both
inputs, and as there is no feedback from output to input it operates in
its open-loop mode. As was seen in section 2, when in open-loop mode
the gain is extremely large and the output will be at its saturation level
of either Vs or Vs volt, depending upon which input is the greater.
Consider a simple example where a warning light is required to
illuminate when the temperature of a device rises to some critical
value. A possible solution is shown in Fig. 14.
Vs
t°C
RT
VA
R2 Vref
Warning
V0
lamp
Vs
0V
Fig. 14
the amplifier will switch from VS to VS volt. The diode will now
be forward biased and the lamp will light.
12 D/A Converter
This device utilises the summing op amp as its main component, with
the values of its input resistors being binary weighted, i.e. they increase
in powers of 2. A typical example is illustrated in Fig. 15, where a 4-bit
digital input (a binary number) is converted into an analogue output
(a denary number). For simplicity the switches are shown as mechanical
5 V
V1 (lsb)
(80 k) Rf (8 k)
8R
S1 1 MΩ
V2
4-bit (40 k) 500 kΩ
4R
binary
input S2
V3
(20 k)
2R
S3
V4 V′
V0
(10 k)
(msb) R
S4
0V
Fig. 15
Operational Amplifiers 97
Now, V
forms the input to an inverting amplifier with a closed-loop
gain of 2, so
V0 (2) ( 4.5) 9 V
It is left to the reader to verify that for any combination of inputs from
0000 to 1111 will result in output voltages from 0 V to 15 V.
13 A/D Converter
This circuit utilises two op amps: one as a voltage comparator and the
other as a D/A converter. Also shown in a logic AND gate, a clock
generator and a binary counter. A brief description of these additional
elements is given, and the complete block diagram of the arrangement
is shown in Fig. l6.
Clock generator This provides a continuous train of rectangular pulses
at a carefully controlled frequency.
AND gate This gate provides a logic 1 (HIGH) output only when both
of its inputs are also in the HIGH state. If either one or both of its
inputs is LOW, then the output will be LOW.
clock
generator
V1
binary 4-bit
analogue AND binary
input counter
output
V2
D/A
converter
Fig. 16
98 Operational Amplifiers
V1
analogue
signals
0 t
Vs
comparator
output 0 t
Vs
‘1’
AND
gate
output
‘0’ t
‘1’
clock
generator
output
‘0’ t
0000
0001
0010
0011
0100
0101
0110
binary
output
Fig. 17
Operational Amplifiers 99
14 Practical Considerations
In the foregoing descriptions of the various op amp configurations it
has been assumed that the amplifier was ideal. However, when using
these devices in practice there are a number of non-ideal parameters
that need to be considered. Where typical values are quoted in the
following descriptions they refer to the 741 op amp.
Input bias current This is the average of the currents flowing into
the input terminals, the typical value being 80 nA.These (very small)
currents will cause corresponding p.d.s across any resistors connected
to the input terminals.
Input offset current This is the difference between the two input
currents when the output voltage is zero, and will typically be 20 nA.
Thus, not only is the practical amplifier non-ideal from the standpoint
that it requires input currents, but it is also non-ideal in that these
currents are unequal, i.e. the two halves of the amplifier internal
circuitry are not exactly symmetrical.
Input offset voltage Ideally, when both inputs are zero (or equal) the
output will be zero. In practice this is not always the case, again due to
asymmetry within the internal circuitry. This effect is nulled by the use
of an external potentiometer. The two ends of this potentiometer are
connected to terminals on the IC package marked ‘offset null’ (pins 1 and
5), and the wiper is connected to the Vs supply (pin 4). With both input
terminals grounded the potentiometer is adjusted until the output is zero.
Slew rate This is a measure of the maximum rate of change of output
voltage that can be attained, a typical value being 0.5 V/µs. The result
is that the output waveform cannot have vertical leading and trailing
edges. The effect is illustrated in Fig. 18, where the ideal output is a
10 V pk-pk, 2 kHz rectangular waveform.
V0
10 V
ideal
actual
0 t (µs)
10 V
40 250
Fig. 18
100 Operational Amplifiers
From this figure it may be appreciated that the higher the frequency
of the signal the more significant will be the distortion of the output
waveform.
Bandwidth From 0 Hz (d.c.) to 10 Hz the open-loop gain remains
constant. At frequencies above this the capacitive effects within the
amplifier cause the gain to fall off at a constant rate of 20 dB/decade
(6 dB/octave), until unity gain occurs at a frequency of 1 MHz.This is
known as the transition frequency, fT, and the graph is shown in Fig. 19.
106
105
104
Av
103
102
fT
10
1
10 102 103 104 105 106
f (Hz)
Fig. 19
fT 106 100 B
so, B 10 kHz
Summary of Equations
Rf
Inverting amplifier: V0 V1 volt
R1
⎛ Rf Rf Rf ⎞
Summing amplifier: V0 ⎜⎜⎜ V1 V2 ... Vn ⎟⎟⎟ volt
⎜⎝ R1 R2 Rn ⎟⎠
and if R f R1 R 2 ... Rn , then
V0 (V1 V2 ... Vn ) volt
⎛ R f ⎞⎟
Non-inverting amplifier: V0 ⎜⎜⎜1 ⎟⎟ volt
⎜⎝ R 1 ⎟⎠
R2
Differential amplifier: V0 (V2 V1 ) volt
R1
and if R1 R2 , then
V0 (V2 V1 ) volt
1
Integrator: V0
CR
∫ V1 dt volt
dV1
Differentiator: V0 CR volt
dt
I B1 I B 2
Input bias current: IB nanoampere
2
Input offset current: IOB I B1 I B 2 nanoampere
Assignment Questions
1 For the circuit of Fig. 20 the d.c. supply voltage 4 Design and sketch an op amp circuit that will
is 10 V. Determine the output voltage when provide an output of 5 V when an input of
the input voltage is (a) 1.5 mV, (b) 30 mV, and 0.25 V is applied to its input.
(c) 200 mV.
5 Design an amplifier circuit that will produce
1 MΩ an output that represents the equation
10 kΩ
V0 2.5 a 0.5b 10c volt, where a, b, and c
are voltages.
6 For the circuit shown in Fig. 23, the output
voltage is 5.25 V and input V1 6.8 V.
V1 Determine the value of V2.
V0
470 kΩ
Fig. 20
15 kΩ
2 To what value must V1 be set in order to
produce an output of 3.5 V for the circuit
of Fig. 21? 15 kΩ
V1
V0
V2
470 kΩ
V1
V0
1 MΩ Fig. 23
47 kΩ
Assignment 1
To investigate the operation of an inverting op amp.
Apparatus:
1 741 op amp
1 dual d.c. power supply
2 voltmeter
1 10 k potentiometer
Method:
VS 1 MΩ
RV1 100 kΩ
10 k
V1
VS V0
0V
Fig. 24
Assignment 2
To investigate the operation of a non-inverting op amp.
Apparatus:
1 741 op amp
1 dual d.c. power supply
2 voltmeter
1 10 k potentiometer
Method:
1 Connect the circuit shown in Fig. 25.
2 By means of RV1, vary the input voltage, in 0.2 V steps, from 0.8 V to 0.8 V
and tabulate the corresponding values for the output voltage.
3 From your results determine the amplifier gain.
104 Operational Amplifiers
100 kΩ
VS
RV1
10 kΩ
V1 10 kΩ V0
VS
10 kΩ
0V
Fig. 25
Assignment 3
To investigate the operation of a differential amplifier.
Apparatus:
1 741 op amp
1 dual d.c. power supply
3 voltmeter
2 10 k potentiometer
4 matched 10 k, resistors
Method:
VS 10 kΩ
10 kΩ
RV1
10 k
10 kΩ
RV2
10 k
V1 V0
V2 10 kΩ
VS
0V
Fig. 26
1 Connect the circuit of Fig. 26.
2 By means of RV1 and RV2, apply a variety of inputs to the amplifier and
record the corresponding outputs.
3 Determine whether your results verify that V0 (V2 V1) volt.
Assignment 4
To plot the frequency response curve for a 741 op amp.
Apparatus:
1 741 op amp
1 variable frequency signal generator
1 double-beam oscilloscope
1 100 k resistor
1 10 k resistor
Method:
1 Connect the circuit shown in Fig. 27, and monitor the input and output
terminals with the oscilloscope.
Operational Amplifiers 105
1 MΩ
R1 1 MΩ
Signal
generator V1
V0
Fig. 27
Assignment 5
To investigate the operation of a D/A converter.
Apparatus:
1 741 op amp
1 voltmeter
1 5 V d.c. supply
resistors to make up values of 20 k, 40 k, 80 k, and 160 k
Method:
1 Connect the circuit of Fig. 28.
2 Connect all four digital inputs to 0 V and using the null offset control adjust
the output to zero.
(msb) 20 kΩ 10 kΩ
A
40 kΩ
B
digital
data
80 kΩ
C V0
160 kΩ
D
(lsb)
0V
Fig. 28
106 Operational Amplifiers
Table 2
A B C D
1 0 1 0 10 3.125
1 0 0 0 8 2.500
0 1 0 1 5 1.563
0 1 0 0 4 1.250
0 0 1 0 2 0.625
4 Compare the measured output values with the ideal values in Table 2, and
comment on any discrepancies found.
Operational Amplifiers 107