Salta al contenuto
Note per Studenti Formulario · Microelectronics Laboratory Report

FormularioMicroelectronics Laboratory: definizioni, teoremi e formule delle note, in ordine di capitolo

I. Laboratory Instrumentation and Measurement

Circuit Theory Review for Electronics

Formula (voltage and current divider).

  • Voltage: two resistances in series with the same current II across a voltage V1V_1: V2=V1R2R1+R2V_2=V_1\dfrac{R_2}{R_1+R_2}. It holds only if no current leaves the central node (unloaded divider). If the node feeds another circuit, that circuit must be taken into account (for example with Thevenin).
  • Current: II splits in two parallel resistances: IR1=IR2R1+R2I_{R_1}=I\dfrac{R_2}{R_1+R_2}, IR2=IR1R1+R2I_{R_2}=I\dfrac{R_1}{R_1+R_2} (the larger current goes in the smaller resistance). The parallel is R1∥R2=R1R2R1+R2R_1\|R_2=\dfrac{R_1R_2}{R_1+R_2} and must always be put in brackets: R1∥R2+R3≠R1∥(R2+R3)R_1\|R_2+R_3\ne R_1\|(R_2+R_3).

Formula (power of a sum of sinusoids at different frequencies). With vR(t)=V1sin⁡(ω1t)+V2cos⁡(ω2t)v_R(t)=V_1\sin(\omega_1t)+V_2\cos(\omega_2t) and ω1≠ω2\omega_1\ne\omega_2 the cross term 2V1V2sin⁡(ω1t)cos⁡(ω2t)2V_1V_2\sin(\omega_1t)\cos(\omega_2t) has zero mean value, so the squares of the rms values add: Vrms2=V122+V222,P=V12+V222R.V_{rms}^2=\frac{V_1^2}{2}+\frac{V_2^2}{2},\qquad P=\frac{V_1^2+V_2^2}{2R}.

Formula (amplitude across an RC series). In a series RR-CC crossed by the current II the voltage across RR is in phase with II, that across the capacitor lags by 90∘90^\circ: the amplitudes add in quadrature, VZ=IR2+XC2=VR2+VC2.V_Z=I\sqrt{R^2+X_C^2}=\sqrt{V_R^2+V_C^2}.

II. Operational Amplifiers

Ideal Operational Amplifier and Basic Configurations

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.

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).

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

Non-Idealities of Operational Amplifiers

Formula (inverting amplifier with finite gain). For an inverting amplifier with ideal gain −R2/R1-R_2/R_1 and op-amp gain AA (no longer a virtual short: vD=vO/Av_D=v_O/A): Av=−R2R1⋅AA+(1+R2/R1)=−R2R1⋅11+1+R2/R1A.A_v=-\frac{R_2}{R_1}\cdot\frac{A}{A+(1+R_2/R_1)}=-\frac{R_2}{R_1}\cdot\frac1{1+\dfrac{1+R_2/R_1}{A}}. If ∣A∣≫1+R2/R1|A|\gg 1+R_2/R_1 the ideal value is recovered. The factor 11+G/A\dfrac{1}{1+G/A}, with G=1+R2/R1G=1+R_2/R_1, is the same for the non-inverting amplifier (ideal gain GG): Av=G1+G/A=A1+A/GA_v=\dfrac{G}{1+G/A}=\dfrac{A}{1+A/G}. This is the structure of a feedback system with direct gain AA and feedback factor β=1/G=R1/(R1+R2)\beta=1/G=R_1/(R_1+R_2): Av=A1+AβA_v=\dfrac{A}{1+A\beta}.

With finite gain the resistances change too: the input resistance of the inverting amplifier is Rin=R1+R21+AR_{in}=R_1+\dfrac{R_2}{1+A} (the −- node is no longer a virtual ground), and the output resistance of circuits with negative feedback is Rout=RO1+AβR_{out}=\dfrac{R_O}{1+A\beta}: with RO=100 ΩR_O=100\ \Omega, A=105A=10^5 and β=0.1\beta=0.1, Rout=0.01 ΩR_{out}=0.01\ \Omega (practically zero: feedback "hides" ROR_O).

Formula (gain-bandwidth product). With A(jω)=A01+jω/ωAA(j\omega)=\dfrac{A_0}{1+j\omega/\omega_A} and A0≫GA_0\gg G: Av(jω)=A1+A/G≃G1+jω/ωB,ωB=ωAA0G=ωTG.A_v(j\omega)=\frac{A}{1+A/G}\simeq\frac{G}{1+j\omega/\omega_B},\qquad\omega_B=\frac{\omega_AA_0}{G}=\frac{\omega_T}{G}. The circuit is a low-pass with gain GG and bandwidth ωT/G\omega_T/G: gain times bandwidth is constant (equal to ωT\omega_T). The more gain, the less bandwidth.

