---
title: Problem set 11
heading: "Problem set 11: oscillators, loops and op-amp design"
eyebrow: C6 · Problem set 11
type: problems
---

::: hook
These problems use lessons 48 to 52: comparators and relaxation oscillators, sinusoidal oscillators, the feedback lab and the op-amp design lab. Take $V_T$ = 25.85 mV where needed.
:::

::: pool
pick: 12

::: check
kind: parts
given: V = 5 | 12 | 15; Rf = 47 | 100 | 470; Rg = 4.7 | 10

## A Schmitt trigger on ±{V} V feeds back through {Rf} kΩ with {Rg} kΩ to ground.

::: part
answer: Rg/(Rg + Rf)*V
unit: V
tolerance: 0.5%

### What's its upper threshold?

::: misses
- [Rf/(Rg + Rf)*V] The threshold is the fraction across the resistor to ground.
- [any] $\beta V_\text{sat}$ with $\beta = \frac{R_g}{R_g + R_f}$.
:::
:::

::: part
answer: 2*Rg/(Rg + Rf)*V
unit: V
tolerance: 0.5%

### What's its hysteresis?

::: misses
- [any] $2\beta V_\text{sat}$.
:::
:::
:::

::: check
kind: parts
given: R = 4.7 | 10 | 47; C = 10 | 100; b = 0.2 | 0.5 | 0.8

## A relaxation oscillator uses R = {R} kΩ, C = {C} nF and β = {b}.

::: part
answer: 2*R*1000*C*1e-9*ln((1 + b)/(1 - b))*1000
unit: ms
tolerance: 0.5%

### What's its period?

::: misses
- [R*1000*C*1e-9*ln((1 + b)/(1 - b))*1000] Each half-period is $RC\ln\frac{1 + \beta}{1 - \beta}$; the period is twice that.
- [any] $T = 2RC\ln\frac{1 + \beta}{1 - \beta}$.
:::
:::

::: part
answer: 1/(2*R*1000*C*1e-9*ln((1 + b)/(1 - b)))
unit: Hz
tolerance: 0.5%

### Its frequency?

::: misses
- [any] $\frac1T$.
:::
:::
:::

::: check
kind: parts
given: f = 0.1 | 1 | 10; R = 4.7 | 10 | 22

## A Wien-bridge oscillator uses {R} kΩ resistors for {f} kHz.

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

### What capacitors?

::: misses
- [any] $C = \frac{1}{2\pi Rf_0}$.
:::
:::

::: part
answer: 2
tolerance: 0.5%

### What ratio $R_F/R_G$ gives exactly the gain it needs?

::: misses
- [3] The gain must be 3, and $1 + R_F/R_G = 3$.
- [any] $1 + \frac{R_F}{R_G} = 3$.
:::
:::
:::

::: check
kind: parts
given: f = 0.5 | 2 | 10; R = 2.2 | 10

## An RC phase-shift oscillator uses three {R} kΩ sections for {f} kHz.

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

### What capacitors?

::: misses
- [any] $C = \frac{1}{2\pi\sqrt6Rf_0}$.
:::
:::

::: part
answer: 29*R
unit: kΩ
tolerance: 0.5%

### What feedback resistor does an inverting amplifier with an {R} kΩ input resistor need?

::: misses
- [any] A gain of 29.
:::
:::
:::

::: check
kind: parts
given: L = 1 | 10 | 47; C1 = 0.1 | 1; C2 = 0.47 | 2.2

## A Colpitts oscillator uses L = {L} µH with $C_1$ = {C1} nF and $C_2$ = {C2} nF.

::: part
answer: 1/(2*pi*sqrt(L*1e-6*C1*C2/(C1 + C2)*1e-9))/1e6
unit: MHz
tolerance: 0.5%

### What's its frequency?

::: misses
- [1/(2*pi*sqrt(L*1e-6*(C1 + C2)*1e-9))/1e6] The capacitors are in series around the loop.
- [any] $\frac{1}{2\pi\sqrt{LC_s}}$ with $C_s = \frac{C_1C_2}{C_1 + C_2}$.
:::
:::

::: part
answer: C2/C1
tolerance: 0.5%

### What gain must the transistor provide at least?

::: misses
- [C1/C2] The ratio is $C_2/C_1$.
- [any] $\frac{C_2}{C_1}$.
:::
:::
:::

::: check
kind: parts
given: A0 = 1000 | 100000; b = 0.01 | 0.1 | 1; p = 10 | 100

## An amplifier with $A_0$ = {A0} and one pole at {p} Hz gets feedback β = {b}.

::: part
answer: A0/(1 + A0*b)
tolerance: 0.5%

### What's the closed-loop gain?

::: misses
- [any] $\frac{A_0}{1 + A_0\beta}$.
:::
:::

::: part
answer: p*(1 + A0*b)/1000
unit: kHz
tolerance: 0.5%

### What's the closed-loop bandwidth?

::: misses
- [any] $p(1 + A_0\beta)$.
:::
:::
:::

::: check
kind: parts
given: G = 1 | 10; f2 = 0.5 | 1 | 3

## A follower's loop has a gain-bandwidth of {G} MHz and a second pole at {f2} × GBW.

::: part
answer: 90 - atan(1/f2)*180/pi
unit: °
tolerance: 0.5%

### About what's its phase margin, with the crossover at GBW?

::: misses
- [any] $90° - \arctan\frac{\text{GBW}}{f_2}$.
:::
:::

::: part
answer: 0.5*sqrt(f2)
tolerance: 0.5%

### What damping ratio does that give?

