---
title: Problem set 7
heading: "Problem set 7: active filters, switched capacitors and comparators"
eyebrow: S2 · Problem set 7
type: problems
---

::: hook
These problems use lessons 38 to 40: active-RC and gm-C filters, switched-capacitor circuits, and comparators and sample-and-holds. k = 1.381 × 10⁻²³ J/K and T = 300 K unless a problem says otherwise.
:::

::: pool
pick: 12

::: check
kind: parts
given: f = 1 | 10 | 50; R = 10 | 22; Q = 0.541 | 0.707 | 1.307

## A unity-gain Sallen–Key low-pass with equal {R} kΩ resistors must have $f_0$ = {f} kHz and Q = {Q}.

::: part
answer: 4*Q^2
tolerance: 0.5%

### What capacitor ratio $C_1/C_2$ does that Q need?

::: misses
- [2*Q] Q goes as the square root of the ratio: $C_1/C_2 = 4Q^2$.
- [any] $Q = \frac12\sqrt{C_1/C_2}$.
:::
:::

::: part
answer: 1/(2*Q*2*pi*f*1000*R*1000)*1e9
unit: nF
tolerance: 0.5%

### What is $C_2$?

::: misses
- [any] $\omega_0 = 1/(R\sqrt{C_1C_2}) = 1/(2QRC_2)$.
:::
:::

::: part
answer: 2*Q/(2*pi*f*1000*R*1000)*1e9
unit: nF
tolerance: 0.5%

### And $C_1$?

::: misses
- [any] $4Q^2C_2$.
:::
:::
:::

::: check
kind: parts
given: Q = 0.707 | 1.307; m = 2 | 5 | 10; f = 1 | 20

## An equal-resistor Sallen–Key section is designed for Q = {Q} at {f} kHz, but $C_1$ comes out {m}% high and $C_2$ {m}% low.

::: part
answer: Q*sqrt((1 + m/100)/(1 - m/100))
tolerance: 0.5%

### What Q does it have?

::: misses
- [any] $Q \propto \sqrt{C_1/C_2}$.
:::
:::

::: part
answer: f/sqrt((1 + m/100)*(1 - m/100))
unit: kHz
tolerance: 0.5%

### Where is its pole frequency?

::: misses
- [any] $f_0 \propto 1/\sqrt{C_1C_2}$.
:::
:::
:::

::: check
kind: parts
given: f = 1 | 5 | 20; Q = 1 | 1.5 | 2

## A biquad low-pass has $f_0$ = {f} kHz and Q = {Q}.

::: part
answer: f*sqrt(1 - 1/(2*Q^2))
unit: kHz
tolerance: 0.5%

### At what frequency does its response peak?

::: misses
- [f] The peak sits a little below $f_0$.
- [any] $f_0\sqrt{1 - 1/2Q^2}$.
:::
:::

::: part
answer: 20*log(Q/sqrt(1 - 1/(4*Q^2)))
unit: dB
tolerance: 0.5%

### How high is the peak?

::: misses
- [20*log(Q)] That's the gain at $f_0$; the peak is slightly higher.
- [any] $Q/\sqrt{1 - 1/4Q^2}$.
:::
:::
:::

::: check
kind: parts
given: A = 40 | 60; r = 2 | 3 | 5

## A Butterworth low-pass must be down at least {A} dB at {r} times its −3 dB frequency.

::: part
answer: ceil(log(10^(A/10) - 1)/(2*log(r)))
tolerance: 0

### What order does it need?

::: misses
- [any] $n \ge \log(10^{A/10} - 1)/(2\log r)$, rounded up.
:::
:::

::: part
answer: 10*log(1 + r^(2*ceil(log(10^(A/10) - 1)/(2*log(r)))))
unit: dB
tolerance: 0.5%

### What attenuation does that order actually give there?

::: misses
- [any] $10\log(1 + r^{2n})$.
:::
:::
:::

::: check
kind: parts
given: f = 10 | 50; T = 358 | 398

## A gm-C filter's transconductors are biased at constant current in strong inversion, so their $g_m \propto \sqrt\mu$, and mobility falls as $T^{-1.5}$. It is tuned to {f} MHz at 300 K.

::: part
answer: f*(T/300)^(-0.75)
unit: MHz
tolerance: 0.5%

### Where is its pole frequency at {T} K?

::: misses
- [f*(T/300)^(-1.5)] $g_m$ goes as the square root of mobility.
- [any] $f_0 \propto g_m \propto T^{-0.75}$.
:::
:::

::: part
answer: (1 - (T/300)^(-0.75))*100
unit: %
tolerance: 0.5%

### By what percentage has it fallen?

::: misses
- [any] Compare with the 300 K value.
:::
:::
:::

