S6 · Lesson 49 · Receiver lab
Cascade analysis, spurious-response search, complex one-port calibration and bandpass-sampling zones, in Python
Lessons 40 to 46 gave the formulas a receiver designer uses one at a time: Friis for noise, the intercept cascade, the (m, n) spur rule, the calibration error model and the bandpass-sampling inequality. Real design work runs them over whole lineups, bands and data sets. This lab writes the four tools: a lineup calculator that returns gain, noise figure and intercept; a search that lists every low-order spurious response a preselector lets through; a short–open–load calibration in complex arithmetic that recovers a device's reflection from raw readings; and a list of every sample rate that can digitize a band.
- The curve is the cascade noise figure of a 1 dB, 20 dB-gain LNA followed by a 7 dB mixer with 7 dB of loss and a 3 dB IF amplifier, against a passive loss L placed in front of the LNA.
- Every decibel of front-end loss adds a decibel of noise figure, since it multiplies everything behind it.
- The same loss raises the receiver's input-referred intercept by a decibel: noise and linearity pull in opposite directions.
Predict
A receiver at 2450 MHz uses a 2380 MHz LO and a 70 MHz IF behind a preselector passing 2300 to 2600 MHz. Counting responses with m and n up to 5, how many input frequencies in that band convert to 70 MHz?
gives, inside 2300 to 2600 MHz, only the m = n responses: 2450 (1, 1), the image 2310 (1, 1), and pairs at for n = 2 to 5, from 2345 and 2415 MHz inward to 2366 and 2394 MHz. All sit within 140 MHz of the LO, inside the preselector, so the mixer's balance and the LNA's linearity must suppress them.
Name it
The tools
- Lineup: stage by stage, and (milliwatts), total gain the product; then sensitivity and .
- Spurs: for every m ≥ 1 and n ≥ 0 up to a limit, the input frequencies , kept if they lie inside the preselector.
- One-port calibration with complex numbers: , , with , , and .
- Bandpass sampling: for each zone n from 1 to , the allowed rates (no upper limit for n = 1).
Check
Write lineup(stages): stages is a list of (gain dB, NF dB, IIP3 dBm); return (total gain dB, NF dB, input IIP3 dBm). Also sfdr(iip3, nf, bw_hz).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write spurs(f_lo_band, f_hi_band, LO, IF, M=5, N=5): the sorted list of (m, n, f) with 1 ≤ m ≤ M and 0 ≤ n ≤ N for which an input f inside the band gives .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write sol_cal(ML, MO, MS) returning the error terms (e00, e11, e10e01) and correct(GM, e00, e11, t) returning the actual reflection, all complex.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write zones(fL, fH): the list of (n, fs_min, fs_max) for every Nyquist zone that can hold the band, with fs_max = infinity for n = 1.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does putting even a small loss in front of a receiver's LNA cost so much, and why do designers sometimes accept it anyway?
A passive loss at the input attenuates the signal before any amplification but adds its own thermal noise, so every decibel of loss raises the whole receiver's noise figure by a decibel; nothing behind it can recover that. Designers still put filters, switches and limiters there, because the same loss lowers the level of strong signals reaching the LNA and mixer, raising the receiver's input-referred intercept by the same decibel and protecting it from overload. The balance between sensitivity and resistance to strong interferers sets how much front-end loss a design can afford.