TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › Analog Electronics Exercises

Analog Electronics Exercises

These problems cover the whole course in its order. Work each one by hand first, with units on every line, then open the answer. Each answer links back to the lesson that explains the method. The Python block at the end recomputes the numerical answers, so you can change a value and see how the result moves. Unless a problem says otherwise, use VT=25.85 mVV_T = 25.85\ \text{mV} (300 K) and VBE=0.7 VV_{BE} = 0.7\ \text{V} for hand bias calculations.

Semiconductors and diodes

1. Doping. Silicon at 300 K has ni=1.0×1010 cm−3n_i = 1.0 \times 10^{10}\ \text{cm}^{-3}. It is doped with ND=1.0×1016 cm−3N_D = 1.0 \times 10^{16}\ \text{cm}^{-3} donors. Find the electron and hole concentrations. Which carriers are the minority?

Answer

Fully ionised donors give n≈ND=1.0×1016 cm−3n \approx N_D = 1.0 \times 10^{16}\ \text{cm}^{-3}. Mass action, np=ni2np = n_i^2: p=1020/1016=1.0×104 cm−3p = 10^{20}/10^{16} = 1.0 \times 10^{4}\ \text{cm}^{-3}. Holes are the minority carriers, twelve orders of magnitude fewer. See Semiconductors for Circuit Designers.

2. The diode law per decade. A diode follows I=IS(eV/nVT−1)I = I_S(e^{V/nV_T} - 1). By how much does its forward voltage rise when the current rises ten times, for n=1n = 1 and for n=1.752n = 1.752?

Answer

Well above ISI_S, ΔV=nVTln⁡10\Delta V = nV_T \ln 10: 59.5 mV59.5\ \text{mV} for n=1n = 1 and 104.3 mV104.3\ \text{mV} for n=1.752n = 1.752. See Diode Models.

3. A diode circuit by iteration. A 5 V5\ \text{V} source drives a 1 kΩ1\ \text{k}\Omega resistor in series with a diode with IS=2.52 nAI_S = 2.52\ \text{nA}, n=1.752n = 1.752 (no series resistance). Find the diode voltage, the current and the small-signal resistance rdr_d at that point.

Answer

Newton's method on (5−V)/1 kΩ=IS(eV/nVT−1)(5 - V)/1\ \text{k}\Omega = I_S(e^{V/nV_T} - 1) converges to V=0.650 VV = 0.650\ \text{V}, I=4.35 mAI = 4.35\ \text{mA}. Then rd=nVT/I=45.29 mV/4.35 mA=10.4 Ωr_d = nV_T/I = 45.29\ \text{mV}/4.35\ \text{mA} = 10.4\ \Omega. The constant-drop model with 0.7 V0.7\ \text{V} gives 4.30 mA4.30\ \text{mA}, 1 % low. See Solving Diode Circuits.

4. Bridge rectifier and reservoir capacitor (calculation only: mains). A transformer gives 12 V12\ \text{V} rms at 50 Hz50\ \text{Hz} into a bridge with 0.9 V0.9\ \text{V} per diode. The load draws 0.5 A0.5\ \text{A} from C=2200 μFC = 2200\ \mu\text{F}. Estimate the peak output voltage and the peak-to-peak ripple.

Answer

Vpk=122−2⋅0.9=15.17 VV_\text{pk} = 12\sqrt{2} - 2 \cdot 0.9 = 15.17\ \text{V} (two diodes conduct at a time). Full-wave ripple Vr≈I/(2fC)=0.5/(100⋅2200×10−6)=2.27 VV_r \approx I/(2fC) = 0.5/(100 \cdot 2200 \times 10^{-6}) = 2.27\ \text{V} peak-to-peak; the estimate is slightly pessimistic because the capacitor recharges before the full half period ends. See Rectifiers and The Reservoir Capacitor.

5. Zener regulator. A 5.1 V5.1\ \text{V} Zener regulator runs from 1010 to 14 V14\ \text{V} and supplies 00 to 20 mA20\ \text{mA}. The Zener needs at least 5 mA5\ \text{mA}. Choose the series resistor (E12) and find the worst-case Zener and resistor dissipation.

Answer