::: check
kind: parts
given: S = 60 | 70 | 80; V = 0.5 | 1; f = 1 | 10; e = 10 | 15

## A gm-C biquad has two integrators, each contributing kT/C of noise; it must reach {S} dB of SNR with {V} V rms of signal at $f_0$ = {f} MHz, using transconductors at $g_m/I_D$ = {e} /V.

::: part
answer: 2*1.380649e-23*300*10^(S/10)/V^2*1e12
unit: pF
tolerance: 0.5%

### How large must each integrating capacitor be?

::: misses
- [1.380649e-23*300*10^(S/10)/V^2*1e12] Two integrators: $2kT/C$.
- [any] $C = 2kT\cdot\text{SNR}/V^2$.
:::
:::

::: part
answer: 2*pi*f*1e6*2*1.380649e-23*300*10^(S/10)/V^2*1e6
unit: µS
tolerance: 0.5%

### What transconductance sets the pole frequency on that capacitor?

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

::: part
answer: 2*pi*f*1e6*2*1.380649e-23*300*10^(S/10)/V^2/e*1e6
unit: µA
tolerance: 0.5%

### What bias current does each transconductor need?

::: misses
- [any] $g_m/(g_m/I_D)$.
:::
:::
:::

::: check
kind: parts
given: g = 50 | 100 | 200; C = 0.5 | 1 | 2; q = 5 | 20

## A gm-C biquad uses two integrators of $g_m$ = {g} µS on {C} pF, with a damping transconductor of $g_m$/{q} across the second.

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

### What is its pole frequency?

::: misses
- [any] $g_m/(2\pi C)$.
:::
:::

::: part
answer: q
tolerance: 0.5%

### What is its Q?

::: misses
- [any] $g_m/g_{mQ}$.
:::
:::

::: part
answer: g/0.707
unit: µS
tolerance: 0.5%

### What damping transconductance would make it a Butterworth section?

::: misses
- [g*0.707] Q = $g_m/g_{mQ}$, so a lower Q needs more damping.
- [any] $g_{mQ} = g_m/0.707$.
:::
:::
:::

::: check
kind: parts
given: s = 100 | 1000; a = 0.5 | 1; b = 10 | 20

## A switched-capacitor low-pass: a {a} pF capacitor switched at {s} kHz feeds a {b} pF capacitor to ground.

::: part
answer: 1/(s*1000*a*1e-12)/1e6
unit: MΩ
tolerance: 0.5%

### What resistance does the switched capacitor act like?

::: misses
- [any] $1/(f_sC)$.
:::
:::

::: part
answer: s*1000*a/(2*pi*b)/1000
unit: kHz
tolerance: 0.5%

### Where is the corner?

::: misses
- [any] $f_sC_1/(2\pi C_2)$.
:::
:::

::: part
answer: 2*s*1000*a/(2*pi*b)/1000
unit: kHz
tolerance: 0.5%

### Where does it move if the clock doubles?

::: misses
- [any] The corner tracks the clock.
:::
:::
:::

::: check
kind: parts
given: r = 0.5 | 1 | 4; A = 60 | 80 | 100

## A switched-capacitor stage with gain $C_1/C_2$ = {r} uses an op amp with {A} dB of gain.

::: part
answer: (1 + r)/10^(A/20)*100
unit: %
tolerance: 0.5%

### What gain error does the finite op-amp gain cause?

::: misses
- [r/10^(A/20)*100] The error is $(1 + C_1/C_2)/A$: the feedback factor is $1/(1 + C_1/C_2)$.
- [any] $(1 + C_1/C_2)/A$.
:::
:::

::: part
answer: 20*log((1 + r)/1e-4)
unit: dB
tolerance: 0.5%

### What op-amp gain would bring the error to 0.01%?

::: misses
- [any] Solve $(1 + r)/A = 10^{-4}$.
:::
:::
:::

::: check
kind: parts
given: V = 1 | 2; N = 10 | 12 | 14

## A differential sampler has a {V} V peak-to-peak differential full scale; each side's sampling capacitor contributes kT/C, so the differential noise is 2kT/C.

::: part
answer: 2*1.380649e-23*300*(V^2/8)^(-1)*10^((6.02*N + 1.76)/10)*1e12
unit: pF
tolerance: 0.5%

### What capacitor on each side keeps the sampling noise equal to the quantization noise of an ideal {N}-bit converter?

::: misses
- [any] Set $(V^2/8)/(2kT/C) = 10^{(6.02N + 1.76)/10}$.
:::
:::

::: part
answer: sqrt(2*1.380649e-23*300/(2*1.380649e-23*300*(V^2/8)^(-1)*10^((6.02*N + 1.76)/10)))*1e6
unit: µV
tolerance: 0.5%

