Opamp Notes
Opamp Notes
The operational amplifier, or op amp as it is commonly called, is a fundamental active element of analog
circuit design. It is most commonly used in amplifier and analog signal processing circuits in the frequency
band from 0 to 100 kHz. High-frequency op amps are used in applications that require a bandwidth into the
MHz range. The first op amps were vacuum-tube circuits which were developed for use in analog computers.
Modern op amps are fabricated as integrated circuits that bare little resemblance to the early circuits. This
chapter covers some of the basic applications of the op amp. It is treated as an ideal circuit element without
regard to its internal circuitry. Some of the limitations imposed by non-ideal characteristics are covered in
the following chapter.
The notation used here is as follows: Total quantities are indicated by lower-case letters with upper-
case subscripts, e.g. vI , iO , rIN . Small-signal quantities are indicated by lower-case letters with lower-case
subscripts, e.g. vi , io , rout . Transfer function variables and phasors are indicated by upper case letters and
lower-case subscripts, e.g. Vi , Io , Zin .
The terminal characteristics of the ideal op amp satisfy four conditions. These are as follows:
i
ii IDEAL OP AMP CIRCUITS
The first condition implies that the resistance seen looking into both input terminals is infinite. The
second implies that the voltage gain is independent of the output current. This is equivalent to the condition
that the output resistance is zero. The third implies that the bandwidth is infinite. The fourth implies that
the difference voltage between the two input terminals must approach zero if the output voltage is finite.
For it to act as an amplifier, the op amp must have feedback applied from its output to its inverting
input. That is, part of the output voltage must be sampled by a network and fed back into the inverting
input. This makes it possible to design an amplifier so that its gain is controlled by the feedback network.
To illustrate how feedback affects the op amp, consider the circuits shown in Fig. 1.2. The networks
labeled N1 and NF , respectively, are the input and feedback networks. The op amp of Fig. 1.2(a) has
positive feedback whereas the op amp of Fig. 1.2(b) has negative feedback. Let a unit step of voltage be
applied to the input of each circuit at t = 0. The arrows in the figures indicate the directions in which the
input voltages change, i.e. each input voltage increases. For the circuit of Fig. 1.2(a), the voltage increase
at vi is fed through the N1 network to cause the voltage to increase at the v+ terminal. This is amplified by
a positive gain (+A) and causes the output voltage to increase. This is fed back through the NF network to
further increase the voltage at the v+ terminal. (The arrow for the feedback voltage is enclosed in parentheses
to distinguish it from the arrow for the initial increase in voltage.) This causes the output voltage to increase
further, causing v+ to increase further, etc. It follows that the circuit is not stable with positive feedback.
Figure 1.2: (a) Op amp with positive feedback. (b) Op amp with negative feedback.
For the circuit of Fig. 1.2(b), the voltage increase at the input is fed through the N1 network to cause
the voltage to increase at the v− terminal. This is amplified by a negative gain (−A) and causes the output
voltage to decrease. This is fed back through the NF network to cause the voltage at the v− input to
decrease, thus tending to cancel the initial increase caused by the input voltage. Because the v− voltage is
decreased by the feedback, it follows that vO is decreased also. Thus the circuit is stable.
When negative feedback is used in an op amp circuit, the feedback tends to force the voltage at the v−
input to be equal to the voltage at the v+ input. It is said that a virtual short circuit exists between the
two inputs. A virtual short circuit between two nodes means that the voltage difference between the nodes
is zero but there is no branch for a current to flow between the nodes. There is no virtual short circuit
between the v− and v+ inputs to an op amp which has positive feedback. If it has both negative and positive
feedback, the virtual short circuit exists if the negative feedback is greater than the positive feedback.
We have used the concept of signal tracing in the circuits of Fig. 1.2 to illustrate the effects of feedback.
Signal tracing is a simple concept which can be applied to any circuit to check for positive and negative
feedback. Circuits which have positive feedback are unstable in general and are not used for amplifier circuits.
With few exceptions, the circuits covered in this chapter have only negative feedback.
1.2. INVERTING AMPLIFIERS iii
For the circuit of Fig. 1.3(a), the voltage at the inverting input is given by v− = −vO /A. For vO finite
and A → ∞, it follows that v− → 0. Even though the v− input is not grounded, it is said to be a virtual
ground because the voltage is zero, i.e. at ground potential. Because i− = 0, the sum of the currents into
the v− node through resistors R1 and RF must be zero, i.e. i1 + iF = 0, where i1 = vI /R1 and iF = vO /RF .
Thus we can write
vI vO
i1 + iF = 0 =⇒ + =0 (1.2)
R1 RF
This relation can be solved for the voltage gain to obtain
vO RF
=− (1.3)
vI R1
The input resistance is calculated from the relation rin = vI /i1 . Because v− = 0, it follows that
rin = R1 (1.4)
The output resistance is equal to the output resistance of the op amp so that
rout = 0 (1.5)
The controlled source model of the inverting amplifier is shown in Fig. 1.3(b).
Example 1 Design an inverting amplifier with an input resistance of 2 kΩ, an output resistance of 100 Ω,
and an open-circuit voltage gain of −30 (an inverting decibel gain of 29.5 dB).
Solution. The circuit diagram for the amplifier is given in Fig. 1.4(a). For an input resistance of 2 kΩ,
Eq. (1.4) gives R1 = 2 kΩ. For a voltage gain of −30, it follows from Eq. (1.3) that RF = 60 kΩ. For an
output resistance of 100 Ω, the resistor RO = 100 Ω must be used in series with the output as shown in the
figure.
Example 2 Calculate the voltage gain of the circuit of Fig. 1.4(a) if a 1 kΩ load resistor is connected from
the output to ground. The circuit with the load resistor is shown in Fig. 1.4(b).
iv IDEAL OP AMP CIRCUITS
Figure 1.4: (a) Circuit for Example 1. (b) Circuit for Example 2. (c) Circuit for Example 3.
Solution. The voltage gain decreases when RL is added because of the voltage drop across RO . By
voltage division, the gain decreases by the factor
RL 1000 10
= =
RO + RL 1000 + 100 11
It follows that the loaded voltage gain is (10/11) × (−30) = −27.3 (an inverting decibel gain of 28.7 dB).
Example 3 For the inverting amplifier circuit of Fig. 1.4(b), investigate the effect of connecting the feedback
resistor RF to the load resistor RL rather than to the op amp output terminal. The modified circuit is shown
in Fig. 1.4(c).
Solution. Because i1 + iF = 0, it follows that vI /R1 + vO /RF = 0. This gives the voltage gain vO /vI =
−RF /R1 . Because this is independent of RL , it follows that the output resistance of the circuit is zero. Thus
the circuit looks like the original circuit of Fig. 1.4(b) with RO = 0. With RO = 0, the op amp must put
out a larger voltage in order to maintain a load voltage that is independent of RO . Let vO be the voltage at
the op amp output terminal in Fig. 1.4(c). By voltage division, the output voltage is given by
vO RL RF
=
vO RL RF + RO
It follows that vO is larger than vO by the factor 1 + RO / (RL RF ). Because this is greater than unity, RO
causes the op amp to “work harder” to put out a larger output voltage. We conclude that a resistor should
not be connected in series between the op amp output terminal and the connection for the feedback resistor.
Figure 1.5: (a) Inverting amplifier with a T feedback network. (b) Equivalent circuit for calculating vO .
The solution for the voltage gain is simplified by making a Thévenin equivalent circuit at the v− terminal
looking to the right through R2 . The circuit is given in Fig. 1.5(b). Because i1 + iF = 0, it follows that
vI vO R3 1
+ × =0 (1.6)
R1 R3 + R4 R2 + R3 R4
Example 4 For the inverting amplifier with a T feedback network in Fig. 1.5(a), specify the resistor values
which give an input resistance of 10 kΩ and a gain of −100. The maximum resistor value in the circuit is
limited to 100 kΩ.
Solution. To meet the input resistance specification, we have R1 = 10 kΩ. Let R2 = R4 = 100 kΩ. It
follows from Eq. (1.7) that R3 is given by
R2 R4
R3 =
(−vO /vI ) R1 − (R2 + R4 )
Figure 1.6(b) shows the current-to-voltage converter with a current source connected to its input. Because
RS connects from a virtual ground to ground, the current through RS is zero. It follows that i1 = iS and
vO = −RF iS . Thus the output voltage is independent of RS .
vi IDEAL OP AMP CIRCUITS
Figure 1.6: (a) Current-to-voltage converter. (b) Curcuit with an input current source.
For the circuit of Fig. 1.7(a), the voltage difference between the two op amp input terminals is given by
v+ − v− = vO /A. For vO finite and A → ∞, it follows that v+ → v− . It is said that a virtual short circuit
exists between the two inputs because there is no voltage difference between the two terminals. For i− = 0,
the condition that v+ = v− requires vI and vO to satisfy the equation
R1
v+ = v− =⇒ vI = vO (1.9)
RF + R1
where voltage division has been used for v− . This can be solved for the voltage gain to obtain
vO RF
=1+ (1.10)
vI R1
The input and output resistances are given by
rin = ∞ (1.11)
1.3. NON-INVERTING AMPLIFIERS vii
rout = 0 (1.12)
The controlled source model for the non-inverting amplifier is shown in Fig. 1.7(b).
Example 5 Design a non-inverting amplifier which has an input resistance of 10 kΩ, an open-circuit voltage
gain of 20 (a decibel voltage gain of 26 dB), and an output resistance of 600 Ω. The feedback network is
specified to draw no more than 0.1 mA from the output of the op amp when the open-circuit output voltage
is in the range −10 V ≤ vO ≤ 10 V.
Solution. The circuit diagram for the amplifier is shown in Fig. 1.8. To meet the input resistance
specification, we have Ri = 10 kΩ. For the specified current in the feedback network, we must have 0.1 mA ≤
10/ (RF + R1 ). If the equality is used, we obtain RF + R1 = 100 kΩ. For the specified open-circuit voltage
gain, Eq. (1.10) gives 1 + RF /R1 = 20 or RF = 19R1 . It follows that R1 = 5 kΩ and RF = 95 kΩ. To meet
the output resistance specification, we must have RO = 600 Ω.
Example 6 Examine the effect of a connecting a resistor between the v+ node and the v− node in the
non-inverting amplifier of the circuit for Example 5.
Solution. For an ideal op amp, the voltage difference between the v+ and v− terminals is zero. It follows
that a resistor connected between these nodes has no current flowing through it. Therefore, the resistor has
no apparent effect on the circuit. This conclusion applies also for the inverting amplifier circuit of Fig. 1.3.
With physical op amps, however, a resistor connected between the v+ and the v− terminals can affect the
performance of the circuit by reducing the effective open-loop gain A.
Example 7 Figure 1.9(b) shows a source connected to a load with a voltage follower. It is given that
RS = 10 kΩ and RL = 100 Ω. (a) Calculate vO . (b) Calculate vO if the voltage follower is removed and the
source connected to the load.
Solution. (a) With the voltage follower, there is no current through RS so that the voltage at the op
amp input is vS . It follows that vO = vS . (b) If the voltage follower is removed and the source is connected
directly to the load, vO is given by vO = vS RL / (RS + RL ) = vS /101. This is a decrease in output of
20 log 101 = 40.1 dB. This example illustrates how a unity gain amplifier can increase the gain of a circuit.
viii IDEAL OP AMP CIRCUITS
Figure 1.10: (a) Non-inverting amplifier with voltage and current feedback. (b) Thévenin equivalent circuit
seen by the load.
With RL = ∞, the open-circuit load voltage is given by vO(oc) = i1 (RF + R1 ). Because there is a virtual
short circuit between the v+ and the v− terminals, it follows that i1 = vI / (R1 + R2 ). It follows that vO(oc)
can be written
R1 + RF
vO(oc) = vI (1.13)
R1 + R2
With RL = 0, there can be no current through RF or R1 so that vI = v− = iO(sc) R2 . Thus iO(sc) is given
by
vI
iO(sc) = (1.14)
R2
The output resistance of the circuit is given by
vO(oc) R1 + RF
rout = = R2 (1.15)
iO(sc) R1 + R2
By voltage division, it follows from Fig. 1.10(b) and Eq. (1.13) that the output voltage can be written
RL R1 + RF RL
vO = vO(oc) × = vI × (1.16)
rout + RL R1 + R2 rout + RL
1.4. SUMMING AMPLIFIERS ix
Figure 1.11: Negative impedance converters. (a) Negative input resistance. (b) Negative input capacitance.
A resistor in parallel with another resistor equal to its negative is an open circuit. It follows that the
output resistance of a non-ideal current source. i.e. one having a non-infinite output resistance, can be made
infinite by adding a negative resistance in parallel with the current source. Negative resistors do not absorb
power from a circuit. Instead, they supply power. For example, if a capacitor with an initial voltage on it is
connected in parallel with a negative resistor, the voltage on the capacitor will increase with time. Relaxation
oscillators are waveform generator circuits which use a negative resistance in parallel with a capacitor to
generate ac waveforms.
The resistor is replaced with a capacitor in Fig. 1.11(b). In this case, the input impedance is
R1 1 R1
Zin = − = jω 2 = jωLeq (1.21)
RF jωC ω RF C
It follows that the input impedance is that of a frequency dependent inductor given by
R1
Leq = 2
(1.22)
ω RF C
inputs are grounded except the vIj input, where j = 1, 2, 3, or 4, Eq. (1.3) for the inverting amplifier can
be used to write vO = − (RF /Rj ) vIj . It follows by superposition that the total output voltage is given by
RF RF RF RF
vO = − vI1 − vI2 − vI3 − vI4 (1.23)
R1 R2 R3 R4
The input resistance to the jth input is Rj . The output resistance of the circuit is zero.
Figure 1.12: (a) Four input inverting summer. (b) Circuit for Example8.
vO = 3 − 2vI
Solution. The output contains a dc term of +3 V. This can be realized by using the −15 V supply as one
input. The circuit is shown in Fig. 1.12(b). For the specified output, we can write (−15)×(−RF /R1 ) = 3 and
−RF /R2 = −2. If RF is chosen to be 3 kΩ, it follows that R1 = 15 kΩ and R2 = 1.5 kΩ.
The output resistance of the circuit is zero. If the vI2 through vI4 inputs are grounded, the input resistance
to the vI1 node is given by
rin1 = R1 + R2 R3 R4 R5 (1.25)
Figure 1.13: (a) Four input non-inverting summer. (b) Equivalent circuit for calculating vO .
Example 9 Design a two-input non-inverting summer which has an output voltage given by
vO = 8 (vI1 + vI2 )
With either input grounded, the input resistance to the other input terminal is specified to be 10 kΩ. In
addition, the current which flows in the grounded input lead is to be 1/10 the current that flows in the
ungrounded lead.
Solution. The circuit is shown in Fig. 1.14. By symmetry, it follows that R2 = R1 . For the input
resistance specification, we must have R1 + R1 R3 = 10 kΩ. If vI2 is grounded, i2 is given by current division
i2 = −i1 R3 / (R3 + R1 ). For i2 = −i1 /10, we have R3 / (R3 + R1 ) = 1/10. It follows from these two equations
that R3 = 10/9.9 kΩ = 1.01 kΩ and R1 = R2 = 9R3 = (10/1.1) kΩ = 9.09 kΩ.
If vI1 = vI2 = vI , it follows that vO /vI = 16. Thus we can write the design equation
v+ vO R3 RF
16 = × = 1+
vI v+ R3 + R1 /2 R4
It follows from this equation that 1+RF /R4 = 88. This can be achieved with R4 = 270 Ω and RF = 23.5 kΩ.
xii IDEAL OP AMP CIRCUITS
Figure 1.15: (a) Diff amp circuit. (b) Equivalent circuit for the special case of a true diff amp.
The output resistance of the diff amp is zero. The input resistance to the vI1 node is given by
rin1 = R1 + R2 (1.27)
The current i2 which flows in the vI2 input lead is a function of the voltage at the vI1 input. It is given by
vI2 − v− 1 R2
i2 = = vI2 − vI1 (1.28)
R3 R3 R1 + R2
where v− = v+ has been used. The input resistance to the vI2 input is given by rin2 = vI2 /i2 . It can
be seen that rin2 is a function of vI1 . For example, vI1 = 0 gives rin2 = R3 , vI1 = −vI2 gives rin2 =
R3 (R1 + R2 ) / (R1 + 2R2 ), vI1 = +vI2 gives rin2 = R3 (1 + R2 /R1 ), etc.
Example 10 For the diff amp circuit of Fig. 1.15(a), it is given that R1 = R3 = 10 kΩ and R2 = RF =
20 kΩ. Solve for the output voltage, the input resistance to the vI1 terminal, and the input resistance to the
vI2 terminal for the three cases: vI1 = 0, vI1 = −vI2 , and vI1 = +vI2 .
Solution. Because RF /R3 = R2 /R1 , the output voltage is given by Eq. (1.30). It follows that vO =
2 (vI1 − vI2 ). The input resistance to the vI1 node is 30 kΩ. As described above, the input resistance to the
vI2 terminal is a function of vI1 . For vI1 = 0, it is 10 kΩ. For vI1 = −vI2 , it is 6 kΩ. For vI1 = +vI2 , it is
40 kΩ.
Figure 1.16: Diff amp with differential and common-mode input sources.
It is often convenient to analyze diff amp circuits by expressing the input voltages as common-mode and
differential components. The voltages vCM and vD can be expressed in terms of vI1 and vI2 as follows:
vI1 + vI2
vCM = (1.34)
2
These two equations can be used to resolve any two arbitrary input voltages into differential and common-
mode components. For example, vI2 = 0 gives vD = vI1 and vCM = vI1 /2, vI2 = −vI1 gives vD = 2vI1 and
vCM = 0, vI2 = vI1 gives vD = 0 and vCM = vI1 , etc.
By Eq. (1.26), the output voltage of the diff amp in Fig. 1.16 can be written
vD R2 RF vD RF
vO = vCM + 1+ − vCM − ]
2 R1 + R2 R3 2 R3
R2 RF R1 vD RF R2 (R3 + RF )
= vCM 1− + 1+ (1.35)
R1 + R2 R2 R3 2 R3 RF (R1 + R2 )
xiv IDEAL OP AMP CIRCUITS
This equation can be used to define the differential and common-mode voltage gains, respectively, as follows:
vO RF R2 (R3 + RF )
Ad = = 1+ (1.36)
vD 2R3 RF (R1 + R2 )
vO R2 RF R1
Acm = = 1− (1.37)
vCM R1 + R2 R2 R3
If RF /R2 = R3 /R1 , these equations give Ad = RF /R3 and Acm = 0.
Example 11 For the diff amp in Fig. 1.17, solve for vO , the current i, the resistance seen by the generator,
vI1 , vI2 , and the common-mode input voltage.
Example 12 Design a two op amp diff amp which has a differential voltage gain of 20, a common-mode
voltage gain of 0, and an input resistance to each input of 10 kΩ.
Solution. For the circuit of Fig. 1.19, the input resistance specifications can be met with R1 = R2 = 10 kΩ.
For the differential gain specification, it follows from Eq. (1.41) that RF 2 /R2 = 20. Thus we must have
RF 2 = 200 kΩ. For a common-mode gain of zero, we must have either R1 = RF 1 and R3 = R2 or R1 = R2
and RF 1 = R3 . Because we have already specified that R1 = R2 , we must have RF 1 = R3 . The value for
these resistors is arbitrary. We specify RF 1 = R3 = 200 kΩ.
The instrumentation amplifier can be thought of as the cascade connection of two amplifiers. The first
stage consists of op amps 1 and 2. Let its voltage gain be denoted by A1 . The second stage consists of op
amp 3. Let its voltage gain be denoted by A2 . The two gains are given by
vO1 − vO2 RF 1
A1 = =1+2 (1.47)
vI1 − vI2 R1
vO RF 2
A2 = = (1.48)
vO1 − vO2 R2
It can be seen that A1 represents the ratio of a differential output voltage to a differential input voltage.
The instrumentation amplifier is used in applications where a true diff amp is required with a very
high common-mode rejection ratio. A potentiometer connected as a variable resistor in series with R1 can
be used to adjust the voltage gain without simultaneously changing the common-mode rejection ratio. A
potentiometer connected as a variable resistor in series with R3 can be used to optimize the CMRR. To do
this experimentally, the two inputs are connected together and a common-mode signal voltage applied. The
potentiometer in series with R3 is adjusted for minimum output voltage.
Example 13 Design an instrumentation amplifier which has a differential voltage gain of 100 (a decibel
gain of 40 dB) and a common-mode voltage gain of zero.
Solution. The gain of 100 must be divided between the two stages of the circuit. It is convenient to give
the input stage, consisting of op amps 1 and 2, a gain of 10 and the second stage, consisting of op amp 3, a
gain of 10. Using Eqs. (1.47) and (1.48), we can write the two design equations
RF 1 RF 2
1+2 = 10 and = 10
R1 R2
With two equations and four unknowns, it is necessary to assign values to two of the resistors. Let RF 1 =
RF 2 = 10 kΩ. It follows that R2 = 1 kΩ and R1 = (10/4.5) kΩ = 2.22 kΩ.
Because there is a virtual short between the inverting and non-inverting inputs to op amp 1, the upper node
of R1 sees the input voltage vI . Thus Eq. (1.3) can be use to write for vO2
RF 2
vO2 = − vI (1.50)
R1
In most applications of the differential output amplifier, the condition vO2 = −vO1 is desired. When this
is satisfied, the amplifier is said to be a balanced differential output amplifier. This requires the condition
1 + RF 1 /R1 = RF 2 /R1 which reduces to
RF 1 = RF 2 − R1 (1.51)
In this case, the output voltages can be written
RF 2
vO1 = −vO2 = vI (1.52)
R1
2RF 2
vO1 − vO2 = vI (1.53)
R1
Example 14 Design a balanced differential output amplifier with an open-circuit voltage gain of 4, an input
resistance of 10 kΩ, and a balanced output resistance of 600 Ω. The amplifier is to drive a 600 Ω load. If the
maximum peak output voltage from each op amp is ±12 V, calculate the maximum peak load voltage and the
output level in dBm for a sine wave input signal. (The dBm is the decibel output power referenced to the
power Pref = 1 mW.)
Solution. The circuit is shown in Fig. 1.22. For the input resistance specification, we have Ri = 10 kΩ.
For an open-circuit voltage gain of 4, it follows from Eq. (1.53) that 2RF 2 /R1 = 4. This can be satisfied by
choosing RF 2 = 20 kΩ and R1 = 10 kΩ. Eq. (1.51) gives RF 1 = 10 kΩ. To achieve a 600 Ω balanced output
resistance, we must have RO1 = RO2 and RO1 + RO2 = 600. It follows that RO1 = RO2 = 300 Ω. If the
voltage output of op amp 1 peaks at +12 V, the voltage output from op amp 2 peaks at −12 V and the peak
load voltage is vP = 24 × 600/ (600 + 600) = 12 V, where voltage division has been used. The output level
in dBm is given by
2 2
vP /2RL 12 /1200
Output Level = 10 log = 10 log = 20.8 dBm
Pref 0.001
1.6. OP AMP DIFFERENTIATORS xix
Figure 1.24: (a) Modified differentiator. (b) Bode plot for |Vo /Vi |.
The Bode magnitude plot for the transfer function of Eq. (1.57) is given in Fig. 1.24(b). For ω <<
1/R1 C1 , the asymptotic plot exhibits a slope of +1 dec/dec which is the proper slope for a differentiator. In
this band, the voltage gain is given by Vo /Vi ∼= −jωRF C1 . At ω = 1, the magnitude of the gain is RF C1 .
For ω >> 1/R1 C1 , the asymptotic slope is 0 and the magnitude of the gain shelves at the value RF /R1 . It
follows that the circuit with R1 acts as a differentiator only for frequencies such that ω << 1/R1 C1 . The
input impedance transfer function of the circuit with R1 is given by
1 1 + R1 C1 s
Zin = R1 + = R1 × (1.58)
C1 s R1 C1 s
This is of the form of a constant multiplied by the reciprocal of a high-pass transfer function. For s = jω,
it follows that |Zin | → R1 as ω becomes large.
Example 15 Design a modified differentiator which has a time constant of 10 ms and a pole frequency of
1 kHz. For a 1 V peak sine-wave input signal at 100 Hz, calculate the peak sine wave output voltage and the
relative phase of the output voltage.
Solution. The circuit is shown in Fig. 1.24(a). For the gain constant specification, we must have
RF C1 = 0.01. If we let C1 = 0.1 µF, it follows that RF = 100 kΩ. For the pole frequency of 1000 Hz, we
must have R1 C1 = 1/2π1000. This gives R1 = 10, 000/2π = 1.59 kΩ. From Eq. (1.57), the voltage gain
magnitude at f = 100 Hz is given by
Vo RF C1 (j2π100) 0.01 × 2π100
= − = √ = 6.25
Vi 1 + j2π100R1 C1 1 + 0.12
1.7. THE INTEGRATOR xxi
For a 1 V peak input sine wave at 100 Hz, it follows that the peak output voltage is 6.25 V. It follows from
Eq. (1.57) that the phase of the output signal with respect to the input signal is given by
A perfect differentiator would have a phase of +90 ◦ . Thus there is a phase error of −5.7 ◦ . Note that
the negative sign in Eq. (1.57) does not affect the phase. This is because a negative sign indicates an
inversion whereas a phase shift is associated with a shift in time. If a sine wave is observed on the screen
of an oscilloscope, an inversion would flip the sine wave about the time axis. A phase shift would shift the
position of the zero crossings along the time axis.
Vo (1/CF s) 1
=− =− (1.59)
Vi R1 R1 CF s
Because a division by s in the complex frequency domain is equivalent to an integration in the time
domain, it follows from this equation that the time domain output voltage is given by
t
1
vO (t) = − vI (τ ) dτ (1.60)
R1 CF −∞
Thus the circuit has the transfer function of an inverting integrator with the gain constant 1/R1 CF . Because
R1 CF has the units of seconds, it is called the integrator time constant. The input resistance to the circuit
is R1 . The output resistance is zero.
where Eq. (1.3) has been used. This is of the form of the transfer function of an ideal integrator multiplied
by the transfer function of a high-pass filter which has the pole time constant RF CF . The Bode magnitude
plot for the transfer function is given in Fig. 1.26(b). For ω << 1/RF CF , the plot exhibits a slope of 0.
For ω >> 1/RF CF , the slope is −1 dec/dec which is the proper slope for an integrator. It follows that the
circuit with RF acts as an integrator only for frequencies such that ω >> 1/RF CF .
Figure 1.26: (a) Modified inverting integrator. (b) Bode magnitude plot for |Vo /Vi |.
Example 16 Design a modified integrator which has a time constant of 0.1 s and a pole frequency of 1 Hz.
For a 1 V peak sine-wave input signal at 10 Hz, calculate the peak sine-wave output voltage and the relative
phase of the output voltage.
Solution. The circuit is shown in Fig. 1.26(a). For the time constant specification, we have R1 CF = 0.1. If
we take CF = 0.1 µF, it follows that R1 = 1 MΩ. For the pole frequency of 1 Hz, we must have RF CF = 1/2π.
This gives RF = 1/ 2π × 0.1 × 10−6 = 1.59 MΩ. From Eq. (1.61), the gain magnitude at f = 10 Hz is
given by
Vo 1 j2π10RF CF 1.59
= − × =√ = 0.158
Vi j2π10R1 CF 1 + j2π10RF CF 1 + 102
For a 1 V peak input sine wave at 100 Hz, it follows that the peak output voltage is 0.158 V.
It follows from Eq. (1.61) that the phase of the output signal with respect to the input signal is given by
A perfect integrator would have a phase of −90 ◦ . Thus there is a phase error of +5.7 ◦ . As is discussed in
Example 15, the negative sign in Eq. (1.61) indicates that the output signal is inverted with respect to the
input signal and does not represent a phase shift.
resistors are combined into a single resistor of value R/2. Because there is a virtual short between the V+
and the V− inputs, we can write
Vo Vi Vo R 1 1
= + = (Vi + Vo ) (1.62)
2 R R 2 Cs 1 + RCs/2
This equation can be solved for the voltage gain transfer function of the circuit to obtain
Vo 2
= (1.63)
Vi RCs
This is the transfer function of a non-inverting integrator with the gain constant 2/RC. The time constant
of the integrator is RC/2.
Figure 1.27: (a) Non-inverting integrator. (b) Equivalent circuit for calculating Vo . (c) Equivalent circuit
for Zin .
The input current in the circuit of Fig. 1.27(a) can be solved for as follows:
Vi − V+ Vi − V− Vi 1
Ii = = = 1− (1.64)
R R R RCs
where V− = Vo /2 has been used. This equation can be solved for the input impedance transfer function to
obtain
Vi R −R2 Cs
Zin = = (1.65)
Ii R + (−R2 Cs)
The equivalent circuit which has this impedance is a resistor R in parallel with a negative inductor −R2 C.
The equivalent circuit is given in Fig. 1.27(c). Because the inductor is a short circuit at zero frequency, it
follows that the input impedance to the circuit is zero for a dc source.
Example 17 The non-inverting integrator of Fig. 1.27(a) has the circuit element values R = 1 kΩ and C =
1 µF. For a sine wave input signal, calculate the voltage gain of the circuit at the frequency f = 100 Hz. In
addition, calculate numerical values for the circuit elements in the equivalent circuit for the input impedance.
Solution. The voltage gain at f = 100 Hz is calculated from Eq. (1.63) as follows:
Vo 2
= 3 × j2π100 = −j3.17
Vi 10 × 10−6
xxiv IDEAL OP AMP CIRCUITS
From Eq. (1.65), it follows that the input impedance circuit consists of a 1000 Ω resistor to ground in parallel
with a negative inductor to ground having the value −10002 × 10−6 = −1 H.
Figure 1.28: (a) Inverting low-pass amplifier. (b) Bode magnitude plot for |Vo /Vi |.
Example 18 Design an inverting low-pass amplifier circuit which has an input resistance of 10 kΩ, a low-
frequency voltage gain of −10, and a pole frequency of 10 kHz.
Solution. The circuit diagram of the amplifier is shown in Fig. 1.28(a). For an input resistance of 10 kΩ,
we have R1 = 10 kΩ. The voltage gain transfer function is given by Eq. (1.66). For a low-frequency gain of
−10, we have RF = 10R1 = 100 kΩ. For a pole frequency of 10 kHz, we have CF = 1/2π104 RF = 159 pF.
A second inverting low-pass amplifier circuit is shown in Fig. 1.29(a). The currents I1 , I2 , and IF are
given by
Vi
I1 = (1.67)
R1 + (1/Cs) R2
1/Cs 1
I2 = I1 = I1 (1.68)
R2 + 1/Cs 1 + R2 Cs
Vo
IF = (1.69)
RF
where it is assumed that the V− op amp input is at virtual ground and current division has been used for
I2 . The voltage gain of the circuit can be obtained from the relation I2 + IF = 0 to obtain
Vo RF 1
=− × (1.70)
Vi R1 + R2 1 + R1 R2 Cs
1.8. LOW-PASS AMPLIFIERS xxv
This is of the form of a gain constant −RF / (R1 + R2 ) multiplied by a low-pass transfer function having a
pole time constant (R1 R2 ) C. The Bode magnitude plot for the transfer function is given in Fig. 1.29(b).
Figure 1.29: (a) Inverting low-pass amplifier. (b) Bode magnitude plot for |Vo /Vi |. (c) Bode magnitude plot
for |Zin |.
The output resistance of the circuit is zero. The input impedance is given by
1 1 + (R1 R2 ) Cs
Zin = R1 + R2 = (R1 + R2 ) (1.71)
Cs 1 + R2 Cs
This transfer function is in the form of a low-pass shelving function having a pole time constant R2 C and
a zero time constant (R1 R2 ) C. The Bode magnitude plot of the impedance is given in Fig. 1.29(c). The
low-frequency impedance is R1 + R2 . As frequency is increased, the impedance decreases and shelves at the
value R1 .
Example 19 Specify the circuit element values for the circuit of Fig. 1.29(a) for an inverting voltage gain
of unity and a pole time constant of 75 µs. What is the pole frequency in the voltage-gain transfer function?
Solution. Let C = 0.01 µF and R2 = R1 . It follows from Eq. (1.31) that (R1 R2 ) C = (R1 /2) C =
75 × 10−6 . Solution for R1 and R2 yields R1 = R2 = 15 kΩ. For an inverting voltage gain of unity,
we must have RF = R1 + R2 = 30 kΩ. The pole frequency in the transfer function has the frequency
f = 1/ 2π75 × 10−6 = 2.12 kHz.
where voltage division and Eq. (1.10) have been used. This is of the form of a gain constant 1 + RF /R1
multiplied by the transfer function of a low-pass filter having a pole time constant RC. The Bode magnitude
xxvi IDEAL OP AMP CIRCUITS
plot for the transfer function is given in Fig. 1.30(b). The output resistance of the circuit is zero. The input
impedance is given by
1 1 + RCs
Zin = R + =R× (1.73)
Cs RCs
This is of the form of a resistor R multiplied by the reciprocal of a high-pass transfer function.
Figure 1.30: (a) Non-inverting low-pass amplifier. (b) Bode magnitude plot for |Vo /Vi |.
Example 20 The non-inverting amplifier of Fig. 1.30(a) is to be designed for a voltage gain of 12. The
input low-pass filter is to have a cutoff frequency of 100 kHz. Specify the element values for the circuit.
Solution. To meet the cutoff frequency specification, it follows from Eq. (1.72) that RC = 1/ 2π105 .
Either a value for R or a value for C must be specified before the other can be calculated. Let C = 510 pF.
It follows that R = 3.12 kΩ. For a gain of 12, we must have 1 + RF /R1 = 12. If we choose R1 = 1 kΩ, it
follows that RF = 11 kΩ.
This is of the form of a gain constant 1 + RF /R1 multiplied by a low-pass shelving transfer function having a
pole time constant RF CF and a zero time constant (RF R1 ) CF . The Bode magnitude plot for the voltage
gain is shown in Fig. 1.31(b). The low-frequency gain is 1 + RF /R1 . As frequency is increased, the gain
decreases and shelves at unity.
Example 21 The circuit of Fig. 1.31(a) is to be designed for a low-frequency gain of 2 (a 6 dB boost). The
zero frequency in the transfer function is to be 100 Hz. Specify the circuit element values and calculate the
frequency at which the voltage gain is 3 dB.
Solution. For a low-frequency gain of 2, it follows from Eq. (1.74) that 1 + RF /R1 = 2, which gives
RF = R1 . For the zero in the transfer function to be at 100 Hz, it follows that RF R1 CF = 1/ (2π100). If we
choose CF = 0.1 µF, it follows that R1 = RF = 31.8 kΩ. With s = j2πf, the voltage gain transfer function
can be written
Vo 1 + jf/100
=2
Vi 1 + jf/50
1.9. HIGH-PASS AMPLIFIERS xxvii
Figure 1.31: (a) Non-inverting low-pass shelving amplifier. (b) Bode magnitude plot for |Vo /Vi |.
At the 3 dB boost frequency, we have |Vo /Vi |2 = 1/2. This condition gives
1 + (f /100)2 1
2 = 2
1 + (f/50)
√
This can be solved for f to obtain f = 100/ 2 = 70.7 Hz.
This is of the form of a gain constant −RF /R1 multiplied by a high-pass transfer function having a pole
time constant R1 C1 . The Bode magnitude plot for the voltage gain is given in Fig. 1.32(b). The output
resistance of the circuit is zero. The input impedance transfer function is given by
1 1 + R1 C1 s
Zin = R1 + = R1 × (1.76)
C1 s R1 C1 s
This is of the form of a resistance R1 multiplied by the reciprocal of a high-pass transfer function.
Example 22 Design an inverting high-pass amplifier circuit which has a gain of −10 and a pole time
constant of 500 µs. The input impedance to the circuit is to be 10 kΩ or higher. Calculate the lower half-
power cutoff frequency of the amplifier.
Solution. The circuit is shown in Fig. 1.32(a). The voltage-gain transfer function is given by Eq. (1.75).
For the gain specification, we must have RF /R1 = 10. For the pole time constant specification, we must
have R1 C1 = 500 × 10−6 . Because there are three unknowns and only two equations, one of the circuit
elements must be specified before the others can be calculated. Eq. (1.76) shows that the lowest value of
the input impedance is R1 . Thus we must have R1 ≥ 10 kΩ. If R1 ≥ 10 kΩ, it follows that C1 ≤ 0.05 µF.
Let us choose C1 = 0.033 µF. It follows that R1 = 15.2 kΩ and R2 = 152 kΩ. The lower half-power cutoff
frequency is f = 1/ 2π × 500 × 10−6 = 318 Hz.
xxviii IDEAL OP AMP CIRCUITS
Figure 1.32: (a) Inverting high-pass amplifier. (b) Bode magnitude plot for |Vo /Vi |.
Figure 1.33: (a) Non-inverting high-pass amplifier. (b) Bode magnitude plot for |Vo /Vi |.
Example 23 Design a non-inverting high-pass amplifier which has a gain of 15 and a lower cutoff frequency
of 20 Hz. The input resistance to the amplifier is to be 10 kΩ in its passband.
Solution. The circuit is shown in Fig. 1.33(a). In the amplifier passband, C is a short circuit. To meet
the input resistance specification, we must have R = 10 kΩ. The voltage-gain transfer function is given by
Eq. (1.77). For a lower half-power cutoff frequency of 20 Hz, we must have RC = 1/ (2π20). Solution for
C yields C = 0.796 µF. For the gain specification, we must have 1 + RF /R1 = 15 or R1 = RF /14. If
RF = 56 kΩ, it follows that R1 = 4 kΩ.
1.10. THE OP AMP AS A COMPARATOR xxix
Vo RF 1 + (RF + R1 ) C1 s
=1+ = (1.79)
Vi R1 + (1/C1 s) 1 + R1 C1 s
This is of the form of a high-pass shelving transfer function having a pole time constant R1 C1 and a zero
time constant (RF + R1 ) C1 . The Bode magnitude plot for the voltage gain is shown in Fig. 1.34(b). It can
be seen from the figure that the gain at low frequencies is unity. At high frequencies, the gain shelves at
1 + RF /R1 .
Figure 1.34: (a) Non-inverting high-pass shelving amplifier. (b) Bode magnitude plot for |Vo /Vi |.
Example 24 Design a high-pass shelving amplifier which has unity gain at low frequencies, a pole in its
transfer function with a time constant of 75 µs, and a zero with a time constant of 7.5 µs. What are the pole
and zero frequencies and what is the gain at high frequencies?
Solution. The circuit is shown in Fig. 1.34(a). The voltage-gain transfer function is given by Eq.
(1.79). For the pole time constant specification, we must have R1 C1 = 7.5 µs. For the zero time constant
specification, we must have (R1 + RF ) C1 = 75 µs. Because there are three circuit elements and only two
equations, we must specify one element in order to calculate the other two. Let C1 = 0.001 µF. It follows that
R1 = 7.5 kΩ and R2 = 75 kΩ − R1 = 67.5 kΩ. The zero frequency is fz = 1/ 2π × 75 × 10−6 = 2.12 kHz.
The pole frequency is fp = 1/ 2π × 7.5 × 10−6 = 21.2 kHz. The gain at high frequencies is 1 + RF /R1 =
1 + 67.5/7.5 = 10.
vO = A (VREF − vI ) (1.80)
xxx IDEAL OP AMP CIRCUITS
where A is the voltage gain of the op amp. For an ideal op amp, we assume that A → ∞. This implies that
vO → ∞ for vI < VREF and vO → −∞ for vI > VREF . However, a physical op amp cannot have an infinite
output voltage. Let us denote the maximum value of the magnitude of the output voltage by VSAT . We call
VSAT the saturation voltage of the op amp.
For an ideal op amp that exhibits saturation of its output voltage, the output voltage of the inverting
comparator circuit in Fig. 1.35(a) can be written
where sgn(x) is the signum or sign function defined by sgn (x) = +1 for x > 0 and sgn (x) = −1 for x < 0.
The plot of vO versus vI for the circuit is given in Fig. 1.35(b).
of a comparator by increasing the amount of positive feedback at high frequencies. It has no effect on the
input voltage at which the op amp switches states.
Figure 1.37: (a) Inverting comparator with positive feedback. (b) Plot of vO versus vI .
The output voltage from the circuit of Fig. 1.37(a) can be written
Because vO has the two stable states vO = +VSAT and vO = −VSAT , it follows that v+ can have two stable
states given by
RF R1
VA = VREF − VSAT (1.84)
RF + R1 RF + R1
RF R1
VB = VREF + VSAT (1.85)
RF + R1 RF + R1
where superposition and voltage division have been used for each equation. For vI < VA , it follows that
vO = +VSAT . For vI > VB , it follows that vO = −VSAT . For VA < vI < VB , vO can have two stable states,
i.e. vO = ±VSAT . The graph of vO versus vI is given in Fig. 1.37(b).
The value of vO for VA < vI < VB depends on whether vI increases from a value less than VA or vI
decreases from a value greater than VB . That is, the circuit has memory. If vI < VA initially and vI begins
to increase, vO remains at the +VSAT state until vI becomes greater than VB . At this point vO switches to
the −VSAT state. If vI > VB initially and vI begins to decrease, vO remains at the −VSAT state until vI
becomes less than VA . Then vO switches to the +VSAT state. The path for vO on the graph in Fig. 1.37(b)
is indicated with arrows. The loop in the graph is commonly called a hysteresis loop.
Example 25 The Schmidt trigger circuit of Fig. 1.37(a) has the element values RF = 1 MΩ and R1 =
33 kΩ. If VREF = 3 V and the op amp saturation voltage is VSAT = 12 V, calculate the two threshold voltages
VA and VB .