The Nyquist pulse and raised cosine
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
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.
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"
اقرأ الدرس خطوة بخطوة
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"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 thereThe 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)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 cableThe 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 kHzSinc 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)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β))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 kHzSample, 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)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)
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01What does Nyquist's zero-ISI condition ask of a pulse p(t) sent once every T seconds?
The receiver only samples at t = kT. If every pulse is zero at the other pulses' sampling instants, each sample equals its own symbol, however much the pulses overlap in between.
02Symbols are sent at R = 2 million per second with sinc pulses. What bandwidth do they need?
The sinc pulse's spectrum is flat up to R/2 and zero beyond, so it needs R/2 = 1 MHz. That is the smallest bandwidth any zero-ISI pulse can use.
03A raised-cosine pulse with roll-off β = 0.25 carries 1 million symbols per second. What is its bandwidth?
B = (1 + β)·R/2 = 1.25 × 500 kHz = 625 kHz: 25% more than the sinc pulse's 500 kHz.
04Why is the ideal sinc pulse a poor choice in a real receiver, even though it has zero ISI?
Sampled 0.1T late, the worst-case tails of 100 neighbours each side add up to 1.02, more than the wanted 0.98, and the sum keeps growing with more neighbours. The raised cosine (β = 0.35) gives 0.27.
05In the Python example, why does np.convolve(a, h)[4:9] return the symbols a unchanged?
Sampled at the symbol instants, a Nyquist pulse is a single 1 (a discrete-time impulse). Convolving with an impulse returns the input, shifted by the impulse's position (4 samples here), so the slice [4:9] is a itself: zero ISI.
المسرد
- Symbol period T, symbol rate R
- T is the time between symbols; R = 1/T is how many symbols are sent per second (baud).
- Intersymbol interference (ISI)
- Part of one symbol's pulse landing on another symbol's sampling instant, changing the value the receiver reads.
- Nyquist (zero-ISI) condition
- p(0) = 1 and p(kT) = 0 for every other whole k; in frequency, copies of P(f) spaced R apart add up to a constant.
- Sinc pulse
- p(t) = sin(πt/T)/(πt/T). Zero at every kT except 0, spectrum flat to R/2 and zero beyond: the minimum-bandwidth Nyquist pulse.
- Raised-cosine pulse
- A Nyquist pulse whose spectrum is flat to (1 − β)R/2 and falls along half a cosine to (1 + β)R/2; its tails shrink like 1/t³.
- Roll-off factor β
- A number from 0 to 1 giving the extra bandwidth of a raised cosine beyond R/2, as a fraction of R/2.
- Root-raised cosine
- The square root of the raised-cosine spectrum; one at the transmitter and one at the receiver together give a raised cosine.
الملاحظات والمصادر
- 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 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 motion is slowed down a great deal: at 1 million symbols a second one symbol lasts 1 µs.
- Nyquist ISI criterion (Wikipedia): h(nT) = 1 at n = 0 and 0 otherwise; shifted copies of H(f) add to a constant
- Raised-cosine filter (Wikipedia): H(f), h(t), the limit at t = ±T/(2β), bandwidth (1+β)/(2T), root-raised-cosine split
- Sinc filter (Wikipedia): the ideal brick-wall low-pass filter, non-causal and never-ending
- Pulse shaping (Wikipedia): sinc tails decay slowly and timing errors raise ISI steeply; raised cosine and matched filtering
- S. Haykin, M. Moher, Communication Systems, 5th ed., Wiley, 2009 (baseband pulse transmission, Nyquist channel, raised cosine)
- MIT OpenCourseWare 6.450 Principles of Digital Communications I (R. Gallager, L. Zheng): PAM and the Nyquist criterion
- MIT OpenCourseWare 6.450 lecture notes (chapter "Channels, modulation, and demodulation")
- A. V. Oppenheim, A. S. Willsky, S. H. Nawab, Signals and Systems, 2nd ed., Pearson (Fourier transforms of the rectangle and the sinc)
- MIT OpenCourseWare 6.003 Signals and Systems (D. Freeman, Fall 2011)
- NumPy documentation: numpy.sinc, sin(πx)/(πx) with sinc(0) = 1
اختبار يتاح بعد الخطوة الأخيرة.