Basic Apps
Basic Apps
Basic Apps
Manuel Toledo
INEL 5205 Instrumentation
August 13, 2008
Introduction
The operational amplifier (op amp or OA for short) is perhaps the most important building
block for the design of analog circuits. Combined with simple negative feedback networks,
op amps allow engineers to build many circuits in a simple fashion, at low cost and using
relatively few discrete components. Good knowledge of the op amp characteristics and
aplications is essencial for a sucessful analog engineer.
Op amps are differential amplifiers, and their output voltage is proportional to the difference of the two input voltages. The op amps schematic symbol is shown in the above figure.
The two input terminals, called the inverting and non-inverting, are labeled with - and +,
respectively. Most op amps are designed to work with two supplies usually connected to
positive and negative voltages of equal magnitute (like the uA741 which works with 15V ).
Some, however, work with a single-voltage supply. An example is the LM358. The supply
connections may or may not be shown in a schematic diagram.
Inverting amplifier
Since the op amp takes no input current, the same current flows through R1 and R2 . Because
the non-inverting input is grounded, a virtual ground exist in the inverting input by virtue of
the infinite gain and the negative feedback being used. Thus vi = i R1 and vo = i R2 .
2
.
It follows that the gain of the inverting amplifier is vvoi = R
R1
The input impedance Ri = R1 . To find the output impedance, apply a test current
source to the output and ground to vi . Because of virtual ground, no current flows through
R1 . Since no current flows into the inverting input, the current through R2 must be 0 as
well. Thus, independently of the test current, vo remains grounded in the ideal op amp.
Consecuently the output resistance is ideally 0.
Rf
R1
vi
vo
Summing amplifier
A KCL at the inverting input yields
v1
v2
vn
vo
+
+ ... +
=
R1 R2
Rn
Rf
Thus
vo =
v1
v2
v3
Rf
Rf
Rf
v1 +
v2 + ... +
vn
R1
R2
Rn
R1
Rf
R2
R3
vo
+
vn
Rn
Non-inverting amplifier
Since the two terminals must be at the same voltage,
i1 =
and
vi
R1
vi vo
R2
But no current flows into the inverting terminal, so i1 = i2 . Substituting into this equation
and solving for vo yields
R2
vo = 1 +
vi
R1
i2 =
Rf
vi
vo
vi
vo
Difference amplifier
This circuit provides an output voltage that is proportional to the difference of the two
inputs. Applying KCL at the inverting terminal yields
i1 =
v1 v
v vo
= i2 =
R1
R2
R1 + R2
R2
v
v1
R1
R1
R4
v,
R3 +R4 2
vo =
R1 + R2 R4
R2
v2
v1
R1 R3 + R4
R1
R2
(v2 v1 )
R1
R2
v1
R1
v2
vo
Current-to-voltage converter
Since the source current is can not flow into the amplifiers inverting input, it must flow
thorugh Rf . Since the inverting input is virtual ground,
vo = is Rf
Also, the virtual ground assumption implies that
Ri = 0
for this circuit.
Rf
is
vo
Voltage-to-current converter
In this cricuit, the load is not grounded but takes the place of the feedback resistor. Since
the inverting input is virtual ground,
iL = iin =
ZL
R1
vin
vin
R1
iin
iL
vo
Instrumentation amplifier
This amplifier is just two buffers followed by a differential amplifier. So it is a differential
amplifier but the two sources see an infinite resistance load.
R2
v1
v2
+
+
R1
R3
+
R4
vo
Integrator
Let vin be an arbitrary function of time. The current through the capacitor is iin =
From the capacitor law,
dvC
iC = C
dt
or
Z
Z
1
1
vo = vC =
iC dt =
vin dt
C
R1 C
C
R1
vin
vin
.
R1
iin
vo
Zf
R2
1
=
vi (s)
R1
R1 1 + sCR2
R1
vin
iin
vo
Differentiator
Here the input current is determined by the capacitor law,
iin = C
dvin
dt
Thus
vo = Rf iin = Rf C
dvin
dt
Rf
vin
vo
sR1 C + 1
1
=
sC
sC
Rf
sCRf
=
Z1
sR1 C + 1
vin
R2
iin
vo
vo
Logarithmic Amplifier
Here output and diodes voltage are equal in magnitude and of opposite signs. Since
vD
iD IS exp
VT
6
where VT is the thermal voltage, equal to 25mV at room temperature. It follows that
vo = vD = VT (log(vin /R1 ) logIs )
and is thus proportional to the logarithm off the input.
R1
vin
iin
vo
Anti-logarithmic Amplifier
The current iIN is given by
vD
VT
vIN
VT
iD IS exp
or
iIN IS exp
vIN
VT
R1
vin
iin
vo
Comparator
An op amp can be used as a comparator in a circuit like the one shown below. This is a
non-linear circuit in which the output saturates to about 90 % of the positive and negative
supply voltages. The polarity of the output voltage depends on the sign of the differential
input, vi vREF .
The sketch shows non-ideal characteristics tipically found in op amps. The offset voltage,
vOF F SET , is on the order of few millivolts and causes the transition from low to high to be
slightly displaced from the origin. vOF F SET can be negative or positive, and is zero in an
ideal op amp. The posibility of having voltages between plus and minus vSAT , a consecuense
of the finite gain of practical op amps, is also shown. This part of the curve would be vertical
if the op amp is ideal. Special integrated circuits (like the MC1530) are specially build to
be used as comparators and minimize these non-ideal effects.
vO
+VSAT
vi
vOFFSET
vO
vi-vREF
-VSAT
vREF
Zero-crossing Detector
If the inverting input of a comparator is connected to ground, the devices output switches
from positive to negative saturation when the input goes from positive to negative, and
viceversa. Output vO1 on the following sketch displays this vehavior.
vi
vO1
vi
vO1
vO2
C
vO3
vO2
RL
vO3
Timing-marker Generator
If an RC network is connected to the output of a zero-crossing detector, capacitor charging
and discharging produce the waveform vO2 shown in the above sketch. This signal is rectified
to produce the waveform labeled vO3 . The circuit is called a timing-markers generator, or
TMG, for obvious reasons.
Phase Meter
Combining two TMG and an adder, as shown in the following figure, one can build the so
called phase meter. The time difference T1 is proportional to the phase difference between
the two sinusoidal inputs.
v1
v2
v1
TMG
vO
v2
TMG
vO
T1
vO
R1
R2
vO
vO
R3
VZ
VZ
Real Op Amps
Error Function
Linear op-amp circuits use negative feedback and thus can be described by the theory of
feedback systems. A general negative-feedback system can be represented by the following
block diagram:
wi
wS
wO
LOAD
wF
!
Since
O = A (S O )
we can solve for Af =
O
S
to get
A
1 + A
A 1
=
T 1 + T1
Af =
= Aideal
1
1+
1
T
where
Aideal = lim Af =
A
A
T
1 1
1+
1
T
The quantity
1
1+
1
T
is known as the error function and gives a direct indication of how much the system departs
from the ideal.
Equivalently, the loop gain T can also be used to quantify the difference between real and
ideal op amp behavior. A full feedback analysis for the non-inverting and inverting amplifier
configurations give the results that are summarized in the following table;
non-inverting
T
R22
R1
a rd
ro +R22 rd +R11 R1 +R2
10
inverting
2 ||rd
a R1r||R
o +R2