---
title: Problem set 5
heading: "Problem set 5: settling, rail-to-rail design and regulators"
eyebrow: S2 · Problem set 5
type: problems
---

::: hook
These problems use lessons 16 and 20 to 27: slewing and settling, op-amp design for speed and power, rail-to-rail inputs and outputs, output stages, low-dropout regulators, and charge pumps. Take $V_T$ = 25.85 mV and k = 1.381 × 10⁻²³ J/K where needed.
:::

::: pool
pick: 12

::: check
kind: parts
given: I = 10 | 20; C = 2 | 4; f = 10 | 50; b = 0.25 | 0.5; V = 1 | 2; N = 10 | 12

## An op amp's {I} µA tail charges a {C} pF compensation capacitor; its unity-gain frequency is {f} MHz and it works at β = {b}. It must settle a {V} V step to half an LSB of {N} bits.

::: part
answer: I/C
unit: V/µs
tolerance: 0.5%

### What is its slew rate?

::: misses
- [any] $SR = I/C_c$.
:::
:::

::: part
answer: 1/(b*2*pi*f*1e6)*1e9
unit: ns
tolerance: 0.5%

### What is the closed loop's time constant?

::: misses
- [1/(2*pi*f*1e6)*1e9] Include β: $\tau = 1/(\beta\omega_u)$.
- [any] $1/(\beta\omega_u)$.
:::
:::

::: part
answer: ((V - I/C*1e6/(b*2*pi*f*1e6))/(I/C*1e6) + 1/(b*2*pi*f*1e6)*ln(I/C*1e6/(b*2*pi*f*1e6)/(2^(-(N + 1))*V)))*1e9
unit: ns
tolerance: 0.5%

### How long does it take to settle, slewing first and then settling linearly?

::: misses
- [1/(b*2*pi*f*1e6)*ln(2^(N + 1))*1e9] That's linear settling only; this step slews first.
- [any] $(V - SR\tau)/SR + \tau\ln(SR\,\tau/\varepsilon V)$.
:::
:::
:::

::: check
kind: parts
given: S = 1 | 5 | 20; V = 1 | 2.5 | 5; f = 100 | 500; C = 2 | 5

## An amplifier slews at {S} V/µs and must deliver {V} V peak sines.

::: part
answer: S*1e6/(2*pi*V)/1000
unit: kHz
tolerance: 0.5%

### What is its full-power bandwidth?

::: misses
- [S*1e6/V/1000] The sine's steepest slope is $2\pi fV_p$.
- [any] $SR/(2\pi V_p)$.
:::
:::

::: part
answer: 2*pi*f*1000*V*C*1e-12*1e6
unit: µA
tolerance: 0.5%

### What tail current would let a {C} pF compensation capacitor follow a {f} kHz sine at that amplitude?

::: misses
- [any] $I = 2\pi fV_pC_c$.
:::
:::
:::

::: check
kind: parts
given: C = 0.5 | 1 | 2; b = 0.25 | 0.5; t = 5 | 10 | 20; N = 10 | 12; e = 10 | 15 | 20

## A single-stage op amp drives a {C} pF load at β = {b} and must settle linearly to half an LSB of {N} bits in {t} ns.

::: part
answer: ln(2^(N + 1))/(b*t*1e-9)/(2*pi)/1e6
unit: MHz
tolerance: 0.5%

### What unity-gain frequency does it need?

::: misses
- [ln(2^(N + 1))/(t*1e-9)/(2*pi)/1e6] The closed loop is β times slower than the op amp.
- [any] $\ln(2^{N+1})/(\beta t)$, then divide by 2π.
:::
:::

::: part
answer: ln(2^(N + 1))/(b*t*1e-9)*C*1e-12*1000
unit: mS
tolerance: 0.5%

### What input transconductance does that take?

::: misses
- [any] $g_m = \omega_uC_L$.
:::
:::

::: part
answer: ln(2^(N + 1))/(b*t*1e-9)*C*1e-12/e*1e6*2
unit: µA
tolerance: 0.5%

### What tail current does that take with the input pair at $g_m/I_D$ = {e} /V?

::: misses
- [ln(2^(N + 1))/(b*t*1e-9)*C*1e-12/e*1e6] That's one side's current; the tail carries two.
- [any] $2g_m/(g_m/I_D)$.
:::
:::
:::

::: check
kind: parts
given: s = 1 | 2; f = 0.5 | 1 | 2; p = 0.2 | 0.5; u = 100 | 300; N = 10 | 12

