ENع
←Carriers and mixing
Lesson 59 · Digital modulation

Carriers and mixing: AM, DSB-SC and sharing a channel by frequency or time

18 min12 steps5 questionsAdvanced
About this lesson

To send a message by radio you move it up to a high frequency. Follow one: a 1 kHz tone is multiplied by a 10 kHz carrier, which splits it into sidebands at 9 and 11 kHz (DSB-SC); add the carrier back and you get conventional AM, easy to receive but costly in power. A receiver multiplies by the same carrier and low-pass filters to get the message back. Then a second station shares the air on its own band (FDM), and the two take turns in time slots instead (TDM). Every spectrum is a real DFT, and you will check one with numpy. This goes deeper than the Hardware lesson on radio-frequency basics and the Networking lesson on wireless basics; it uses the Fourier transform and spectra from earlier in this course.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 59 · Interactive
01 / 12

The message

Message A is a 1 kHz tone: m(t) = cos(2π·1000·t) volts. Its spectrum is one line at 1 kHz. A signal that sits near 0 Hz like this is called baseband.

m(t) = cos(2π·1000·t)   (volts, t in seconds)

spectrum: one line, 1 V at 1 kHz

baseband = the frequencies sit near 0 Hz
(speech: about 0.3 to 3.4 kHz)