Grafico interattivo: Bode diagram of the open-loop gain A (A0 = 10^5, f_A = 10 Hz) and of the closed-loop gains with G = 10 and G = 100 (x: f in Hz, y: dB): each closed-loop curve is flat at the value G up to its bandwidth (100 kHz and 10 kHz) and then joins the curve of A, which falls 20 dB/decade and is 0 dB at f_T = A0 f_A = 1 MHz

Formula (error due to the offset voltage). Switch off the signal and take VOSV_{OS} as input. In an inverting amplifier VOSV_{OS} is in series with the non-inverting input, so for this contribution the circuit is a non-inverting amplifier: vO=−R2R1VS+(1+R2R1)VOS.v_O=-\frac{R_2}{R_1}V_S+\Big(1+\frac{R_2}{R_1}\Big)V_{OS}. The second term is an error of known maximum amplitude and unknown sign.

Formula (error due to the input currents). With VS=0V_S=0 and an inverting amplifier with the ++ terminal grounded: vINV=vNI=0v_{INV}=v_{NI}=0, no current in R1R_1, so all of IINVI_{INV} comes from R2R_2: vO=R2(IB−IOS2)≃R2IB(∣IB∣≫∣IOS∣).v_O=R_2\Big(I_B-\frac{I_{OS}}2\Big)\simeq R_2I_B\quad(|I_B|\gg|I_{OS}|).

Differential and Common-Mode Signals - CMRR

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.

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.

Operational Amplifier Circuits - Summing, Difference, Integrator, Differentiator

Formula (gain with arbitrary impedances). In the inverting and non-inverting amplifiers, in place of R1,R2R_1,R_2 one may put two arbitrary impedances Z1(s),Z2(s)Z_1(s),Z_2(s) (networks of resistors and capacitors), because the same equations hold in the Laplace domain with s→jωs\to j\omega in sinusoidal regime: Av(s)=−Z2(s)Z1(s) (inverting),Av(s)=1+Z2(s)Z1(s) (non-inverting).A_v(s)=-\frac{Z_2(s)}{Z_1(s)}\ \text{(inverting)},\qquad A_v(s)=1+\frac{Z_2(s)}{Z_1(s)}\ \text{(non-inverting)}. 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 ss is used rather than jωj\omega because it allows reasoning on poles and zeros.

Formula (inverting summer). Several inputs VkV_k connected through resistances RkR_k to the −- node (virtual ground), feedback resistance RR. With vINV=0v_{INV}=0 the current in each RkR_k is Vk/RkV_k/R_k and Kirchhoff's current law at the −- node with no input current gives ∑kVk/Rk+vO/R=0\sum_kV_k/R_k+v_O/R=0:

vO=−∑kRRk Vk.v_O=-\sum_k\frac{R}{R_k}\,V_k.

