Salta al contenuto
Note per Studenti Ideal Operational Amplifier and Basic Configurations Report

Ideal Operational Amplifier and Basic Configurations

In questa pagina 6

The component

The operational amplifier (op-amp, the triangle with the signs ++ and −-) has two inputs and one output. The name comes from its original use: performing analog operations (sums, integrals) to compute, for example, differential equations. In circuits it is often drawn without the supply terminals VCC,VEEV_{CC},V_{EE}, which are however there: the energy of the output signal and the current delivered by the output come from them (Kirchhoff's current law on the whole component requires that the current leaving the terminal vOv_O enters from a supply).

Definition (operational amplifier: output proportional to the difference of the inputs). The two inputs are the non-inverting input (vNIv_{NI}, sign ++) and the inverting input (vINVv_{INV}, sign −-): they have the same gain in modulus and opposite sign, so

vO=A (vNI−vINV)=A vD,vD=vNI−vINV.v_O=A\,(v_{NI}-v_{INV})=A\,v_D,\qquad v_D=v_{NI}-v_{INV}.

Example. With A=105A=10^{5}, vNI=1.00001 Vv_{NI}=1.00001\ \mathrm V and vINV=1 Vv_{INV}=1\ \mathrm V: vO=105⋅10 μV=1 Vv_O=10^{5}\cdot10\ \mu\mathrm V=1\ \mathrm V; with the two inputs equal, even at 1 V1\ \mathrm V, vO=0v_O=0.

The op-amp amplifies the difference of the signals: two equal inputs (even if non-zero) give zero output. Voltages are always referred to ground, the node at zero potential taken as reference (ground is not earth: the latter is a safety connection). A voltage written at a terminal (for example VCCV_{CC}) means the terminal is connected to a generator: it is not an open terminal, and current can flow into it.

Ideal model

Definition (ideal model of the operational amplifier).

  1. infinite gain, A=∞A=\infty;
  2. infinite bandwidth (it works also at zero frequency);
  3. infinite input resistance: the input currents are zero;
  4. zero output resistance: vOv_O does not depend on the delivered current.

Example. With Rin=∞R_{in}=\infty an input at 2 V2\ \mathrm V draws no current; with Rout=0R_{out}=0 an output at 3 V3\ \mathrm V stays at 3 V3\ \mathrm V on any load.

With A=∞A=\infty the circuit would seem unusable: if vD>0v_D>0 the output goes to +∞+\infty (in reality it saturates at ≈VCC\approx V_{CC}), if vD<0v_D<0 to −∞-\infty (≈VEE\approx V_{EE}), and only with vD=0v_D=0 can it take a finite value. The point is that vD=0v_D=0 is not obtained with a short circuit between the inputs (which would remove the useful connections): it is obtained as the equilibrium point of a feedback network that brings the output back to the inverting input.

Negative feedback and the virtual short

Consider the circuit with vSv_S at the ++ terminal and the divider R1,R2R_1,R_2 bringing from the output to the −- terminal a fraction of vOv_O: vNI=vS,vINV=vOR1R1+R2.v_{NI}=v_S,\qquad v_{INV}=v_O\frac{R_1}{R_1+R_2}. If vOv_O were larger than the equilibrium value, vINV>vNIv_{INV}>v_{NI}, i.e. vD<0v_D<0, and the output would tend to decrease, towards equilibrium. If it were smaller, vD>0v_D>0 and the output would rise. So the only value the system can hold is the one with vD=0v_D=0. This is negative feedback: a variation of the output produces at the input a variation that opposes it.

If the two inputs were exchanged (divider on ++ and signal on −-), the equilibrium vD=0v_D=0 would be the same but not stable: a small increase of vOv_O would increase vDv_D and make vOv_O grow further (positive feedback). The output would go into saturation (≈VCC\approx V_{CC} or VEEV_{EE}) and the circuit would no longer be a linear amplifier: this is the structure of comparators.

Principle (virtual short with negative feedback). In a circuit with ideal op-amp and negative feedback:

  • between the two inputs there is a virtual shortthe two terminals have the same voltage as if shorted, but no current flows between them: vNI=vINVv_{NI}=v_{INV} (same voltage, but no current between the terminals);
  • the input currents are zero;
  • if vNIv_{NI} is at ground, vINV=0v_{INV}=0 and one speaks of virtual ground.

Example. With vNI=2 Vv_{NI}=2\ \mathrm V and negative feedback vINV=2 Vv_{INV}=2\ \mathrm V and no current enters the inputs; if vNIv_{NI} is grounded, the −- terminal is at 0 V0\ \mathrm V (virtual ground).

Write the node equations with Kirchhoff's current law with no current towards the inputs, impose vNI=vINVv_{NI}=v_{INV} and solve for vOv_O.

Non-inverting amplifier

Formula (non-inverting amplifier). Signal vSv_S at ++; R2R_2 between output and −-; R1R_1 between −- and ground. By the virtual short vINV=vSv_{INV}=v_S and the divider (unloaded, since the −- terminal draws no current) gives vS=vOR1R1+R2v_S=v_O\dfrac{R_1}{R_1+R_2}:

Av=vOvS=1+R2R1Rin=∞,Rout=0.\boxed{A_v=\frac{v_O}{v_S}=1+\frac{R_2}{R_1}}\qquad R_{in}=\infty,\quad R_{out}=0.

Example. R1=2 kΩR_1=2\ \mathrm{k\Omega} and R2=18 kΩR_2=18\ \mathrm{k\Omega}: Av=1+9=10A_v=1+9=10; with vS=0.3 Vv_S=0.3\ \mathrm V the output is vO=3 Vv_O=3\ \mathrm V.

The gain is positive and larger than 1. Rin=∞R_{in}=\infty because the signal enters an input that draws no current. For RoutR_{out}: switch off vSv_S and apply a test current ImI_m at the output; since vNI=0v_{NI}=0 also vINV=0v_{INV}=0, so there is no current in R1R_1 and R2R_2: vO=0v_O=0 for any ImI_m, i.e. Rout=vO/Im=0R_{out}=v_O/I_m=0.

Limit case: voltage follower (buffer). R1=∞R_1=\infty and R2=0R_2=0 give Av=1A_v=1: vO=vSv_O=v_S. The circuit does not amplify the voltage but the current: the source, which may have a high output resistance, delivers no current (ideal op-amp), while the load can draw as much as it wants. It is used to decouple a source from a load.

Inverting amplifier

Formula (inverting amplifier). The signal vSv_S reaches R1R_1 connected to −-; R2R_2 between output and −-; ++ to ground. Virtual ground: vINV=0v_{INV}=0. The currents iR1=vSR1i_{R_1}=\dfrac{v_S}{R_1} (towards the −- node) and iR2=vOR2i_{R_2}=\dfrac{v_O}{R_2} (from the −- node towards the output) must sum to zero because no current enters the terminal: vSR1+vOR2=0\dfrac{v_S}{R_1}+\dfrac{v_O}{R_2}=0.

Av=vOvS=−R2R1Rin=R1,Rout=0.\boxed{A_v=\frac{v_O}{v_S}=-\frac{R_2}{R_1}}\qquad R_{in}=R_1,\quad R_{out}=0.

Rin=R1R_{in}=R_1 because the −- node is at virtual ground: the generator current is vS/R1v_S/R_1. For RoutR_{out}: with vS=0v_S=0 and a test current IOI_O at the output, iR1=0i_{R_1}=0, so also iR2=0i_{R_2}=0 and vO=0v_O=0: Rout=0R_{out}=0. If the source has internal resistance RsR_s the series input resistance is R1+RsR_1+R_s and the gain with respect to the open-circuit voltage of the generator is −R2/(R1+Rs)-R_2/(R_1+R_s).

Example. R1=1 kΩR_1=1\ \mathrm{k\Omega} and R2=4 kΩR_2=4\ \mathrm{k\Omega}: Av=−4A_v=-4; with vS=0.5 Vv_S=0.5\ \mathrm V the output is vO=−2 Vv_O=-2\ \mathrm V and Rin=1 kΩR_{in}=1\ \mathrm{k\Omega}.

Numerical examples.

  • Non-inverting with R1=2 kΩR_1=2\ \mathrm{k\Omega}, R2=18 kΩR_2=18\ \mathrm{k\Omega}: Av=10A_v=10. With vS=0.3 Vv_S=0.3\ \mathrm V: vO=3 Vv_O=3\ \mathrm V. With supply ±5 V\pm5\ \mathrm V and vS=0.8 Vv_S=0.8\ \mathrm V the required output would be 8 V8\ \mathrm V but it saturates at about +5 V+5\ \mathrm V.
  • Inverting with R1=1 kΩR_1=1\ \mathrm{k\Omega}, R2=4 kΩR_2=4\ \mathrm{k\Omega}: Av=−4A_v=-4; vS=0.5 Vv_S=0.5\ \mathrm V gives vO=−2 Vv_O=-2\ \mathrm V; Rin=1 kΩR_{in}=1\ \mathrm{k\Omega}. If the generator has Rs=1 kΩR_s=1\ \mathrm{k\Omega} the output becomes −42⋅0.5=−1 V-\frac42\cdot0.5=-1\ \mathrm V.

Grafico interattivo: Transfer characteristic of an inverting amplifier with A_v = -4 and supply ±5 V: the output follows the line -4·v_S only for |v_S| < 1.25 V

The real component departs from this model; see Non-Idealities of Operational AmplifiersA real op-amp has finite frequency-dependent gain A(jw) = A0/(1 + jw/wA), output resistance, input currents (bias IB, offset IOS), offset voltage VOS and a limited output slew rate; with negative feedback the closed-loop gain is G A/(A+G) with G = 1 + R2/R1, so the bandwidth is wT/G (constant gain-bandwidth product), and the DC errors of VOS, IB, IOS are found by superposition with the signal switched off.Non-Idealities of Operational Amplifiers →. The configurations extended to impedances and to several inputs are in Operational Amplifier Circuits - Summing, Difference, Integrator, DifferentiatorWith the virtual short all the basic op-amp circuits follow: inverting summer vO = -sum(R/Rk)Vk, difference amplifier vO = (R2/R1)(V1 - V2) with R1/R2 = R3/R4, integrator vO = -(1/RC) integral of vS, differentiator vO = -RC dvS/dt, and the instrumentation amplifier (1 + 2R/Rg)(R4/R3)(V1 - V2); in frequency it is enough to use the impedance Z(s) in place of R in the inverting and non-inverting formulas.Operational Amplifier Circuits - Summing, Difference, Integrator, Differentiator →.

Common mistakes

  • Applying the virtual short to a circuit with positive feedback or without feedback (it requires negative feedback).
  • Thinking that current flows in the virtual short: the voltage is zero and so is the current.
  • Forgetting that vOv_O cannot exceed saturation.
  • Forgetting the internal resistance of the source in the gain of the inverting amplifier.

Versione ripasso

Key statements and formulas

  • Definition: vO=A (vNI−vINV)=A vDv_O=A\,(v_{NI}-v_{INV})=A\,v_D, non-inverting input vNIv_{NI} (sign ++), inverting input vINVv_{INV} (sign −-).
  • Ideal model: A=∞A=\infty, infinite bandwidth, Rin=∞R_{in}=\infty (zero input currents), Rout=0R_{out}=0. The supplies VCC,VEEV_{CC},V_{EE} are implied but present: the output energy comes from them.
  • Negative feedback (output to the −- terminal): virtual shortsame voltage on the two terminals as if shorted, but no current flows between them, i.e. vD=0v_D=0, so vNI=vINVv_{NI}=v_{INV}. With vNIv_{NI} grounded, vINV=0v_{INV}=0: virtual ground.
  • Positive feedback: no stable equilibrium, the output saturates (comparator).
  • Non-inverting: Av=1+R2R1A_v=1+\frac{R_2}{R_1}, Rin=∞R_{in}=\infty, Rout=0R_{out}=0. Limit case (buffer, R1=∞R_1=\infty, R2=0R_2=0): Av=1A_v=1, amplifies current and decouples source and load.
  • Inverting: Av=−R2R1A_v=-\frac{R_2}{R_1}, Rin=R1R_{in}=R_1, Rout=0R_{out}=0. With source resistance RsR_s: −R2R1+Rs-\frac{R_2}{R_1+R_s}.

Main steps of the examples

  • A=105A=10^5, vNI=1.00001 Vv_{NI}=1.00001\ \mathrm V, vINV=1 Vv_{INV}=1\ \mathrm V: vO=105⋅10 μV=1 Vv_O=10^5\cdot10\ \mu\mathrm V=1\ \mathrm V; equal inputs give vO=0v_O=0.
  • Non-inverting with R1=2 kΩR_1=2\ \mathrm{k\Omega}, R2=18 kΩR_2=18\ \mathrm{k\Omega}: Av=10A_v=10; vS=0.3 Vv_S=0.3\ \mathrm V gives 3 V3\ \mathrm V. With supply ±5 V\pm5\ \mathrm V and vS=0.8 Vv_S=0.8\ \mathrm V the required 8 V8\ \mathrm V saturates at about +5 V+5\ \mathrm V.
  • Inverting with R1=1 kΩR_1=1\ \mathrm{k\Omega}, R2=4 kΩR_2=4\ \mathrm{k\Omega}: Av=−4A_v=-4; vS=0.5 Vv_S=0.5\ \mathrm V gives −2 V-2\ \mathrm V, Rin=1 kΩR_{in}=1\ \mathrm{k\Omega}. With Rs=1 kΩR_s=1\ \mathrm{k\Omega}: −42⋅0.5=−1 V-\frac42\cdot0.5=-1\ \mathrm V.
  • With Av=−4A_v=-4 and supply ±5 V\pm5\ \mathrm V the line is followed only for ∣vS∣<1.25 V|v_S|<1.25\ \mathrm V.

Typical mistakes

  • Virtual short without negative feedback.
  • Confusing the gain of the non-inverting (1+R2/R11+R_2/R_1, always above 1) with that of the inverting (−R2/R1-R_2/R_1).
  • Writing Rin=∞R_{in}=\infty for the inverting amplifier: the input is the resistance R1R_1 towards the virtual ground node.
  • Thinking current flows in the virtual short.
  • Forgetting saturation and the source resistance.

Teoria collegata