Lecture 45: Op Amp Nonidealities II

Electronics I · · op amps, offset, input bias currents, slew rate

Contents

This typeset version was assembled by AI from my handwritten notes. The handwritten PDF is the original source. Video: Razavi Electronics 1, Lec 45.

Today’s lecture

  • Effect of DC offset on integrators
  • Input bias currents
  • Speed limitations
Op amp with gain A_0: V_in1 at the + input, V_in2 at the - input, V_out = A_0(V_in1 - V_in2)

Source: opamp.tex

Review of lecture 44

  • Precision rectifier
V_out versus V_in of the precision rectifier: zero for negative V_in, a line through the origin for positive V_in

Source: rprecplot.tex

Precision rectifier: V_in at the + input, the op amp output drives a diode (anode at the op amp output) to V_out, V_out is fed back to the - input and has a resistor to ground

Source: rprec.tex

  • Logarithmic amplifier
Log amplifier: V_in through R_1 into the - input, npn Q_1 with collector at the - input, base grounded and emitter at V_out, + input grounded; V_out = -V_T ln(V_in/(R_1 I_S))

Source: rlog.tex

  • Op amp nonidealities
V_out versus V_in: the ideal line through the origin and a parallel line shifted right, crossing zero at V_OS

Source: rnonplot.tex

Op amp with an offset voltage source in series with the + input, - on the input side and + on the op amp side

Source: rnonideal.tex

Effect of DC offset on integrators

Integrator with V_in = 0 (grounded) through R_1 into the - input, C_1 from the - input to V_out, V_OS from the + input to ground; the - input sits at about V_OS, so a current V_OS/R_1 flows out through R_1 and comes from V_out through C_1

Source: intos.tex

(0 initial conditions on C1C_1)

I=CdVdtI = C\frac{dV}{dt}V=1C∫I dtV = \frac{1}{C}\int I\,dtVout−VOS=1C∫VOSR1 dtV_\mathrm{out} - V_\mathrm{OS} = \frac{1}{C}\int \frac{V_\mathrm{OS}}{R_1}\,dtVout=VOS+VOSR1C1 tV_\mathrm{out} = V_\mathrm{OS} + \frac{V_\mathrm{OS}}{R_1C_1}\,t
V_out versus t: starts at V_OS, ramps up linearly and then stays flat at about the supply voltage

Source: intosplot.tex

Op amp saturates and the device is dead.

In other words, the op amp has integrated VOSV_\mathrm{OS}.

To fix the circuit:

The integrator with R_2 in parallel with C_1 in the feedback path, V_in through a resistor into the - input and V_OS from the + input to ground

Source: intfix.tex

If Vin=0V_\mathrm{in} = 0:

Vout=(1+R2R1)VOSV_\mathrm{out} = \left(1 + \frac{R_2}{R_1}\right)V_\mathrm{OS}

VOSR1\dfrac{V_\mathrm{OS}}{R_1} prefers to flow thru R2R_2, rather than thru C1C_1 at t=∞t = \infty.

Ideal integrator transfer function: =−1R1C1s= -\dfrac{1}{R_1C_1s}

New (real) integrator:

Real integrator: V_in through R_1 into the - input, C_1 in parallel with R_2 from the - input to V_out, + input grounded

Source: realint.tex

VoutVin≈−R2R2C1s+1R1=−R2R1(R2C1s+1)\frac{V_\mathrm{out}}{V_\mathrm{in}} \approx -\frac{\dfrac{R_2}{R_2C_1s + 1}}{R_1} = -\frac{R_2}{R_1(R_2C_1s + 1)}

To be a good integrator, this circuit requires that ∣R2C1s∣≫1|R_2C_1s| \gg 1

⇒\Rightarrow for sufficiently high frequencies, it’s a good integrator.

Input bias currents (happens in bipolar transistors)

Model

Model: an ideal op amp with current sources I_B1 and I_B2 pulling current from the + and - inputs to ground; next to it the bipolar input stage, base currents flowing into the two input transistors

Source: biasmodel.tex

Vin=0V_\mathrm{in} = 0 (analysis of error due to input bias currents)

Noninverting amplifier with V_in at the + input and I_B1 from the + input to ground; I_B2 from the - input to ground, R_2 from V_out to the - input, R_1 to ground; I_B2 flows through R_2 and about zero through R_1, V_out is about I_B2 R_2

Source: biaserr.tex

Quick fix to remove IB2R2I_\mathrm{B2}R_2 error (assuming IB1=IB2I_\mathrm{B1} = I_\mathrm{B2})

V_in through R_1 in parallel with R_2 into the + input, I_B1 from the + input to ground, so the + input is at -I_B1(R_1||R_2); R_2 feedback and R_1 to ground at the - input, I_B2 from the - input to ground