## A switched-capacitor gain stage has a {s} pF sampling capacitor, a {f} pF feedback capacitor and {p} pF of parasitic capacitance at the op amp's input; the op amp's unity-gain frequency is {u} MHz.

::: part
answer: f/(f + s + p)
tolerance: 0.5%

### What is the feedback factor?

::: misses
- [f/(f + s)] Include the parasitic capacitance.
- [any] $C_f/(C_f + C_s + C_p)$.
:::
:::

::: part
answer: (f + s + p)/f/(2*pi*u*1e6)*1e9
unit: ns
tolerance: 0.5%

### What is the closed loop's time constant?

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

::: part
answer: (f + s + p)/f/(2*pi*u*1e6)*ln(2^(N + 1))*1e9
unit: ns
tolerance: 0.5%

### How long does it take to settle to half an LSB of {N} bits?

::: misses
- [any] $\tau\ln 2^{N+1}$.
:::
:::
:::

::: check
kind: parts
given: I = 10 | 50; C = 1 | 3; J = 100 | 300 | 1000; L = 2 | 10 | 20

## A two-stage op amp has a {I} µA tail, $C_c$ = {C} pF, and a {J} µA second stage driving a {L} pF load.

::: part
answer: I/C
unit: V/µs
tolerance: 0.5%

### What slew rate does the first stage allow?

::: misses
- [any] $I_\text{tail}/C_c$.
:::
:::

::: part
answer: J/(L + C)
unit: V/µs
tolerance: 0.5%

### What slew rate does the second stage allow?

::: misses
- [J/L] The second stage charges $C_c$ as well as the load.
- [any] $I_2/(C_L + C_c)$.
:::
:::

::: part
answer: I/C - (I/C - J/(L + C))*step(I/C - J/(L + C))
unit: V/µs
tolerance: 0.5%

### What is the amplifier's slew rate?

::: misses
- [any] The smaller of the two limits.
:::
:::
:::

::: check
kind: parts
given: n = 0.45 | 0.6; p = 0.5 | 0.7; o = 0.15 | 0.2; s = 0.1 | 0.15; V = 1 | 1.2

## A complementary input stage has NMOS and PMOS pairs with thresholds {n} V and {p} V, run at {o} V overdrive, each with a tail needing {s} V. The supply is {V} V.

::: part
answer: n + p + 2*o + 2*s
unit: V
tolerance: 0.5%

### What supply does the stage need for the two pairs' ranges to overlap?

::: misses
- [n + p + 2*o + s] Each pair needs its own tail.
- [any] $V_{GS,n} + V_{GS,p} + 2V_{DS,\text{sat}}$.
:::
:::

::: part
answer: n + p + 2*o + 2*s - V
unit: V
tolerance: 0.5%

### How wide is the dead zone at {V} V, where neither pair works?

::: misses
- [any] The shortfall from that supply.
:::
:::

::: part
answer: n + o + s
unit: V
tolerance: 0.5%

### How far above ground must the common mode be for the NMOS pair to work?

::: misses
- [any] $V_{GS,n} + V_{DS,\text{tail}}$.
:::
:::
:::

::: check
kind: parts
given: k = 0.5 | 1 | 2; I = 20 | 50 | 100

## A rail-to-rail input stage has matched NMOS and PMOS pairs in strong inversion, each with $\mu C_{ox}W/L$ = {k} mA/V² per transistor and a {I} µA tail.

::: part
answer: 2*sqrt(k*1e-3*I*1e-6)*1000
unit: mS
tolerance: 0.5%

### What total transconductance does the stage have in the middle of the range, where both pairs work?

::: misses
- [sqrt(k*1e-3*I*1e-6)*1000] Both pairs add.
- [any] Each pair gives $\sqrt{kI}$.
:::
:::

::: part
answer: 4*I
unit: µA
tolerance: 0.5%

### What tail current must the one working pair get near a rail to keep the transconductance constant?

::: misses
- [2*I] In strong inversion $g_m \propto \sqrt I$: doubling $g_m$ takes four times the current.
- [any] Four times.
:::
:::

::: part
answer: 2*I
unit: µA
tolerance: 0.5%

### And if the pairs ran in weak inversion?

::: misses
- [any] There $g_m \propto I$.
:::
:::
:::

::: check
kind: parts
given: V = 1.8 | 3.3 | 5; o = 0.1 | 0.2; R = 16 | 32 | 100