Worst case for regulation is minimum input and maximum load: RS≤(10−5.1)/(20+5) mA=196 ΩR_S \le (10 - 5.1)/(20 + 5)\ \text{mA} = 196\ \Omega, so 180 Ω180\ \Omega (giving 27.2 mA27.2\ \text{mA}). Worst case for the Zener is maximum input and no load: IZ=8.9/180=49.4 mAI_Z = 8.9/180 = 49.4\ \text{mA}, PZ=49.4 mA⋅5.1 V=252 mWP_Z = 49.4\ \text{mA} \cdot 5.1\ \text{V} = 252\ \text{mW}, so use a 0.5 W0.5\ \text{W} part. The resistor dissipates 8.92/180=0.44 W8.9^2/180 = 0.44\ \text{W}: a 1 W1\ \text{W} resistor. See Zener and Schottky Diodes.

6. LED resistor. A red LED drops 2.0 V2.0\ \text{V} at 10 mA10\ \text{mA} and is driven from a 3.3 V3.3\ \text{V} logic pin. Find the series resistor.

Answer

R=(3.3−2.0) V/10 mA=130 ΩR = (3.3 - 2.0)\ \text{V}/10\ \text{mA} = 130\ \Omega (E24 exists). The pin's own output resistance lowers the current a little; check the pin's current rating. See LEDs and Photodiodes.

Transistors

7. Voltage-divider bias. VCC=12 VV_{CC} = 12\ \text{V}, R1=47 kΩR_1 = 47\ \text{k}\Omega, R2=10 kΩR_2 = 10\ \text{k}\Omega, RE=1 kΩR_E = 1\ \text{k}\Omega, RC=4.7 kΩR_C = 4.7\ \text{k}\Omega, β=200\beta = 200. Find ICI_C and VCEV_{CE} with the Thevenin method.

Answer

VTH=12⋅10/57=2.105 VV_{TH} = 12 \cdot 10/57 = 2.105\ \text{V}, RTH=47∥10=8.246 kΩR_{TH} = 47 \parallel 10 = 8.246\ \text{k}\Omega. IB=(2.105−0.7)/(8.246 kΩ+201⋅1 kΩ)=6.72 μAI_B = (2.105 - 0.7)/(8.246\ \text{k}\Omega + 201 \cdot 1\ \text{k}\Omega) = 6.72\ \mu\text{A}, IC=1.343 mAI_C = 1.343\ \text{mA}, VCE=12−1.343⋅4.7−1.350⋅1=4.34 VV_{CE} = 12 - 1.343 \cdot 4.7 - 1.350 \cdot 1 = 4.34\ \text{V}: active region, with room to swing. See BJT Biasing.

8. Small-signal gain. Problem 7's stage has RER_E fully bypassed and drives RL=10 kΩR_L = 10\ \text{k}\Omega through a coupling capacitor. Find gmg_m, rπr_\pi, the midband voltage gain and the input resistance.

Answer

gm=IC/VT=1.343/25.85=52.0 mSg_m = I_C/V_T = 1.343/25.85 = 52.0\ \text{mS}, rπ=β/gm=3.85 kΩr_\pi = \beta/g_m = 3.85\ \text{k}\Omega. Av=−gm(RC∥RL)=−52.0 mS⋅3.197 kΩ=−166A_v = -g_m (R_C \parallel R_L) = -52.0\ \text{mS} \cdot 3.197\ \text{k}\Omega = -166 (ignoring ror_o). Rin=RTH∥rπ=2.62 kΩR_\text{in} = R_{TH} \parallel r_\pi = 2.62\ \text{k}\Omega. See BJT Small-Signal Models and The Common-Emitter Amplifier.

9. Relay driver. A 12 V12\ \text{V} relay coil draws 60 mA60\ \text{mA}. An NPN with βmin=100\beta_\text{min} = 100 is driven from a 3.3 V3.3\ \text{V} pin. Using a forced β\beta of 10 and VBE(sat)=0.8 VV_{BE(\text{sat})} = 0.8\ \text{V}, find RBR_B. What else must the circuit have?

Answer

IB=60/10=6 mAI_B = 60/10 = 6\ \text{mA}, RB=(3.3−0.8)/6 mA=417 ΩR_B = (3.3 - 0.8)/6\ \text{mA} = 417\ \Omega, so 390 Ω390\ \Omega (check that the pin may source about 6.4 mA6.4\ \text{mA}). A flyback diode across the coil, cathode to +12 V+12\ \text{V}, so that the coil's current has a path at turn-off and the collector is not driven far above the supply. See The BJT as a Switch.

10. Common-source stage. An NMOS with k=2 mA/V2k = 2\ \text{mA/V}^2, Vt=1 VV_t = 1\ \text{V}, λ=0.02 V−1\lambda = 0.02\ \text{V}^{-1} is biased at VGS=2 VV_{GS} = 2\ \text{V} with RD=5 kΩR_D = 5\ \text{k}\Omega and the source grounded for AC. Find IDI_D, gmg_m, ror_o and the gain.

