---
title: Amplifiers, mixers and oscillators
heading: The three active building blocks of a radio, gain and its compression, two-tone intermodulation and the third-order intercept, noise figure through a cascade, mixers that shift frequencies and the image they let in, and oscillators that sustain themselves when loop gain and phase are just right
eyebrow: D9 · Lesson 5 · Amplifiers, mixers and oscillators
xp: 40
---

::: hook
Every radio is built from three kinds of active block. Amplifiers raise weak signals, but they add a little noise of their own and, pushed too hard, distort strong ones into new frequencies that land on other channels. Mixers multiply a signal by a local oscillator to move it to a frequency that's easier to filter and digitize. Oscillators make the local oscillator, a clean sine wave created from nothing but a transistor, a resonator and the right feedback. Their imperfections set how weak a signal a receiver can hear and how strong a neighbor it can ignore.
:::

::: play
- An amplifier's output against its input power for two equal tones: the wanted tones (slope 1) and the third-order intermodulation products at $2f_1 - f_2$ and $2f_2 - f_1$ (slope 3).
- Extended, the two lines meet at the **third-order intercept** (IIP3 on the input axis). Every 1 dB less drive lowers the intermodulation by 3 dB, 2 dB more relative to the tones.
- The readout gives how far below the tones the products are at the chosen input level.
:::

```sim plot
view: graph
x: p = -50..20
y: o = -120..50
slider: G = 0..30 step 1 = 15
slider: I = -20..20 step 1 = 5
slider: q = -50..10 step 1 = -20
plot: p + G | dashed | color: ch3 | label: wanted tone out, dBm (p = input per tone)
plot: 3*p + G - 2*I | samples: 300 | label: third-order product out
marker: x = q | label: your input
readout: intermodulation below the tones, dB = 2*(I - q) | digits: 3
```

::: predict
## Two −20 dBm tones into an amplifier produce third-order products 50 dB below the tones at its output. What's its input third-order intercept?

- [ ] −70 dBm
- [ ] −20 dBm
- [x] +5 dBm
- [ ] +30 dBm

::: reveal
The products are 2(IIP3 − $P_\text{in}$) below the tones, so IIP3 = $P_\text{in}$ + ΔP/2 = −20 + 50/2 = +5 dBm. Reduce the input by 10 dB and the products drop 30 dB, now 70 dB below the tones.
:::
:::

::: nameit
## Amplifiers

- **Gain** G in dB, and the **1 dB compression point** where the gain has fallen by 1 dB as the output saturates.
- **Third-order intercept**: for two tones of power $P_\text{in}$ each, the products appear $2(\text{IIP3} - P_\text{in})$ dB below the tones, so IIP3 = $P_\text{in}$ + ΔP/2. IIP3 is typically about 10 dB above the input 1 dB compression point.
- **Noise figure** NF: how much the amplifier worsens the SNR. In a cascade (Friis, S6),
$$F = F_1 + \frac{F_2 - 1}{G_1} + \frac{F_3 - 1}{G_1G_2} + \cdots$$
in linear terms, so the first stage's noise dominates if its gain is high: that's the low-noise amplifier's job.

## Mixers

A mixer multiplies the RF signal by a local oscillator: $\cos\omega_{RF}t\cos\omega_{LO}t$ gives the sum and the difference. The difference is the **intermediate frequency**, $f_{IF} = |f_{RF} - f_{LO}|$. But a signal at the **image**, on the other side of the LO by the same distance ($f_{LO} - f_{IF}$ if the wanted signal is above the LO), lands on the same IF, so it must be filtered out before the mixer (lesson 6). Diode mixers lose 6 to 8 dB (conversion loss); active ones have gain.

## Oscillators

