---
title: Midterm exam
heading: "Midterm exam: diodes, MOSFETs and BJTs"
eyebrow: C5 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: the pn junction and the diode law, diode models, real diodes, rectifiers, clamps and Zener regulators, Newton's method, and MOSFETs and BJTs at DC. Give yourself two hours, work without the lessons open, and write out your reasoning before checking each answer. Use $V_T$ = 25.85 mV, 0.7 V for a conducting silicon junction and $V_{CE,\text{sat}}$ = 0.2 V. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: Na = 1e16 | 1e18; Nd = 1e15 | 1e17

## A silicon junction ($n_i = 10^{10}$ cm⁻³) has $N_a$ = {Na} and $N_d$ = {Nd} cm⁻³.

::: part
answer: 0.02585*ln(Na*Nd/1e20)
unit: V
tolerance: 0.5%

### What is its built-in voltage?

::: misses
- [any] $V_T\ln(N_aN_d/n_i^2)$.
:::
:::

::: part
answer: Na/(Na + Nd)
tolerance: 0.5%

### What fraction of the depletion width lies on the n side?

::: misses
- [any] $x_n/W = N_a/(N_a + N_d)$.
:::
:::
:::

::: check
kind: parts
given: I1 = 1 | 4; V1 = 0.6 | 0.65; I2 = 20 | 100

## A diode ($n$ = 1) drops {V1} V at {I1} mA.

::: part
answer: V1 + 0.02585*ln(I2/I1)
unit: V
tolerance: 0.2%

### What does it drop at {I2} mA?

::: misses
- [any] $V_1 + V_T\ln(I_2/I_1)$.
:::
:::

::: part
answer: I2/0.02585
unit: mS
tolerance: 0.5%

### What is its small-signal conductance there?

::: misses
- [any] $I/V_T$.
:::
:::
:::

::: check
kind: parts
given: Vs = 1.5 | 3 | 9; R = 0.47 | 2.2

## A diode ($I_S = 10^{-14}$ A) is in series with {R} kΩ across {Vs} V.

::: part
answer: (Vs - 0.7)/R
unit: mA
tolerance: 0.5%

### What current does the 0.7 V model give?

::: misses
- [any] $(V_s - 0.7)/R$.
:::
:::

::: part
answer: 0.02585*ln((Vs - 0.7)/(R*1000)/1e-14)
unit: V
tolerance: 0.1%

### What voltage does one step of simple iteration give from there?

::: misses
- [any] $V_T\ln(I/I_S)$.
:::
:::
:::

::: check
kind: parts
given: V = 0.6 | 0.7; T = 300 | 350; Cj0 = 4 | 12; VR = 3 | 10

## A silicon diode drops {V} V at {T} K at a fixed current; its junction ($V_0$ = 0.7 V, abrupt) has $C_{j0}$ = {Cj0} pF.

::: part
answer: (V - 1.12 - 3*8.617e-5*T)/T*1000
unit: mV/K
tolerance: 0.5%

### What is its temperature coefficient?

::: misses
- [any] $\frac{V - E_g/q - 3V_T}{T}$.
:::
:::

::: part
answer: Cj0/sqrt(1 + VR/0.7)
unit: pF
tolerance: 0.5%

### What is its capacitance at {VR} V reverse?

::: misses
- [any] $C_{j0}/\sqrt{1 + V_R/V_0}$.
:::
:::
:::

::: check
kind: parts
given: Vs = 12 | 24; IL = 0.2 | 1; Vr = 0.5 | 2

## A bridge rectifier from a {Vs} V peak, 60 Hz source supplies {IL} A with {Vr} V of ripple.

::: part
answer: IL/(2*60*Vr)*1e6
unit: µF
tolerance: 0.5%

### What capacitor does it need?

::: misses
- [any] $I_L/(2fV_r)$.
:::
:::

::: part
answer: IL*(1 + 2*pi*sqrt((Vs - 1.4)/(2*Vr)))
unit: A
tolerance: 0.5%

### What peak current does a diode carry?

::: misses
- [any] $I_L(1 + 2\pi\sqrt{V_p/2V_r})$.
:::
:::
:::

::: check
kind: parts
given: Vp = 5 | 20; N = 2 | 4

## A clamp and multipliers run from a {Vp} V peak source.

::: part
answer: 2*Vp - 0.7
unit: V
tolerance: 0.5%

### What is the highest point of the clamp's output (anode at ground)?

