Salta al contenuto
Note per Studenti Electronics - Exam of 23 June 2022 Report

Electronics - Exam of 23 June 2022

Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.

In questa pagina 6

Written exam of 23 June 2022 of the course Fondamenti di Elettronica (Fundamentals of Electronics), the equivalent course taught in Italian for Electronic Engineering at the University of Padova. The English-language course Electronics does not publish its own exams, so this is the paper of the Italian course, translated. The date printed on the sheet is 23 June 2022. The sheet contains five parts: Exercise 1 (bias point and gain of a two-transistor amplifier), Exercise 2 (transfer characteristic of an op-amp circuit with diodes) and three quick questions (Exercises 3, 4 and 5). It does not print the duration or the points: the papers of the same course use 2 hours and 12 + 12 + 2 + 2 + 2 = 30 points, and these are the values used below (they are an assumption, not printed on this sheet). The sheet asks to write in every exercise the equations that are solved (in the order in which they are determined) and the numerical results, substituting the numbers only in the final computation.

The official exam of Electronics is different in length and rules: written only, 2.5 hours, closed book (one personal double-sided A4 sheet with formulas and schemes, a calculator, no communication devices, no AI tools), quantitative problems on the theory and modelling of semiconductor devices and on the analysis and design of analog circuits (transistor amplifiers, op-amps, filters, non-linear circuits), maximum score 31 out of 30. The grading weights are accuracy of the analysis 25 percent, modelling 20 percent, design 15 percent, numerical precision 20 percent, clarity 20 percent. An oral exam is used only in doubtful cases. So this paper is a little shorter than the real one: solve it in about 2 hours, with the sheet of formulas, and open "Result" only at the end to check.

Everything in the paper is covered by the notes of the course or of the other courses of the degree that are linked in the solutions (op-amp and CMRR: Microelectronics Laboratory; sinusoidal power: Electric Circuits). The figures are described in words, node by node. In the notation of the notes, the MOSFET law ID=IDSS(VGS/Vt−1)2I_D = I_{DSS}\left(V_{GS}/V_t - 1\right)^2 of the sheet is ID=kn2(VGS−VTN)2I_D = \frac{k_n}{2}(V_{GS}-V_{TN})^2 with kn2=IDSS/Vt2\frac{k_n}{2} = I_{DSS}/V_t^2, and the thermal voltage VTV_T of the sheet is the UTU_T of the notes.

Exercise 1 (points 12)

Given the circuit in the figure, compute the bias point of the two devices and the value of the gain

Av=voutvin.A_v = \frac{v_{out}}{v_{in}}.

The gain must be evaluated in band, that is, considering the coupling and bypass capacitors as short circuits.

Figure (description). Supply rail VCCV_{CC} at the top, ground at the bottom.

  • Gate bias of the n-channel MOSFET M1M_1: RG1R_{G1} from VCCV_{CC} to the node GG, RG2R_{G2} from GG to ground. The gate of M1M_1 is connected to GG.
  • RDR_D goes from VCCV_{CC} to the node DD, which is the drain of M1M_1. The source SS of M1M_1 is connected to ground through RSR_S.
  • The same node DD is also connected to the base of the pnp transistor Q1Q_1 (the base is driven directly by the drain of M1M_1).
  • Input: the generator VgV_g (positive terminal at the top) is connected to the node vinv_{in}, then in series RgR_g and the capacitor CSC_S; the wire after CSC_S passes over the vertical branch RG1R_{G1}-RG2R_{G2} (drawn with a small bridge, so it does not connect to it) and ends on the source node SS of M1M_1. The input therefore enters at the source, not at the gate.
  • Q1Q_1 (pnp): the emitter is connected to the node EE; RER_E goes from VCCV_{CC} to EE and the capacitor CEC_E is in parallel to RER_E (also from VCCV_{CC} to EE). The collector is connected to the node CC.
  • RCR_C goes from the node CC to ground. Output: the capacitor CLC_L goes from CC to the terminal voutv_{out}, and the load RLR_L goes from voutv_{out} to ground.

Data. VCC=30 VV_{CC} = 30\ \mathrm V, RG1=200 kΩR_{G1} = 200\ \mathrm{k\Omega}, RG2=50 kΩR_{G2} = 50\ \mathrm{k\Omega}, RS=1.25 kΩR_S = 1.25\ \mathrm{k\Omega}, RD=5 kΩR_D = 5\ \mathrm{k\Omega}, RE=2 kΩR_E = 2\ \mathrm{k\Omega}, RC=2 kΩR_C = 2\ \mathrm{k\Omega}, RL=6 kΩR_L = 6\ \mathrm{k\Omega}, Rg=100 ΩR_g = 100\ \Omega. MOSFET: IDSS=12.5 mAI_{DSS} = 12.5\ \mathrm{mA}, Vt=2.5 VV_t = 2.5\ \mathrm V, λ=0 V−1\lambda = 0\ \mathrm{V^{-1}}. BJT: VBE=−0.685 VV_{BE} = -0.685\ \mathrm V, βF=100\beta_F = 100, β0=180\beta_0 = 180, ro=∞r_o = \infty, VT=25 mVV_T = 25\ \mathrm{mV}.

