Salta al contenuto
Note per Studenti Differential and Common-Mode Signals - CMRR Report

Differential and Common-Mode Signals - CMRR

In questa pagina 5

The decomposition

Definition (common mode and differential mode). Given two signals v1v_1 and v2v_2 define

vCM=v1+v22(common mode),vD=v1−v2(differential mode).v_{CM}=\frac{v_1+v_2}{2}\quad\text{(common mode)},\qquad v_D=v_1-v_2\quad\text{(differential mode)}.

Example. With v1=0.6 Vv_1=0.6\ \mathrm V and v2=−0.2 Vv_2=-0.2\ \mathrm V: vCM=0.2 Vv_{CM}=0.2\ \mathrm V and vD=0.8 Vv_D=0.8\ \mathrm V; indeed v1=0.2+0.4v_1=0.2+0.4 and v2=0.2−0.4v_2=0.2-0.4.

Inverting: v1=vCM+vD2v_1=v_{CM}+\dfrac{v_D}{2} and v2=vCM−vD2v_2=v_{CM}-\dfrac{v_D}{2}. In practice vCMv_{CM} is the part the two signals have in common (their mean) and vDv_D is the part that differentiates them; two inputs v1=v2v_1=v_2 have vD=0v_D=0 and a single common signal.

The decomposition makes sense when the two signals must be treated symmetrically (difference amplifier, instrumentation amplifier, BJT differential stage). It makes no sense for a summer, where the two inputs are independent.

The practical reason: if information travels as a difference between two wires, disturbances that couple equally to both wires (mains noise, interference) are common mode and a good differential amplifier eliminates them.

Gains of a differential amplifier

Formula (differential-mode and common-mode gains). An amplifier with two inputs and one output has in general gains A1A_1 (from the non-inverting input) and A2A_2 (from the inverting one, in modulus): vO=A1v1−A2v2=A1(vCM+vD2)−A2(vCM−vD2)=(A1−A2)⏟ACMvCM+A1+A22⏟ADvD.v_O=A_1v_1-A_2v_2=A_1\Big(v_{CM}+\frac{v_D}2\Big)-A_2\Big(v_{CM}-\frac{v_D}2\Big)=\underbrace{(A_1-A_2)}_{A_{CM}}v_{CM}+\underbrace{\frac{A_1+A_2}{2}}_{A_D}v_D. So AD=vOvD∣vCM=0=A1+A22,ACM=vOvCM∣vD=0=A1−A2.A_D=\left.\frac{v_O}{v_D}\right|_{v_{CM}=0}=\frac{A_1+A_2}2,\qquad A_{CM}=\left.\frac{v_O}{v_{CM}}\right|_{v_D=0}=A_1-A_2.

Example. With A1=10.05A_1=10.05 and A2=9.95A_2=9.95: AD=A1+A22=10A_D=\frac{A_1+A_2}{2}=10 and ACM=A1−A2=0.1A_{CM}=A_1-A_2=0.1.

Definition (common-mode rejection ratio, CMRR).

  • An ideal differential amplifier has A1=A2A_1=A_2, so ACM=0A_{CM}=0 and vO=ADvDv_O=A_Dv_D.
  • Its quality is measured with the common-mode rejection ratioCMRR: how many times the differential gain exceeds the common-mode gain CMRR=∣AD∣∣ACM∣CMRRdB=20log⁡10∣AD∣∣ACM∣\boxed{\mathrm{CMRR}=\frac{|A_D|}{|A_{CM}|}\qquad\mathrm{CMRR}_{dB}=20\log_{10}\frac{|A_D|}{|A_{CM}|}} infinite in the ideal case.

Example. With AD=10A_D=10 and ACM=0.1A_{CM}=0.1: CMRR=100\mathrm{CMRR}=100, i.e. 20log⁡10100=40 dB20\log_{10}100=40\ \mathrm{dB}.

A real amplifier has gains A1,A2A_1,A_2 not exactly equal (the difference is due to small asymmetries of the components). For an op-amp with gains A(1±ε)A(1\pm\varepsilon): AD≈AA_D\approx A and ACM=2εAA_{CM}=2\varepsilon A.