Answer

ID=(k/2)Vov2=1 mAI_D = (k/2)V_{ov}^2 = 1\ \text{mA} (ignoring λ\lambda in the bias), gm=kVov=2 mSg_m = kV_{ov} = 2\ \text{mS}, ro=1/(λID)=50 kΩr_o = 1/(\lambda I_D) = 50\ \text{k}\Omega, Av=−gm(RD∥ro)=−2 mS⋅4.545 kΩ=−9.09A_v = -g_m (R_D \parallel r_o) = -2\ \text{mS} \cdot 4.545\ \text{k}\Omega = -9.09. See The Common-Source Amplifier.

11. Differential pair. A BJT pair has a 1 mA1\ \text{mA} tail, RC=10 kΩR_C = 10\ \text{k}\Omega per side and a tail source resistance REE=100 kΩR_{EE} = 100\ \text{k}\Omega. Find the single-ended differential gain, the common-mode gain and the CMRR.

Answer

Each transistor carries 0.5 mA0.5\ \text{mA}: gm=19.34 mSg_m = 19.34\ \text{mS}. Single-ended Ad=gmRC/2=96.7A_d = g_m R_C/2 = 96.7, Acm≈RC/(2REE)=0.05A_{cm} \approx R_C/(2R_{EE}) = 0.05, CMRR=96.7/0.05=1934=65.7 dB\text{CMRR} = 96.7/0.05 = 1934 = 65.7\ \text{dB}. Taking the output differentially doubles AdA_d and, with perfect matching, cancels AcmA_{cm}. See The Differential Pair.

12. Class B efficiency. A class-B push-pull stage on ±12 V\pm 12\ \text{V} delivers a sine of 10 V10\ \text{V} peak. What is its efficiency, and why does the output look wrong near zero crossings?

Answer

η=(π/4)(Vpk/VCC)=0.785⋅10/12=65.4 %\eta = (\pi/4)(V_\text{pk}/V_{CC}) = 0.785 \cdot 10/12 = 65.4\ \%. Near zero neither transistor conducts until the input passes about ±0.6 V\pm 0.6\ \text{V}: crossover distortion. Class AB bias removes it. See Output Stages.

Frequency response and feedback

13. Miller effect. A CE stage has a gain of −100-100 from base to collector, Cπ=20 pFC_\pi = 20\ \text{pF}, Cμ=4 pFC_\mu = 4\ \text{pF}, and the base node sees 1 kΩ1\ \text{k}\Omega. Estimate the input pole.

Answer

Cin=Cπ+Cμ(1+100)=20+404=424 pFC_\text{in} = C_\pi + C_\mu(1 + 100) = 20 + 404 = 424\ \text{pF}, fp=1/(2π⋅1 kΩ⋅424 pF)=375 kHzf_p = 1/(2\pi \cdot 1\ \text{k}\Omega \cdot 424\ \text{pF}) = 375\ \text{kHz}. The 4 pF4\ \text{pF} capacitor dominates. A cascode removes most of it. See High-Frequency Response and the Miller Effect.

14. Desensitivity. An amplifier with A=105A = 10^5 has feedback β=0.01\beta = 0.01. Find the closed-loop gain, then the change in closed-loop gain when AA drops by 10 %.

Answer

Af=A/(1+Aβ)=105/1001=99.900A_f = A/(1 + A\beta) = 10^5/1001 = 99.900. With A=9×104A = 9 \times 10^4: Af=99.889A_f = 99.889, a change of 0.011 %0.011\ \%: the loop gain of 1000 divides the sensitivity by about 1+Aβ1 + A\beta. See Negative Feedback.

Op-amps and filters

15. Bandwidth and slew rate. A non-inverting amplifier with gain 11 uses an op-amp with GBW=1 MHz\text{GBW} = 1\ \text{MHz} and slew rate 0.5 V/μs0.5\ \text{V}/\mu\text{s}. Find the small-signal bandwidth and the full-power bandwidth for a 5 V5\ \text{V} peak output.

Answer

fCL=1 MHz/11=90.9 kHzf_{CL} = 1\ \text{MHz}/11 = 90.9\ \text{kHz}. fFP=SR/(2πVpk)=0.5×106/(2π⋅5)=15.9 kHzf_{FP} = \text{SR}/(2\pi V_\text{pk}) = 0.5 \times 10^6/(2\pi \cdot 5) = 15.9\ \text{kHz}: above 15.9 kHz15.9\ \text{kHz} a full-size sine turns into a triangle long before the small-signal corner. See Gain-Bandwidth, Slew Rate and a SPICE Macro-Model.