Show the result
  • Bias of M1M_1: VG=6 VV_G = 6\ \mathrm V, VGS=3.5 VV_{GS} = 3.5\ \mathrm V, ID=2 mAI_D = 2\ \mathrm{mA}, VDS=17.725 VV_{DS} = 17.725\ \mathrm V (saturation).
  • Bias of Q1Q_1: IB=45 μAI_B = 45\ \mu\mathrm A, IC=4.5 mAI_C = 4.5\ \mathrm{mA} (current leaving the collector), VEC=11.91 VV_{EC} = 11.91\ \mathrm V (forward active region). Node voltages: VD=VB=20.225 VV_D = V_B = 20.225\ \mathrm V, VE=20.91 VV_E = 20.91\ \mathrm V, VC=9 VV_C = 9\ \mathrm V.
  • Small-signal parameters: gm1=4 mSg_{m1} = 4\ \mathrm{mS}, gm2=180 mSg_{m2} = 180\ \mathrm{mS}, rπ=1 kΩr_\pi = 1\ \mathrm{k\Omega}.
  • Gain: Av=vout/vin=−22500/37=−608.1A_v = v_{out}/v_{in} = -22500/37 = -608.1.
Show the full solution

Method. (1) dc analysis with the capacitors open and vinv_{in} turned off: operating point of M1M_1 and Q1Q_1, and check of the regions; (2) ac analysis with the capacitors short and VCCV_{CC} at zero: the amplifier is the cascade of a common-gate stage and a common-emitter stage, and the gain is the product of the stage gains and of the coupling coefficients, exactly as in Three-Stage Amplifier Design ProblemsTwo worked problems on discrete multistage amplifiers: the dc operating point of every transistor is found with capacitors open and the Thevenin base-bias trick, then the ac gain is the product of the stage gains and coupling coefficients of a common-gate, a common-emitter with degeneration and a common-collector stage.Three-Stage Amplifier Design Problems →. Units below: V, mA, kOhm, mS.

1. dc: the MOSFET. The gate draws no current, so the divider RG1R_{G1}-RG2R_{G2} is unloaded: VG=VCCRG2RG1+RG2=30⋅50250=6 V.V_G = V_{CC}\frac{R_{G2}}{R_{G1}+R_{G2}} = 30\cdot\frac{50}{250} = 6\ \mathrm V . The saturation law (The MOSFET TransistorThe n-channel and p-channel MOSFET: structure, terminal currents, derivation of the triode current with the gradual channel approximation, cut-off, saturation (active region) and channel length modulation.The MOSFET Transistor →) is ID=IDSS(VGSVt−1)2I_D = I_{DSS}\left(\dfrac{V_{GS}}{V_t}-1\right)^2 and the loop gate-source-RSR_S gives VG=VGS+RSIDV_G = V_{GS} + R_SI_D. Substituting IDI_D in the loop gives a second-order equation in VGSV_{GS}: VG=VGS+RSIDSS(VGS2Vt2−2VGSVt+1) ⇒ RSIDSSVt2⏟a=2.5VGS2+(1−2RSIDSSVt)⏟b=−11.5VGS+RSIDSS−VG⏟c=9.625=0.V_G = V_{GS} + R_SI_{DSS}\left(\frac{V_{GS}^2}{V_t^2} - \frac{2V_{GS}}{V_t} + 1\right)\ \Rightarrow\ \underbrace{\frac{R_SI_{DSS}}{V_t^2}}_{a=2.5}V_{GS}^2 + \underbrace{\left(1 - \frac{2R_SI_{DSS}}{V_t}\right)}_{b=-11.5}V_{GS} + \underbrace{R_SI_{DSS} - V_G}_{c=9.625} = 0 . The roots are VGS=11.5±11.52−4⋅2.5⋅9.6255=11.5±65=3.5 V or 1.1 V.V_{GS} = \frac{11.5 \pm\sqrt{11.5^2 - 4\cdot2.5\cdot9.625}}{5} = \frac{11.5\pm6}{5} = 3.5\ \mathrm V\ \text{or}\ 1.1\ \mathrm V . The transistor conducts only if VGS>Vt=2.5 VV_{GS} > V_t = 2.5\ \mathrm V: the root 1.1 V1.1\ \mathrm V is below threshold (cut-off, no current, incompatible with the assumption of saturation) and is discarded. Hence VGS=3.5 V,ID=2(3.52.5−1)2⋅6.25=12.5⋅0.16=2 mA,VS=RSID=2.5 V,VOV=VGS−Vt=1 V.V_{GS} = 3.5\ \mathrm V,\qquad I_D = 2\left(\frac{3.5}{2.5}-1\right)^2\cdot 6.25 = 12.5\cdot0.16 = 2\ \mathrm{mA},\qquad V_S = R_SI_D = 2.5\ \mathrm V,\qquad V_{OV} = V_{GS}-V_t = 1\ \mathrm V . Typical mistake: keeping the root 3.92 mA3.92\ \mathrm{mA} of the equation written in IDI_D (it corresponds to VGS=1.1 VV_{GS} = 1.1\ \mathrm V, below threshold).

