Sampling and PCM
Do the samples bring the signal back?
Sweep the sampling rate fs. Above twice the signal frequency the reconstruction (gold) overlaps the original; below it, the samples fold down into a fake low frequency (red).
Samples are dots
Sampling reads the continuous signal once every fixed time step and writes down the value. A smooth curve shrinks to a handful of dots. The natural doubt is this: we threw away everything between the dots — how could the original curve ever come back?
Nyquist — faster than twice
The sampling theorem answers it. If the signal’s highest frequency is fmax, sampling at fs > 2 fmax lets the samples reconstruct the original perfectly. That boundary, 2 fmax, is the Nyquist rate. When fs falls short, a component near fmax folds into the band below fs/2 and appears as a slower sinusoid that passes through the very same samples. This disguise is aliasing, and once folded it cannot be undone.
PCM — quantize and encode
A sample is still a continuous value. PCM rounds that value to the nearest of L levels (quantizing) and writes each level as n = log₂ L bits. Sampling fs times per second, the bit rate is R = n fs. The error from rounding is quantization noise, which shrinks as the number of levels L grows (as you spend more bits). Sampling chops time, quantizing chops value, and together they turn the signal into numbers.
Back to the first screen
As you raised the rate the dots packed tighter, and the instant fs passed twice the signal frequency the reconstruction lay exactly over the original and turned gold. Below it, a slower sinusoid through the same samples appeared and disguised itself in red. The one thing to hear in sampling is this: discarding everything between the dots loses nothing as long as fs > 2 fmax, and breaking that boundary folds a high frequency into a fake low one for good.
In the next unit
Now the message is a stream of bits. Next is how those bits shake the carrier. Switch the carrier’s amplitude on and off with the bits and you get ASK; flip between two frequencies, FSK; reverse the phase, PSK. We compare the three branches of digital modulation side by side.