to send it by radio, an antenna about a
quarter wavelength long works well:
λ = c / f = 3×10⁸ / 1000 = 300 km. Too big.
Loading figure…
or ← →
Read the lesson step by step
  1. The message

    Message A is a 1 kHz tone: m(t) = cos(2π·1000·t) volts. Its spectrum is one line at 1 kHz. A signal that sits near 0 Hz like this is called baseband.

    m(t) = cos(2π·1000·t)   (volts, t in seconds)
    
    spectrum: one line, 1 V at 1 kHz
    
    baseband = the frequencies sit near 0 Hz
    (speech: about 0.3 to 3.4 kHz)
    
    to send it by radio, an antenna about a
    quarter wavelength long works well:
    λ = c / f = 3×10⁸ / 1000 = 300 km. Too big.
  2. The carrier

    An oscillator makes a fast, steady wave: the carrier, c(t) = cos(2π·10000·t). On its own it carries no news. Its job is to move the message up to a frequency that antennas can send.

    c(t) = cos(2π·10000·t)
    
    spectrum: one line, 1 V at 10 kHz
    
    here 10 kHz so the plots stay readable;
    AM radio uses carriers near 1 MHz,
    Wi-Fi near 2.4 and 5 GHz
    
    the carrier is a sine you know exactly:
    the receiver can make the same one
  3. Mixing is multiplying

    A mixer multiplies: s(t) = m(t)·c(t). The carrier now swells and shrinks inside the dashed outline ±m(t). Since cos a·cos b = ½cos(a−b) + ½cos(a+b), the product is two tones: 9 kHz and 11 kHz.

    s(t) = m(t)·c(t)
         = cos(2π·1000t)·cos(2π·10000t)
         = ½cos(2π·9000t) + ½cos(2π·11000t)
    
    cos a·cos b = ½cos(a−b) + ½cos(a+b)
    
    spectrum: 0.5 V at 9 kHz and 11 kHz
    the message moved from 0 Hz to 10 kHz
  4. DSB-SC: two sidebands, no carrier

    There is no line at 10 kHz: the carrier is suppressed. The copies below and above it are the lower and upper sidebands. This is double-sideband suppressed-carrier (DSB-SC) modulation. It takes 2 × 1 kHz = 2 kHz of spectrum.

    DSB-SC = double sideband, suppressed carrier
    
    lower sideband  fc − fm = 9 kHz
    upper sideband  fc + fm = 11 kHz
    carrier line    none
    
    bandwidth = 2·fm = 2 kHz
    
    where m(t) < 0 the wave flips by 180°:
    its outline crosses zero
  5. AM: add the carrier back

    Conventional AM sends s(t) = [1 + μ·m(t)]·c(t) with modulation index μ = 0.5 (how deep the outline swings). Now a 1 V carrier line sits between sidebands of 0.25 V. The outline 1 + 0.5·m(t) stays between 0.5 and 1.5: never below zero.

    s(t) = [1 + μ·m(t)]·c(t),  μ = 0.5
         = c(t) + μ·m(t)·c(t)
    
    spectrum:
      10 kHz   1.00 V   (carrier)
      9 kHz    0.25 V   (μ/2)
      11 kHz   0.25 V   (μ/2)
    
    outline 1 + 0.5·m(t): 0.5 .. 1.5 V
    μ ≤ 1 keeps it above zero
  6. AM: cheap to receive, costly to send

    Because the outline never crosses zero, a diode and a capacitor can follow it: an envelope detector, the classic cheap radio. The price is power: the carrier line takes 88.9% of it and carries no message. Only 11.1% is sideband.

    power of each line (1 Ω): A²/2
      carrier     1²/2      = 0.500
      sidebands   2 × 0.25²/2 = 0.0625
      total                  = 0.5625
    
    useful share = (μ²/2) / (1 + μ²/2)
                 = 11.1%   (μ = 0.5)
    even at μ = 1 it is only 33%
    
    DSB-SC wastes none, but needs a
    harder receiver (next step)
  7. The receiver mixes again

    DSB-SC has no clean outline to follow, so the receiver multiplies by its own 10 kHz carrier: y(t) = s(t)·c(t) = m/2 + (m/2)·cos(2π·20000·t). One copy lands back at 1 kHz; another goes up to 20 kHz. The two carriers must be in phase.

    y(t) = m(t)·c(t)·c(t) = m(t)·cos²(2π·fc·t)
    cos²θ = ½ + ½cos 2θ
         = m/2 + (m/2)·cos(2π·20 kHz·t)
    
    spectrum: 0.5 V at 1 kHz
              0.25 V at 19 and 21 kHz
    
    the receiver's carrier must match:
    phase error φ -> output (m/2)·cos φ
    φ = 90° gives nothing (coherent = in step)
  8. A low-pass filter keeps the message

    A low-pass filter passes frequencies below 2.5 kHz and blocks the rest. The 19 and 21 kHz lines vanish and m(t)/2 comes out: the message, at half size. An amplifier can restore the size.

    low-pass filter, cut-off 2.5 kHz
      1 kHz          passes
      19, 21 kHz     blocked
    
    out(t) = m(t) / 2 = 0.5·cos(2π·1000·t)
    
    modulate:    multiply by c(t)
    demodulate:  multiply by c(t), then low-pass
    (synchronous or coherent detection)
  9. Two stations, two bands

    Station B sends a 2 kHz tone on a 15 kHz carrier, at the same time. Its sidebands land at 13 and 17 kHz, clear of A's 9 to 11 kHz, with a 2 kHz guard band between. Sharing by frequency is FDM.

    station A: 1 kHz on 10 kHz -> 9 .. 11 kHz
    station B: 2 kHz on 15 kHz -> 13 .. 17 kHz
    guard band: 11 .. 13 kHz (2 kHz)
    
    the air adds the two waves:
      s(t) = sA(t) + sB(t)
    both send all the time, each in its own band
    
    FDM = frequency-division multiplexing
    (radio and TV stations, cable TV)
  10. Tuning picks one band

    Mixing with 10 kHz moves A to 1 kHz, but B only to 3 and 7 kHz (and 23, 27 kHz). The 2.5 kHz low-pass keeps A alone. To hear B instead, tune the receiver's oscillator to 15 kHz: B returns at 2 kHz.

    receiver mixes with 10 kHz:
      A: 9, 11 kHz   -> 1 kHz  (+ 19, 21)
      B: 13, 17 kHz  -> 3, 7 kHz (+ 23, 27)
    
    low-pass 2.5 kHz keeps only 1 kHz
    out(t) = mA(t)/2, no trace of B
    
    tuning = choosing the oscillator
    frequency (and a band-pass in front)
  11. Or take turns in time

    Time division (TDM) shares the channel differently: each message is sampled 8000 times a second and the samples take turns: A, B, A, B. Each slot lasts 62.5 µs. FDM gives each user a band; TDM gives each a time slot.

    TDM = time-division multiplexing
    
    each channel: 8000 samples per second
      (more than 2 × 2 kHz, so B is safe)
    two channels -> 16000 slots per second
    one slot = 1 / 16000 s = 62.5 µs
    
    FDM: own band, all the time
    TDM: whole channel, own time slot
    (digital telephone lines, GSM time slots)
  12. Mixing in Python

    With numpy, mixing is one multiplication of two arrays. np.fft.rfft gives the spectrum: 800 samples at 80 kHz put a line every 100 Hz, and the only two lines are at 9000 and 11000 Hz.

    import numpy as np
    t = np.arange(800) / 80000
    m = np.cos(2*np.pi*1000*t)
    s = m * np.cos(2*np.pi*1e4*t)
    S = np.abs(np.fft.rfft(s))
    np.flatnonzero(S > 1) * 100
    array([ 9000, 11000])
    
    fs = 80000 samples/s, N = 800
    line spacing fs / N = 100 Hz
    rfft gives N/2 + 1 = 401 lines
    |S| at 9 and 11 kHz = N·0.5/2 = 200
    
    (Python 3 with numpy)

Quiz Unlocks after the last step.