S649 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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?

Name it

The tools

  • Lineup: stage by stage, F=F1+F2−1G1+⋯ and 1IIP3=∑kGbefore kIIP3k (milliwatts), total gain the product; then sensitivity and SFDR=23(IIP3−Nfloor).
  • Spurs: for every m ≥ 1 and n ≥ 0 up to a limit, the input frequencies (nfLO±fIF)/m, kept if they lie inside the preselector.
  • One-port calibration with complex numbers: e00=ML, e11=a+ba−b, e10e01=a(1−e11) with a=MO−ML, b=MS−ML, and ΓA=ΓM−e00e10e01+e11(ΓM−e00).
  • Bandpass sampling: for each zone n from 1 to ⌊fH/(fH−fL)⌋, the allowed rates 2fHn≤fs≤2fLn−1 (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 |mf−nfLO|=fIF.

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?