::: misses
- [any] Shifted up by $V_p - V_D$.
:::
:::

::: part
answer: 2*N*(Vp - 0.7)
unit: V
tolerance: 0.5%

### What does a {N}-stage Cockcroft-Walton multiplier reach with no load?

::: misses
- [any] $2N(V_p - V_D)$.
:::
:::
:::

::: check
kind: parts
given: Vmin = 9 | 12; VZ = 3.3 | 5.1; IL = 10 | 40; IZ = 2 | 5

## A {VZ} V Zener regulator supplies up to {IL} mA from as little as {Vmin} V, keeping {IZ} mA in the Zener.

::: part
answer: (Vmin - VZ)/((IL + IZ)*1e-3)
unit: Ω
tolerance: 0.5%

### What is the largest series resistor?

::: misses
- [any] $\frac{V_\text{in,min} - V_Z}{I_L + I_{Z,\text{min}}}$.
:::
:::

::: part
answer: VZ*(IL + IZ)
unit: mW
tolerance: 0.5%

### What does the Zener dissipate at {Vmin} V with no load?

::: misses
- [any] All of $I_S$ flows in the Zener.
:::
:::
:::

::: check
kind: parts
given: Vs = 3 | 10; R = 1 | 10; V0 = 0.65 | 0.75

## Newton's method solves a diode ($I_S = 10^{-14}$ A) in series with {R} kΩ across {Vs} V, from {V0} V.

::: part
answer: 1e-14*exp(V0/0.02585)/0.02585
unit: S
tolerance: 0.5%

### What conductance does the diode contribute at {V0} V?

::: misses
- [any] $I_Se^{V/V_T}/V_T$.
:::
:::

::: part
answer: V0 - ((Vs - V0)/(R*1000) - 1e-14*(exp(V0/0.02585) - 1))/(-1/(R*1000) - 1e-14/0.02585*exp(V0/0.02585))
unit: V
tolerance: 0.01%

### Where does the first step from {V0} V land?

::: misses
- [any] $V - f/f'$.
:::
:::
:::

::: check
kind: parts
given: K = 1 | 4; Vov = 0.5 | 2; VDS = 0.2 | 5; let m = (VDS + Vov - abs(VDS - Vov))/2

## An NMOS ($K$ = {K} mA/V², λ = 0.02 V⁻¹) has {Vov} V of overdrive and $V_{DS}$ = {VDS} V.

::: part
answer: K*(Vov*m - m^2/2)*(1 + 0.02*VDS)
unit: mA
tolerance: 0.5%

### What current flows (with the factor $1 + \lambda v_{DS}$ in either region)?

::: misses
- [any] Check the region: triode if $V_{DS} < v_{OV}$.
:::
:::

::: part
answer: 1/(K*1e-3*Vov)
unit: Ω
tolerance: 0.5%

### What is its resistance for very small $V_{DS}$?

::: misses
- [any] $1/(Kv_{OV})$.
:::
:::
:::

::: check
kind: parts
given: VG = 3 | 5; K = 1 | 2; RS = 1 | 2.2; RD = 1 | 2.2

## An NMOS ($V_t$ = 1 V, $K$ = {K} mA/V²) has its gate at {VG} V, $R_S$ = {RS} kΩ and $R_D$ = {RD} kΩ to 12 V.

::: part
answer: K/2*((sqrt(1 + 2*K*RS*(VG - 1)) - 1)/(K*RS))^2
unit: mA
tolerance: 0.5%

### What current flows?

::: misses
- [any] Solve $\frac K2R_Sv_{OV}^2 + v_{OV} = V_G - V_t$.
:::
:::

::: part
answer: 12 - (RD + RS)*K/2*((sqrt(1 + 2*K*RS*(VG - 1)) - 1)/(K*RS))^2
unit: V
tolerance: 0.5%

### What is $V_{DS}$?

::: misses
- [any] $V_{DD} - I_D(R_D + R_S)$.
:::
:::
:::

::: check
kind: parts
given: Vt0 = 0.5 | 0.7; g = 0.3 | 0.5; VSB = 1 | 3; Kp = 1 | 3; VSG = 2 | 3

## An NMOS has $V_{t0}$ = {Vt0} V, γ = {g} V^½, $2\phi_f$ = 0.7 V; separately, a PMOS has $K_p$ = {Kp} mA/V², $|V_{tp}|$ = 1 V and $V_{SG}$ = {VSG} V.