::: misses
- [any] $\frac12\sqrt{f_2/\text{GBW}}$.
:::
:::
:::

::: check
kind: parts
given: G = 1 | 2 | 5; f2 = 1 | 3

## A loop has a gain-bandwidth of {G} MHz and a second pole at {f2} MHz.

::: part
answer: f2*sqrt((sqrt(1 + 4*(G/f2)^2) - 1)/2)
unit: MHz
tolerance: 0.5%

### Where exactly does the loop gain cross 1?

::: misses
- [G] That's the one-pole estimate; the second pole pulls the crossover down.
- [any] $f_c = f_2\sqrt{\frac{\sqrt{1 + 4(\text{GBW}/f_2)^2} - 1}{2}}$.
:::
:::

::: part
answer: 90 - atan(sqrt((sqrt(1 + 4*(G/f2)^2) - 1)/2))*180/pi
unit: °
tolerance: 0.5%

### What's the exact phase margin?

::: misses
- [any] $90° - \arctan\frac{f_c}{f_2}$.
:::
:::
:::

::: check
kind: parts
given: G = 5 | 20 | 50; SR = 5 | 20; CL = 2 | 10

## A two-stage op amp must reach GBW = {G} MHz and SR = {SR} V/µs into {CL} pF, with $C_c$ = 0.22 $C_L$.

::: part
answer: SR*0.22*CL
unit: µA
tolerance: 0.5%

### What tail current?

::: misses
- [any] $I = \text{SR} \times C_c$.
:::
:::

::: part
answer: SR*1e6/(2*pi*G*1e6)
unit: V
tolerance: 0.5%

### What input overdrive results?

::: misses
- [any] $v_{OV} = \frac{\text{SR}}{2\pi\,\text{GBW}}$.
:::
:::
:::

::: check
kind: parts
given: I5 = 10 | 40; I7 = 50 | 200; ov = 0.15 | 0.25; l = 0.04 | 0.08

## A two-stage op amp has a {I5} µA tail, {I7} µA in its second stage, all overdrives {ov} V and λ = {l} V⁻¹.

::: part
answer: 1/(l*ov)
tolerance: 0.5%

### What's the first stage's gain?

::: misses
- [any] $\frac{g_{m1}}{\lambda I_5}$ = $\frac{1}{\lambda v_{OV}}$.
:::
:::

::: part
answer: (1/(l*ov))^2
tolerance: 0.5%

### What's the overall DC gain?

::: misses
- [any] Each stage gives $\frac{1}{\lambda v_{OV}}$.
:::
:::
:::

::: check
kind: parts
given: Vsat = 5 | 12; b = 0.1 | 0.3; R = 10 | 100; C = 10 | 100

## A relaxation oscillator on ±{Vsat} V with β = {b} charges C = {C} nF through R = {R} kΩ.

::: part
answer: 2*b*Vsat
unit: V
tolerance: 0.5%

### What's the triangle-like swing on the capacitor, peak to peak?

::: misses
- [any] Between $\pm\beta V_\text{sat}$.
:::
:::

::: part
answer: R*1000*C*1e-9*ln((1 + b)/(1 - b))*1000
unit: ms
tolerance: 0.5%

### How long is each half-period?

::: misses
- [any] $RC\ln\frac{1 + \beta}{1 - \beta}$.
:::
:::
:::

::: check
kind: parts
given: Cs = 10 | 20; Cp = 3 | 5; f = 4 | 16

## A crystal's motional capacitance is {Cs} fF and its holder adds {Cp} pF; its series resonance is at {f} MHz.

::: part
answer: f*(1 + Cs*1e-3/(2*Cp))
unit: MHz
tolerance: 0.0001%

### Where is its parallel resonance?

::: misses
- [any] $f_s\left(1 + \frac{C_s}{2C_p}\right)$.
:::
:::

::: part
answer: f*Cs*1e-3/(2*Cp)*1e6
unit: Hz
tolerance: 0.5%

### How far above the series resonance is that?

::: misses
- [any] $f_s\frac{C_s}{2C_p}$.
:::
:::
:::

::: check
kind: parts
given: G = 3.05 | 3.2 | 3.5; f = 0.5 | 2

## A Wien-bridge oscillator at {f} kHz has its amplifier gain set to {G}, a little above 3.

::: part
answer: (G - 3)/3*100
unit: %
tolerance: 0.5%

### By what percentage does the loop gain exceed 1?

::: misses
- [any] $\frac{A\beta - 1}{1}$ with $\beta = \frac13$.
:::
:::

::: part
answer: (1 - 3/G)*100
unit: %
tolerance: 0.5%

### By what percentage must an amplitude limiter reduce the gain to sustain a steady sine?

::: misses
- [(G - 3)/3*100] The limiter brings the gain from G down to 3: divide by G, not 3.
- [any] $\frac{G - 3}{G}$.
:::
:::
:::

::: check
kind: parts
given: A0 = 1000 | 10000; b = 0.1 | 1; h = 1 | 5

## An amplifier with open-loop gain {A0} has {h}% distortion at its rated output, and feedback β = {b}.

::: part
answer: h/(1 + A0*b)
unit: %
tolerance: 0.5%

### What's its distortion at the same output?

::: misses
- [any] $\frac{HD}{1 + A_0\beta}$.
:::
:::

::: part
answer: 20*log(1 + A0*b)
unit: dB
tolerance: 0.5%

### By how many decibels has the feedback reduced it?

::: misses
- [any] $20\log(1 + A_0\beta)$.
:::
:::
:::
:::