With all resistances equal vO=−∑Vkv_O=-\sum V_k (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 RkR_k always sees ground.

Formula (difference amplifier). To have a true difference amplifier (vO∝V1−V2v_O\propto V_1-V_2) the two gains must be equal: A1=A2A_1=A_2, i.e.

R1R2=R3R4 ⟹ vO=R2R1(V1−V2).\boxed{\frac{R_1}{R_2}=\frac{R_3}{R_4}}\ \Longrightarrow\ v_O=\frac{R_2}{R_1}(V_1-V_2).

Formula (integrator). Inverting amplifier with Z1=RZ_1=R and Z2=1sCZ_2=\dfrac1{sC}: Av(s)=−1sRCA_v(s)=-\dfrac{1}{sRC}. In time: iR=vS/Ri_R=v_S/R, iC=C v˙Ci_C=C\,\dot v_C with vC=vO−vINV=vOv_C=v_O-v_{INV}=v_O and iR+iC=0i_R+i_C=0:

vO(t)=−1RC∫0tvS(τ) dτ+vO(0).v_O(t)=-\frac{1}{RC}\int_0^tv_S(\tau)\,d\tau+v_O(0).

Formula (differentiator). Inverting amplifier with Z1=1sCZ_1=\dfrac1{sC} and Z2=RZ_2=R: Av(s)=−sRCA_v(s)=-sRC. In time: iC=C v˙Si_C=C\,\dot v_S (the voltage on the capacitor is vSv_S because the −- node is at virtual ground), iR=vO/Ri_R=v_O/R and iC+iR=0i_C+i_R=0:

vO(t)=−RC dvSdt.v_O(t)=-RC\,\frac{dv_S}{dt}.

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

Formula (instrumentation amplifier). Two non-inverting amplifiers with a single resistor RgR_g between the two inverting terminals, followed by a difference amplifier. The two outputs vo1,vo2v_{o1},v_{o2} satisfy

vo1−vo2=(1+2RRg)(V1−V2),v_{o1}-v_{o2}=\Big(1+\frac{2R}{R_g}\Big)(V_1-V_2),

Transfer Function and Bode Plots

Formula (frequency response and output to a sinusoidal input). A linear amplifier with capacitors has a gain that depends on frequency. In the Laplace domain the gain A(s)=Vout(s)/Vin(s)A(s)=V_{out}(s)/V_{in}(s) is a rational function of ss. For sinusoidal signals put s=jωs=j\omega: the complex function A(jω)A(j\omega) is the frequency response and says how a signal sin⁡(ωt)\sin(\omega t) is modified:

vin=Vsin⁡(ω0t+φ) ⟹ vout=V ∣A(jω0)∣ sin⁡(ω0t+φ+∠A(jω0)).v_{in}=V\sin(\omega_0t+\varphi)\ \Longrightarrow\ v_{out}=V\,|A(j\omega_0)|\,\sin\big(\omega_0t+\varphi+\angle A(j\omega_0)\big).

Frequency Response of Op-Amp Circuits and Bode Plots

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).

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.

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).

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.

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

Rectifiers and Diode Circuits for Power Supplies

Formula (half-wave rectifier with ideal diode). Over a period: Vmean=1T∫0T/2Vpsin⁡ωt dt=Vpπ,Vrms2=1T∫0T/2Vp2sin⁡2ωt dt=Vp24 ⇒ Vrms=Vp2,V_{mean}=\frac1T\int_0^{T/2}V_p\sin\omega t\,dt=\frac{V_p}{\pi},\qquad V_{rms}^2=\frac1T\int_0^{T/2}V_p^2\sin^2\omega t\,dt=\frac{V_p^2}{4}\ \Rightarrow\ V_{rms}=\frac{V_p}2, PR=Vrms2R=Vp24R.P_R=\frac{V_{rms}^2}{R}=\frac{V_p^2}{4R}.

Grafico interattivo: Load voltage of an ideal half-wave rectifier with v_g = 10 sin(wt), versus wt (radians): positive for half a period, zero for the other half

Formula (full-wave rectifier with ideal diodes). With a bridge of four diodes (or a centre-tapped transformer with two diodes) the negative half-wave is also flipped: vR=∣vg∣v_R=|v_g| (with the bridge two diodes in series conduct in each half-wave, so with threshold vR=∣vg∣−2Vγv_R=|v_g|-2V_\gamma). For ideal diodes: Vmean=2Vpπ,Vrms=Vp2,PR=Vp22R.V_{mean}=\frac{2V_p}{\pi},\qquad V_{rms}=\frac{V_p}{\sqrt2},\qquad P_R=\frac{V_p^2}{2R}.

Formula (ripple of the peak detector). A capacitor CC is placed in parallel with the load. When vgv_g exceeds the capacitor voltage vCv_C the diode conducts and CC charges following vgv_g up to the peak; when vgv_g falls the diode turns off and CC discharges on RR with time constant RCRC (vC≃Vpe−t/RCv_C\simeq V_pe^{-t/RC}) until vgv_g reaches it again. The output becomes almost constant, with a small residual oscillation (ripple) of peak-to-peak amplitude ΔV≃Vp TdischargeRC≃VpfRC(half-wave),Vp2fRC(full-wave),\Delta V\simeq V_p\,\frac{T_{discharge}}{RC}\simeq\frac{V_p}{fRC}\quad\text{(half-wave)},\qquad\frac{V_p}{2fRC}\quad\text{(full-wave)}, valid for ΔV≪Vp\Delta V\ll V_p (the discharge lasts about the whole period T=1/fT=1/f, or T/2T/2 in the full-wave case).

Formula (piecewise-linear diode with threshold: output voltage). Vout=RR+rD (E+Vγ)=0.8 (E+1)(E≤−1 V),Vout=0(E≥−1 V).V_{out}=\frac{R}{R+r_D}\,(E+V_\gamma)=0.8\,(E+1)\quad(E\le-1\ \mathrm V),\qquad V_{out}=0\quad(E\ge-1\ \mathrm V).