::: part
answer: Vt0 + g*(sqrt(0.7 + VSB) - sqrt(0.7))
unit: V
tolerance: 0.5%

### What is the NMOS threshold with $V_{SB}$ = {VSB} V?

::: misses
- [any] The body-effect formula.
:::
:::

::: part
answer: Kp/2*(VSG - 1)^2
unit: mA
tolerance: 0.5%

### What does the saturated PMOS carry?

::: misses
- [any] $\frac{K_p}{2}(v_{SG} - |V_{tp}|)^2$.
:::
:::
:::

::: check
kind: parts
given: beta = 60 | 250; VA = 50 | 150; IC = 0.5 | 3

## An active NPN carries {IC} mA with β = {beta} and $V_A$ = {VA} V.

::: part
answer: IC*(beta + 1)/beta
unit: mA
tolerance: 0.1%

### What is its emitter current?

::: misses
- [any] $I_C(\beta + 1)/\beta$.
:::
:::

::: part
answer: VA/IC
unit: kΩ
tolerance: 0.5%

### What is its output resistance?

::: misses
- [any] $V_A/I_C$.
:::
:::
:::

::: check
kind: parts
given: VBB = 2 | 5; RB = 10 | 47; RE = 1 | 3.3; beta = 80 | 300

## A base supply of {VBB} V drives an NPN (β = {beta}) through {RB} kΩ, with {RE} kΩ in the emitter.

::: part
answer: (VBB - 0.7)/(RE + RB/(beta + 1))
unit: mA
tolerance: 0.5%

### What emitter current flows?

::: misses
- [any] $\frac{V_{BB} - 0.7}{R_E + R_B/(\beta + 1)}$.
:::
:::

::: part
answer: (VBB - 0.7)/(RE + RB/(beta + 1))/(beta + 1)*1000
unit: µA
tolerance: 0.5%

### What base current flows?

::: misses
- [any] $I_E/(\beta + 1)$.
:::
:::
:::

::: check
kind: parts
given: VCC = 5 | 12; RC = 0.22 | 1; Vin = 3.3 | 5; bf = 10 | 20

## An NPN switch pulls {RC} kΩ down from {VCC} V, driven from a {Vin} V pin with a forced β of {bf}.

::: part
answer: (VCC - 0.2)/RC/bf
unit: mA
tolerance: 0.5%

### What base current does it need?

::: misses
- [any] $I_{C,\text{sat}}/\beta_\text{forced}$.
:::
:::

::: part
answer: (Vin - 0.7)/((VCC - 0.2)/RC/bf)
unit: kΩ
tolerance: 0.5%

### What base resistor?

::: misses
- [any] $(V_\text{in} - 0.7)/I_B$.
:::
:::
:::

::: check
kind: parts
given: Idss = 3 | 9 | 16; Vp = -1.5 | -4; I = 0.5 | 1

## A JFET has $I_{DSS}$ = {Idss} mA and $V_P$ = {Vp} V.

::: part
answer: Idss*(1 - (-0.5)/Vp)^2
unit: mA
tolerance: 0.5%

### What current does it carry, saturated, at $V_{GS}$ = −0.5 V?

::: misses
- [any] $I_{DSS}\left(1 - \frac{V_{GS}}{V_P}\right)^2$.
:::
:::

::: part
answer: -Vp*(1 - sqrt(I/Idss))/I
unit: kΩ
tolerance: 0.5%

### What source resistor self-biases it at {I} mA?

::: misses
- [any] $\frac{|V_P|(1 - \sqrt{I/I_{DSS}})}{I}$.
:::
:::
:::

::: check
kind: parts
given: b = 40 | 120; RE = 0.33 | 2.2; I = 0.3 | 3

## A Darlington follower of two transistors with β = {b} drives $R_E$ = {RE} kΩ and carries {I} A in its output.

::: part
answer: (b + 1)^2*RE/1000
unit: MΩ
tolerance: 1%

### About what's its input resistance?

::: misses
- [(b + 1)*RE/1000] The pair multiplies by β + 1 twice.
- [any] $(\beta + 1)^2R_E$.
:::
:::

::: part
answer: I/(b*b + 2*b)*1e6
unit: µA
tolerance: 1%

### What base current does it draw?

::: misses
- [any] $\frac{I}{\beta^2 + 2\beta}$.
:::
:::
:::
:::
