Op-Amps Experiment Theory: 1. Objective
Op-Amps Experiment Theory: 1. Objective
Op-Amps Experiment Theory: 1. Objective
1. Objective
The purpose of these experiments is to introduce the most important of all analog building blocks,
the operational amplifier (“op-amp” for short). This handout gives an introduction to these
amplifiers and a smattering of the various configurations that they can be used in. Apart from their
most common use as amplifiers (both inverting and non-inverting), they also find applications as
buffers (load isolators), adders, subtractors, integrators, logarithmic amplifiers, impedance
converters, filters (low-pass, high-pass, band-pass, band-reject or notch), and differential amplifiers.
So let’s get set for a fun-filled adventure with op-amps!
1
EE 43/100 Operational Amplifiers
⎛ RL ⎞
Vo = ⎜⎜ ⎟⎟ AVi (2)
⎝ Ro + RL ⎠
RS + Ro +
INPUT PORT
OUTPUT PORT
Vi Vo
Ri AVi RL
VS _ _
ip
+ + + +
V_p Ri V_p
Vi R o
Vi
+ +
_
AVi AV i
in V_o _ Vo
_
+ +
V_n V_n
The ideal op-amp model was derived to simplify circuit analysis and is commonly used by engineers
for first-order approximation calculations. The ideal model makes three simplifying assumptions:
2
EE 43/100 Operational Amplifiers
Applying these assumptions to the standard op-amp model results in the ideal op-amp model shown
in Figure 3. Because Ri = ∞ and the voltage difference Vp – Vn = Vi at the input port is finite, the input
currents are zero for an ideal op-amp:
in = ip = 0 (6)
Hence there is no loading effect at the input port of an ideal op-amp:
Vi = Vs (7)
In addition, because Ro = 0, there is no loading effect at the output port of an ideal op-amp:
Vo = A × Vi (8)
Finally, because A = ∞ and Vo must be finite, Vi = Vp – Vn = 0, or
Vp = Vn (9)
Note: Although Equations 3-5 constitute the ideal op-amp assumptions, Equations 6 and 9 are used
most often in solving op-amp circuits.
I R2
Vp
Vp R1 Vn
Vn +
Vout
_
Vn + Vin Vp +
Vin R2 Vout Vout
_ _
R1
I Vin
Figure 4a: Non-inverting amplifier Figure 5a: Voltage follower Figure 6a: Inverting amplifier
A>=1 A=1
Figure 4b: Voltage transfer curve Figure 5b: Voltage transfer curve Figure 6b: Voltage transfer curve
of non-inverting amplifier of voltage follower of inverting amplifier
3
EE 43/100 Operational Amplifiers
A>=1 A=1
Vin Vin Vin
A<0
Figure 4c: Realistic transfer curve Figure 5c: Realistic transfer curve Figure 6c: Realistic transfer curve
of non-inverting amplifier of voltage follower of inverting amplifier
4. Non-Inverting Amplifier
An ideal op-amp by itself is not a very useful device, since any finite non-zero input signal would
result in infinite output. (For a real op-amp, the range of the output signal is limited by the positive
and negative power-supply voltages.) However, by connecting external components to the ideal op-
amp, we can construct useful amplifier circuits.
Figure 4a shows a basic op-amp circuit, the non-inverting amplifier. The triangular block symbol is
used to represent an ideal op-amp. The input terminal marked with a “+” (corresponding to Vp) is
called the non-inverting input; the input terminal marked with a “–” (corresponding to Vn) is called
the inverting input.
To understand how the non-inverting amplifier circuit works, we need to derive a relationship
between the input voltage Vin and the output voltage Vout. For an ideal op-amp, there is no loading
effect at the input, so
Vp = Vi (10)
Since the current flowing into the inverting input of an ideal op-amp is zero, the current flowing
through R1 is equal to the current flowing through R2 (by Kirchhoff’s Current Law -- which states
that the algebraic sum of currents flowing into a node is zero -- to the inverting input node). We can
therefore apply the voltage-divider formula find Vn:
⎛ R1 ⎞
Vn = ⎜⎜ ⎟⎟Vout (11)
⎝ R1 + R2 ⎠
4
EE 43/100 Operational Amplifiers
The voltage transfer curve (Vout vs. Vin) for a non-inverting amplifier is shown in Figure 4b. Notice
that the gain (Vout / Vin) is always greater than or equal to one.
The special op-amp circuit configuration shown in Figure 5a has a gain of unity, and is called a
“voltage follower.” This can be derived from the non-inverting amplifier by letting R1 = ∞ and R2 =
0 in Equation 12. The voltage transfer curve is shown in Figure 5b. A frequently asked question is
why the voltage follower is useful, since it just copies input signal to the output. The reason is that it
isolates the signal source and the load. We know that a signal source usually has an internal series
resistance (Rs in Figure 1, for example). When it is directly connected to a load, especially a heavy
(high conductance) load, the output voltage across the load will degrade (according to the voltage-
divider formula). With a voltage-follower circuit placed between the source and the load, the signal
source sees a light (low conductance) load -- the input resistance of the op-amp. At the same time,
the load is driven by a powerful driving source -- the output of the op-amp.
5. Inverting Amplifier
Figure 6a shows another useful basic op-amp circuit, the inverting amplifier. It is similar to the non-
inverting circuit shown in Figure 4a except that the input signal is applied to the inverting terminal
via R1 and the non-inverting terminal is grounded. Let’s derive a relationship between the input
voltage Vin and the output voltage Vout. First, since Vn = Vp and Vp is grounded, Vn = 0. Since the
current flowing into the inverting input of an ideal op-amp is zero, the current flowing through R1
must be equal in magnitude and opposite in direction to the current flowing through R2 (by
Kirchhoff’s Current Law):
Vin − Vn Vout − Vn
= (13)
R1 R2
Since Vn = 0, we have:
⎛ R ⎞
Vout = ⎜⎜ − 2 ⎟⎟Vin (14)
⎝ R1 ⎠
The gain of inverting amplifier is always negative, as shown in Figure 6b.
5
EE 43/100 Operational Amplifiers
6. Operation Circuit
Figure 7 shows an operation circuit, which combines the non-inverting and inverting amplifier. Let’s
derive the relationship between the input voltages and the output voltage Vout. We can start with the
non-inverting input node. Applying Kirchhoff’s Current Law, we obtain:
V B1 − V p VB2 − V p VB3 − V p Vp
+ + = (15)
R B1 RB2 RB3 RB
Applying Kirchhoff’s Current Law to the inverting input node, we obtain:
V A1 − V n V A 2 − V n V A 3 − V n V n − V out
+ + = (16)
R A1 R A2 R A3 RA
Since Vn = Vp (from Equation 9), we can combine Equations 15 and 16 to get
⎛R ⎞ ⎛ V B1 V B 2 V B 3 ⎞ ⎛V V V ⎞
V out ⎜⎜ A′ ⎟⎟ = ⎜⎜ + + ⎟⎟ R B ′ − ⎜⎜ A1 + A 2 + A 3 ⎟⎟ R A′ (17)
⎝ RA ⎠ ⎝ R B1 R B 2 R B 3 ⎠ ⎝ R A1 R A 2 R A 3 ⎠
where
1
R A′ =
1 1 1 1
+ + +
R A R A1 R A 2 R A 3
and
1
R B′ =
1 1 1 1
+ + +
R B R B1 R B 2 R B 3
Thus this circuit adds VB1, VB2 and VB3 and subtracts VA1, VA2 and VA3. Different coefficients can be
applied to the input signals by adjusting the resistors. If all the resistors have the same value, then
V out = (V B1 + V B 2 + V B 3 ) − (V A1 + V A 2 + V A 3 ) (18)
R A1
V A1
R A2 RA
V A2
R A3 Vn
V A3
R B1 Vp +
V B1
V out
R B2 _
V B2
RB
R B3
V B3
6
EE 43/100 Operational Amplifiers
7. Integrator
By adding a capacitor in parallel with the feedback resistor R2 in an inverting amplifier as shown in
Figure 8, the op-amp can be used to perform integration. An ideal or lossless integrator (R2 = ∞)
−1
R1C ∫
performs the computation Vout = Vin dt . Thus a square wave input would cause a triangle wave
output. However, in a real circuit (R2 < ∞) there is some decay in the system state at a rate
proportional to the state itself. This leads to exponential decay with a time constant of τ = R2C.
R2
R1 Vn
V in Vp +
V o ut
_
Figure 8: Integrator
8. Differentiator
By adding a capacitor in series with the input resistor R1 in an inverting amplifier, the op-amp can be
used to perform differentiation. An ideal differentiator (R1 = 0) has no memory and performs the
dVin
computation Vout = − R2 C . Thus a triangle wave input would cause a square wave output.
dt
However, a real circuit (R1 > 0) will have some memory of the system state (like an lossy integrator)
with exponential decay of time constant τ = R1C.
9. Differential Amplifier
Figure 9 shows the differential amplifier circuit. As the name suggests, this op-amp configuration
amplifies the difference of two input signals.
R2
Vout = (V+ − V− ) (20)
R1
If the two input signals are the same, the output should be zero, ideally. To quantify the quality of
the amplifier, the term Common Mode Rejection Ratio (CMRR) is defined. It is the ratio of the
7
EE 43/100 Operational Amplifiers
output voltage corresponding to the difference of the two input signals to the output voltage
corresponding to “common part” of the two signals. A good op-amp has a high CMRR.
R2
V- +10V
R1
V+
Vout
R1
-10V
R2
G -3 d B point
B Freq (Hz )
The bandwidth is the frequency at which the power of the output signal is reduced to half that of the
maximum output power. This occurs when the power gain G drops by 3 dB. In Figure 10, the
8
EE 43/100 Operational Amplifiers
bandwidth is B Hz. For all op-amps, the Gain*Bandwidth product is a constant. Hence, if the gain
of an op-amp is decreased, its operational bandwidth increases proportionally. This is an important
trade-off consideration in op-amp circuit design. In Sections 3 through 8 above, we assumed that the
op-amp has infinite bandwidth.
9
EE 43/100 Operational Amplifiers
You will need to use only 5 of the 8 pins. These are: Inverting Input – Pin2, Non-Inverting Input –
Pin3, Negative Supply – Pin4, Output – Pin6 and Positive Supply – Pin7. Other pins are available for
an optional offset null adjustment (Pins 1 & 5), which is unnecessary for the circuits used in this
experiment. Do not ground these pins, as this will result in failure of the op-amp. Pin 8 has no
internal connection into the silicon chip inside.
10
EE 43/100 Operational Amplifiers
In this lab, we are going to study operational amplifiers and circuits with op-amps. The op-amp chip
that we are going to use is LMC 6482 from National Instrument. The configuration of the chip is
shown below. It has two amplifiers in one chip with 8 pins. The pin configuration is also shown in
the same figure (There is a node on the chip indicating pin 1). The power supply to the chip is -4 V
for V- and +6 V for V+ in this lab (Maximum V+-V- is 30V). For more information, please refer to
the device specification.
11
EE 43/100 Operational Amplifiers
(2) Turn the potentiometer R2 until the gain is 2 and then adjust the Vpp and DC offset to the
input signal. Observe the input and output waveforms as you vary the DC offset for large
Vpp (say 2.5V).
(c) Clipping:
(1) Turn the potentiometer until the gain is ~2 and then add a DC offset to the input signal.
Observe the input and output waveforms as you vary the DC offset from 0VDC to +1.0VDC
(the FG should display 0VDC to +0.5VDC).
(2) Draw the input and output for a case that gives clipping, and include measured voltages of
the peak, trough, and saturation levels referenced to ground. Explain the conditions under
which distortion occurred.
Do not disassemble this circuit. Remove Vi and change R2 to a fixed 4.7k to be used in Part 2.
VDD
3 8
1
2 +
4 Vo
_
VSS
Vi
R2
R1
12
EE 43/100 Operational Amplifiers
R2
VDD
R1 6 8
7
Vi 5 +
4 Vo
_
VSS
Part 4: Integrator
Put a 0.1 uF capacitor instead of R2 in a new inverting amplifier (Fig 3) and measure the time
constant. Use a 60 Hz, 500mVPP square wave as input. After getting the waveforms and triggering
correct, measure time constant RC (how will you measure it? Hint: your prelab question 4).
13
EE 43/100 Operational Amplifiers
Compare measured time constant with theory. Now change the function generator back to a sine
wave input, sweep frequency from 1Hz to 100kHz and observe the change of the gain with
frequency.
The circuit in figure 4 violates one of the cardinal rules of op-amp circuit design - ``there must
always be a DC feedback path to the inverting input or the op-amp output will go to the rail.'' The
general problem with this integrator circuit is that a small error current, input offset current, will be
integrated by the capacitor to be large output voltages, and eventually drive the op-amp output into
saturation. The LMC 6482 op-amp you are using has remarkably low input offset currents, so that
you may not see this effect in a short time. If you want to see this effect, ask your TA for another
pin-compatible op-amp such as the LM6142, substitute in the integrator circuit, and see if you
observe any difference in the average DC level of the output. (Typically, a real integrator is made
with a zero-reset, or a large resistor in parallel with the integrator capacitor).
Part 5: Differentiator
Build the inverting amplifier but put 0.1 uF capacitor in stead of R1 as shown in Fig 4. Use R2=5k
Input a 500 Hz 500 mVpp triangle wave. Zoom into the waveform to measure time constant RC
(Hint: prelab question 5). Compare measured time constant with theory. Add DC offset to the input
signal, is there any change on the output signal? Why? What happens when the input is a triangle
wave?
14