Signals and Communication Systems
Senior 5 · Physics
Signals and Communication Systems
Lesson 2 of 4
25 min
A voice note you record on a phone is stored and sent as nothing but a long list of binary numbers. Yet when it is played back, the listener hears a continuous, natural voice. Turning a continuous signal into numbers is done by an analogue-to-digital converter (ADC), and turning the numbers back into a voltage by a digital-to-analogue converter (DAC). Two questions decide the quality: how often the signal is measured, and how finely each measurement is recorded.
An ADC measures the analogue voltage at regular instants. Each measurement is a sample, and the number of samples per second is the sampling rate (or sampling frequency) . If the samples are too far apart, rapid changes in the signal fall between them and are lost. The sampling theorem (Nyquist and Shannon) states that a signal containing frequencies up to can be reconstructed exactly provided
If the signal is sampled more slowly than this, high frequencies are not just lost: they reappear as false low frequencies, called aliases, which spoil the signal. To prevent this, a low-pass filter removes frequencies above before sampling.
Each sample is then rounded to the nearest of a fixed set of levels, a process called quantisation, and the level number is written in binary. An ADC with bits has levels. If the levels run from 0 to , the step between them, the resolution, is
Rounding to the nearest level makes an error of up to half a step, the quantisation error. Each extra bit doubles the number of levels and halves the error.
| Sample | Time / ms | Analogue voltage / V | Nearest level | 3-bit code |
|---|---|---|---|---|
| 1 | 0.000 | 4.75 | 5 | 101 |
| 2 | 0.125 | 6.05 | 6 | 110 |
| 3 | 0.250 | 6.68 | 7 | 111 |
| 4 | 0.375 | 6.45 | 6 | 110 |
| 5 | 0.500 | 5.43 | 5 | 101 |
| 6 | 0.625 | 3.89 | 4 | 100 |
The diagram shows a 3-bit ADC (8 levels, 0 V to 7 V, so V) sampling a 667 Hz tone 8000 times per second. The first six samples are in the table. The staircase is a rough copy of the smooth curve; with more bits and faster sampling the steps become finer and the copy better.
Definition
Sampling rate : the number of samples taken per second. Quantisation: rounding each sample to the nearest of levels, where is the number of bits per sample (the bit depth). Bit rate: the number of bits produced per second, . Example: telephone speech sampled at 8 kHz with 8 bits gives bit s⁻¹.
Worked example 1: the telephone channel
Telephone speech is filtered to below 3.4 kHz, sampled at 8.0 kHz and coded with 8 bits per sample. (a) Check that the sampling rate satisfies the sampling theorem. (b) Find the number of quantisation levels. (c) Find the bit rate.
Solution
(a) kHz, and : satisfied, with a margin that makes the filter easier to build.
(b) levels.
(c) Bit rate bit s⁻¹ kbit s⁻¹. This 64 kbit s⁻¹ channel is the basic building block of digital telephone networks.
Worked example 2: music on a CD
CD audio is sampled at 44.1 kHz with 16 bits per sample, in two channels (stereo). (a) What is the highest frequency that can be recorded? (b) Find the bit rate. (c) How many megabytes does a 3.0-minute song need, uncompressed? (1 byte = 8 bits.)
Solution
(a) kHz, just above the upper limit of human hearing (about 20 kHz).
(b) bit s⁻¹.
(c) bits bytes MB. Compressed formats such as MP3 reduce this about ten-fold by discarding sounds the ear cannot notice.
At the receiver, a DAC turns each binary number back into a voltage, held until the next sample arrives. The result is the orange staircase. A low-pass reconstruction filter then smooths away the sharp steps, which contain only frequencies above , leaving a close copy of the original. The copy is never perfect, because of the quantisation error, but with 16 bits the error is about of the full range, far below what the ear can hear.
Claude Shannon showed in 1948 that a channel of bandwidth and signal-to-noise power ratio can carry information, without errors, at no more than
This channel capacity links the two ideas of this lesson and the last: to send more bits per second you need either more bandwidth or a better signal-to-noise ratio.
Worked example 3: the limit of an old telephone line
An analogue telephone line has a bandwidth of 3.1 kHz and an SNR of 30 dB. Find its Shannon capacity, and comment on the fact that the fastest dial-up modems of the 1990s reached 33.6 kbit s⁻¹ on such lines.
Solution
30 dB is a power ratio of .
bit s⁻¹ kbit s⁻¹.
The modems were working at the Shannon limit of the line; slightly better lines (a little more bandwidth or SNR) allowed 33.6 kbit s⁻¹. No cleverer modem could do much better on that channel. Much faster internet needed channels with far more bandwidth: fibre, cable and modern radio.
Warning
Twice the highest frequency, not twice the bandwidth of something else. The sampling rate must be at least twice the highest frequency in the signal. And the number of levels is , not : 8 bits give 256 levels, not 16.
Tip
Bit rate = how often × how finely × how many channels. Write first, then substitute; it avoids most bit-rate errors.
A/D Conversion, Sample Rate & Bit Depth for audio explained, Mixed Signals. Watch how the sampling rate limits the highest frequency and how the bit depth sets the number of levels.
Practice
Key points
Sources and credits
Written by Ganzaa. The conversion diagram (drawn to scale from the tabulated values), the worked examples and the practice exercises are by Ganzaa.