a0+1a1−1a2+1a3+1a4−1p(t)kT1import numpy as np2def p(t, b=0.35):3 c = np.cos(np.pi*b*t)4 d = 1 - (2*b*t)**25 return np.sinc(t)*c/d6a = np.array([1, -1, 1, 1, -1])7h = p(np.arange(-4, 5))8y = np.convolve(a, h)[4:9]y0–y1–y2–y3–y4–+1
−3T−2T−1T0T2T3T4T5T6T7T−10+1tp(t), y(t)PULSES IN TIMEp(0) = 1, p(kT) = 0sinc: zero at every kT ≠ 0y(kT) = a_k exactlysampled 0.1T latesinc vs β = 0.35decide by sign0R/2R1.5R00.51frequency f|P(f)| / TSPECTRUM |P(f)| / Tsquaresinc (β = 0)β = 0.35β = 1main lobe to RR/2sinc: nothing above R/2B = (1 + β)·R/2
Coloured parts: what the current step is about; everything else rests in whiteBlocks: symbols to send, pulse shaper p(t), cable, sampler and its symbol clock, symbols received, a Python cardPlots: the pulses and their sum in time (dashed lines: sampling instants kT), and the pulses' spectraThe token carries one symbol at a time; the yellow line and dots mark where the sampler reads the sumFive symbols +1 −1 +1 +1 −1 sent with sinc and raised-cosine pulses and read back by sampling at kT. The worst-case ISI adds the size of every neighbour's pulse at the late sampling instant, as if each neighbour had the unlucky sign; real data rarely lines up that badly, but a long run of it can.

The problem

  1. Five symbols, +1 −1 +1 +1 −1, leave one every T seconds: the symbol rate is R = 1/T. A square pulse per symbol has a spectrum running far past R. In a narrow channel the pulses smear into each other: intersymbol interference (ISI).

Nyquist's pulse

Raised cosine

Back to symbols

The working

# step 1/10 · square

symbols  a = +1 −1 +1 +1 −1
symbol period  T   (here 1 µs)
symbol rate    R = 1/T = 1 million per second

square pulse, one T wide
|P(f)| / T = |sinc(f·T)|
  main lobe to f = R, then sidelobes
  that fade only slowly

sinc(u) = sin(πu) / (πu)
ISI in depth: the lesson "Intersymbol interference"

Time is drawn in symbol periods T and frequency in units of the symbol rate R = 1/T; spectra are amplitude spectra divided by T. The example rate, 1 million symbols a second, is a chosen round number. Every curve is computed from the formulas in the model and checked against a DFT of the sampled pulse. The motion is slowed down a great deal: at 1 million symbols a second one symbol lasts 1 µs.