16. Offset at the output. An inverting amplifier with Rf/Rin=100R_f/R_\text{in} = 100 uses an op-amp with VOS=2 mVV_{OS} = 2\ \text{mV}. What output offset results?

Answer

The offset is amplified by the noise gain 1+Rf/Rin=1011 + R_f/R_\text{in} = 101: 202 mV202\ \text{mV}, not 200 mV200\ \text{mV}. See Offset, Bias Currents, CMRR and Rail-to-Rail.

17. Sallen-Key design. Design a unity-gain Sallen-Key Butterworth low-pass at 1 kHz1\ \text{kHz} with both resistors 10 kΩ10\ \text{k}\Omega.

Answer

ω0=1/(RC1C2)\omega_0 = 1/(R\sqrt{C_1 C_2}) and Q=12C1/C2Q = \tfrac12\sqrt{C_1/C_2}, with C1C_1 the feedback capacitor and C2C_2 to ground. Q=0.7071Q = 0.7071 needs C1=2C2C_1 = 2C_2; C1C2=1/(2π⋅1 kHz⋅10 kΩ)=15.92 nF\sqrt{C_1C_2} = 1/(2\pi \cdot 1\ \text{kHz} \cdot 10\ \text{k}\Omega) = 15.92\ \text{nF}, so C2=11.25 nFC_2 = 11.25\ \text{nF}, C1=22.5 nFC_1 = 22.5\ \text{nF} (e.g. 22 nF22\ \text{nF} and 11 nF11\ \text{nF} from 10+1 nF10 + 1\ \text{nF}). See Active Filters.

Oscillators, regulators and practice

18. Wien bridge. R=10 kΩR = 10\ \text{k}\Omega, C=10 nFC = 10\ \text{nF}. Find the frequency and the amplifier gain needed.

Answer

f0=1/(2πRC)=1.59 kHzf_0 = 1/(2\pi RC) = 1.59\ \text{kHz}; the network passes 1/31/3 at f0f_0 with zero phase, so the non-inverting gain must be 3 (Rf=2RgR_f = 2R_g), slightly more to start and with amplitude control to stay sinusoidal. See Oscillators.

19. 555 astable. RA=1 kΩR_A = 1\ \text{k}\Omega, RB=10 kΩR_B = 10\ \text{k}\Omega, C=10 nFC = 10\ \text{nF}. Find the frequency and duty cycle.

Answer

T=0.693(RA+2RB)C=0.693⋅21 kΩ⋅10 nF=145.5 μsT = 0.693(R_A + 2R_B)C = 0.693 \cdot 21\ \text{k}\Omega \cdot 10\ \text{nF} = 145.5\ \mu\text{s}, f=6.87 kHzf = 6.87\ \text{kHz}; duty cycle (RA+RB)/(RA+2RB)=52.4 %(R_A + R_B)/(R_A + 2R_B) = 52.4\ \%. See Colpitts, Crystal, Relaxation and 555 Oscillators.

20. LDO temperature. An LDO drops 5 V5\ \text{V} to 3.3 V3.3\ \text{V} at 300 mA300\ \text{mA}, with θJA=60 K/W\theta_{JA} = 60\ \text{K/W}, at 40 ∘C40\ ^\circ\text{C} ambient. Find the dissipation and the junction temperature.

Answer

P=(5−3.3)⋅0.3=0.51 WP = (5 - 3.3) \cdot 0.3 = 0.51\ \text{W}, TJ=40+60⋅0.51=70.6 ∘CT_J = 40 + 60 \cdot 0.51 = 70.6\ ^\circ\text{C}. Efficiency is at best 3.3/5=66 %3.3/5 = 66\ \%. See LDOs, Dropout and Thermal Design.

21. Resistor noise. What is the rms thermal noise of a 10 kΩ10\ \text{k}\Omega resistor at 300 K300\ \text{K} in a 20 kHz20\ \text{kHz} bandwidth?

Answer

vn=4kTRB=4⋅1.381×10−23⋅300⋅104⋅2×104=1.82 μVv_n = \sqrt{4kTRB} = \sqrt{4 \cdot 1.381 \times 10^{-23} \cdot 300 \cdot 10^4 \cdot 2 \times 10^4} = 1.82\ \mu\text{V} rms; the density is 12.9 nV/Hz12.9\ \text{nV}/\sqrt{\text{Hz}}. See Noise in Analog Circuits.