## A rail-to-rail common-source output stage on {V} V has output transistors at {o} V overdrive and drives {R} Ω, biased at mid-supply.

::: part
answer: V/2 - o
unit: V
tolerance: 0.5%

### What peak sine amplitude can it swing?

::: misses
- [V/2] Each transistor needs its overdrive.
- [any] Half the supply less one overdrive.
:::
:::

::: part
answer: (V/2 - o)^2/(2*R)*1000
unit: mW
tolerance: 0.5%

### What sine power does that deliver?

::: misses
- [any] $V_p^2/2R$.
:::
:::

::: part
answer: pi/4*(V/2 - o)/(V/2)*100
unit: %
tolerance: 0.5%

### What efficiency does a class B stage reach at that swing?

::: misses
- [pi/4*100] That's at full rail-to-rail swing.
- [any] $\frac\pi4 V_p/(V_{DD}/2)$.
:::
:::
:::

::: check
kind: parts
given: v = 1.2 | 1.8 | 3.3; d = 0.3 | 0.5 | 1.7; I = 1 | 3 | 10; R = 0.5 | 1; q = 100 | 300

## An LDO makes {v} V from an input {d} V higher, delivering {I} mA through a pass transistor of {R} Ω on-resistance, with {q} µA quiescent current.

::: part
answer: I*R
unit: mV
tolerance: 0.5%

### What is its dropout voltage at this load?

::: misses
- [any] $I_LR_{on}$.
:::
:::

::: part
answer: v*I/((v + d)*(I + q/1000))*100
unit: %
tolerance: 0.5%

### What is its efficiency?

::: misses
- [v/(v + d)*100] Include the quiescent current.
- [any] $V_\text{out}I_L/(V_\text{in}(I_L + I_Q))$.
:::
:::

::: part
answer: d*I
unit: mW
tolerance: 0.5%

### How much power does the pass transistor dissipate?

::: misses
- [any] $(V_\text{in} - V_\text{out})I_L$.
:::
:::
:::

::: check
kind: parts
given: C = 1 | 4.7 | 10; R = 10 | 100; v = 1.2 | 3.3; a = 0.1 | 1; b = 100 | 300

## An LDO has a {C} µF output capacitor with {R} mΩ of ESR and makes {v} V at loads from {a} mA to {b} mA.

::: part
answer: a/1000/(2*pi*v*C*1e-6)
unit: Hz
tolerance: 0.5%

### Where is the output pole at the lightest load?

::: misses
- [any] $1/(2\pi R_LC_\text{out})$ with $R_L = V/I$.
:::
:::

::: part
answer: b/1000/(2*pi*v*C*1e-6)/1000
unit: kHz
tolerance: 0.5%

### And at the heaviest?

::: misses
- [any] The pole moves with load current.
:::
:::

::: part
answer: 1/(2*pi*R/1000*C*1e-6)/1e6
unit: MHz
tolerance: 0.5%

### Where is the ESR zero?

::: misses
- [any] $1/(2\pi R_\text{ESR}C_\text{out})$.
:::
:::
:::

::: check
kind: parts
given: R = 5 | 20 | 50; T = 100 | 1000 | 3000; I = 10 | 100; m = 0.5 | 1 | 2

## An LDO's output resistance without feedback is {R} Ω, and its loop gain is {T}. The load steps by {I} mA.

::: part
answer: I*R/(1 + T)
unit: mV
tolerance: 0.5%

### How far does the output move once the loop has settled?

::: misses
- [I*R] Feedback divides the output resistance by $1 + T$.
- [any] $\Delta I\,R_o/(1 + T)$.
:::
:::

::: part
answer: I*R/m - 1
tolerance: 0.5%

### What loop gain would hold the change to {m} mV?

::: misses
- [any] Solve $\Delta I\,R_o/(1 + T) = \Delta V$.
:::
:::
:::

::: check
kind: parts
given: f = 1 | 10; r = 20 | 50; C = 1 | 10

## Above its loop bandwidth, an LDO's supply ripple reaches the output through the pass transistor's {r} Ω output resistance, against a {C} µF output capacitor (light load, ESR neglected).

::: part
answer: 1/(2*pi*f*1e6*C*1e-6)*1000
unit: mΩ
tolerance: 0.5%

### What is the capacitor's impedance at {f} MHz?

::: misses
- [any] $1/(2\pi fC)$.
:::
:::

