Salta al contenuto
Note per Studenti Frequency Response of Op-Amp Circuits and Bode Plots Report

Frequency Response of Op-Amp Circuits and Bode Plots

In questa pagina 5

Given a circuit with ideal op-amp and RC networks: derive Av(s)=Vout(s)/Vin(s)A_v(s)=V_{out}(s)/V_{in}(s), draw the asymptotic Bode diagrams with the break points and, with those diagrams, find vout(t)v_{out}(t) for a sinusoidal input. The tools are those of 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 → (with Z(s)Z(s) in place of RR) and of Transfer Function and Bode PlotsThe frequency response of an amplifier is A(jw) = A(s) with s = jw; written in factored form (constant, zeros and poles as factors 1 + s/wi) its modulus in dB and its phase are obtained by adding the contributions of each factor; asymptotic modulus: pole = -20 dB/decade after wp, zero = +20 dB/decade, pole or zero at the origin = constant slope of +-20 dB/dec; phase: each real pole (zero) adds -90 (+90) degrees with a linear segment from w/10 to 10w; for an input A sin(w0 t + phi) the output is |A(jw0)| A sin(w0 t + phi + angle A(jw0)).Transfer Function and Bode Plots →.

How to derive A(s)A(s)

Impedances: resistor RR; capacitor 1sC\dfrac1{sC}. Parallel of RR and CC: R1+sRC\dfrac{R}{1+sRC}. Series of RR and CC: 1+sRCsC\dfrac{1+sRC}{sC}.

  1. Network on the ++ terminal. The terminal draws no current, so an RC network at the non-inverting input is an (unloaded) divider and its ratio V+/VinV_+/V_{in} multiplies everything else. Examples: RR in series, CC to ground →11+sRC\to\dfrac1{1+sRC} (low-pass); CC in series, RR to ground →sRC1+sRC\to\dfrac{sRC}{1+sRC} (high-pass).
  2. Feedback networks. With the virtual short V−=V+V_-=V_+. If the signal enters only at the ++ terminal, Vout=V+(1+ZfZg)V_{out}=V_+\Big(1+\dfrac{Z_f}{Z_g}\Big) with ZfZ_f between output and −- and ZgZ_g between −- and ground (if the feedback network is a T or has several nodes, solve with Kirchhoff's current law on the internal nodes). If the signal enters only at −- through Z1Z_1: Vout=−ZfZ1VinV_{out}=-\dfrac{Z_f}{Z_1}V_{in}.
  3. Two inputs, or input on both terminals: superposition.

Elementary blocks

Formula (inverting low-pass). Z1=R1Z_1=R_1, Z2=R2∥C2Z_2=R_2\|C_2: Av(s)=−R2R111+sR2C2A_v(s)=-\dfrac{R_2}{R_1}\dfrac1{1+sR_2C_2}: gain R2/R1R_2/R_1, one pole at ωp=1/(R2C2)\omega_p=1/(R_2C_2).

Example. R1=10 kΩR_1=10\ \mathrm{k\Omega}, R2=100 kΩR_2=100\ \mathrm{k\Omega}, C2=1.6 nFC_2=1.6\ \mathrm{nF}: Av(s)=−101+s/6250A_v(s)=-\frac{10}{1+s/6250}, gain 20 dB20\ \mathrm{dB} and pole at ωp=6250 rad/s\omega_p=6250\ \mathrm{rad/s}.

Formula (inverting high-pass). Z1=R1+1sC1Z_1=R_1+\dfrac1{sC_1} and Z2=R2Z_2=R_2: Av(s)=−R2R1⋅s R1C11+sR1C1A_v(s)=-\dfrac{R_2}{R_1}\cdot\dfrac{s\,R_1C_1}{1+sR_1C_1}: zero at the origin and pole at ω=1/(R1C1)\omega=1/(R_1C_1); at high frequency it is −R2/R1-R_2/R_1.

Example. R1=1 kΩR_1=1\ \mathrm{k\Omega}, C1=1 μFC_1=1\ \mu\mathrm F, R2=10 kΩR_2=10\ \mathrm{k\Omega}: the pole is at 1/(R1C1)=1000 rad/s1/(R_1C_1)=1000\ \mathrm{rad/s} and at high frequency the gain is −R2/R1=−10-R_2/R_1=-10.

Formula (inverting band-pass). The two together: Av(s)=−R2R1⋅sτ1(1+sτ1)(1+sτ2),τ1=R1C1, τ2=R2C2.A_v(s)=-\frac{R_2}{R_1}\cdot\frac{s\tau_1}{(1+s\tau_1)(1+s\tau_2)},\qquad\tau_1=R_1C_1,\ \tau_2=R_2C_2. Band gain R2/R1R_2/R_1 between ω1=1/τ1\omega_1=1/\tau_1 and ω2=1/τ2\omega_2=1/\tau_2 (if ω1≪ω2\omega_1\ll\omega_2).

Example. R1=1 kΩR_1=1\ \mathrm{k\Omega}, C1=1 μFC_1=1\ \mu\mathrm F, R2=100 kΩR_2=100\ \mathrm{k\Omega}, C2=1.6 nFC_2=1.6\ \mathrm{nF}: band gain R2/R1=100R_2/R_1=100 (40 dB40\ \mathrm{dB}) between ω1=1000 rad/s\omega_1=1000\ \mathrm{rad/s} and ω2=6250 rad/s\omega_2=6250\ \mathrm{rad/s}.

RC ladder network not separated by a buffer. Two cascaded RC low-pass cells do not give the product of two simple poles, because the second loads the first. For Vin→R1→V_{in}\to R_1\to node aa (with C1C_1 to ground) →R2→\to R_2\to node vv (with C2C_2 to ground): VvVin=11+s(R1C1+R1C2+R2C2)+s2R1R2C1C2.\frac{V_v}{V_{in}}=\frac1{1+s(R_1C_1+R_1C_2+R_2C_2)+s^2R_1R_2C_1C_2}. For R1=5 kΩR_1=5\ \mathrm{k\Omega}, C1=100 nFC_1=100\ \mathrm{nF}, R2=10 kΩR_2=10\ \mathrm{k\Omega}, C2=50 nFC_2=50\ \mathrm{nF}: coefficient of ss: 0.5+0.25+0.5=1.25 ms0.5+0.25+0.5=1.25\ \mathrm{ms}; coefficient of s2s^2: 2.5⋅10−7 s22.5\cdot10^{-7}\ \mathrm{s^2}. The denominator has roots s=−1.25⋅10−3±1.5625⋅10−6−10−65⋅10−7=−1000s=\dfrac{-1.25\cdot10^{-3}\pm\sqrt{1.5625\cdot10^{-6}-10^{-6}}}{5\cdot10^{-7}}=-1000 and −4000 rad/s-4000\ \mathrm{rad/s}, so the network is 1(1+s/1000)(1+s/4000)\dfrac1{(1+s/1000)(1+s/4000)}: real distinct poles (an RC network always has negative real poles), but different from 1/(R1C1)=20001/(R_1C_1)=2000 and 1/(R2C2)=20001/(R_2C_2)=2000.

From the diagram to the sinusoid

Formula (output with a constant plus a sinusoid input). If vin(t)=V0+V1sin⁡(ω1t+φ)v_{in}(t)=V_0+V_1\sin(\omega_1t+\varphi), by linearity vout(t)=A(0) V0+∣A(jω1)∣ V1 sin⁡(ω1t+φ+∠A(jω1)).v_{out}(t)=A(0)\,V_0+|A(j\omega_1)|\,V_1\,\sin\big(\omega_1t+\varphi+\angle A(j\omega_1)\big). The DC component passes multiplied by A(0)A(0) (the value at zero frequency): if there is a zero at the origin (for example a coupling capacitor at the input) DC is blocked.

The value ∣A(jω1)∣|A(j\omega_1)| can be read on the asymptotic diagram (dB →\to ratio with 10dB/2010^{dB/20}) or computed exactly with complex numbers: in an exam one declares which of the two is used and, if the diagram is requested, the diagram is used.

Example 1 (inverting low-pass). R1=10 kΩR_1=10\ \mathrm{k\Omega}, R2=100 kΩR_2=100\ \mathrm{k\Omega}, C2=1.6 nFC_2=1.6\ \mathrm{nF}: Av(s)=−101+s/6250A_v(s)=-\dfrac{10}{1+s/6250} (gain 20 dB20\ \mathrm{dB}, pole at ωp=6250 rad/s\omega_p=6250\ \mathrm{rad/s}, i.e. 995 Hz995\ \mathrm{Hz}). With vin=0.1sin⁡(62500 t)v_{in}=0.1\sin(62500\,t) (ω=10 ωp\omega=10\,\omega_p): ∣A∣=101+100=0.995|A|=\dfrac{10}{\sqrt{1+100}}=0.995 (the asymptotic one gives 20−20=0 dB20-20=0\ \mathrm{dB}, i.e. 11) and the phase is 180∘−arctan⁡10=95.7∘180^\circ-\arctan10=95.7^\circ (the asymptotic one, at 10ωp10\omega_p, gives 180∘−90∘=90∘180^\circ-90^\circ=90^\circ). So vout=0.0995sin⁡(62500 t+95.7∘) Vv_{out}=0.0995\sin(62500\,t+95.7^\circ)\ \mathrm V.

Grafico interattivo: Example 1, inverting low-pass A_v = -10/(1 + s/6250) (x: omega in rad/s, log scale; y: |A_v| in dB): 20 dB up to the pole omega_p = 6250 rad/s, then -20 dB/decade; the continuous curve is the exact modulus, the dashed one the asymptotic; at omega_p the exact modulus is 17 dB

Example 2 (inverting band-pass). R1=1 kΩR_1=1\ \mathrm{k\Omega}, C1=1 μFC_1=1\ \mu\mathrm F (τ1=1 ms\tau_1=1\ \mathrm{ms}, ω1=1000\omega_1=1000), R2=100 kΩR_2=100\ \mathrm{k\Omega}, C2=1.6 nFC_2=1.6\ \mathrm{nF} (ω2=6250\omega_2=6250): Av(s)=−100 sτ1(1+s/1000)(1+s/6250)A_v(s)=-100\,\dfrac{s\tau_1}{(1+s/1000)(1+s/6250)} with band gain 100100 (40 dB40\ \mathrm{dB}). Asymptotic diagram: slope +20 dB/dec+20\ \mathrm{dB/dec} up to ω=1000\omega=1000 (where it is 40 dB40\ \mathrm{dB}), flat at 40 dB40\ \mathrm{dB} up to 62506250 and then −20 dB/dec-20\ \mathrm{dB/dec}. Exact values: 19.96, 36.88, 38.71, 36.88, 19.96 dB19.96,\ 36.88,\ 38.71,\ 36.88,\ 19.96\ \mathrm{dB} for ω=100, 1000, 2500, 6250, 62500\omega=100,\,1000,\,2500,\,6250,\,62500. With vin=10sin⁡(2500 t) mVv_{in}=10\sin(2500\,t)\ \mathrm{mV}: Av(j2500)=−100j2.5(1+j2.5)(1+j0.4)=−86.2A_v(j2500)=-100\dfrac{j2.5}{(1+j2.5)(1+j0.4)}=-86.2 (real: 2500=ω1ω22500=\sqrt{\omega_1\omega_2} is the geometric centre of the band and the two pole phases compensate), so vout=−0.862sin⁡(2500 t) Vv_{out}=-0.862\sin(2500\,t)\ \mathrm V, while the asymptotic diagram would give −1 Vsin⁡(2500t)-1\ \mathrm V\sin(2500t).

Because ω1\omega_1 and ω2\omega_2 are less than a decade apart, the exact modulus never reaches 40 dB40\ \mathrm{dB} (maximum about 38.7 dB38.7\ \mathrm{dB}).

Useful facts

The ideal op-amp holds only while the signal frequency is far below the bandwidth ωT/G\omega_T/G of the real component (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 →).

Common mistakes

  • Treating the non-inverting input with an RC network as if it loaded the generator: the op-amp draws no current.
  • Writing ZfZ_f without the correct parallel or series: always check the limit cases s→0s\to0 (capacitors open) and s→∞s\to\infty (capacitors shorted).
  • Applying the gain to a DC component forgetting A(0)A(0).
  • Using ω=2πf\omega=2\pi f or ff inconsistently in the signal calculations: the signal is given as sin⁡(ωt)\sin(\omega t) with ω\omega in rad/s.

Versione ripasso

Key statements and formulas

  • Impedances: RR; 1sC\frac{1}{sC}; R∥C=R1+sRCR\|C=\frac{R}{1+sRC}; series RR-CC =1+sRCsC=\frac{1+sRC}{sC}.
  • Deriving A(s)A(s): network on the ++ terminal = unloaded divider (low-pass 11+sRC\frac{1}{1+sRC}, high-pass sRC1+sRC\frac{sRC}{1+sRC}); signal on ++ only: Vout=V+(1+ZfZg)V_{out}=V_+\big(1+\frac{Z_f}{Z_g}\big); signal on −- only: Vout=−ZfZ1VinV_{out}=-\frac{Z_f}{Z_1}V_{in}; two inputs: superposition.
  • Inverting low-pass: −R2R111+sR2C2-\frac{R_2}{R_1}\frac{1}{1+sR_2C_2}, pole 1R2C2\frac{1}{R_2C_2}. High-pass: −R2R1sR1C11+sR1C1-\frac{R_2}{R_1}\frac{sR_1C_1}{1+sR_1C_1}. Band-pass: −R2R1sτ1(1+sτ1)(1+sτ2)-\frac{R_2}{R_1}\frac{s\tau_1}{(1+s\tau_1)(1+s\tau_2)}, band gain R2R1\frac{R_2}{R_1} between 1τ1\frac1{\tau_1} and 1τ2\frac1{\tau_2}.
  • Two RC cells without buffer: 11+s(R1C1+R1C2+R2C2)+s2R1R2C1C2\frac{1}{1+s(R_1C_1+R_1C_2+R_2C_2)+s^2R_1R_2C_1C_2}; poles are not 1R1C1\frac{1}{R_1C_1} and 1R2C2\frac{1}{R_2C_2}.
  • Output to V0+V1sin⁡(ω1t+φ)V_0+V_1\sin(\omega_1t+\varphi): A(0)V0+∣A(jω1)∣V1sin⁡(ω1t+φ+∠A(jω1))A(0)V_0+|A(j\omega_1)|V_1\sin\big(\omega_1t+\varphi+\angle A(j\omega_1)\big). A zero at the origin blocks DC.
  • Cutoff of an RC cell: ω=1RC\omega=\frac{1}{RC}.

Main steps of the examples

  • R1=10 kΩR_1=10\ \mathrm{k\Omega}, R2=100 kΩR_2=100\ \mathrm{k\Omega}, C2=1.6 nFC_2=1.6\ \mathrm{nF}: −101+s/6250-\frac{10}{1+s/6250} (20 dB20\ \mathrm{dB}, 995 Hz995\ \mathrm{Hz}). With 0.1sin⁡(62500t)0.1\sin(62500t): ∣A∣=0.995|A|=0.995, phase 180∘−arctan⁡10=95.7∘180^\circ-\arctan10=95.7^\circ, vout=0.0995sin⁡(62500t+95.7∘) Vv_{out}=0.0995\sin(62500t+95.7^\circ)\ \mathrm V (asymptotic: gain 11, 90∘90^\circ).
  • Ladder R1=5 kΩR_1=5\ \mathrm{k\Omega}, C1=100 nFC_1=100\ \mathrm{nF}, R2=10 kΩR_2=10\ \mathrm{k\Omega}, C2=50 nFC_2=50\ \mathrm{nF}: coefficients 1.25 ms1.25\ \mathrm{ms} and 2.5⋅10−7 s22.5\cdot10^{-7}\ \mathrm{s^2}, poles −1000-1000 and −4000 rad/s-4000\ \mathrm{rad/s} (not 20002000 and 20002000).
  • Band-pass R1=1 kΩR_1=1\ \mathrm{k\Omega}, C1=1 μFC_1=1\ \mu\mathrm F, R2=100 kΩR_2=100\ \mathrm{k\Omega}, C2=1.6 nFC_2=1.6\ \mathrm{nF}: −100sτ1(1+s/1000)(1+s/6250)-100\frac{s\tau_1}{(1+s/1000)(1+s/6250)}; exact 19.9619.96, 36.8836.88, 38.7138.71, 36.8836.88, 19.96 dB19.96\ \mathrm{dB} at 100100, 10001000, 25002500, 62506250, 6250062500. With 10sin⁡(2500t) mV10\sin(2500t)\ \mathrm{mV}: A=−86.2A=-86.2, vout=−0.862sin⁡(2500t) Vv_{out}=-0.862\sin(2500t)\ \mathrm V (asymptotic would give −1 V-1\ \mathrm V).
  • High-pass R1=1 kΩR_1=1\ \mathrm{k\Omega}, C1=1 μFC_1=1\ \mu\mathrm F, R2=10 kΩR_2=10\ \mathrm{k\Omega}: pole at 1000 rad/s1000\ \mathrm{rad/s}, high-frequency gain −10-10.

Typical mistakes

  • Treating the RC network on the ++ input as loading the generator.
  • Wrong parallel or series in ZfZ_f; check s→0s\to0 and s→∞s\to\infty.
  • Forgetting A(0)A(0) for a DC component.
  • Mixing ω\omega in rad/s with ff.

Teoria collegata