### What rms differential noise is that?

::: misses
- [any] $\sqrt{2kT/C}$.
:::
:::
:::

::: check
kind: parts
given: k = 5 | 10 | 20; D = 1.2 | 1.8; T = 0.4 | 0.5; C = 1 | 2

## An NMOS sampling switch with $\mu C_{ox}W/L$ = {k} mA/V² and $V_T$ = {T} V has its gate at {D} V and samples onto {C} pF.

::: part
answer: 1/(k*1e-3*(D - T))
unit: Ω
tolerance: 0.5%

### What is its on-resistance with the input at 0 V?

::: misses
- [any] $1/(\mu C_{ox}(W/L)(V_{GS} - V_T))$.
:::
:::

::: part
answer: 1/(k*1e-3*(D - T - 0.3))
unit: Ω
tolerance: 0.5%

### And with the input at 0.3 V?

::: misses
- [any] $V_{GS}$ falls by the input voltage.
:::
:::

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

### What tracking bandwidth would a bootstrapped switch hold at every input level?

::: misses
- [any] Bootstrapping keeps $V_{GS}$ at its 0 V value: $1/(2\pi R_\text{on}C)$.
:::
:::
:::

::: check
kind: parts
given: t = 20 | 30; T = 300 | 500; L = 0.6 | 1; f = 100 | 1000

## A latch with τ = {t} ps gets {T} ps to reach {L} V; inputs fall uniformly over a 1 V range, and it decides {f} million times a second.

::: part
answer: L*exp(-T/t)
unit: V
tolerance: 0.5%

### What is the smallest input it resolves?

::: misses
- [any] $V_Le^{-T/\tau}$.
:::
:::

::: part
answer: 1/(2*L*exp(-T/t)*f*1e6)
unit: s
tolerance: 0.5%

### What is the mean time between metastable decisions?

::: misses
- [1/(L*exp(-T/t)*f*1e6)] The failure window is ±$V_\text{min}$, $2V_\text{min}$ wide.
- [any] $1/(2V_\text{min}f/V_r)$.
:::
:::

::: part
answer: t*ln(3.156e7*2*L*exp(-T/t)*f*1e6)
unit: ps
tolerance: 0.5%

### How much more decision time would stretch that to a year?

::: misses
- [any] Each τ multiplies the MTBF by e: $\tau\ln(\text{year}/\text{MTBF})$.
:::
:::
:::

::: check
kind: parts
given: p = 1 | 3; l = 20 | 50; A = 4 | 10 | 20

## A comparator's preamplifier has {p} mV of offset and a gain of {A}; the latch behind it has {l} mV.

::: part
answer: sqrt(p^2 + (l/A)^2)
unit: mV
tolerance: 0.5%

### What offset does the comparator have, referred to its input?

::: misses
- [sqrt(p^2 + l^2)] Divide the latch's offset by the preamp's gain.
- [any] $\sqrt{V_{os,p}^2 + (V_{os,l}/A)^2}$.
:::
:::

::: part
answer: l/p
tolerance: 0.5%

### What preamp gain would make the latch's share equal the preamp's?

::: misses
- [any] $V_{os,l}/A = V_{os,p}$.
:::
:::
:::

::: check
kind: parts
given: Q = 5 | 20; C = 1 | 2; R = 100 | 500; N = 10 | 12

## When a comparator fires it kicks {Q} fC back onto a {C} pF sampling capacitor, driven through {R} Ω. The converter has {N} bits on a 1 V range.

::: part
answer: Q/C
unit: mV
tolerance: 0.5%

### How big is the kickback step?

::: misses
- [any] Q/C.
:::
:::

::: part
answer: R*C*1e-12*ln(Q/C/1000/(0.5/2^N))*1e9
unit: ns
tolerance: 0.5%

### How long does the source take to restore the input to half an LSB?

::: misses
- [any] $RC\ln(\Delta V/\tfrac12\text{LSB})$.
:::
:::
:::

::: check
kind: parts
given: s = 1 | 2; B = 20 | 100; A = 20 | 30

## A switched-capacitor filter samples at {s} MHz and passes a {B} kHz band. A first-order RC filter ahead of it must attenuate anything that would alias into the band by {A} dB.

::: part
answer: s*1000 - B
unit: kHz
tolerance: 0.5%

### What is the lowest input frequency that aliases into the band?

::: misses
- [any] $f_s - f_B$.
:::
:::

::: part
answer: (s*1000 - B)/sqrt(10^(A/10) - 1)
unit: kHz
tolerance: 0.5%

### Where must the RC filter's corner be?

::: misses
- [any] $\sqrt{1 + (f/f_c)^2} = 10^{A/20}$.
:::
:::
:::
:::