::: part
answer: 20*log(sqrt(r^2 + (1/(2*pi*f*1e6*C*1e-6))^2)/(1/(2*pi*f*1e6*C*1e-6)))
unit: dB
tolerance: 0.5%

### What supply rejection does the divider give there?

::: misses
- [any] $20\log_{10}(|r_o + Z_C|/|Z_C|)$.
:::
:::
:::

::: check
kind: parts
given: I = 50 | 100 | 300; t = 0.5 | 1 | 2; C = 1 | 4.7 | 10; R = 30 | 100

## A load steps by {I} mA; the LDO's loop takes {t} µs to respond, and its {C} µF output capacitor has {R} mΩ of ESR.

::: part
answer: I*R/1000
unit: mV
tolerance: 0.5%

### What instant step does the ESR cause?

::: misses
- [any] $\Delta I\cdot R_\text{ESR}$.
:::
:::

::: part
answer: I*R/1000 + I*1e-3*t*1e-6/(C*1e-6)*1000
unit: mV
tolerance: 0.5%

### About how far does the output droop before the loop catches it?

::: misses
- [I*1e-3*t*1e-6/(C*1e-6)*1000] Add the ESR step.
- [any] $\Delta I(t_r/C + R_\text{ESR})$.
:::
:::

::: part
answer: I*1e-3*t*1e-6/(0.05 - I*1e-3*R/1000)*1e6
unit: µF
tolerance: 0.5%

### What capacitance would hold the droop to 50 mV with the same ESR?

::: misses
- [any] Solve $\Delta I(t_r/C + R_\text{ESR}) = 50$ mV.
:::
:::
:::

::: check
kind: parts
given: r = 0.6 | 1.2; v = 1.5 | 1.8 | 3.3; e = 20 | 50 | 100

## An LDO's {r} V reference has {e} nV/√Hz of white noise, and a resistive divider sets the output to {v} V.

::: part
answer: v/r
tolerance: 0.5%

### By what factor does the loop amplify the reference?

::: misses
- [any] $1 + R_1/R_2 = V_\text{out}/V_\text{ref}$.
:::
:::

::: part
answer: e*v/r*sqrt(99990)/1000
unit: µV
tolerance: 0.5%

### What rms output noise does the reference cause from 10 Hz to 100 kHz?

::: misses
- [e*sqrt(99990)/1000] The reference's noise is amplified like its voltage.
- [any] $e\,(V_\text{out}/V_\text{ref})\sqrt{\Delta f}$.
:::
:::
:::

::: check
kind: parts
given: I = 0.5 | 1 | 2; C = 10 | 50 | 100; V = 0.5 | 1

## A class A source follower output, pulled down by an {I} mA current source, drives a {C} pF load.

::: part
answer: I*1e-3/(C*1e-12)/1e6
unit: V/µs
tolerance: 0.5%

### How fast can the output fall?

::: misses
- [any] The current source discharges the load: $I/C_L$.
:::
:::

::: part
answer: I*1e-3/(C*1e-12)/(2*pi*V)/1e6
unit: MHz
tolerance: 0.5%

### What is the highest frequency of a {V} V peak sine it can follow without the falling edge slewing?

::: misses
- [any] $I/(2\pi C_LV_p)$.
:::
:::
:::

::: check
kind: parts
given: N = 3 | 5 | 9; V = 1.2 | 1.8; f = 20 | 50; C = 5 | 10; I = 40 | 100

## A Dickson pump has {N} stages of {C} pF at {f} MHz on {V} V with 0.4 V switch drops, loaded with {I} µA.

::: part
answer: (N + 1)*(V - 0.4)
unit: V
tolerance: 0.5%

### What is its unloaded output?

::: misses
- [N*(V - 0.4)] There are $N + 1$ boosts.
- [any] Not yet. $(N + 1)(V_{DD} - V_t)$.
:::
:::

::: part
answer: (N + 1)*(V - 0.4) - N*I*1e-6/(f*1e6*C*1e-12)
unit: V
tolerance: 0.5%

### What is its loaded output?

::: misses
- [(N + 1)*(V - 0.4) - I*1e-6/(f*1e6*C*1e-12)] Each of the {N} stages loses $I/(fC)$.
- [any] Not yet. Subtract $NI/(fC)$.
:::
:::

::: right
Right. The output resistance $N/(fC)$ grows with every stage.
:::
:::
:::