Check the numbers in Python

python · try it yourself
import math

VT, k = 25.85e-3, 1.380649e-23

# 3: diode circuit by Newton's method
Is, n, V = 2.52e-9, 1.752, 0.6
for _ in range(50):
    f = (5 - V) / 1e3 - Is * (math.exp(V / (n * VT)) - 1)
    df = -1 / 1e3 - Is / (n * VT) * math.exp(V / (n * VT))
    V -= f / df
I = (5 - V) / 1e3
print(f"3:  V = {V:.4f} V, I = {I*1e3:.3f} mA, rd = {n*VT/I:.2f} Ohm")

# 7 and 8: voltage-divider bias and CE gain
VCC, R1, R2, RE, RC, beta, RL = 12, 47e3, 10e3, 1e3, 4.7e3, 200, 10e3
Vth, Rth = VCC * R2 / (R1 + R2), R1 * R2 / (R1 + R2)
IB = (Vth - 0.7) / (Rth + (beta + 1) * RE)
IC = beta * IB
VCE = VCC - IC * RC - (beta + 1) * IB * RE
gm = IC / VT
rpi = beta / gm
Av = -gm * RC * RL / (RC + RL)
Rin = 1 / (1 / Rth + 1 / rpi)
print(f"7:  IC = {IC*1e3:.3f} mA, VCE = {VCE:.2f} V")
print(f"8:  gm = {gm*1e3:.1f} mS, rpi = {rpi/1e3:.2f} k, Av = {Av:.0f}, Rin = {Rin/1e3:.2f} k")

# 11: differential pair
gm1 = 0.5e-3 / VT
Ad, Acm = gm1 * 10e3 / 2, 10e3 / (2 * 100e3)
print(f"11: Ad = {Ad:.1f}, Acm = {Acm:.3f}, CMRR = {20*math.log10(Ad/Acm):.1f} dB")

# 13, 15, 17, 19, 21
print(f"13: f_in = {1/(2*math.pi*1e3*(20e-12 + 4e-12*101))/1e3:.0f} kHz")
print(f"15: f_CL = {1e6/11/1e3:.1f} kHz, f_FP = {0.5e6/(2*math.pi*5)/1e3:.1f} kHz")
s = 1 / (2 * math.pi * 1e3 * 10e3)
print(f"17: C2 = {s/math.sqrt(2)*1e9:.2f} nF, C1 = {s*math.sqrt(2)*1e9:.2f} nF")
T = 0.693 * 21e3 * 10e-9
print(f"19: f = {1/T/1e3:.2f} kHz, duty = {100*11/21:.1f} %")
print(f"21: vn = {math.sqrt(4*k*300*1e4*2e4)*1e6:.2f} uV rms")
3:  V = 0.6504 V, I = 4.350 mA, rd = 10.41 Ohm
7:  IC = 1.343 mA, VCE = 4.34 V
8:  gm = 52.0 mS, rpi = 3.85 k, Av = -166, Rin = 2.62 k
11: Ad = 96.7, Acm = 0.050, CMRR = 65.7 dB
13: f_in = 375 kHz
15: f_CL = 90.9 kHz, f_FP = 15.9 kHz
17: C2 = 11.25 nF, C1 = 22.51 nF
19: f = 6.87 kHz, duty = 52.4 %
21: vn = 1.82 uV rms

Test yourself

A diode with n=1n = 1 carries ten times more current. Its forward voltage rises by about…

  1. 26 mV26\ \text{mV}
  2. 60 mV60\ \text{mV}
  3. 0.1 V0.1\ \text{V}
  4. 0.7 V0.7\ \text{V}

A BJT is biased at IC=1 mAI_C = 1\ \text{mA}. Its transconductance gmg_m at 300 K is about…

  1. 1 mS1\ \text{mS}
  2. 25.85 mS25.85\ \text{mS}
  3. 38.7 mS38.7\ \text{mS}
  4. 100 mS100\ \text{mS}

An inverting amplifier with gain −9-9 uses an op-amp with GBW=1 MHz\text{GBW} = 1\ \text{MHz}. Its closed-loop bandwidth is about…

  1. 1 MHz1\ \text{MHz}
  2. 111 kHz111\ \text{kHz}
  3. 100 kHz100\ \text{kHz}
  4. 90 kHz90\ \text{kHz}

Which change cures crossover distortion in a push-pull output stage?

  1. A larger output capacitor
  2. Biasing both transistors slightly on (class AB)
  3. Removing the emitter resistors
  4. A higher supply voltage