Source: biasfix.tex

Vin=0V_\mathrm{in} = 0:

(1)Vout=−IB1(R1∥R2)(1+R2R1)⇒effect of IB1 (IB2=0, Vin=0)\text{(1)}\quad V_\mathrm{out} = -I_\mathrm{B1}(R_1\|R_2)\left(1 + \frac{R_2}{R_1}\right) \Rightarrow \text{effect of } I_\mathrm{B1}\ \left(I_\mathrm{B2} = 0,\ V_\mathrm{in} = 0\right)(2)Vout≅IB2R2⇒effect of IB2 (IB1=0, Vin=0)\text{(2)}\quad V_\mathrm{out} \cong I_\mathrm{B2}R_2 \Rightarrow \text{effect of } I_\mathrm{B2}\ \left(I_\mathrm{B1} = 0,\ V_\mathrm{in} = 0\right)(1)+(2)=−IB1(R1∥R2)(1+R2R1)+IB2R2=0[IB1=IB2]\text{(1)} + \text{(2)} = -I_\mathrm{B1}(R_1\|R_2)\left(1 + \frac{R_2}{R_1}\right) + I_\mathrm{B2}R_2 = 0 \quad [I_\mathrm{B1} = I_\mathrm{B2}]

Input bias currents in integrator

Integrator: V_in through R_1 into the - input, C_1 from the - input to V_out (with R_2 dashed in parallel), I_B1 from the - input to ground flowing from V_out through the feedback; + input grounded with I_B2 to ground, and R_1 dotted as an alternative to the ground

Source: biasint.tex

V_out versus t: a ramp (1/C_1) I_B1 t that then saturates

Source: biasintplot.tex

Vin=0V_\mathrm{in} = 0:

Integrator with V_in = 0: a source -I_B1 R_1 in series with R_1 at the - input, C_1 in feedback, the + input through R_1 to a source -I_B2 R_1 to ground

Source: biasint0.tex

⇒\Rightarrow Inserting a resistor R1R_1 between the noninverting input of the op amp and gnd. This way, we can alleviate the effect of input bias currents, but a small mismatch can still lead the op amp into integrating this mismatch. So, R2R_2 in parallel with C1C_1 is the only viable solution.

Speed limitations

741 op amp H with the - input grounded; |H| versus f: flat at A_0 (100,000) up to the -3 dB point at f_0 of about 10 Hz, then falling; the closed-loop gain A_0/(1 + A_0 R_1/(R_1+R_2)) stays flat out to (1 + A_0 R_1/(R_1+R_2)) f_0

Source: speed.tex

1st order model:

H(z)=A01+sω0ω=2πfH(z) = \frac{A_0}{1 + \frac{s}{\omega_0}} \qquad \omega = 2\pi f

Non-inverting amplifier:

Noninverting amplifier: V_in at the + input (the op amp is the first-order model H), R_2 from V_out to the - input, R_1 from the - input to ground

Source: nonin.tex

VoutVin(s)=A01+sω01+A01+sω0×R1R1+R2\frac{V_\mathrm{out}}{V_\mathrm{in}}(s) = \frac{\dfrac{A_0}{1 + \frac{s}{\omega_0}}}{1 + \dfrac{A_0}{1 + \frac{s}{\omega_0}} \times \dfrac{R_1}{R_1 + R_2}}VoutVin(s)=A0sω0+1+A0R1R1+R2\frac{V_\mathrm{out}}{V_\mathrm{in}}(s) = \frac{A_0}{\frac{s}{\omega_0} + 1 + A_0\frac{R_1}{R_1 + R_2}}Pole freq.=−(1+A0R1R1+R2)ω0\text{Pole freq.} = -\left(1 + A_0\frac{R_1}{R_1 + R_2}\right)\omega_0

Gain traded for bandwidth.

Slew rate

Noninverting amplifier driven by a step V_in at the + input, R_2 from V_out to the - input, R_1 to ground

Source: slewckt.tex

Ideal op amp: input steps of three sizes give exponential outputs that all settle with the same shape. Realistic op amp: for larger steps the output starts along the same limited slope, the slew rate of the op amp

Source: slew.tex

Constant current charging a capacitor:

Model:

Inside the op amp: a current source charging a capacitor to ground, the capacitor voltage is V_out

Source: slewmodel.tex

A sine wave and the slew-limited output, a triangle-like wave of constant slope: op amp can't go faster than this

Source: slewsine.tex

Slew rate unit: [V/μs][\mathrm{V}/\mu\mathrm{s}]

© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/razavi-electronics-1/lec45-op-amp-nonidealities-ii/