2. dc: the BJT. Q1Q_1 is a pnp (The Bipolar Junction TransistorThe BJT is a three-region device (emitter, base, collector) with two pn junctions; in the forward active region it amplifies with i_C = beta_F i_B = I_S exp(v_BE/U_T), in saturation and cut-off it acts as a switch, and the transport model with its piecewise approximations covers all four operating regions.The Bipolar Junction Transistor →): emitter towards VCCV_{CC}, all three currents IE,IB,ICI_E, I_B, I_C positive in the forward active region, VEB=0.685 VV_{EB} = 0.685\ \mathrm V (the value VBE=−0.685 VV_{BE} = -0.685\ \mathrm V of the sheet), IE=(βF+1)IBI_E = (\beta_F+1)I_B with the dc gain βF=100\beta_F = 100. The base current IBI_B leaves the base and enters the node DD, which also receives the drain current: the current of M1M_1 is therefore supplied by RDR_D and by the base, ID=VCC−VDRD+IB ⇒ VD=VCC−RD(ID−IB)=30−5(2−IB)=20+5IB.I_D = \frac{V_{CC}-V_D}{R_D} + I_B\ \Rightarrow\ V_D = V_{CC} - R_D(I_D - I_B) = 30 - 5(2 - I_B) = 20 + 5I_B . The emitter is VE=VD+VEBV_E = V_D + V_{EB} and the current in RER_E is the emitter current: VCC−VERE=(βF+1)IB ⇒ 9.315−5IB2=101 IB ⇒ 9.315=207 IB ⇒ IB=0.045 mA=45 μA.\frac{V_{CC}-V_E}{R_E} = (\beta_F+1)I_B\ \Rightarrow\ \frac{9.315 - 5I_B}{2} = 101\,I_B\ \Rightarrow\ 9.315 = 207\,I_B\ \Rightarrow\ I_B = 0.045\ \mathrm{mA} = 45\ \mu\mathrm A . Then IC=βFIB=4.5 mA,IE=4.545 mA,VD=VB=20.225 V,VE=20.91 V,VC=RCIC=9 V,VEC=VE−VC=11.91 V.I_C = \beta_FI_B = 4.5\ \mathrm{mA},\quad I_E = 4.545\ \mathrm{mA},\quad V_D = V_B = 20.225\ \mathrm V,\quad V_E = 20.91\ \mathrm V,\quad V_C = R_CI_C = 9\ \mathrm V,\quad V_{EC} = V_E - V_C = 11.91\ \mathrm V . (The collector current leaves the collector and flows to ground through RCR_C; RLR_L is cut off from the dc by CLC_L.)

3. Check of the regions. M1M_1: VDS=VD−VS=20.225−2.5=17.725 V≥VOV=1 VV_{DS} = V_D - V_S = 20.225 - 2.5 = 17.725\ \mathrm V \ge V_{OV} = 1\ \mathrm V: saturation, as assumed. Q1Q_1: IB>0I_B > 0 and VEC=11.91 VV_{EC} = 11.91\ \mathrm V is well above VECsatV_{ECsat} (a few tenths of a volt): forward active region. Check of the node DD: (30−20.225)/5+0.045=2 mA=ID(30-20.225)/5 + 0.045 = 2\ \mathrm{mA} = I_D.

4. Small-signal parameters (Small-Signal Equivalent Models of MOSFET and BJTLinearizing the transistor equations around a dc operating point gives small-signal models: the MOSFET becomes a voltage-controlled current source g_m v_gs in parallel with r_o, the BJT adds the input resistance r_pi, and the two share one unified two-port with the parameter table g_m, r_i, r_o.Small-Signal Equivalent Models of MOSFET and BJT →): gm1=2IDVOV=2⋅21=4 mS,gm2=ICVT=4.50.025=180 mS,rπ=β0gm2=180180=1 kΩ.g_{m1} = \frac{2I_D}{V_{OV}} = \frac{2\cdot2}{1} = 4\ \mathrm{mS},\qquad g_{m2} = \frac{I_C}{V_T} = \frac{4.5}{0.025} = 180\ \mathrm{mS},\qquad r_\pi = \frac{\beta_0}{g_{m2}} = \frac{180}{180} = 1\ \mathrm{k\Omega}. In the small-signal model the current gain of the sheet for ac is β0=180\beta_0 = 180 (not βF=100\beta_F = 100, which is used only for the dc currents). With λ=0\lambda = 0 and ro=∞r_o = \infty there are no output resistances of the transistors.

5. The ac circuit. All capacitors are short circuits and VCCV_{CC} is ac ground.

Stage 1 (common gate, Three-Stage Amplifier Design ProblemsTwo worked problems on discrete multistage amplifiers: the dc operating point of every transistor is found with capacitors open and the Thevenin base-bias trick, then the ac gain is the product of the stage gains and coupling coefficients of a common-gate, a common-emitter with degeneration and a common-collector stage.Three-Stage Amplifier Design Problems →). The drain current id=gm1vgs=−gm1vsi_d = g_{m1}v_{gs} = -g_{m1}v_s flows through RDR_D, so, in a non-inverting way, Avo1=gm1RD=4⋅5=20,Ro1=RD=5 kΩ,RiS1=1gm1=250 Ω.A_{vo1} = g_{m1}R_D = 4\cdot5 = 20,\qquad R_{o1} = R_D = 5\ \mathrm{k\Omega},\qquad R_{iS1} = \frac{1}{g_{m1}} = 250\ \Omega . The source node sees RSR_S in parallel with 1/gm11/g_{m1}, which is the input resistance of the whole amplifier: Ri=RS∥1gm1=1.25⋅0.251.25+0.25=0.2083 kΩ=208.3 Ω.R_i = R_S\parallel\frac{1}{g_{m1}} = \frac{1.25\cdot0.25}{1.25+0.25} = 0.2083\ \mathrm{k\Omega} = 208.3\ \Omega . Stage 2 (common emitter with bypassed emitter). The base sees rπr_\pi to the (ac) ground and there is no bias resistor on the base: RiB2=rπ=1 kΩ,Avo2=−gm2RC=−180⋅2=−360,Ro2=RC=2 kΩ.R_{iB2} = r_\pi = 1\ \mathrm{k\Omega},\qquad A_{vo2} = -g_{m2}R_C = -180\cdot2 = -360,\qquad R_{o2} = R_C = 2\ \mathrm{k\Omega}. (The controlled source gm2vbeg_{m2}v_{be} pulls current out of the collector node, hence the minus sign: the stage is inverting.)