Computing the output

Compute vD=v1−v2v_D=v_1-v_2 and vCM=(v1+v2)/2v_{CM}=(v_1+v_2)/2, then vO=ADvD+ACMvCMv_O=A_Dv_D+A_{CM}v_{CM}. For sinusoidal signals separate the constant part and the sin⁡ωt\sin\omega t part.

Example 1. AD=10A_D=10, ACM=−0.05A_{CM}=-0.05, v1=0.6 Vv_1=0.6\ \mathrm V, v2=−0.2 Vv_2=-0.2\ \mathrm V: vD=0.8 Vv_D=0.8\ \mathrm V, vCM=0.2 Vv_{CM}=0.2\ \mathrm V, vO=10⋅0.8−0.05⋅0.2=7.99 Vv_O=10\cdot0.8-0.05\cdot0.2=7.99\ \mathrm V. The common mode (0.2 V0.2\ \mathrm V, 25% of the useful part in amplitude) causes an error of only 10 mV10\ \mathrm{mV} (CMRR=200→46 dB\mathrm{CMRR}=200\to46\ \mathrm{dB}).

Example 2 (with sinusoids). AD=10A_D=10, ACM=−0.5A_{CM}=-0.5, v1=0.6+0.2sin⁡ωtv_1=0.6+0.2\sin\omega t, v2=−0.2+0.2sin⁡ωtv_2=-0.2+0.2\sin\omega t (volt). The two sinusoids are equal, so they are entirely common mode: vD=0.8 Vv_D=0.8\ \mathrm V (constant) and vCM=0.2+0.2sin⁡ωtv_{CM}=0.2+0.2\sin\omega t. vO=10⋅0.8−0.5 (0.2+0.2sin⁡ωt)=7.9−0.1sin⁡ωt V.v_O=10\cdot0.8-0.5\,(0.2+0.2\sin\omega t)=7.9-0.1\sin\omega t\ \mathrm V. The output sinusoid is a disturbance: its amplitude is ACM⋅0.2A_{CM}\cdot0.2. With a good CMRR it would vanish.

Example 3 (CMRR given in dB: mind the sign). AD=10A_D=10 and CMRR=26 dB\mathrm{CMRR}=26\ \mathrm{dB}: CMRR=1026/20=19.95\mathrm{CMRR}=10^{26/20}=19.95, so ∣ACM∣=10/19.95=0.501≈0.5|A_{CM}|=10/19.95=0.501\approx0.5. The CMRR is a modulus: the sign of ACMA_{CM} is unknown and gives two results (with v1,v2v_1,v_2 of example 2 and ∣ACM∣=0.5|A_{CM}|=0.5: 7.9−0.1sin⁡ωt7.9-0.1\sin\omega t if ACM=−0.5A_{CM}=-0.5, or 8.1+0.1sin⁡ωt8.1+0.1\sin\omega t if ACM=+0.5A_{CM}=+0.5); if the problem does not give it, discuss both cases. Likewise AD=−10A_D=-10 and CMRR=20 dB\mathrm{CMRR}=20\ \mathrm{dB} give ∣ACM∣=1|A_{CM}|=1 and, with vD=0.8v_D=0.8, vCM=0.2v_{CM}=0.2: vO=−8±0.2v_O=-8\pm0.2, i.e. −7.8 V-7.8\ \mathrm V or −8.2 V-8.2\ \mathrm V.

