Operational Amplifier Circuits - Summing, Difference, Integrator, Differentiator
In questa pagina 8
All the circuits below have negative feedback, an ideal op-amp and therefore a virtual short () and zero input currents (Ideal Operational Amplifier and Basic ConfigurationsThe operational amplifier (op-amp) is a differential amplifier with very high gain, vO = A (vNI - vINV); in the ideal model A is infinite, input resistance infinite, output resistance zero, bandwidth infinite, and with negative feedback to the inverting input the output settles where the differential voltage is zero (virtual short, no input current), which gives the non-inverting amplifier (gain 1 + R2/R1) and the inverting amplifier (gain -R2/R1, input resistance R1).Ideal Operational Amplifier and Basic Configurations →). Superposition is used when there is more than one input (Principio di sovrapposizione degli effettiIn una rete lineare (resistori, GIT, GIC) ogni tensione e ogni corrente è combinazione lineare delle impresse dei generatori. Quindi si può calcolarla facendo agire un generatore alla volta, con gli altri spenti (GIT spento = cortocircuito, GIC spento = circuito aperto), e sommando i contributi. Vale per tensioni e correnti, non per le potenze.Principio di sovrapposizione degli effetti →). Real-component limits (offset, bias currents, slew rate) are in 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 →.
Generalization with impedances
Formula (gain with arbitrary impedances). In the inverting and non-inverting amplifiers, in place of one may put two arbitrary impedances (networks of resistors and capacitors), because the same equations hold in the Laplace domain with in sinusoidal regime: This is how the integrator, the differentiator and filters arise (Frequency Response of Op-Amp Circuits and Bode PlotsIn circuits with an ideal op-amp the transfer function A(s) comes from the inverting (-Z2/Z1) and non-inverting (1 + Z2/Z1) formulas with capacitors replaced by 1/(sC) and RC networks on the + terminal treated as dividers (no current in the input); A(s) is put in Bode form, the asymptotic diagram is drawn with the break points, and modulus and phase at the signal frequency give vout(t); the DC component of the input comes out multiplied by A(0).Frequency Response of Op-Amp Circuits and Bode Plots →). The variable is used rather than because it allows reasoning on poles and zeros.
Example. With and : (inverting) or (non-inverting).
Inverting summer
Formula (inverting summer). Several inputs connected through resistances to the node (virtual ground), feedback resistance . With the current in each is and Kirchhoff's current law at the node with no input current gives :
With all resistances equal (sum); with different resistances one gets a weighted summer. The inputs do not interfere with each other because the node stays at zero potential: each always sees ground.
Example. , , , : . With , , : .
Difference amplifier
Input at the terminal through , with to ground; at the terminal through , with in feedback. The terminal receives the (unloaded) divider: . At the terminal (superposition): . With :
Formula (difference amplifier). To have a true difference amplifier () the two gains must be equal: , i.e.
Example. and : ; with and , . The symmetric choice is , .
If the resistances are not perfectly matched a common-mode gain appears (Differential and Common-Mode Signals - CMRRTwo signals v1, v2 split into common mode vCM = (v1 + v2)/2 and differential mode vD = v1 - v2; a differential amplifier with gains A1 and A2 has vO = AD vD + ACM vCM with AD = (A1 + A2)/2 and ACM = A1 - A2, and its quality is CMRR = |AD/ACM| (in dB: 20 log), infinite if A1 = A2; to compute the output one finds vD, vCM and adds the two contributions, remembering that the sign of ACM, if not given, leaves two results.Differential and Common-Mode Signals - CMRR →): and . Example: , , (1% matching): and , so , and , i.e. . This is why in real circuits the resistors of the difference amplifier must be very precise.
Integrator
Formula (integrator). Inverting amplifier with and : . In time: , with and :
The coefficient is not dimensionless (it is the reciprocal of a time): when signals are functions of time, "gain" means this coefficient. In sinusoidal regime : modulus (falls with frequency), phase .
Example. , (), : . With a step of for the output falls linearly down to .
Attention to DC. At DC the capacitor is open: the circuit no longer has negative feedback. Even a small offset, or an input with non-zero mean value, drives the output up to saturation. The input signal must have zero mean, and in practice a resistor is placed in parallel with the capacitor (or a periodic reset is used).
Differentiator
Formula (differentiator). Inverting amplifier with and : . In time: (the voltage on the capacitor is because the node is at virtual ground), and :
Example. , and : . The differentiator amplifies high frequencies (modulus , growing with ), hence it also amplifies noise: in practice a resistor in series with the capacitor limits its gain. The input must not have too fast variations.
For both circuits the modulus on a Bode plot with is a straight line: the integrator falls and is at ; the differentiator rises through the same point. The two examples above lie on these lines: integrator at (, gain ) and differentiator at (, gain ).
Grafico interattivo: Integrator and differentiator with RC = 1 ms (x: omega in rad/s, log scale; y: |A_v| in dB): the integrator falls 20 dB/decade and is 0 dB at omega = 1/RC = 1000 rad/s, the differentiator rises 20 dB/decade through the same point
Instrumentation amplifier
Formula (instrumentation amplifier). Two non-inverting amplifiers with a single resistor between the two inverting terminals, followed by a difference amplifier. The two outputs satisfy
because by the virtual short the inverting terminals have voltages and and the current flows through the whole series . The common mode is amplified by 1 (no current in if ). Example: and give a first-stage gain ; with , .
The second stage (difference amplifier, gain ) completes Example: , , , give gain ; for one gets , and a common-mode input alone () gives zero output. It is used to measure small differential voltages (sensors) on a large common mode: very high and gain adjustable with alone.
Transresistance amplifier (current input)
If the source is a current generator connected to the terminal of an inverting amplifier with feedback , the node is at virtual ground and all of flows in : (current-to-voltage converter).
Common mistakes
- Forgetting to verify : without this condition the output contains .
- Writing without the factor (the units of are s).
- Using the integrator and differentiator with inputs that have a DC component or very fast variations.
- Forgetting the minus sign in inverting integrators and differentiators.
Versione ripasso
Key statements and formulas
- With impedances: inverting , non-inverting .
- Inverting summer: ; the inputs do not interfere (virtual ground).
- Difference amplifier: , ; with : . Mismatch gives , .
- Integrator: , ; in sinusoidal regime modulus , phase . At DC no feedback: zero-mean input, resistor in parallel with .
- Differentiator: , ; amplifies high frequencies and noise, series resistor with .
- Instrumentation amplifier: , common mode gain 1; with the difference stage .
- Transresistance: .
Main steps of the examples
- Summer with , , : for , , .
- Difference with , : for and .
- 1% mismatch (): , , , , ().
- Integrator , : ; step of for : output falls to .
- Differentiator , , : .
- Instrumentation: , : first-stage gain ( for ); with , gain (); pure common mode gives .
Typical mistakes
- Not checking .
- without .
- Integrator or differentiator with DC components or very fast variations.
- Dropping the minus sign.