Académique Documents
Professionnel Documents
Culture Documents
Electronics II
Lecture Notes Operational Amplifier
Operational Amplifier
1. Op-amp Equivalent Circuit
Consider the following amplifier with a feedback resistor Rf and an input voltage source
applied to the its negative terminal:
When analyzing this circuit, one may use the nodal method to get Vx, and Vo. The voltage
gain will then be:
Vo (AR f − ro )Ri
=−
VS [ ]
ro + R f + ( A + 1)R S Ri + (ro + R f )R S
Good amplifiers have Ri → ∞ , and if we assume that, then the voltage gain will reduce to:
Vo AR f − ro
=−
VS ro + R f + ( A + 1)RS
Also, if ro → 0 , which would make the amplifier better, then:
Vo AR f
=−
VS R f + ( A + 1)RS
Finally, if the internal voltage gain is large, A → ∞ , then we have:
Vo Rf
=−
VS RS
Operational amplifiers have such characteristics, i.e., infinite input impedance, zero output
impedance, and infinite voltage gain. (Nothing is perfect, but infinity means very large).
Let’s then replace the amplifier of the above circuit by the symbol of an Op-Amp in one of
the following circuits:
For the convenience, mostly we choose the second notation, where the ports of the op-
amp are flipped.
1
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
2. Op-Amp Circuits Analysis
When analyzing a circuit that contains op-amps, one should first make sure that there is a
feedback from the output node to the negative port, otherwise, the infinite gain of the
amplifier will make its output either ± ∞ depends on the voltage difference of its inputs.
When the op-amp has a negative feedback, then it implies the following:
Example:
Consider again the original circuit which we started. Since there is a negative feedback on
the op-amp, then we can say:
1. v + = v −
2. i + = i − = 0
2
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
3. Op-Amp Circuits Applications
In the following, you find a very useful list of op-amp applications used frequently. Students
can analyze these circuits and check for the equations.
1. Inverting Amplifier
Rf
Vo = − VS
RS
Rin = R S
2. Non-inverting Amplifier
Rf
Vo = 1 + VS
R
Rin = ∞
3. Buffer
Vo = V S
Rin = ∞
4. Inverting Adder
n
Vo = − ∑ Ai vi
i =1
Rf
where, Ai =
Ri
5. Non-inverting Adder
n
Vo = + K ∑ Ai vi
i =1
R f Rp
where, K = 1 + ,
R R f
Rf
Ai = ,
Ri
R p = R1 // R2 // ... // Rn
3
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
6. General Add-Subtract
n m
Vo = ∑ Ai v pi − ∑ Bi v ni
i =1 i =1
Rf Rf
where, Ai = , Bi =
R pi Rni
Let A = ∑ Ai , B = ∑ Bi
Let C = A − B − 1
If
Rf
C ≥ 0 R x = ∞ Ry =
C
R
C < 0 R = − f Ry = ∞
x
C
7. Resistance Change
Detector
vo =
E
R + Rx
(
R x − R x' )
vo = −(K + 2 )v S
Rin = R
4
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
9. Instrumentation
Amplifier (Fixed Gain)
Rf
vo =
R
(v +
− v− )
10. Instrumentation
Amplifier (Variable
Gain)
R f 2 Ra +
vo =
R
1 +
Rg
(
v − v− )
11. Keyboard to
Voltage E
vo = n
16
Rf
v o = − R v s vs > 0
0 vs < 0
5
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
13. Negative Half-
Wave Rectifier
0 vs > 0
vo = R f
− R v s vs < 0
Rf
vo = − vs
R
15. Opto-coupler
R1 + R2
TX: io = − vs
R1 R2 RS
RX: vo = − R f is
6
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
4. Differential Equations (Analog Computers)
16. Integrator
1
RC ∫
vo = − v s (t )dt
17. Differentiator
d
vo = − RC v s (t )
dt
18. Differential
Integrator
1
vo = −
RC ∫ (v1 − v2 )dt
Let’s assume that we have y ′′ as an input signal, and we want to obtain y ′ and y from it
using integrators. The right-hand-side of the differential equation can be formed using a
general add-subtract circuit as shown previously. The block diagram of such a system is:
Now since the RHS of the differential equation equals y ′′ , we close the loop of the above
block back to the assumed input. The solution to the equation would then be y .
7
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
Example: Design a circuit that solves the following differential equation:
y ′′ = 2 y ′ − y + 5 sin 3t
with the initial conditions of y ′(0) = 0 and y (0) = 2 .
Let’s choose all RC = 1 for all the integrators as a starting point and figure out the resistors’
values of the adder. Let R = 100kΩ thus C = 10 µF , and:
• we will have − y ′ out of the first integrator; thus we need a gain of −2 at the adder
• then we will have + y after the 2nd integrator, hence we need a gain of −1
• let’s assume we have a sine-wave generator with the specified frequency and an
amplitude of 1V; therefore, a gain of +5 is needed at the adder
Here, since there is only one input signal to the positive port, we can omit the 8kΩ resistor.
Electronics II
Lecture Notes Operational Amplifier
5. Digital / Analog Converters
Now, how to build a circuit to convert binary number of n digits to decimal number?
n −1 n −1
1
vo = − ∑ 2 i a i vo = ∑2 a i
i
i =0 2 n−1 i =0
In both circuits, one can adjust the output gain by varying the Rf.
9
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department
Electronics II
Electronics II
Lecture Notes Operational Amplifier
In the example show, let Va = 3.5 , Ts = 0.2 , and let n = 3 . After sampling and quantization,
we get the output to the right of the analog input.
3.5 7
3 6
2.5 5
2 4
1.5 3
1 2
0.5 1
0 0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0 1 2 3 4 5 6 7 8
Notice the change in the time axis and in the level axis from analog
to sequence. Here, we say that our input is a sequence x = {1.5, 3,
2.5, 1.5, 1.5, 2, 0.5, 0, 2} is changed to the levels z = {3, 6, 5, 3, 3, 4, 1,
0, 4}. Or in binary, z = {011, 110, 101, 011, 011, 100, 001, 000, 100}.
One possible circuit that can implement this ADC is shown to the
right. Notice that yi ' s are not the final binary outputs. An encoder
digital circuit is then used to produce z 2 z1 z 0 .
10
© 2004 King Abdulaziz University Dr. Amjad Hajjar Electrical & Computer
Engineering Department