Analog Signal to Digital Conversion
📡 Analog Signal to Digital Conversion
Analog-to-digital conversion is the process of converting an analog signal into digital data (bits: 0s and 1s) so that it can be transmitted using a digital communication system.
For example, when we speak into a microphone, our voice produces an analog signal whose amplitude changes continuously over time. We can convert this signal into digital data and transmit it through a digital network.
The two techniques discussed are Pulse Code Modulation (PCM) and Delta Modulation (DM).
1. Pulse Code Modulation (PCM)
PCM is the most common technique for converting an analog signal into digital data. It consists of three main steps: sampling, quantization, and encoding.
The three processes are:
1. The analog signal is sampled.
2. The sampled signal is quantized.
3. The quantized values are encoded as streams of bits.
Step 1: Sampling
Sampling measures the amplitude of an analog signal at regular intervals.
Each measurement is called a sample.
The number of samples taken per second is the sampling rate.
The sampling rate must be at least twice the highest frequency of a band-limited signal to allow ideal reconstruction, according to the Nyquist sampling theorem.
Example: If the highest frequency in a voice signal is \(4000\text{ Hz}\), the minimum sampling rate is:
Sampling produces a series of amplitude values, but these values are not yet binary data.
There are three sampling methods—ideal, natural, and flat-top—as shown in Figure 7.30.
The sampling process is sometimes referred to as pulse amplitude modulation(PAM). We need to remember, however, that the result is still an analog signal with nonintegral values.
Step 2: Quantization
The sampled amplitudes may have many possible values. Quantization divides the amplitude range into a finite number of levels and approximates each sample to one of those levels.
For example, suppose the amplitude range is from \(-20\text{ V}\) to \(+20\text{ V}\), and we use eight quantization levels.
Here, \(\Delta\) is the height of each zone and \(L=8\) is the number of levels.
A sample is assigned the representative value of its zone. Since this is an approximation, quantization error may occur when the actual sample differs from the representative value.
Step 3: Encoding
Encoding converts each quantized level into a binary code word.
The number of bits required for each sample is:
For eight quantization levels:
For example, quantization levels numbered 0 to 7 can be represented as follows:
Quantization level | Binary code |
|---|---|
0 | 000 |
1 | 001 |
2 | 010 |
3 | 011 |
4 | 100 |
5 | 101 |
6 | 110 |
7 | 111 |
Thus, every sample is represented by a three-bit code word, producing a stream of digital data.
PCM numerical example
Question: Calculate the bit rate required to digitize a voice signal with a maximum frequency of 4 kHz, using 8 bits per sample.
Step 1: Calculate the sampling rate.
Step 2: Calculate the bit rate.
Therefore, the required bit rate is 64 kbps.
Recovering the original analog signal
At the receiving end, a PCM decoder converts the binary code words into corresponding sample amplitudes. The samples are connected to form a staircase-like signal, and a low-pass filter smooths this signal to reconstruct an approximation of the original analog signal.
PCM Bandwidth
In Pulse Code Modulation (PCM), an analog signal is converted into digital data. The resulting digital signal generally requires more bandwidth than the original analog signal.
The minimum bandwidth of the digital signal is:
Where:
\(B_{\min}\) = minimum bandwidth required by the digital signal.
\(n_b\) = number of bits used to encode each sample.
\(B_{\text{analog}}\) = bandwidth of the original analog signal.
Example
Suppose a voice signal has an analog bandwidth of \(4\,\text{kHz}\) and each sample is encoded using 8 bits.
Therefore, according to this formula, the minimum bandwidth of the digital signal is 32 kHz, which is eight times the original analog bandwidth.
2. Delta Modulation (DM)
Delta Modulation is a simpler alternative to PCM. Instead of encoding the actual amplitude of every sample, DM encodes whether the signal has increased or decreased compared with the previous sample.
Transmit a bit representing an upward step, commonly 1.
Signal decreases
Transmit a bit representing a downward step, commonly 0.
The bit assignments shown are a common convention; the essential idea is to indicate the direction of change.
Example
Suppose the sampled signal amplitudes are:
10, 12, 14, 12, 10
DM examines the change between successive samples:
Current sample | Change | Illustrative bit |
|---|---|---|
10 | Initial reference | — |
12 | Increased | 1 |
14 | Increased | 1 |
12 | Decreased | 0 |
10 | Decreased | 0 |
The resulting sequence is 1100, following the illustrative convention above. The initial reference value is assumed to be known to the decoder.
DM is simpler than PCM because it sends information about the direction of change rather than a multibit code word for every sample. However, it can have difficulty tracking signals that change too quickly or vary only slightly over time.
PCM vs. Delta Modulation
Feature | Pulse Code Modulation (PCM) | Delta Modulation (DM) |
|---|---|---|
Basic idea | Encodes the sampled amplitude | Encodes the direction of change |
Information sent | A multibit code word per sample | Usually one bit per sample |
Complexity | More complex | Simpler |
Main limitation | Quantization error | Can suffer from slope overload and granular noise |
General characteristic | Represents each sample's quantized value | Tracks changes in the signal |
Key points
Analog-to-digital conversion: Converts a continuous analog signal into digital data.
PCM: Sampling → Quantization → Encoding.
Sampling: Measures the signal at regular time intervals.
Quantization: Maps sample amplitudes to a finite set of levels.
Encoding: Converts quantization levels into binary code words.
Delta Modulation: Represents whether the signal increases or decreases from the previous sample.
Nyquist sampling rule: Sampling rate must be at least twice the highest frequency of a band-limited signal for ideal reconstruction.






Comments
Post a Comment