b01b10b21b31b40b50b61b70b0–b1–b2–b3–b4–b5–b6–b7–MAPp(t)SAMPLE1a = 2*np.array(bits) - 12up = np.zeros(8*16)3up[::16] = a4s = np.convolve(up, p, "same")p(t): rect+1+1+1
-202468-101t (ms)s(t) (V)TIME s(t) = Σ a·p(t − kT)spikes a_k at t = kTp(t): rectp(t): sincp(t): raised cosdots: s(kT) = a_k00.511.522.53-40-30-20-100f (kHz)dBSPECTRUM S(f)/T500 Hz675 Hz1 kHz: 90.3%side lobe −13.3 dBrect · sinc · raised cos
Coloured parts: what the current step is about; everything else rests in whiteBlocks: bits, mapper, pulse-shaping filter, line, receiver sampler, received bits and a Python cardPlots: s(t) built from scaled pulse copies, and the power spectrum S(f)/T in dBTokens carry the symbols ±1 and the received bits, slowed down a great dealBits 1 0 1 1 0 0 1 0 at 1000 bit/s become s(t) = Σ a_k·p(t − kT) with a rectangle, a sinc and a raised-cosine pulse (β = 0.35); their bandwidths are about 1 kHz (90%), 500 Hz and 675 Hz. Real links split the raised cosine between transmitter and receiver as two root-raised-cosine filters (see the matched filter lesson). Gallager notes roll-offs as small as 5-10% are used in practice.

Bits become pulses

  1. We want to send eight bits, 1 0 1 1 0 0 1 0, at 1000 bits per second. One bit leaves every T = 1 ms, the symbol time. A wire cannot carry numbers; it carries a voltage that changes over time.

The rectangle and its spectrum

Narrower spectra

Getting the bits back

The working

# step 1/10 · bits

bits     1 0 1 1 0 0 1 0
rate     R = 1000 bit/s
symbol   T = 1 / R = 1 ms

the job of this lesson:
  bits  ->  a voltage s(t) on the wire
  and how much bandwidth s(t) takes

The bits, the rate of 1000 bit/s and the roll-off β = 0.35 are a chosen example; every curve and number in the figure is computed from this model (sums of the actual pulses, and the spectra from their Fourier transforms). The spectrum plot is the power spectral density for a long run of independent, equally likely bits, S(f) = |P(f)|²/T, not the spectrum of these eight bits alone. It is drawn for f ≥ 0; it is the same for negative f.