Example 4 (gains in dB and inputs with sign). v1=−60 mVv_1=-60\ \mathrm{mV}, v2=−100+80sin⁡ωt mVv_2=-100+80\sin\omega t\ \mathrm{mV}, AD=20 dB=10A_D=20\ \mathrm{dB}=10, CMRR=40 dB=100\mathrm{CMRR}=40\ \mathrm{dB}=100 (∣ACM∣=0.1|A_{CM}|=0.1). vD=v1−v2=40−80sin⁡ωt mVv_D=v_1-v_2=40-80\sin\omega t\ \mathrm{mV} and vCM=−80+40sin⁡ωt mVv_{CM}=-80+40\sin\omega t\ \mathrm{mV}. With ACM=+0.1A_{CM}=+0.1: vO=10(40−80sin⁡ωt)+0.1(−80+40sin⁡ωt)=392−796sin⁡ωt mVv_O=10(40-80\sin\omega t)+0.1(-80+40\sin\omega t)=392-796\sin\omega t\ \mathrm{mV} (with ACM=−0.1A_{CM}=-0.1: 408−804sin⁡ωt408-804\sin\omega t).

Example 5 (CMRR from two measurements). If an amplifier gives vO=8 Vv_O=8\ \mathrm V with only vNI=0.2 Vv_{NI}=0.2\ \mathrm V and vO=−10 Vv_O=-10\ \mathrm V with only vINV=0.2 Vv_{INV}=0.2\ \mathrm V: A1=8/0.2=40A_1=8/0.2=40 and A2=10/0.2=50A_2=10/0.2=50 (in modulus), so AD=45A_D=45, ACM=40−50=−10A_{CM}=40-50=-10 and CMRR=4.5→13.1 dB\mathrm{CMRR}=4.5\to13.1\ \mathrm{dB} (a very poor amplifier).

Input stage of the instrumentation amplifier

Formula (input stage of the instrumentation amplifier). For circuits with two inputs and two outputs one also defines vOD=vO1−vO2v_{OD}=v_{O1}-v_{O2} and vOCM=(vO1+vO2)/2v_{OCM}=(v_{O1}+v_{O2})/2 and four gains. For the stage with two non-inverting amplifiers and RgR_g between the inverting terminals (equal feedback resistances RB1=RB2=RBR_{B1}=R_{B2}=R_B): [vODvOCM]=[1+2RBRg001][vDvCM].\begin{bmatrix}v_{OD}\\v_{OCM}\end{bmatrix}=\begin{bmatrix}1+\dfrac{2R_B}{R_g}&0\\0&1\end{bmatrix}\begin{bmatrix}v_D\\v_{CM}\end{bmatrix}. The differential mode is amplified, the common mode passes with gain 1 and does not generate a differential component, whatever the value (even imprecise) of the resistances. The following difference stage (matched resistances) attenuates the common mode. In this way small signals superimposed on large voltages are measured: with vD=10 mVv_D=10\ \mathrm{mV} on a common mode of 1 V1\ \mathrm V (AD=100A_D=100 and CMRR=60 dB\mathrm{CMRR}=60\ \mathrm{dB}) the error is ACMvCM=0.1 VA_{CM}v_{CM}=0.1\ \mathrm V against a useful output of 1 V1\ \mathrm V.

Example. With RB=10 kΩR_B=10\ \mathrm{k\Omega} and Rg=1 kΩR_g=1\ \mathrm{k\Omega} the differential gain is 1+2RB/Rg=211+2R_B/R_g=21 and the common-mode gain 11: with vD=10 mVv_D=10\ \mathrm{mV} and vCM=1 Vv_{CM}=1\ \mathrm V, vOD=210 mVv_{OD}=210\ \mathrm{mV} and vOCM=1 Vv_{OCM}=1\ \mathrm V.

This stage is part of the instrumentation amplifier described 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

  • Defining vCM=v1+v2v_{CM}=v_1+v_2 (without dividing by 2).
  • Forgetting that vD=v1−v2v_D=v_1-v_2 takes the sign of the non-inverting input minus the inverting one.
  • Converting CMRR to dB with the factor 10: for voltage ratios it is 20log⁡20\log.
  • Taking the CMRR as AD/ACMA_D/A_{CM} with sign.

Versione ripasso