6. Coupling coefficients and total gain. Each stage output is divided between its output resistance and the input resistance of the next block: αi=RiRi+Rg=208.3308.3=2537=0.6757,α1,2=rπrπ+RD=16,αo=RLRC+RL=68=0.75.\alpha_i = \frac{R_i}{R_i + R_g} = \frac{208.3}{308.3} = \frac{25}{37} = 0.6757,\qquad \alpha_{1,2} = \frac{r_\pi}{r_\pi + R_D} = \frac{1}{6},\qquad \alpha_o = \frac{R_L}{R_C + R_L} = \frac{6}{8} = 0.75 . Av=voutvin=αi Avo1 α1,2 Avo2 αo=0.6757⋅20⋅16⋅(−360)⋅0.75=−2250037=−608.1.A_v = \frac{v_{out}}{v_{in}} = \alpha_i\,A_{vo1}\,\alpha_{1,2}\,A_{vo2}\,\alpha_o = 0.6757\cdot20\cdot\frac16\cdot(-360)\cdot0.75 = -\frac{22500}{37} = -608.1 . Here vinv_{in} is the voltage of the node before RgR_g (the generator terminal), so RgR_g is part of the first divider. The gain is large and negative: the common-gate stage does not invert and the common-emitter stage inverts. Typical mistakes: treating M1M_1 as a common-source stage (the input is on the source and the gate is not driven); using βF=100\beta_F = 100 to compute rπr_\pi; omitting one of the three loading dividers; forgetting that the base current of the pnp enters the drain node in the dc equation; writing the signs of the pnp currents and voltages as for an npn (the official solution uses the opposite sign convention, see the final remark).

7. Check. A complete nodal analysis of the ac circuit (source node, drain/base node, collector node, no cascade shortcuts) gives the same value Av=−608.108A_v = -608.108.

Exercise 2 (points 12)

Given the circuit in the figure, determine and plot:

  1. the transfer characteristic Vout=f(Vin)V_{out} = f(V_{in}) for VB=3 VV_B = 3\ \mathrm V;
  2. the transfer characteristic Vout=f(Vin)V_{out} = f(V_{in}) for VB=−3 VV_B = -3\ \mathrm V.

Figure (description). Ideal op-amp.

  • Inverting input (−-), call it the node N−N_-: the resistor R2R_2 connects the output VoutV_{out} to N−N_- (feedback); the resistor R1R_1 connects N−N_- to the anode of the diode D1D_1; the cathode of D1D_1 is connected to the positive terminal of the battery VBV_B, whose negative terminal is at ground.
  • Non-inverting input (++), call it the node N+N_+: the resistor R3R_3 connects the input terminal VinV_{in} to N+N_+; the resistor R4R_4 connects N+N_+ to the cathode of the diode D2D_2, whose anode is at ground. In the figure D2D_2 is drawn vertically with the triangle pointing up (towards R4R_4).

Data. R1=5 kΩR_1 = 5\ \mathrm{k\Omega}, R2=10 kΩR_2 = 10\ \mathrm{k\Omega}, R3=4 kΩR_3 = 4\ \mathrm{k\Omega}, R4=2 kΩR_4 = 2\ \mathrm{k\Omega}, −15 V≤Vin≤15 V-15\ \mathrm V \le V_{in}\le 15\ \mathrm V. Ideal op-amp (infinite gain). Ideal diodes: Vγ=0V_\gamma = 0, rD=0r_D = 0.

Show the result