An amplifier fed back through a resonator oscillates at the frequency where the loop gain is exactly 1 and the loop phase a whole number of turns (the **Barkhausen criterion**); in practice the gain starts above 1 and limiting brings it down. An LC tank oscillates near $1/2\pi\sqrt{LC}$; a quartz crystal's very high Q (10⁵ and more) gives parts-per-million accuracy. The randomness in the oscillation's phase, **phase noise**, spreads the carrier into a skirt that can mask nearby weak signals.
:::

::: example
## An LNA with 1 dB noise figure and 15 dB gain precedes a mixer with an 8 dB noise figure. What's the cascade's noise figure?

::: solution
1. **Cascade formula.** In linear terms the LNA's F is 1.259, the mixer's 6.31 and the LNA's gain 31.6:
   $$\begin{aligned} F &= 1.259 + \frac{6.31 - 1}{31.6} \\ &= 1.427 \end{aligned}$$
2. **In decibels.**
   $$10\log_{10} 1.427 = 1.54\ \text{dB}$$
   The mixer's 8 dB adds only half a decibel behind the LNA.
3. **Without the LNA.** The receiver would start at 8 dB.

**Answer:** the cascade's noise figure is 1.54 dB.
:::
:::

::: example
## A 2.44 GHz signal is mixed with a 2.37 GHz LO. What's the IF and the image? What does a 10 nH, 1 pF tank resonate at?

::: solution
1. **IF.**
   $$\begin{aligned} f_\text{IF} &= (2.44 - 2.37)\ \text{GHz} \\ &= 70\ \text{MHz} \end{aligned}$$
2. **Image.** The image is the LO minus the IF:
   $$\begin{aligned} f_\text{image} &= (2.37 - 0.07)\ \text{GHz} \\ &= 2.30\ \text{GHz} \end{aligned}$$
   It also mixes to 70 MHz.
3. **Tank resonance.**
   $$\begin{aligned} f_0 &= \frac{1}{2\pi\sqrt{10\ \text{nH} \times 1\ \text{pF}}} \\ &= 1.59\ \text{GHz} \end{aligned}$$

**Answer:** the IF is 70 MHz and the image is at 2.30 GHz; the tank resonates at 1.59 GHz.
:::
:::

::: example
## Two tones at −20 dBm each enter an amplifier whose input third-order intercept is 0 dBm. How strong are the intermodulation products, referred to the input?

::: solution
1. **Third-order products.** They rise 3 dB for each 1 dB of input:
   $$\begin{aligned} P_{IM3} &= 3P_\text{in} - 2\,\text{IIP3} \\ &= -60\ \text{dBm} \end{aligned}$$
   That's 40 dB below the tones.
2. **Backing off.** Back off the input by 10 dB and they fall 30 dB, to 60 dB below.

**Answer:** −60 dBm referred to the input, 40 dB below the tones.
:::
:::

::: check
given: P = -30 | -20 | -10; D = 45 | 50 | 65
answer: P + D/2
unit: dBm
tolerance: 0.5%

## Two {P} dBm tones produce third-order products {D} dB below them. What's the input intercept point?

::: right
Right. $P_\text{in} + \Delta P/2$ = {answer} dBm.
:::

::: misses
- [P + D] The products' gap grows 2 dB per dB of input: halve it.
- [P + D/3] The products rise 3 dB per dB but the tones rise 1 dB, so the gap closes 2 dB per dB.
- [any] Not yet. The intercept from a two-tone measurement.
:::
:::

::: check
given: a = 0.5 | 1 | 2; g = 10 | 15 | 20; b = 6 | 8 | 10
answer: 10*log(10^(a/10) + (10^(b/10) - 1)/10^(g/10))
unit: dB
tolerance: 0.5%

## An LNA with a {a} dB noise figure and {g} dB of gain is followed by a stage with a {b} dB noise figure. What's the total noise figure?

::: right
Right. $F_1 + (F_2 - 1)/G_1$ in linear terms: {answer} dB.
:::

::: misses
- [a + b] Noise figures don't add in decibels; the second stage counts divided by the first's gain.
- [any] Not yet. Friis's cascade formula.
:::
:::