Key statements and formulas

  • Decomposition: vCM=v1+v22v_{CM}=\frac{v_1+v_2}{2}, vD=v1−v2v_D=v_1-v_2; inverse v1=vCM+vD2v_1=v_{CM}+\frac{v_D}{2}, v2=vCM−vD2v_2=v_{CM}-\frac{v_D}{2}.
  • Output: vO=A1v1−A2v2=ADvD+ACMvCMv_O=A_1v_1-A_2v_2=A_Dv_D+A_{CM}v_{CM} with AD=A1+A22A_D=\frac{A_1+A_2}{2}, ACM=A1−A2A_{CM}=A_1-A_2.
  • CMRR: CMRR=∣AD∣∣ACM∣\mathrm{CMRR}=\frac{|A_D|}{|A_{CM}|}, in dB 20log⁡10∣AD∣∣ACM∣20\log_{10}\frac{|A_D|}{|A_{CM}|}; infinite for A1=A2A_1=A_2. For gains A(1±ε)A(1\pm\varepsilon): AD≈AA_D\approx A, ACM=2εAA_{CM}=2\varepsilon A.
  • Sign: the CMRR is a modulus; if the sign of ACMA_{CM} is not given, discuss both results.
  • Instrumentation input stage: vOD=(1+2RBRg)vDv_{OD}=\big(1+\frac{2R_B}{R_g}\big)v_D, vOCM=vCMv_{OCM}=v_{CM}; the common mode creates no differential component.

Main steps of the examples

  • v1=0.6 Vv_1=0.6\ \mathrm V, v2=−0.2 Vv_2=-0.2\ \mathrm V: vCM=0.2 Vv_{CM}=0.2\ \mathrm V, vD=0.8 Vv_D=0.8\ \mathrm V. A1=10.05A_1=10.05, A2=9.95A_2=9.95: AD=10A_D=10, ACM=0.1A_{CM}=0.1, CMRR =100=100 (40 dB40\ \mathrm{dB}).
  • AD=10A_D=10, ACM=−0.05A_{CM}=-0.05: vO=8−0.01=7.99 Vv_O=8-0.01=7.99\ \mathrm V.
  • Equal sinusoids on both inputs are all common mode: vO=7.9−0.1sin⁡ωtv_O=7.9-0.1\sin\omega t for ACM=−0.5A_{CM}=-0.5 (or 8.1+0.1sin⁡ωt8.1+0.1\sin\omega t for +0.5+0.5).
  • CMRR=26 dB\mathrm{CMRR}=26\ \mathrm{dB} gives 19.9519.95, ∣ACM∣=0.5|A_{CM}|=0.5. AD=−10A_D=-10, CMRR=20 dB\mathrm{CMRR}=20\ \mathrm{dB}: vO=−7.8v_O=-7.8 or −8.2 V-8.2\ \mathrm V.
  • v1=−60 mVv_1=-60\ \mathrm{mV}, v2=−100+80sin⁡ωt mVv_2=-100+80\sin\omega t\ \mathrm{mV}, AD=10A_D=10, ∣ACM∣=0.1|A_{CM}|=0.1: 392−796sin⁡ωt mV392-796\sin\omega t\ \mathrm{mV} (or 408−804sin⁡ωt408-804\sin\omega t).
  • Two measurements (8 V8\ \mathrm V and −10 V-10\ \mathrm V for 0.2 V0.2\ \mathrm V on one input): A1=40A_1=40, A2=50A_2=50, AD=45A_D=45, ACM=−10A_{CM}=-10, CMRR =4.5=4.5 (13.1 dB13.1\ \mathrm{dB}).
  • RB=10 kΩR_B=10\ \mathrm{k\Omega}, Rg=1 kΩR_g=1\ \mathrm{k\Omega}: gain 2121; vD=10 mVv_D=10\ \mathrm{mV}, vCM=1 Vv_{CM}=1\ \mathrm V give vOD=210 mVv_{OD}=210\ \mathrm{mV}, vOCM=1 Vv_{OCM}=1\ \mathrm V.

Typical mistakes

  • vCM=v1+v2v_{CM}=v_1+v_2 without dividing by 2.
  • Wrong sign of vDv_D (non-inverting minus inverting).
  • CMRR in dB with factor 10 instead of 20.
  • CMRR taken with a sign.

Teoria collegata