For VB=3 VV_B = 3\ \mathrm V: Vout={Vin/3−15 V≤Vin≤0  (D1 OFF, D2 ON)Vin0≤Vin≤3 V  (D1 OFF, D2 OFF)3Vin−6 V3 V≤Vin≤15 V  (D1 ON, D2 OFF)V_{out} = \begin{cases} V_{in}/3 & -15\ \mathrm V\le V_{in}\le 0\ \ (D_1\ \mathrm{OFF},\ D_2\ \mathrm{ON})\\ V_{in} & 0\le V_{in}\le 3\ \mathrm V\ \ (D_1\ \mathrm{OFF},\ D_2\ \mathrm{OFF})\\ 3V_{in}-6\ \mathrm V & 3\ \mathrm V\le V_{in}\le 15\ \mathrm V\ \ (D_1\ \mathrm{ON},\ D_2\ \mathrm{OFF})\end{cases} with corner points (−15; −5)(-15;\,-5), (0; 0)(0;\,0), (3; 3)(3;\,3), (15; 39)(15;\,39) in volts (the case with both diodes ON never occurs).

For VB=−3 VV_B = -3\ \mathrm V: Vout={Vin/3−15 V≤Vin≤−9 V  (D1 OFF, D2 ON)Vin+6 V−9 V≤Vin≤0  (D1 ON, D2 ON)3Vin+6 V0≤Vin≤15 V  (D1 ON, D2 OFF)V_{out} = \begin{cases} V_{in}/3 & -15\ \mathrm V\le V_{in}\le -9\ \mathrm V\ \ (D_1\ \mathrm{OFF},\ D_2\ \mathrm{ON})\\ V_{in}+6\ \mathrm V & -9\ \mathrm V\le V_{in}\le 0\ \ (D_1\ \mathrm{ON},\ D_2\ \mathrm{ON})\\ 3V_{in}+6\ \mathrm V & 0\le V_{in}\le 15\ \mathrm V\ \ (D_1\ \mathrm{ON},\ D_2\ \mathrm{OFF})\end{cases} with corner points (−15; −5)(-15;\,-5), (−9; −3)(-9;\,-3), (0; 6)(0;\,6), (15; 51)(15;\,51) in volts (the case with both diodes OFF never occurs).

Show the full solution

Method. The op-amp is ideal with negative feedback (R2R_2 from the output to the inverting input): the two inputs are at the same voltage (virtual short) and no current enters them (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 →); the output saturation is ignored, as the sheet states that the op-amp is ideal. The diodes are treated with the hypothesis-and-verify method of Diode Circuit ProblemsWorked problems on diode circuits using the piecewise linear (PWL) model with the hypothesis-and-verify method, ending with the half-wave rectifier without and with a filter capacitor.Diode Circuit Problems →: with VON=0V_{ON} = 0 a diode is a short circuit if ON (condition: current from anode to cathode positive) and an open circuit if OFF (condition: voltage vD=vA−vKv_D = v_A - v_K negative). There are four combinations, solved once for a generic VBV_B and then for the two values.

Definitions of the currents: I1I_1 is the current in R1R_1 (and D1D_1) from N−N_- towards the battery, so ID1=I1I_{D1} = I_1; ID2I_{D2} is the current in D2D_2 from ground to its cathode, so it flows upward in R4R_4, towards N+N_+: ID2=−V+/R4I_{D2} = -V_+/R_4 when there is no other current in R4R_4 than the one of the diode branch.

Hypothesis 1: D1D_1 OFF, D2D_2 OFF. No current in R1R_1, R2R_2, R3R_3, R4R_4: V+=VinV_+ = V_{in} and V−=VoutV_- = V_{out}, and the virtual short gives Vout=Vin.V_{out} = V_{in}. Conditions: D2D_2 OFF needs vD2=0−V+<0v_{D2} = 0 - V_+ < 0, i.e. Vin>0V_{in} > 0; D1D_1 OFF needs vD1=V−−VB<0v_{D1} = V_- - V_B < 0, i.e. Vin<VBV_{in} < V_B.

Hypothesis 2: D1D_1 ON, D2D_2 OFF. D2D_2 OFF: no current in R3R_3 and R4R_4, so V+=Vin=V−V_+ = V_{in} = V_-. Since D1D_1 is a short circuit, R1R_1 is connected between N−N_- and the battery: I1=(Vin−VB)/R1I_1 = (V_{in} - V_B)/R_1. The same current flows through R2R_2 from the output to N−N_-: Vout=V−+R2I1=Vin+R2R1(Vin−VB)=3Vin−2VB.V_{out} = V_- + R_2I_1 = V_{in} + \frac{R_2}{R_1}(V_{in} - V_B) = 3V_{in} - 2V_B . Conditions: I1>0I_1 > 0, i.e. Vin>VBV_{in} > V_B; D2D_2 OFF, i.e. Vin>0V_{in} > 0.

Hypothesis 3: D2D_2 ON, D1D_1 OFF. D2D_2 is a short circuit to ground, so R3R_3 and R4R_4 form a divider and V+=VinR4R3+R4=Vin3V_+ = V_{in}\dfrac{R_4}{R_3+R_4} = \dfrac{V_{in}}{3}. D1D_1 OFF: no current in R1R_1 and R2R_2, so Vout=V−=V+V_{out} = V_- = V_+: Vout=Vin3.V_{out} = \frac{V_{in}}{3}. Conditions: ID2=−V+/R4>0I_{D2} = -V_+/R_4 > 0, i.e. Vin<0V_{in} < 0; D1D_1 OFF: V−−VB=Vin/3−VB<0V_- - V_B = V_{in}/3 - V_B < 0, i.e. Vin<3VBV_{in} < 3V_B.

Hypothesis 4: D1D_1 ON, D2D_2 ON. V+=V−=Vin/3V_+ = V_- = V_{in}/3 and I1=(Vin/3−VB)/R1I_1 = (V_{in}/3 - V_B)/R_1: Vout=Vin3+R2 Vin/3−VBR1=Vin−2VB.V_{out} = \frac{V_{in}}{3} + R_2\,\frac{V_{in}/3 - V_B}{R_1} = V_{in} - 2V_B . Conditions: Vin<0V_{in} < 0 (from ID2>0I_{D2} > 0) and Vin>3VBV_{in} > 3V_B (from I1>0I_1 > 0).

Case 1: VB=3 VV_B = 3\ \mathrm V.

  • Hyp 1: 0<Vin<30 < V_{in} < 3: valid, Vout=VinV_{out} = V_{in}.
  • Hyp 2: Vin>3V_{in} > 3 (and >0> 0): Vout=3Vin−6V_{out} = 3V_{in} - 6.
  • Hyp 3: Vin<0V_{in} < 0 and Vin<9V_{in} < 9, i.e. Vin<0V_{in} < 0: Vout=Vin/3V_{out} = V_{in}/3.
  • Hyp 4: needs Vin<0V_{in} < 0 and Vin>9V_{in} > 9: impossible. The three intervals cover [−15,15][-15, 15] without overlap. Continuity checks: at Vin=0V_{in} = 0 both Hyp 3 and Hyp 1 give 00; at Vin=3V_{in} = 3 Hyp 1 gives 33 and Hyp 2 gives 3⋅3−6=33\cdot3-6 = 3. Values at the ends: Vout(−15)=−5 VV_{out}(-15) = -5\ \mathrm V and Vout(15)=39 VV_{out}(15) = 39\ \mathrm V.

Grafico interattivo: Transfer characteristic V_out (V) versus V_in (V) for V_B = 3 V: slope 1/3 for V_in below 0, slope 1 up to V_in = 3 V, slope 3 above

Case 2: VB=−3 VV_B = -3\ \mathrm V.

  • Hyp 1: needs Vin>0V_{in} > 0 and Vin<−3V_{in} < -3: impossible.
  • Hyp 2: Vin>−3V_{in} > -3 and Vin>0V_{in} > 0, i.e. Vin>0V_{in} > 0: Vout=3Vin+6V_{out} = 3V_{in} + 6.
  • Hyp 3: Vin<0V_{in} < 0 and Vin<−9V_{in} < -9, i.e. Vin<−9V_{in} < -9: Vout=Vin/3V_{out} = V_{in}/3.
  • Hyp 4: Vin<0V_{in} < 0 and Vin>−9V_{in} > -9, i.e. −9<Vin<0-9 < V_{in} < 0: Vout=Vin+6V_{out} = V_{in} + 6. Continuity: at Vin=−9V_{in} = -9 Hyp 3 gives −3-3 and Hyp 4 gives −9+6=−3-9 + 6 = -3; at Vin=0V_{in} = 0 Hyp 4 gives 66 and Hyp 2 gives 66. Values at the ends: Vout(−15)=−5 VV_{out}(-15) = -5\ \mathrm V and Vout(15)=51 VV_{out}(15) = 51\ \mathrm V. The curve crosses the VinV_{in} axis at Vin=−6 VV_{in} = -6\ \mathrm V (on the Hyp 4 branch).

Grafico interattivo: Transfer characteristic V_out (V) versus V_in (V) for V_B = -3 V: slope 1/3 up to V_in = -9 V, slope 1 up to V_in = 0, slope 3 above

Summary of the three slopes: slope 1/31/3 when D2D_2 is ON and D1D_1 is OFF (divider R4/(R3+R4)R_4/(R_3+R_4) on the non-inverting input and a unity-gain follower), slope 11 when both diodes are OFF, slope 1+R2/R1=31 + R_2/R_1 = 3 when only D1D_1 is ON. Typical mistakes: reading the orientation of D1D_1 the wrong way (it conducts when V−>VBV_- > V_B, not when V−<VBV_- < V_B); forgetting the divider R3R_3-R4R_4 when D2D_2 is ON; accepting a hypothesis without checking its conditions (for VB=3 VV_B = 3\ \mathrm V Hyp 1 holds only for 0<Vin<30 < V_{in} < 3); not checking continuity at the corner points.

Check. A program that tries the four hypotheses for each value of VinV_{in} from −15-15 to 15 V15\ \mathrm V in steps of 0.05 V0.05\ \mathrm V finds exactly one consistent hypothesis in each point (apart from the corner points, where two hypotheses give the same value) and the values above, for both VBV_B.

Exercise 3 (points 2)

Determine the output voltage of a differential amplifier in the following conditions: AD=10A_D = 10, ACM=−0.5A_{CM} = -0.5, V1=VNI=0.6+0.2sin⁡(ωt) VV_1 = V_{NI} = 0.6 + 0.2\sin(\omega t)\ \mathrm V, V2=VINV=−0.2+0.2sin⁡(ωt) VV_2 = V_{INV} = -0.2 + 0.2\sin(\omega t)\ \mathrm V.

Show the result

vout(t)=7.9−0.1sin⁡(ωt) Vv_{out}(t) = 7.9 - 0.1\sin(\omega t)\ \mathrm V.

Show the full solution

The notation vO=ADvD+ACMvCMv_O = A_Dv_D + A_{CM}v_{CM} of 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 → uses the differential mode vD=v1−v2v_D = v_1 - v_2 and the common mode vCM=(v1+v2)/2v_{CM} = (v_1+v_2)/2: vD=(0.6+0.2sin⁡ωt)−(−0.2+0.2sin⁡ωt)=0.8 V,vCM=0.4+0.4sin⁡ωt2=0.2+0.2sin⁡ωt V.v_D = (0.6 + 0.2\sin\omega t) - (-0.2 + 0.2\sin\omega t) = 0.8\ \mathrm V,\qquad v_{CM} = \frac{0.4 + 0.4\sin\omega t}{2} = 0.2 + 0.2\sin\omega t\ \mathrm V . The two sinusoids are equal, so they cancel in the difference: the signal is entirely common mode. Then vout=10⋅0.8−0.5 (0.2+0.2sin⁡ωt)=8−0.1−0.1sin⁡ωt=7.9−0.1sin⁡ωt V.v_{out} = 10\cdot0.8 - 0.5\,(0.2 + 0.2\sin\omega t) = 8 - 0.1 - 0.1\sin\omega t = 7.9 - 0.1\sin\omega t\ \mathrm V . Equivalently, the gains of the two inputs are A1=AD+ACM/2=9.75A_1 = A_D + A_{CM}/2 = 9.75 and A2=AD−ACM/2=10.25A_2 = A_D - A_{CM}/2 = 10.25, and vout=9.75v1−10.25v2v_{out} = 9.75v_1 - 10.25v_2 gives the same result. The sinusoid at the output is a disturbance due to the finite common-mode rejection (CMRR=∣AD/ACM∣=20\mathrm{CMRR} = |A_D/A_{CM}| = 20, i.e. 26 dB26\ \mathrm{dB}). Typical mistakes: using vD=v1+v2v_D = v_1 + v_2; forgetting the common-mode term (result 8 V8\ \mathrm V with no sinusoid); using vCM=v1+v2v_{CM} = v_1 + v_2 (without the factor 1/21/2).

Exercise 4 (points 2)

Determine the average power dissipated by a 10 Ω10\ \Omega resistor subjected to the voltage vR(t)=V1sin⁡(ω1t)+V2cos⁡(ω2t)v_R(t) = V_1\sin(\omega_1t) + V_2\cos(\omega_2t), knowing that V1=2.8 VV_1 = 2.8\ \mathrm V, V2=9.6 VV_2 = 9.6\ \mathrm V and ω1≠ω2\omega_1 \ne \omega_2.

Show the result

P=5 WP = 5\ \mathrm W.

Show the full solution

The instantaneous power in a resistor is p(t)=vR2/Rp(t) = v_R^2/R (AC PowerIn sinusoidal steady state the instantaneous power at a port has a constant term (the active power P) and a term at twice the frequency; P, the reactive power Q, the apparent power S and the complex power are the real part, imaginary part, magnitude and the product of the voltage phasor by the conjugate current phasor.AC Power →: the average power of a resistor is the mean of vR2v_R^2 divided by RR, equal to Vrms2/RV_{rms}^2/R for a sinusoid). Expanding the square, vR2=V12sin⁡2ω1t+V22cos⁡2ω2t+2V1V2sin⁡ω1tcos⁡ω2t.v_R^2 = V_1^2\sin^2\omega_1t + V_2^2\cos^2\omega_2t + 2V_1V_2\sin\omega_1t\cos\omega_2t . Averages over a long time: ⟨sin⁡2ω1t⟩=⟨cos⁡2ω2t⟩=1/2\langle\sin^2\omega_1t\rangle = \langle\cos^2\omega_2t\rangle = 1/2. For the mixed term use sin⁡acos⁡b=12[sin⁡(a+b)+sin⁡(a−b)]\sin a\cos b = \tfrac12[\sin(a+b) + \sin(a-b)]: it is a sum of sinusoids at the frequencies ω1+ω2\omega_1 + \omega_2 and ω1−ω2\omega_1 - \omega_2, both different from zero because ω1≠ω2\omega_1 \ne \omega_2 (and the frequencies are positive), so its mean is zero. Therefore P=1R(V122+V222)=2.82+9.622⋅10=7.84+92.1620=10020=5 W.P = \frac{1}{R}\left(\frac{V_1^2}{2} + \frac{V_2^2}{2}\right) = \frac{2.8^2 + 9.6^2}{2\cdot10} = \frac{7.84 + 92.16}{20} = \frac{100}{20} = 5\ \mathrm W . The powers of two sinusoids of different frequencies add; the rms value of the sum is 100/2=7.07 V\sqrt{100/2} = 7.07\ \mathrm V. (The result is the same even if ω1=ω2\omega_1 = \omega_2, because a sine and a cosine are in quadrature and their product has zero mean.) Typical mistakes: adding the amplitudes before squaring, (V1+V2)2/(2R)=7.69 W(V_1 + V_2)^2/(2R) = 7.69\ \mathrm W; forgetting the factor 1/21/2 of the mean square (10 W10\ \mathrm W); keeping the mixed term.

Exercise 5 (points 2)

Determine the maximum and minimum values reached by the drift current density inside an isolated silicon bar, p-type doped as in the figure.

Figure (description). Plot of the hole density pp (vertical axis) versus the position xx along the bar (horizontal axis, from 00 to LL). For 0≤x≤x10 \le x \le x_1 the density is constant and equal to p1p_1; between x1x_1 and x2x_2 it grows linearly (a straight ramp) from p1p_1 to p2p_2; for x2≤x≤Lx_2 \le x \le L it is constant and equal to p2p_2 (with p2>p1p_2 > p_1).

Data. L=100 μmL = 100\ \mu\mathrm m, x1=40 μmx_1 = 40\ \mu\mathrm m, x2=60 μmx_2 = 60\ \mu\mathrm m, p1=1.5⋅1016 cm−3p_1 = 1.5\cdot10^{16}\ \mathrm{cm^{-3}}, p2=4⋅1017 cm−3p_2 = 4\cdot10^{17}\ \mathrm{cm^{-3}}, μp=480 cm2 V−1 s−1\mu_p = 480\ \mathrm{cm^2\,V^{-1}\,s^{-1}}, Dp=13 cm2 s−1D_p = 13\ \mathrm{cm^2\,s^{-1}}, q=1.6⋅10−19 Cq = 1.6\cdot10^{-19}\ \mathrm C. The contribution of the minority carriers can be neglected.

Show the result

Maximum: 400.4 A/cm2400.4\ \mathrm{A/cm^2} (in the ramp region x1<x<x2x_1 < x < x_2, in the direction of increasing xx). Minimum: 00 (in the two flat regions).

Show the full solution

The bar is isolated: it is not connected to any circuit, so the total current density is zero everywhere. With only holes contributing (Carrier Transport and Generation-RecombinationCarriers in a semiconductor move by drift under an electric field and by diffusion along a density gradient, giving the total current density formulas with mobility and diffusion coefficient, while generation and recombination restore the equilibrium product n p = n_i^2 whenever it is disturbed, with a net rate U set by the minority carriers.Carrier Transport and Generation-Recombination →, total current as the sum of drift and diffusion), jp=jp,drift+jp,diff=qμp p E−qDpdpdx=0 ⇒ jp,drift=qDpdpdx.j_p = j_{p,drift} + j_{p,diff} = q\mu_p\,p\,E - qD_p\frac{dp}{dx} = 0\ \Rightarrow\ j_{p,drift} = qD_p\frac{dp}{dx} . The drift current is balanced by the diffusion current: it is not zero where the density has a gradient (an electric field builds up inside the bar to oppose the diffusion).

  • In the flat regions 0<x<x10 < x < x_1 and x2<x<Lx_2 < x < L: dp/dx=0dp/dx = 0, so jdrift=0j_{drift} = 0 (and E=0E = 0).
  • In the ramp x1<x<x2x_1 < x < x_2 the gradient is constant: dpdx=p2−p1x2−x1=(40−1.5)⋅1016 cm−320⋅10−4 cm=1.925⋅1020 cm−4,\frac{dp}{dx} = \frac{p_2 - p_1}{x_2 - x_1} = \frac{(40 - 1.5)\cdot10^{16}\ \mathrm{cm^{-3}}}{20\cdot10^{-4}\ \mathrm{cm}} = 1.925\cdot10^{20}\ \mathrm{cm^{-4}} , so jdrift=qDpdpdx=1.6⋅10−19⋅13⋅1.925⋅1020=400.4 A/cm2.j_{drift} = qD_p\frac{dp}{dx} = 1.6\cdot10^{-19}\cdot13\cdot1.925\cdot10^{20} = 400.4\ \mathrm{A/cm^2} . The drift current density is ≥0\ge 0 everywhere, so the minimum is 00 and the maximum is 400.4 A/cm2400.4\ \mathrm{A/cm^2} (constant along the ramp). The field that produces it, E=jdrift/(qμpp)E = j_{drift}/(q\mu_pp), goes from 348 V/cm348\ \mathrm{V/cm} at x1x_1 to 13 V/cm13\ \mathrm{V/cm} at x2x_2 (the density pp grows, so the field needed decreases), while the current density stays constant. (The Einstein relation gives Dp/μp=27 mVD_p/\mu_p = 27\ \mathrm{mV}, close to kBT/qk_BT/q, a consistency check of the data.) Typical mistakes: using the lengths in micrometers in the gradient (a factor 10410^4 error); computing the drift current as qμpp Eq\mu_pp\,E without knowing EE (the field is not given: it is determined by the zero total current); answering that the drift current is zero because the bar is isolated (only the total current is zero).
Self-assessment grid

The sheet gives the points only in total; the split inside Exercises 1 and 2 is indicative.

Exercise Points What must be there for full marks Typical mistakes
1, bias of M1M_1 about 3 VG=6 VV_G = 6\ \mathrm V; second-order equation in VGSV_{GS} with the root above threshold (VGS=3.5 VV_{GS} = 3.5\ \mathrm V, ID=2 mAI_D = 2\ \mathrm{mA}); VDS=17.725 VV_{DS} = 17.725\ \mathrm V and check of saturation root below threshold kept; IBI_B missing in the drain node
1, bias of Q1Q_1 about 3 pnp equations with IB=45 μAI_B = 45\ \mu\mathrm A, IC=4.5 mAI_C = 4.5\ \mathrm{mA}, VEC=11.91 VV_{EC} = 11.91\ \mathrm V; check of the forward active region βF\beta_F and β0\beta_0 exchanged; wrong sign conventions; base current forgotten
1, ac gain about 6 gm1=4 mSg_{m1} = 4\ \mathrm{mS}, gm2=180 mSg_{m2} = 180\ \mathrm{mS}, rπ=1 kΩr_\pi = 1\ \mathrm{k\Omega}; common gate (Ri=208.3 ΩR_i = 208.3\ \Omega, Avo1=20A_{vo1} = 20) followed by common emitter (Avo2=−360A_{vo2} = -360); three coupling coefficients; Av=−608.1A_v = -608.1 M1M_1 as common source; one divider missing; rπr_\pi with βF\beta_F
2, equations about 5 the four hypotheses solved for generic VBV_B: VinV_{in}, 3Vin−2VB3V_{in}-2V_B, Vin/3V_{in}/3, Vin−2VBV_{in}-2V_B with their conditions wrong diode orientation; divider R3R_3-R4R_4 forgotten
2, characteristics about 7 for each VBV_B the intervals, the states of the diodes, the corner points (0;0)(0;0), (3;3)(3;3) and (−9;−3)(-9;-3), (0;6)(0;6), the end values (−5-5, 3939, 5151) and the plot hypotheses not verified; discontinuous curve; wrong end values
3 (quick) 2 vD=0.8 Vv_D = 0.8\ \mathrm V, vCM=0.2+0.2sin⁡ωtv_{CM} = 0.2 + 0.2\sin\omega t, vout=7.9−0.1sin⁡ωtv_{out} = 7.9 - 0.1\sin\omega t wrong definition of vCMv_{CM}; common mode neglected
4 (quick) 2 mixed term with zero mean, P=(V12+V22)/(2R)=5 WP = (V_1^2 + V_2^2)/(2R) = 5\ \mathrm W amplitudes added; missing factor 1/21/2
5 (quick) 2 total current zero in the isolated bar, jdrift=qDpdp/dxj_{drift} = qD_pdp/dx, maximum 400.4 A/cm2400.4\ \mathrm{A/cm^2} on the ramp, minimum 00 on the flat parts, lengths in cm micrometers not converted; drift current taken as zero

Comparison with the official solution. The sheet has an official solution for Exercises 1 and 2 only (handwritten scan); Exercises 3, 4 and 5 have no official solution and were solved here and checked numerically. For Exercises 1 and 2 all the results above coincide with the official ones: VGSV_{GS} roots 3.5 V3.5\ \mathrm V and 1.1 V1.1\ \mathrm V (with a=2.5a = 2.5, b=−11.5b = -11.5, c=9.625c = 9.625), gm1=4 mSg_{m1} = 4\ \mathrm{mS}, VDS=17.725 VV_{DS} = 17.725\ \mathrm V, IB=0.045 mAI_B = 0.045\ \mathrm{mA} in magnitude, gm2=180 mSg_{m2} = 180\ \mathrm{mS}, rπ=1 kΩr_\pi = 1\ \mathrm{k\Omega}, Avo1=20A_{vo1} = 20, Ri=208.3 ΩR_i = 208.3\ \Omega, Avo2=−360A_{vo2} = -360, Av≃−608.1A_v \simeq -608.1 (the last digit of the printed value is partly covered by the frame of the box in the scan), and for Exercise 2 the four hypotheses and the two plots (end values −5-5 and 39 V39\ \mathrm V for VB=3 VV_B = 3\ \mathrm V; −5-5 and 51 V51\ \mathrm V for VB=−3 VV_B = -3\ \mathrm V). The only difference is of convention: the official solution writes the pnp currents and voltage with the npn sign (IB=−0.045 mAI_B = -0.045\ \mathrm{mA}, IC=−4.5 mAI_C = -4.5\ \mathrm{mA}, VCE=−11.91 VV_{CE} = -11.91\ \mathrm V), while here the pnp convention of the notes is used (IBI_B, ICI_C and VECV_{EC} positive). No misprints were found in the official solution.