::: check
given: r = 0.9 | 2.44 | 5.8; i = 0.07 | 0.2 | 0.3
answer: r - 2*i
unit: GHz
tolerance: 0.5%

## A receiver tunes a {r} GHz signal with a low-side LO and a {i} GHz IF. Where's the image?

::: right
Right. The LO is at {r} − {i} GHz, and the image an IF below it: $f_{RF} - 2f_{IF}$ = {answer} GHz.
:::

::: misses
- [r - i] That's the LO itself.
- [r + 2*i] With the LO below the signal, the image lies below the LO.
- [any] Not yet. The image mirrors the signal about the LO.
:::
:::

::: check
given: L = 1 | 10 | 100; C = 0.5 | 2 | 10
answer: 1/(2*pi*sqrt(L*1e-9*C*1e-12))/1e6
unit: MHz
tolerance: 0.5%

## An LC oscillator's tank is {L} nH and {C} pF. Near what frequency does it oscillate?

::: right
Right. $1/2\pi\sqrt{LC}$ = {answer} MHz.
:::

::: misses
- [any] Not yet. The tank's resonance.
:::
:::

::: check
kind: parts
given: F1 = 0.5 | 1 | 2; G1 = 10 | 15 | 20; F2 = 6 | 8 | 12

## An LNA ({F1} dB noise figure, {G1} dB gain) precedes a mixer of {F2} dB noise figure.

::: part
answer: 10*log(10^(F1/10) + (10^(F2/10) - 1)/10^(G1/10))
unit: dB
tolerance: 0.5%

### What is the cascade's noise figure?

::: misses
- [any] Friis: $F_1 + (F_2 - 1)/G_1$.
:::
:::

::: part
answer: 10*log(10^(F1/10) + (10^(F2/10) - 1)/10^(G1/10)) - F1
unit: dB
tolerance: 2%

### How much does the mixer add?

::: misses
- [any] Cascade less LNA alone.
:::
:::
:::

::: check
kind: parts
given: P = -30 | -20 | -10; I = -5 | 0 | 10

## Two equal tones at {P} dBm enter a stage with an input intercept of {I} dBm.

::: part
answer: 3*P - 2*I
unit: dBm
tolerance: 0.5%

### Where are the third-order products, referred to the input?

::: misses
- [any] $3P_\text{in} - 2\,\text{IIP3}$.
:::
:::

::: part
answer: 2*(I - P)
unit: dB
tolerance: 0.5%

### How far below the tones are they?

::: misses
- [any] $2(\text{IIP3} - P_\text{in})$.
:::
:::
:::

::: explain
## Why does a receiver's first amplifier set its noise figure?

::: model
Every stage adds its own noise, but what matters is how that noise compares with the signal at that point. The first stage sees the signal at its weakest, so whatever noise it adds is compared with a tiny signal and degrades the signal-to-noise ratio the most. If that stage also has substantial gain, it raises the signal and the noise it passes on together, so the next stage's added noise is small by comparison: its contribution is divided by the first stage's gain. A low-noise amplifier with good gain at the very front therefore fixes the receiver's sensitivity, and lossy parts such as filters and cables ahead of it count fully against it.
:::
:::

::: practice

::: check
given: P = -60 | -40 | -25 | -10; D = 30 | 45 | 70
answer: P + D/2
unit: dBm
tolerance: 0.5%

## IIP3 from {P} dBm tones and {D} dBc products?

::: misses
- [any] $P + \Delta P/2$.
:::
:::

::: check
given: a = 0.3 | 3; g = 5 | 30; b = 3 | 15
answer: 10*log(10^(a/10) + (10^(b/10) - 1)/10^(g/10))
unit: dB
tolerance: 0.5%

## Cascade NF: {a} dB with {g} dB gain, then {b} dB?

::: misses
- [any] Friis.
:::
:::
:::
