ENع
←Nyquist pulse
Lesson 56 · Digital communications: bits on a wire

The Nyquist pulse and raised cosine

16 min10 steps5 questionsAdvanced
About this lesson

A receiver reads a pulse train only once per symbol, so pulses may overlap freely as long as each one is zero at every other symbol's sampling instant. That is Nyquist's zero-ISI condition. Follow five symbols, +1 −1 +1 +1 −1, through a pulse shaper, a cable and a sampler: the sinc pulse meets the condition in the smallest possible bandwidth, R/2, but its slow 1/t tails make it fragile to timing errors. The raised cosine keeps every zero, lets its tails die like 1/t³, and pays with a little extra bandwidth, (1 + β)R/2. You then check zero ISI in Python with numpy. It builds on the lessons on pulse shaping and on intersymbol interference, and leads into the matched filter and eye diagrams.

You'll learn to

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

Fig 56 · Interactive
01 / 10

Square pulses spill out of band

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).

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"
Loading figure…
or ← →
Read the lesson step by step
  1. Square pulses spill out of band

    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).

    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"
  2. Nyquist: zero where we look

    The receiver looks at the signal only once per symbol, at t = kT. So a pulse may spread over its neighbours' time, as long as it is exactly zero at their sampling instants: p(0) = 1 and p(kT) = 0 for every other k.

    Nyquist's condition for zero ISI (1928)
    
      p(0)  = 1
      p(kT) = 0   for k = ±1, ±2, ±3 ...
    
    then the sample at t = kT is
      y(kT) = Σ a_j·p((k − j)T) = a_k
    
    between the instants p may be anything:
    the receiver never looks there
  3. The sinc pulse

    One pulse does exactly this: p(t) = sin(πt/T)/(πt/T), the sinc pulse. It is 1 at t = 0 and crosses zero at t = ±T, ±2T, ±3T and so on: at every other symbol's sampling instant.

    p(t) = sinc(t/T) = sin(πt/T) / (πt/T)
    
    t = 0     limit 1
    t = kT    sin(πk) = 0, so p = 0
    
    it also swings between the zeros,
    and never ends: it is non-zero for
    all t < 0 too (non-causal)
  4. Pulses overlap, samples do not

    Each symbol sends a scaled, delayed sinc, and the cable carries their sum. The pulses overlap everywhere, yet at t = kT all of them but one are zero. The samples read +1, −1, +1, +1, −1: no ISI.

    y(t) = Σ a_j·sinc(t/T − j)
         = +p(t) − p(t−T) + p(t−2T)
           + p(t−3T) − p(t−4T)
    
    samples
      y(0)  = 1.00   y(T)  = −1.00
      y(2T) = 1.00   y(3T) = 1.00
      y(4T) = −1.00
    
    thin lines: the five pulses
    thick line: their sum on the cable
  5. The narrowest band: R/2

    The sinc's spectrum is a flat block from 0 to R/2, then nothing at all. No zero-ISI pulse fits in less. At R = 1 million symbols a second that is 500 kHz; a square pulse's main lobe alone reaches 1 MHz.

    sinc pulse: P(f) / T = 1  for |f| < R/2
                          0  beyond
    
    why nothing narrower works:
      copies P(f − mR) must add to a
      constant; narrower than R/2 they
      leave gaps
    
    R = 1 Msymbol/s
      sinc:   500 kHz
      square: main lobe to 1000 kHz
  6. Sinc is fragile

    Real clocks are never exact, and sinc tails shrink only like 1/t. Sample 0.1T late and the tails of 100 symbols on each side can add up to 1.02: more than the wanted pulse, 0.98. A symbol can flip.

    sampled 0.1T late, these 5 symbols:
      0.88  −1.05  1.28  0.71  −0.97
    
    worst case, every neighbour unlucky:
      wanted     p(0.1T)          = 0.98
      ISI        Σ|p(0.1T + kT)|
        100 neighbours each side = 1.02
       1000 neighbours each side = 1.47
    
    |sinc| ≤ 1/(π|t|/T): a 1/t tail,
    so the sum keeps growing (like ln K)
  7. Raised cosine: tails that die fast

    Multiply the sinc by a smooth factor: p(t) = sinc(t/T)·cos(πβt/T) / (1 − (2βt/T)²). It keeps every zero at kT, but its tails fall like 1/t³. At t = 5.5T: sinc −0.058, raised cosine 0.0041 (β = 0.35).

    raised-cosine pulse, roll-off β
      p(t) = sinc(t/T) · cos(πβt/T)
                       / (1 − (2βt/T)²)
    
    sinc(t/T) is still a factor:
      p(kT) = 0 for k ≠ 0, p(0) = 1
    
    t = 5.5T, β = 0.35
      sinc            −0.058
      raised cosine   0.0041
    
    at |t| = T/(2β) use the limit
      (π/4)·sinc(1/(2β))
  8. The price: a little more bandwidth

    The raised-cosine spectrum stays flat to (1 − β)R/2, then rolls down half a cosine wave to (1 + β)R/2. The roll-off β runs from 0 to 1. With β = 0.35 at 1 million symbols a second: 675 kHz instead of 500.

    P(f) / T
      1                      |f| ≤ (1−β)R/2
      ½[1 + cos(π/β·(|f|T − (1−β)/2))]
                             up to (1+β)R/2
      0                      beyond
    
    bandwidth B = (1 + β)·R/2
      β = 0      500 kHz  (the sinc)
      β = 0.35   675 kHz  (flat to 325 kHz)
      β = 1     1000 kHz
  9. Sample, decide, recover

    The receiver samples the raised-cosine signal at each kT and keeps the sign: +1, −1, +1, +1, −1 come back. Even 0.1T late, the worst-case tails of 100 symbols on each side add up to only 0.27, so every sign survives.

    decide: y(kT) ≥ 0 -> +1, else −1
    received: +1 −1 +1 +1 −1
    sent:     +1 −1 +1 +1 −1
    
    0.1T late, β = 0.35:
      these 5:  0.86  −1.00  1.22  0.77  −1.02
      wanted 0.98, worst ISI 0.27
      (sinc: 1.02)
    
    in practice each end uses a root-raised
    cosine; together they make the raised
    cosine (next: the matched filter)
  10. Zero ISI in Python

    In Python with numpy, np.sinc(x) is sin(πx)/(πx). The function p builds the raised cosine. Its samples h at −4T to 4T are 1 at the centre and 0 elsewhere, so convolving the symbols with h gives them back unchanged.

    import numpy as np
    def p(t, b=0.35):
        c = np.cos(np.pi*b*t)
        d = 1 - (2*b*t)**2
        return np.sinc(t)*c/d
    a = np.array([1, -1, 1, 1, -1])
    h = p(np.arange(-4, 5))
    y = np.convolve(a, h)[4:9]
    
    >>> h.round(3)
    array([-0.,  0., -0.,  0.,  1.,  0., -0.,  0., -0.])
    >>> y
    array([ 1., -1.,  1.,  1., -1.])
    
    (Python 3 with numpy)

Quiz Unlocks after the last step.