Summary: Converting between a signal and numbers.
Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
Because of the way computers are organized, signal must be represented by a finite number of bytes. This restriction means that both the time axis and the amplitude axis must be quantized: They must each be a multiple of the integers. 1 Quite surprisingly, the Sampling Theorem allows us to quantize the time axis without error for some signals. The signals that can be sampled without introducing error are interesting, and as described in the next section, we can make a signal "samplable" by filtering. In contrast, no one has found a way of performing the amplitude quantization step without introducing an unrecoverable error. Thus, a signal's value can no longer be any real number. Signals processed by digital computers must be discrete-valued: their values must be proportional to the integers. Consequently, analog-to-digital conversion introduces error.
Digital transmission of information and digital signal processing all require signals to first be "acquired" by a computer. One of the most amazing and useful results in electrical engineering is that signals can be converted from a function of time into a sequence of numbers without error: We can convert the numbers back into the signal with (theoretically) no error. Harold Nyquist, a Bell Laboratories engineer, first derived this result, known as the Sampling Theorem, in the 1920s. It found no real application back then. Claude Shannon, also at Bell Laboratories, revived the result once computers were made public after World War II.
The sampled version of the analog signal
| Sampled Signal |
|---|
![]() |
To understand how signal values between the samples can be "filled" in, we need to calculate the sampled signal's spectrum. Using the Fourier series representation of the periodic sampling signal,
| aliasing |
|---|
![]() |
The Sampling Theorem (as stated) does not mention the
pulse width
The only effect of pulse duration is to unequally weight the spectral repetitions. Because we are only concerned with the repetition centered about the origin, the pulse duration has no significant effect on recovering a signal from its samples.
The frequency
To gain a better appreciation of aliasing, sketch the
spectrum of a sampled square wave. For simplicity
consider only the spectral repetitions centered at
![]() |
The square wave's spectrum is shown by the bolder set of
lines centered about the origin. The dashed lines
correspond to the frequencies about which the spectral
repetitions (due to sampling with
If we satisfy the Sampling Theorem's conditions, the signal
will change only slightly during each pulse. As we narrow the
pulse, making
What is the simplest bandlimited signal? Using this
signal, convince yourself that less than two
samples/period will not suffice to specify it. If the
sampling rate
The simplest bandlimited signal is the sine wave. At the Nyquist frequency, exactly two samples/period would occur. Reducing the sampling rate would result in fewer samples/period, and these samples would appear to have arisen from a lower frequency sinusoid.
"Electrical Engineering Digital Processing Systems in Braille."