@6 - OPAMP and Comparators
@6 - OPAMP and Comparators
+Vcc Inverting
Input (-)
output
Non-
ii = 0
Inverting InvInput (+)
Input (-) -
v+ = v- Push-pull
Non Inverting + Emitter
output
Input (+) ii = 0 follower
R0= 0 at the
output
-Vcc -Vcc
Therefore Operational Amplifier has Differential Collector Output
(1) very high input impedance, Ri= Amplifier Constant Impedance
(or) ii = 0 current very low
Op. Amp.
(2) very high voltage gain Av = 105 Emitter source
input
(or) v+ = v- Constant
Impedance
current
(3) very low output impedance R0 = 0 Very high Amplifier
source
voltage
gain very
high
IC Product
OFFSET V+
NULL
1 8 N.C. OUTPUT A 1 8
OFFSET +
V− 4 5 V− 4 5 +IN B
NULL
v-
v- v+
v+
vo
Vs vo
Vs
Inverting
input Non-Inverting
input
Phase of Vo is inverted Phase of Vo is not inverted
(=180degree phase-shifted) (=0degree phase-shifted)
Distortion
+V =+5V cc
+5V
+
Vo
V d 0
−
−5V
−V =−5V cc
AV Vc
Vo = AdVd + AcVc = AdVd 1 + c c = AdVd 1 +
A V
d d CMRR Vd
Note:
When Ad >> Ac or CMRR →
Vo = AdVd
Example:
Let Vi1 = −1V and Vi 2 = 2V
Vd = Vi1 − Vi 2 = −1 − (+2) = −3V
Vi1 + Vi 2 − 1 + (+2)
Vc = = = 0.5V
2 2
Vo = AdVd + AcVc = Ad (−3) + Ac (0.5)
Ad & Ac will be found from circuit configurations
CMRR Example
What is the CMRR?
100V + 100V +
80600V 60700V
20V − 40V −
Solution :
Ad 56.4
56.48dB = 20 log CMRR CMRR = = 10 20 = 666.7
Ac
Ad 8000
Ac = = = 12
666.7 666.7
Vc 12
Vo = AdVd 1 + = 8000 1mV 1 +
= 12mV
CMRR Vd 666.7 1mV
Op-Amp Properties
(1) Infinite Open Loop gain V1
+
- The gain without feedback Vo
- Equal to differential gain V2
- Zero common-mode gain −
- Pratically, Ad = 20,000 to 200,000
i1~0 +
(2) Infinite Input impedance Vo
- Input current ii ~0A
- T- in high-grade op-amp i2~0 −
- m-A input current in low-grade op-
amp
Rout
(3) Zero Output Impedance
- act as perfect internal voltage
Vo' +−
Rload
source
- No internal resistance
- Output impedance in series with Rload
load Vload = Vo
Rload + Rout
- Reducing output voltage to the load
- Practically, Rout ~ 20-100
Frequency-Gain Relation
• Ideally, signals are amplified
from DC to the highest AC 20log(0.707)=3dB
frequency
• Practically, bandwidth is
limited
• 741 family op-amp have an
limit bandwidth of few KHz.
• Unity Gain frequency f1: the gain at
unity
• Cutoff frequency fc: the gain drop
by 3dB from dc gain Ad
GB Product : f1 = Ad fc
GB Product
Example: Determine the cutoff frequency of an op-amp having a unit gain
frequency f1 = 10 MHz and voltage differential gain Ad = 20V/mV
Sol:
Since f1 = 10 MHz
By using GB production equation
f1 = Ad fc
fc = f1 / Ad = 10 MHz / 20 V/mV
= 10 106 / 20 103
= 500 Hz
Ideal Vs Practical Op-Amp
Ideal Practical Ideal op-amp
+ AVin
Open Loop gain A 105
Vin ~ Vout
Bandwidth BW 10-100Hz − Zout=0
For ideal Op-Amp circuit: Remove the op-amp from the circuit and
draw two circuits (one for the + and one for the – input terminals of
the op amp). The output acts like a new source. We can replace it
by a source with a voltage equal to Vout.
(1) Write the Kirchhoff node equation at the non-inverting
terminal V+
(2) Write the Kirchhoff node equation at the inverting terminal V−
(3) Set V+ = V− and solve for the desired closed-loop gain
Warnings for Ideal Op-Amp
Analysis Method: Non-Ideal Op-Amp
(Inverting Amplifier)
Rf Practical op-amp
Ra +
− Zin Zout
V o Vin
~
Vout
Vin ~ + − AVin
Equivalent Circuit
Rf 3 categories are considered
Ra ❑ Close-Loop Voltage Gain
V in − ❑ Input impedance
R R
V V o ❑ Output impedance
+ +
− -AV
Analysis Method: Non-Ideal Op-Amp
Close-Loop Gain
Applied KCL at V– terminal,
Rf
Vin − V − V Vo − V
+ + =0 V in
Ra
−
Ra R Rf R R
By using the open loop gain, V V o
+ +
−
Vo = − AV -AV
Vin Vo Vo Vo Vo
+ + + + =0 Ra Rf
Ra ARa AR R f AR f
Vin V o
Vin R R f + Ra R f + Ra R + ARa R
= −Vo V R
Ra ARa R R f
The Close-Loop Gain, Av
Vo − AR R f
Av = =
Vin R R f + Ra R f + Ra R + ARa R
− Rf
When the open loop gain is very large, the above equation become: Av ~
Ra
Note : The close-loop gain now reduces to the same form as an ideal case
Analysis Method: Non-Ideal Op-Amp
Input Impedance
Rf
Input Impedance can be regarded as, Ra
−
Rin = Ra + R // R V in
V R
R V o
where R is the equivalent impedance + +
of the red box circuit, that is − -AV
V
R = R'
if
However, with the below circuit,
V − (− AV ) = i f ( R f + Ro ) if Rf
V R f + Ro
R = = R
if 1+ A V
+
− -AV
Analysis Method: Non-Ideal Op-Amp
Input Impedance
Finally, we find the input impedance as,
−1
1 1+ A
R ( R f + Ro )
Rin = Ra + + Rin = Ra +
R R f + R
o R f + Ro + (1 + A) R
Since, R f + Ro (1 + A) R , Rin become,
( R f + Ro )
Rin ~ Ra +
(1 + A)
Again with R f + Ro (1 + A)
Rin ~ Ra
– Other parts
• • Bias circuit
• • Short-circuit protection circuit
The bias circuit in 741 Op-Amp
The bias circuit in 741 Op-Amp
Short-circuit protection in 741 Op-Amp
Input stage in 741 Op-Amp
Input stage in 741 Op-Amp
• Q1 and Q2 are emitter followers, providing high input
resistance.
• Q3 and Q4 serve as differential amplifier, providing high
CMRR.
• Q5, Q6, Q7 and R1, R2, R3 provide the load (active
load) for the differential amplifier.
This loading circuit also provides a single-ended output
for the next stage.
• Q3 and Q4 also serve as DC level shifter.
Q3 and Q4 are pnp transistors, hence protect the input
stage Q1 and Q2 against emitter-base junction
breakdown, since the emitter base junction of npn may
break down at about 7V of reverse bias. Usually, pnp
has emitter-base breakdown around 50 V!!
Second stage (gain stage) in 741
Second stage (gain stage) in 741
• Q16 is an emitter follower, providing high input
resistance for the stage so as to minimize its loading
effect.
• Q17 is a common-emitter amplifier, loaded by Q13B.
• Q13B is a current mirror and serves as active load.
• The gain is
GAINsecond stage ≈ gm,17 ro,13B
• Note the capacitor Cc. This is called internal
compensation cap and is used for maintaining stability in
when the op-amp is used in a feedback configuration.
• We’ll revisit this issue later when we study feedback and
stability.
Output stage in 741
Output stage in 741
• Provides low output resistance.
• Class AB output stage provided by Q14 and Q20
as complementary push-pull.
• Q19 and Q18 maintain a VBE drop to smooth
out the crossover distortion, as in the class AB
amplifier.
Op‐Amp Parameters
Op‐Amp Parameters
• Input Offset Voltage, VOS is the difference in the voltage
between the inputs that is necessary to make Vout(error)=0.
– Vout(error) is caused by a slight mismatch of VBE1 and VBE2.
– Typical values of VOS are ≤ 2 mV.
• Input Offset Voltage Drift specifies how VOS changes with
temperature. Typically a few μV/oC.
• Input Bias Current is the dc current required by the
inputs of the amplifier to properly operate the first stage.
By definition, it is the average of the two input bias
currents, IBIAS = (I1 + I2)/2.
Op‐Amp Parameters
• Differential Input Impedance is the total resistance
between the inverting and non‐inverting inputs.
• Common‐mode Input Impedance is the resistance
between each input and ground.
• Input Offset Current is the difference of the input bias
currents: IOS = |I1 ‐ I2|, and VOS = IOSRin(CM). Typically in
nA range.
• Output Impedance is the resistance viewed from the
output terminals.
• Open‐Loop Voltage Gain, Ad or Aol, is the gain of the
op‐amp without any external feedback connections.
Op‐Amp Parameters
• Common‐mode Rejection Ratio for op‐amp is defined as
CMRR = Adm/Acm or 20log (Adm/Acm) in dB.
• Slew Rate is the maximum rate of change of the output
voltage in response to a step input voltage.
Slew rate = Δvout/Δt, where Δvout = +Vmax ‐ (‐Vmax).
The units for slew rate is V/μs.
• Frequency Response is the change in amplifier gain
versus frequency and is limited by internal junction
• capacitances.
• Other features include short circuit protection, no latchup
and input offset nulling.
DC Offset: Input offset current
Op. Amp. Input offset current IIO is actually is not zero but very small and
equal to (IIB)+ - (IIB)- which are flowing at corresponding input terminals
Due to this Op. Amp. Input offset currents depending upon circuit
connections, there is an output voltage V o even if the two inputs are grounded.
Rf Rf
-
R1 - (IIB) R1 R1
(IIB)
RC vo RC vo
(IIB)+
Thevenin’s +
(IIB) RC
equivalent
R
- if R1 = RC , and if 1 f then
R1
R
Norton's Thevenin’s Vo = f
(
R1 IIB
+ −
− IIB )
= Rf IIO
R1
equivalent equivalent +
where input offset current IIO = IIB −
− IIB ( )
DC Offset: Input offset voltage
Op. Amp. Input offset voltage Vi is actually is not zero but very small and
equal to VIO which appears across the input terminals
Due to both Op. Amp. Input offset voltage V IO and Op. Amp. Input offset
current IIO appearing at the input terminals of the Op. Amp, V o will appears as
follows even if external input voltage sources are grounded (equals zero)
R
Vo = Rf IIO ifVIO = 0 and Vo = 1 + f VIO if IIO = 0
R1
R
ifVIO 0 IIO from Superposit ion theorem , Vo = Rf IIO + 1 + f VIO
R1
DC Offset: Average bias current
Op. Amp. Average bias current IIB is sometimes given in IC data. It is the
average of (IIB)+ and (IIB)-
Rf
R1 -
(IIB)
RC (IIB)+ vo
(IIB)+ and (IIB)- can be found from IIB and IIO as follows:
+ −
IIB + IIB
IIB =
2
( +
and sin ce IIO = IIB −
− IIB)
IIB +
IIO IIB
=
+ −
+ IIB
+
( +
IIB −
− IIB)=
2IIB+
+
= IIB
2 2 2 2
IIB − =
+
IIO IIB −
+ IIB
−
(
+
IIB −
− IIB
=
) −
2IIB −
= IIB
2 2 2 2
Example: (a) Calculate the Vo of the following Op. Amp. Amplifier when V in = 0
The Op. Amp data is Input offset voltage VIO=4mV, Input offset current IIO=150nA.
(b) find (IIB)+ and (IIB)- if Average offset current is given by IIB=900nA.
R1 5k Rf 500k
(Vin)
RC 5k vo
R
( a) Vo = Rf IIO ifVIO = 0 and Vo = 1 + f VIO if IIO = 0
R1
ifVIO 0 IIO from Superposit ion theorem ,
R 500k
Vo = Rf IIO + 1 + f VIO = 500k 150nA + 1 + 4mV = 479mV
R1 5k
I 150nA
+
(b) IIB = IIB + IO = 900nA + = 975nA
2 2
I 150nA
−
IIB = IIB − IO = 900nA − = 825nA
2 2
Input Offset Voltage Compensation
Frequency Parameters
Gain
Av Voltage follower
Gain-BW product = constant
20
BW
10
Vo=Vin
1 Vin
f
@fmax Gain=AV=1
50kHz 100kHz 1000kHz
ft
fmax=BW=ft
Frequency Parameters
Frequency Parameters
• Op‐Amp Bandwidth
– Open‐loop bandwidth: BW ol = f c(ol)
– Closed‐loop critical frequency:
V
Vin
Gain=AV=1
t
dv o
sin = (when very small ) vo (t) = K sin (2ft ) = K (2ft ) = 2fK(V / s)
dt
to have no distortion at the output , rate of change must beless than Slew Rate
SR
2fK(V / s) SR K SR = 2f
K
Example: Determine the maximum frequency that can be used for the following
circuit, Op. Amp. Slew Rate is 0.5V/s. If the input frequency is 300krad, find
output will be distorted or not.
10k 240k
(Vinp=0.02V, vo
=300x103)
Vo R 240k
Av = =− f =− Vo p
= 24 Vin p = 24 0.02V = 0.48V = K
Vin Ri 10k
SR 0.5V / s 6 1.1 10 6
1.1 10 rad / s max f = = = 175kHz
K 0.48V 2 2
3 in 300 10 3
in = 300 10 fin = = = 47.75kHz 175kHz = fmax
2 2
output wave will not be distorted
Phase Compensation
Compensating Circuits
• Compensation is used to either eliminate openloop
roll‐off rates greater than ‐20 dB/dec or extend the ‐20
dB/dec rate to a lower gain.
INVERTING AMPLIFIER
chỉ áp dụng cho mạch có phản hồi âm
v+ = v− = 0
Vi − v− Vi v −V −V
Ia = = and IF = − o = o
Ra Ra RF RF
Vi − Vo V R
Ii = 0 Ia = IF or = AV = O = − F <0
Ra RF Vi Ra
Notice: The closed-loop gain Vo/Vin is dependent upon
the ratio of two resistors, and is independent of the open-
NON-INVERTING AMPLIFIER loop gain. This is caused by the use of feedback output
voltage to subtract from the input voltage.
Vo Ra
v+ = v− = = Vi
Ra + RF
Vo Ra + RF R
= =1+ F
Vi Ra Ra
v+ v+
vi + vi +
vo R1 v-
vo
v-
−
R2 −
Ra Rf Ra Rf
Noninverting amplifier Noninverting input with voltage divider
Rf Rf R2
vo = (1 + )vi vo = (1 + )( )vi
Ra Ra R1 + R2
v+ v+
vi + vi +
vo R1 v-
vo
v- R2 −
−
Rf Rf
Voltage follower Less than unity gain
R2
vo = vi
vo = vi R1 + R2
DIFFERENTIAL AMPLIFIER
R4 V −v
v+ = v− = Vin1 and I1 = Ia = in2 − and
R3 + R4 R1
v− − Vout V − v v −V
I2 = IF = But Ii = 0 I1 = I2 in2 − = − out
R2 R1 R2
substituti ng for v− we have
R2 R4 R2
Vout = Vin1 1 + − Vin2
R1 R3 + R4 R1
INVERTING/NONINVERTING SUMMING AMPLIFIER
1) Kirchhoff node equation at V + : V + = 0;
Ra R2 R1
v+ = v− = Vo but v+ = V1 + V2 V −v V
Ra + RF R1 + R2 R1 + R2 2) Ia = a − = a
Ra Ra
V1 RR V RR Ra Vb − v− Vb V −v V
or v+ = 1 2 + 2 1 2 = Vo
and Ib = = and Ic = c − = c
R1 R1 + R2 R2 R1 + R2 R +
a FR Rb Rb Rc Rc
R1R2 RF V1 V2 3) Kirchhoff node equation at V − :
Vo = 1 + +
R1 + R2 Ra R1 R2 − Vo V V V
= IF = Ia + Ib + Ic = a + b + c
RF Ra Rb Rc
4) Setting V + = V – yields
RF
V V V
VO = −RF a + b + c
Ra Ra Rb Rc
vo
c V
v- Generalize : Vo = − R f
j
R1 v+ j =a R j
V1
R2 RF IF
V2 Ra Ia
Va
Rb Ib
NON-INVERTING SUMMER Vb
Rc Ic v- vo
Vc v+
INVERTING SUMMER
DIFFERENTIAL AMPLIFIER
DIFFERENTIAL AMPLIFIER
DIFFERENTIAL AMPLIFIER
DIFFERENTIAL AMPLIFIER
DIFFERENTIAL AMPLIFIER
DIFFERENTIAL AMPLIFIER
OP-AMP DIFFERENTIATOR & INTEGRATOR
Now replace resistors Ra and Rf by complex Zf
components Za and Zf, respectively,
Za
therefore −
−Zf
Vo = Vin V
o
Za V ~ in +
Supposing
(i) The feedback component is a capacitor C,
1
i.e., Z f =
jC
(ii) The input component is a resistor R, Za = R C
Therefore, the closed-loop gain (Vo/Vin) become: R
−1 −
vo (t ) =
RC vi (t )dt
V o
where
V ~ in +
vi (t ) = Vi e jt
C ic
v + = v − = 0 vR = X
R iR vc X 1 1 X
X
v- R
= IR = ic but vc = 0 − Y =
C
ic dt =
C R
dt
Y 1
v+ Y = −
CR
X dt Y = integral of X
Op-Amp Integrator
Example:
C 0.01F
(a) Determine the rate of change +5V R
of the output voltage. 0 −
100s
V
i
10 k
V
o
(b) Draw the output waveform.
+
Vo(max)=10 V
Solution:
(a) Rate of change of the output voltage
Vo V 5V
=− i = +5V
t RC (10 k)(0.01 F)
= −50 mV/ s
0 Vi
0
(b) In 100 s, the voltage decrease -5V
R
C
0 −
to t1 t2 V
i V
o 0
+
to t1 t2
dV
vo = − i RC
dt
Problem with ideal differentiator
Ideal Real
1
Z in = Rin +
j Cin
Vout Zf Rf j R f Cin
=− =− =−
Vin Z in Rin +
1 j RinCin + 1
j Cin
Low Frequencies High Frequencies
Vout Vout Rf
= − j R f Cin =−
Vin Vin Rin
ideal differentiator inverting amplifier
Comparison of ideal and non-ideal
No DC offset.
Works OK.
Problem with ideal integrator (2)
With DC offset.
Saturates immediately.
What is the integration of a constant?
Miller (non-ideal) Integrator
Vout Zf Rf Vout Zf −1
=− =− =− =
Vin Z in Rin Vin Z in jRinCf
inverting amplifier ideal integrator
Vout Rf Vout 1
=− =−
Vin Rin Vin j RinC f
inverting amplifier ideal integrator
Comparison of ideal and non-ideal
With DC offset.
Still integrates fine.
Why use a Miller integrator?
• Would the ideal integrator work on a signal with no
DC offset?
• Is there such a thing as a perfect signal in real life?
– noise will always be present
– ideal integrator will integrate the noise
• Therefore, we use the Miller integrator for real
circuits.
• Miller integrators work as integrators at > c where
c=1/RfCf
Comparison
Differentiation Integration
original signal v(t)=Asin(t) v(t)=Asin(t)
The op amp circuit will invert the signal and multiply the
mathematical amplitude by RC (differentiator) or 1/RC (integrator)
Examples
Find Vo of the following Op. Amp. circuits
RF
IR1 = ii = 0 v+ = v− = V1
Ra Vo Ra
But V1 =
v- vo Ra + RF
R1 v+
Vo R + RF R
V1
RL = a Vo = Va 1 + F
Va Ra Ra
R1
v- vo There is no current in both resistors
v+
V1 V1 = v+ = v− = Vo
Ra RF
Vo Ra V R2
v− = = v+ = 1
Ra + RF R1 + R2
R1
v- vo R2 R
v+ Vo = V1 1 + F
V1 R1 + R2 Ra
R2
Find Vo of the followings Op. Amp. circuits
RF
There is no current in RF
v- vo V1 R2
R1 v− = Vo = v+ =
V1
v+ R1 + R2
R2 R2
Vo = V1
R1 + R2
RF
There is no current in RF
v- vo V R2
R1 v+ v − = Vo = v + = 1
V1 R1 + R2
R2 IL RL
R2 V V R2
Vo = V1 IL = o = 1
R1 + R2 RL RL R1 + R2
Input resistance of Op. Amp. amplifiers
Inverting amplifiers Ri
RF
Ra There is no current in R1
Va
Rb v- vo v− = v+ = 0
Vb v+ Then Rin (atVa ) = Ra
R1 Also Rin (atVb ) = Rb
v − v − vb − v − v −v v − v− 0 − v−
KCL at v − is a + + ....... m − + o + =0
Ra Rb Rm RF RY
v v v v
(v− ) 1 + 1 + ......... + 1 + 1 + 1 = a + b + ....... m + o
Ra Rb Rm RF RY Ra Rb Rm RF
1 1 1 1 v a vb vm vo
(v− ) + = (v )
− + = + + ....... +
Ra // .... // RY RF RA RF Ra Rb Rm RF
v a vb vm vo RARF v a vb vm RARF v R
v− = + + ....... + = + + ....... + o A
Ra Rb Rm RF RA + RF Ra Rb Rm RA + RF RA + RF
Design of Multiple-Input Op-Amp
2. Find V+ from the input voltages V1---Vn
R1
V1 V+
R2
V2 Rx
Vn
Rn
v −v v −v v −v v
KCL at v + is + 1 + + 2 + ....... + n + + = 0
R1 R2 Rn RX
1 1 1 1 v1 v2 vn
v + + + ......... + + = + + .......
R1 R2 Rn RX R1 R2 Rn
1 v1 v2 vn
v + =
+ + .......
R1 // R2 // .......... ... Rn // RX R1 R2 Rn
v v v
v + = 1 + 2 + ....... n (R1 // R2 // .... Rn // RX )
R1 R2 Rn
Design of Multiple-Input Op-Amp
3. Equate V+ and V- and find the Vo
v+ = v−
v1 v2 vn v v v R R v R
+ + ....... (R1 // R2 // .... Rn // RX ) = a + b + ....... m A F + o A
R Rn R Rm RA + RF RA + RF
1 R2 a Rb
v1 vn v a vm RARF v R
... (R1 // .... Rn // RX ) = ... + o A
R Rn R Rm RA + RF RA + RF
1 a
RF v1 vn v a vm RARF
vo = 1 +
...
(R1 // .... Rn // RX ) −
...
RA R1 Rn Ra Rm RA + RF
v1 vn R v a vm RARF RA + RF
= ... 1 + F (R1 // .... Rn // RX ) − ...
RA
R1 Rn RA Ra Rm RA + RF
v1 vn v a vm
= R
...
R
( )
Req −
R ... R (RF )
1 n a m
R
Where Req = 1 + F (R1 // .... Rn // RX )
RA
Design of Multiple-Input Op-Amp
4. Design of the multiple coefficients
Since dc path resis tan ces at both "+" and "−" inputs are equal
Then (R1 // .... Rn // RX ) = (Ra // .... Rm // RY // RF )
1
(X1 + − − +Xn ) + 1 = 1 (Ya + − − + Ym ) + 1 + 1
RF Rx RF Ry RF
and taking X = (X1 + − − +Xn ) Y = (Ya + − − + Ym )
1 RF RF
(X) + 1 = 1 (1 + Y) + 1 or Xlying all by RF , + (X ) = + (1 + Y )
RF Rx RF Ry Rx Ry
R R
Then (X − Y − 1) = F − F = Z (Assume)
Ry Rx
Design of Multiple-Input Op-Amp
5. Design table
R R
Now Z = X − Y − 1, or Z = F − F
Ry Rx
R R
Case I if Rx = , F = 0 then Z 0 substitute F = 0 in the above equation and
Rx Rx
R R
Case II if Ry = , F = 0 then Z 0 substitute F = 0 in the above equation and
Ry Ry
R RF
Case III if Rx = = Ry , then Z = 0 substitute F = = 0 in the above equation
Rx Ry
Summing amplifier design table below gives the summary of the substituted equations
Ra
RF
Va
Ri Rj Rb
Case Z RY RX Vb
(n-inv) (inv) vo
Rm Ry
I Z > 0 RF / Z RF / Xi RF / Yj Vm
II Z<0 - RF / Z RF / Xi RF / Yj R1
V1
III Z=0 RF / Xi RF / Yj V2
R2
Rx
Rn
Vn
Summary of Design Equations
Multiple-Input Amplifier
According to V o equation, multiple input op. amp. circuit is drawn first with positive
term resistors plus standard RX at “n-inv” terminal then with negative term
resistors plus standard RY at “inv” terminal. Add standard RF RF
1. Assume given VO = -10V2 + 5V1 R2
V2
2. Draw circuit with one resistor (R1) for +5V1 and Ry vo
one standard RX at “n-inv” terminal.
R1
3. Continue with one resistor (R2) for –10V2 and one V1
standard RY at “inv” terminal. Rx
4. Add feedback resistor RF.
R R R
7. Find resistor ratio As Z 0 From table, RY = , RX = − F , R1 = F , R2 = F
−6 5 10
8. Find RF from required type and value of resistance at input terminal of the op.
Amp. Assume required min 10k at Op. Amp. Input terminal.
R R R
Now find which resistor is min . RY = , RX = − F , R1 = F , R2 = F
−6 5 10
R R
As R2 = F is min . of all ratios, then 10k = R2 = F Find RF = 100k
10 10
V1
20k=R1 16.67k=Rx
Design Example-1
H.W. 2.1 (LECTURE)
Design an op. Amp. Circuit to implement the equation V o=4V1+V2-8Va-6Vb .
Design with lowest resistance at any input terminal of the op. Amp = 10k
Ri Rj
Case Z RY RX
(n-inv) (inv)
II Z<0 - RF / Z RF / X i RF / Yj
RF R R R R
Z0 From table, RY = , RX = − , R1 = F , R2 = F , Ra = F , Rb = F
− 10 4 1 8 6
RF
Lowest resistance is RX = − = 10k RF = 10 10k = 100kΩ
− 10
RF=100k
Ra=12.5k Va
100k 100k
RX = − = 10k, R1 = = 25k, Rb=16.67k Vb
− 10 4
VO
100k 100k RY =
R2 = = 100k,& Ra = = 12.5k,
1 8 R1=25k V1
100k
Rb = = 16.67k R2=100k V2
6
RX=10k
Design Example-2 (conventional method)
Design an Op. Amp. Circuit with a minimum resistance 10k and the output
VO = -100VX +50VY.. Design with Superposition Method.
The circuit is differential Op. Amp. Circuit as RF
Ra
the output contain one positive term and one VX
negative term and derive V o equation. vo
R R1
When VY = 0, Vo = − F VX & VY
Ra
R2
R R2
When VX = 0, Vo = 1 + F V
Ra R1 + R2 Y 1000k
FromSuperposition theorem, if VX VY 0 then 10k
VX
R R2 R vo
Vo = 1 + F VY − F VX = 50VY − 100VX (given)
Ra R1 + R2 Ra 10k
VY
R R2 1 10k
F = 100 and = and take R1 = R2 = 10k
Ra R1 + R2 2
As any R 10k, Ra 10k Take Ra = 10k
1000k
RF = 100Ra = 1000k 10k
VX
To make equal dc resis tan ce at both + & − inputsof op. amp, vo
RX=15k
Design Example-5
EXAMPLE 2.5 (PAGE 51-TEXT)
Design an op. Amp. Circuit to implement the equation Vo=4V1+V2-8Va-6Vb .
Design with highest resistance of 200k at any input terminal except feedback resistor R F
R R R R R
Z 0 From table, RY = , RX = − F , R1 = F , R2 = F , Ra = F , Rb = F
− 10 4 1 8 6
R
Highest resistance is R2 = F = 200k RF = 200kΩ
1
RF=200k
Ra=25k Va
200k 200k
RX = − = 20k, R1 = = 50k, Vb
− 10 4 Rb=33.33k
200k 200k VO
R2 = = 200k,& Ra = = 25k, RRyY= =
1 8
200k R1=50k V1
Rb = = 33.33k
6 R2=200k V2
RX=20k
Multiple-Stage Gain
Multiple-Stage Gain
Rf Rf Rf R R
Q1 = 1 + f Vi and Q2 = − f Q1
R1 R2 R3 R1 R2
R R R
and Vo = − f Q2 = − f − f Q1
Q1 Q2 Vo R3 R3 R2
R R R
Vi = − f − f 1 + f Vi
R3 R2 R1
50k 500k
Vo1
500k
Vo1 = − Vi = −10Vi
25k 500k 50k
500k
Vo2 Vo2 = − Vi = −20Vi
25k
500k
Vo3 = − Vi = −50Vi
10k
10k 500k
Vo3
Vi
Voltage Subtraction
R1 Rf Rf
R3
V1 Vo1 Vo2
R2
V2
R R
Vo2 = − f Vo1 + − f V2
R3 R2
R
But Vo1 = − f V1
R1
R R R
Vo2 = − f − f V1 + − f V2
R3 R1 R2
R R R
= f f V1 − f V2
R3 R1 R2
if Rf = R1 = R2 = R3 Vo2 = V1 − V2
Subtraction
Op-Amp Instrumentation circuits
o Instrumentation Circuits
o Active Filters
Instrumentation Circuits
DC Millivoltmeter
100k
V1(DC) Vo
R1
0 - 1mA
M
meter
Rf
Io
100k R 10
S
Vo (DC) R
Neglecting meter int ernal resis tan ce, =− f
V1 (DC) R1
Vo (DC) R f 1
Neglecting IRf IRS Io = IRS = = − V1 (DC)
RS R1 RS
Io R 1 100k 1 1mA
= f = =
V1 (DC) R1 RS 100k 10 10mV (DC)
Rf Coupling
Capacitor
100k Io 1F
RS 10
Vo
Vi is AC then Vo is AC
D1 D2 conduct through meter and RS in full − wave DC
Vo (AC) R
Neglecting meter int ernal resis tan ce, =− f
V1 (AC) R1
Vo (AC) R f 1
Neglecting IRf IRS Io = IRS = = − V1 (AC)
RS R1 RS
Io R 1 100k 1 1mA
= f = =
V1 (AC) R1 RS 100k 10 10mV (AC)
600mA
Io 100k
5V
20mA
LED driver V1(input)
Io
LED
(5V-2V)/20mA=150
Instrumentation Amplifier
V2 VX R
R R
V2
RP Vo
R
V1 R
R
V1 VY
V2 VX 5k
5k 5k
V2
0.5k Vo
5k
V1 5k
5k
V1 VY
R1 Rf
Voltage source Non-inverting
Vo R
Vo = 1 + f V1 = kV1
V1 RC Ii=0 R1
Control Voltage
No drop in RC
Control Voltage
Controlled Sources
Voltage–Controlled Current Source
Current
source V
I L = I o = I1 = 1 = kV1 RL
R1
Control Voltage
Current source for grounded load
Current source for grounded load
(voltage controllable)
Current–Controlled Current Source
I2 Io
R2 I1 R
L
R1 I1R1 = I2R2 (v + = v − = 0 )
I R R
Io = I1 + I2 = I1 + 1 1 = 1 + 1 I1 = kI1
I1 R2 R2
I1 RL I1
I1 Vo
Voltage source
+ 2k -
10mA
vo
i
Negative +
Resistance v R
-
voRA R
v+ = v− = = v vo = 1 + F v
RA + RF RA
v − vo v R v v R
i= = − 1 + F = 1 − 1 − F
R R RA R R RA
v RR
= − A
i RF
RF
vR R
v + = v − = o A = v vo = 1 + F v
RA + RF RA RA
v − vo v R v v R
i= = − 1 + F = 1 − 1 − F vo
R R RA R R RA i
v RR +
= − A v R
i RF -
v RR
= − A = −1k, But dc path at non − inv input = R = 10k
i RF
R − 1k
A = = 0.1
RF − 10k
RF RA RA RA
dc path at inv. input RF // RA = = 10k = =
RF + RA RA 1 + 0.1
1+ RF
R
RA = 1.1 10k = 11k, RF = A = 110k
0.1
Sign Changer
R
R
vi
+ vO
- R1
R1
v
vO
vi
R1
R2
RL IL
V+ − Vi V+ − Vo V − V V− − Vo
+ + IL = 0 = − +
R1 R2 R1 R2
V+ − Vi V −V
+ IL = −
R1 R1
V− − V − (V+ − Vi ) V1 − V
IL = =
R1 R1
V −V + 1mV + 1mV
IL = 1 +1A = R1 = = 1k
R1 R1 + 1A
We can take RL = R2 = R1 = 1k
Voltage-Current Converter
R
IL V1
R
V1 R1
V+ = V− = V1
but ILR1 = V− (no drop at R)
V− = V1 = ILR1
V1
IL =
R1
V+ = V− = V1 5V
20mA
but ILR1 = V− (no drop at R) R
V− = V1 = ILR1 IL
5V R1
V1 dc motor
IL =
R1
V 5V
IL = 1 = 20mA R1 = = 250
R1 20mA
we can take R = R1 = 250,
(Note input current int o the circuit is nearly zero from 5V digital source)
Summary of Design Equations
Special Application Circuits
d3x d2x dx Q3 = −x
Q= Q1 = − Q2 = C ic
dt3 2
dt dt
R iR vc
R C C X
v-
R C Y
R v+
RC=1
1
RC=1 RC=1
Y=− X dt Y = integral of X
CR
R1 R
R R d2 x R
dx R
R2 Y = − ( − x ) − −
− − Z
Y R1 R2 dt dt2 R
R3
4
R3
R R dx R d2 x R
R4 = (x ) − + − 2 − (Z )
Z R1 R2 dt R3 dt R4
(a) Draw Integrators with RC=1 where the first input is the highest order in given
differential equation. Note the output of each Integrator.
d3x d2x dx
Q= Q1 = − Q2 = V1 = −x
dt3 dt2 dt
R C C
R C
R
RC=1
RC=1 RC=1
(b) Rearrange the given equation using available output of each Integrator.
d3x dx d2x
= 4x + − 8 2 − 12
dt3 dt dt Here the constant “12” is taken as a (+2V
dx d2x battery) with a coefficient of 6.
= −4(-x) + + 8 - 2 − 6(+ 2)
dt dt
Available outputs from the Integrators
(c) Find Z from the modified equation and design the Multiple-Input Op. Amp. to
get Vo same value as the highest order and draw the designed circuit:
d3x dx d2x
- − 6(+ 2) X = 9, Y = 10, Z = 9 − 10 − 1 = − 2
Assume Vo = = −4(-x) + + 8
dt3 dt 2
dt
Ri Rj
Case Z RY RX
(n-inv) (inv)
II Z<0 - RF / Z RF / Xi RF / Yj
R R R R R
Z0 From table, RY = , RX = − F =, R1 = F , R2 = F , Ra = F , Rb = F
−2 1 8 4 6
R
Lowest resistance is R2 = F = 10k, RF = 80k
8
RF=80k
R 80k
R1 = F = 80k, R2 = = 10k, 20k
1 8 -x
80k 80k 2V VO
Ra = = 20k, Rb = = 13.33k
4 6 13.33k
dx/dt 80k
-(d x/dt2)
2 10k dx d2 x
Vo = 4x + −8 − 12
Rx 40k dt dt2
(d) Connect the Multiple-Input Op. Amp. Inputs with the outputs of the Integrators
showing the output equals to the highest order of the given equation and draw the
designed circuit:
d3x d2x dx
Q= Q1 = − Q2 = V1 = −x
dt3 dt2 dt
R C C
R C
R
Input signal
RC=1
RC=1 RC=1
RF=80k
20k
-x
2V VO
13.33k
dx/dt
80k Output signal
10k
dx d2x d3x
-(d2x/dt2) Rx 40k Vo = 4x + − 8 2 − 12 = 3
dt dt dt
(e) form a loop connecting the output V o back to the first input (highest
order of the equation) of the Integrators and get the Analog Computation
Circuit that can operate the given differential equation
d3x d2x dx
Q= Q1 = − Q2 = V1 = −x
dt3 dt2 dt
R C C
R C
R
Input signal
RC=1
RC=1 RC=1 Designed Analog
Computation
Circuit
RF=80k
20k
-x
d3 x dx d2 x
Vo = = 4x + −8 − 12
2V VO 3 dt 2
dt dt
13.33k
dx/dt
80k Output signal d3 x d2 x dx
or +8 − − 4x = −12
10k dt3 dt2 dt
-(d2x/dt2) Rx 40k
• Initial Condition of the equation
d3x d2x dx
Q= Q1 = − 2 Q2 = Q3 = −x
3 dt
dt dt
5V 3V
(b) Rearrange the given equation using available output of each Integrator.
(c) Find Z from the modified equation and design the Multiple-Input Op. Amp. to
get Vo same value as the highest order and draw the designed circuit:
(d) Connect the Multiple-Input Op. Amp. Inputs with the outputs of the Integrators
showing the output equals to the highest order of the given equation and draw the
designed circuit:
(e) form a loop connecting the output V o back to the first input (highest
order of the equation) of the Integrators and get the Analog Computation
Circuit that can operate the given differential equation
(f) The initial condition of the equation is electronically generated by
a voltage source connected at the output of the given term.
Comparators
By Schmitt Trigger Design
Comparator IC
Comparator IC = Two inputs of the IC are compared to each other as below:
+VCC
V+
• When “V-” is more positive than “V+” Output Vo will go low to –VCC
( = “V+” is more negative than “V-” ) -VCC
0
VO=+10V +0.1 +0.1 VO=+10V
VO=-10V
0 +0.5
+0.1
+10
Input
+1 +10
VO
-1 Output is digital either “+10” or “-10”
-10
Reference -10
• When “V-” is more positive than “0” Output V o will go low to -VCC
• When “V-” is more negative than “0” Output Vo will go high to +V CC
Zero-crossing Comparator can be used for non-sinusoidal waveforms.
It can be used to detect whether the signal has overshot a given level
and what duration it has overshot, etc.
+ VCC Vin
+
+ VCC
R 0 t
2 7
6 -
VO
R 3
4
+ VO
+ VCC
0 t
- VCC - VCC - VCC
Click to add
- text
Vin
Zero-crossing Detector (Non-inverting)
Vin Vin
+
+ VCC + VCC
0 t
2 7
R 6 -
VO
3
4
+ VO
+ VCC
R
0 t
- VCC - VCC
- VCC
-
Zero-crossing Detector (Inverting)
When Reference is “Non-0V”
(Reference-crossing Comparator or Nonzero‐Level Detector)
+5
+10
+5 0
R1 -4-5
VO
+10
-4 Output is
-5 R2 digital
-10
-10
• When “V-” is more positive than Vref “-4” Output Vo will go low to -VCC
• When “V-” is more negative than Vref “-4” Output Vo will go high to +VCC
Reference-crossing Comparator can be used for non-sinusoidal waveforms.
It can be used to detect whether the signal has overshot a given level
and what duration it has overshot, etc.
+ VCC Vin
+
+ VCC Vref
R 0 t
Vref 2 7
6 -
VO
2R 3
4
+ VO
+ VCC
0 t
- VCC - VCC
Vin
-
V(ref)-crossing Detector (Non-inverting)
Comparator With Hysteresis
(Schmitt trigger)
- Hysteresis is achieved by positive
feedback and makes the
comparator on the input less
sensitive to noise input.
R1=5k R2=10k
ein=±5V
VREF=3V
UTL=3.67V
Hyterisis=3.67-0.33=3.34V
10k 5k
LTL=0.33V LTL = 3+ ( −5) = 0.33V
5k + 10k 5k + 10k
10k 5k
HTL = 3+ ( +5) = 3.67V
5k + 10k 5k + 10k
Hyterisis = 3.67 − 0.33 = 3.34V
VHI=+5V
t
VLO=-5V
Example:
An inverting Schmitt trigger has a sine wave input e in of amplitude
5V. If output level is to be V HI=+5V and VLO=-5V respectively, design
R1 and feedback resistor R2 so as to eliminate random switching by a
noise level between a Hysterisis from (-0.5) V to +1V. Take
VREF=0.6V and R1 + R2=100k.
ein
ein= ±5V vHI =+5V
vLO =-5V
Noise
R1 R2
+5V VREF=0.6V R2 R1
LTL = 0.6 + ( −5) = −0.5
R1 + R2 R1 + R2
R2 R1
HTL = 0.6 + ( +5) = +1
vo R1 + R2 R1 + R2
R2
HTL + LTL = 1.2 = 0.5 R2 = 41.67k
100k
R2 R
-5V HTL − LTL = 10 = 1.5 2 10 = 1.5
R1 + R2 100k
R2 = 0.15 100k = 15k
Window Comparator
R0
Dk OR
R-m+1 RF
V-m+1
R-m
V-m
VOUT
VIN
Assume Vn > Vn-1 >...V1 > 0 > V-1 >… > V-m
^
^ Rs
Vs Ds
^
Rn OR
^ Vn Dn
V s-1 Ds-1 Rn-1
V n-1 Dn-1
^
R0
R0
^
^
R-r+1 RF RX
^
V -r+1 D-r+1
^
^ R-r
V -r D-r R-m+1 RF
V -m+1 D-m+1
V IN VOUT1 R-m
^ V -m
(1-θ)R D-m VOUT
^
θR V IN
(1-θ)R
θR
f f
0 fH
Vin Vin Vo Vo
1V High-pass filter 1V
f f
0 fL
Vin Vin Vo Vo
1V Band-pass filter 1V
f f
0 fL fH
Vin Vin Vo Vo
1V Band-reject
1V
filter
f f
0 fH fL
First order Low-pass Filter Rf
RG
vo
At low frequencies C 1 opens v+
V1(input)
and thus V+ = V1 passing the R1
low frequencies C1
R= Op. Amp. then amplifies
V+ to V = 1 + Rf V
o RG
+
V
V+ falls 20dB/decade
(= 6dB/octave) due to R 1C1
R Vi = V+
Vo = 1 + f V+
RG
f
1 Higher cut-off frequency
fH = fH
2R1 C1
Second order Low-pass Filter
Rf
When R1C1 = R2C2= RC
V
RG V+ falls 40dB/decade (=
12dB/octave) due to
both R 1C1 = R 2C2= RC
vo
V1(input) v+
R Vi = V+
R1 R2 Vo = 1 + f V+
RG
C1 C2 f
R= 1
fH = fH Higher cut-off frequency
2RC
Op. Amp. then amplifies
V+ to V = 1 + Rf V
o RG
+
When R1C1 and R2C2 are different
V
V+ falls 20dB/decade (=
6dB/octave) due to R 1C1
after fH1
V+ falls 40dB/decade (=
R Vi = V+ 12dB/octave) due to both
Vo = 1 + f V+
RG R 1C1 = R 2C2 after fH2
f
1 1
fH1 =
2R1 C1
fH1 fH2 fH2 =
2R2 C2
First order High-pass Filter Rf
RG
vo
v+
At high frequencies C 1 short V1(input)
and thus V+ = V1 passing the
C1
high frequencies R1
R=
Op. Amp. then amplifies
V+ falls 20dB/decade V+ to V = 1 + Rf V
o RG
+
(= 6dB/octave) due to R 1C1
V
R Vi = V+
Vo = 1 + f V+
RG
f
1 Lower cut-off frequency
fL = fL
2R1 C1
Second order High-pass Filter When R1C1 = R2C2= RC
Rf V+ falls 40dB/decade (=
V 12dB/octave) due to
RG both R 1C1 = R 2C2= RC
vo
V1(input) v+
C1 C2 R
Vo = 1 + f V+
Vi = V+
RG
R1 R2
R= f
fL =
1 fL Lower cut-off frequency
Op. Amp. then amplifies 2RC
V+ to V = 1 + Rf V
o RG
+
V+ falls 20dB/decade (=
6dB/octave) due to R 1C1
after fL1
R Vi = V+ V+ falls 40dB/decade (=
Vo = 1 + f V+ 12dB/octave) due to both
RG
R 1C1 = R 2C2 after fL2
f
fL2 =
1 fL fL fL1 =
1
2R2 C2 2 1 2R1 C1
Band-pass Filter When R1C1 = R2C2= RC Rf
Rf
When fH > fL RG
RG
vo
v+
v+
V1(input) v2 R 2
C1 C2
R1 R=
R=
V+ falls 20dB/decade
(= 6dB/octave) below V+ falls 20dB/decade
V fL (High-pass) due to (= 6dB/octave) above Op. Amp. then amplifies
R 1C 1 fH (Low-pass) due to V+ to V = 1 + Rf V
o
R 2C2 RG
+
R Vi = V+
Vo = 1 + f V+
RG
f
1 1
fL = fL fH fH =
2R1 C1 2R2 C2
Band-reject Filter Rf
Rf
When fL > fH RG
RG
vo
v+
v+
V1(input) v2 R 2
C1 C2
R1 R=
R=
V+ falls 20dB/decade
V (= 6dB/octave) above
fH (low-pass) due to Op. Amp. then amplifies
R 2C2 V+ to V = 1 + Rf V
o RG
+
V+ falls 20dB/decade
(= 6dB/octave) below
R Vi = V+ Vi = V+ fL (High-pass) due to
Vo = 1 + f V+ R 1C 1
RG
f
1 1
fH = fH fL fL =
2R2 C2 2R1 C1
Example: Find cutoff frequencies fL and fH if R1 = R1=10k , C1=0.1F and , C2=0.002F. Is it
a Band-pass filter or a Band-reject filter? Find the pass-band gain if RG=10k and Rf=100k
Rf
Rf
RG
RG
vo vo
v+
v+
V1(input) R2
C1 C2
R1 R=
R=
1 1
fL = = = 159.15Hz
( )(
2C1R1 2 0.1 10 6 10 10 3
−
)
1 1 V
fH = = = 7.96kHz
( )(
2C2R2 2 0.002 10 − 6 10 10 3 )
When fH > fL it is a
Band –pass filter
At pass − band, V+ = Vi
R V 100k f
Vo = 1 + f V+ o = 1 + = 11
RG Vi 10k fL=159Hz fH=7.96kHz
Example: Find cutoff frequencies fL and fH if R1 = R1=10k , C2=0.1F and , C1=0.002F. Is it
a Band-pass filter or a Band-reject filter? Find the pass-band gain if RG=10k and Rf=100k
Rf
Rf
RG
RG
vo vo
v+
v+
V1(input) R2
C1 C2
R1 R=
R=
1 1
fL = = = 7.96kHz
( )(
2C1R1 2 0.002 10 − 6 10 10 3 ) V
1 1
fH = = = 159.15Hz
( )(
2C2R2 2 0.1 10 6 10 10 3
−
)
When fH < fL it is a
Band –reject filter
At pass − band, V+ = Vi
R V 100k f
Vo = 1 + f V+ o = 1 + = 11
RG Vi 10k fH=159Hz fL=7.96kHz