0% found this document useful (0 votes)
2 views18 pages

Lecture 7 - Analog 2 Digital

The document discusses Pulse Code Modulation (PCM), a method for converting analog signals to digital data through sampling, quantization, and encoding. It emphasizes the importance of the sampling rate, as dictated by the Nyquist theorem, and provides examples of calculating minimum sampling rates for different types of signals. Additionally, it introduces Delta Modulation (DM) as a simpler alternative to PCM, focusing on changes in signal amplitude rather than absolute values.

Uploaded by

sagor.temp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views18 pages

Lecture 7 - Analog 2 Digital

The document discusses Pulse Code Modulation (PCM), a method for converting analog signals to digital data through sampling, quantization, and encoding. It emphasizes the importance of the sampling rate, as dictated by the Nyquist theorem, and provides examples of calculating minimum sampling rates for different types of signals. Additionally, it introduces Delta Modulation (DM) as a simpler alternative to PCM, focusing on changes in signal amplitude rather than absolute values.

Uploaded by

sagor.temp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

ANALOG-TO-DIGITAL

CONVERSION
LECTURE 7
Pulse Code Modulation (PCM)
The most common technique to change an analog signal to digital data
A PCM encoder has three processes
◦ The analog signal is sampled.
◦ The sampled signal is quantized.
◦ The quantized values are encoded as streams of bits.
Sampling
The first step in PCM is sampling
The analog signal is sampled every Ts s, where Ts is the sample interval
or period
The inverse of the sampling interval is called the sampling rate or
sampling frequency and denoted by fs, where fs = 1/Ts
There are three sampling methods—ideal, natural, and flat-top
Sampling Rate
One important consideration is the sampling rate or frequency
Nyquist theorem: According to the Nyquist theorem, the sampling rate
must be at least 2 times the highest frequency contained in the signal
Recovery of a sampled sine wave
for different sampling rates
Example: Sampling of a clock
Example
A complex low-pass signal has a bandwidth of 200 kHz. What is the
minimum sampling rate for this signal?
Solution: The bandwidth of a low-pass signal is between 0 and f, where
f is the maximum frequency in the signal.
Therefore, we can sample this signal at 2 times the highest frequency
(200 kHz).
The sampling rate is therefore 400,000 samples per second.
Example
A complex bandpass signal has a bandwidth of 200 kHz. What is the
minimum sampling rate for this signal?
Solution
We cannot find the minimum sampling rate in this case because we do
not know where the bandwidth starts or ends. We do not know the
maximum frequency in the signal.

A complex bandpass signal has a bandwidth of 200 kHz. What is the


minimum sampling rate if the lowest frequency is 100 KHz?
Quantization
Encoding
The last step in PCM is encoding
After each sample is quantized and the number of bits per sample is
decided, each sample can be changed to an nb-bit code word
The bit rate can be found from the formula

𝐵𝑖𝑡 𝑟𝑎𝑡𝑒 = 𝑓𝑠 × 𝑛𝑏
𝑓𝑠 → sampling rate
𝑛𝑏 → number of bits per sample
Example
We want to digitize the human voice. What is the bit rate, assuming 8
bits per sample?
Solution
The human voice normally contains frequencies from 0 to 4000 Hz. So
the sampling rate and bit rate are calculated as follows:
Sampling rate = 4000 x 2 = 8000 samples/s
Bit rate = 8000 x 8 = 64,000 bps = 64 kbps
Original Signal Recovery
The decoder first uses circuitry to convert the code words into a pulse
that holds the amplitude until the next pulse
After the staircase signal is completed, it is passed through a low-pass
filter to smooth the staircase signal into an analog signal
PCM Bandwidth
Suppose we are given the bandwidth of a low-pass analog signal. If we
then digitize the signal, what is the new minimum bandwidth of the
channel that can pass this digitized signal?
We have said that the minimum bandwidth of a line-encoded signal is
Bmin = c × N × (1/r)
We substitute the value of N in this formula:
Bmin = c x N x 1/r = c x nb x fs x 1/r = c x nb x 2 x Banalog x 1/r
When 1/r = 1 (for a NRZ or bipolar signal) and c = (1/2) (the average
situation), the minimum bandwidth is
Bmin = nb x Banalog
PCM Bandwidth
Example:
We have a low-pass analog signal of 4 kHz. If we send the analog signal,
we need a channel with a minimum bandwidth of 4 kHz. If we digitize
the signal and send 8 bits per sample, we need a channel with a
minimum bandwidth of 8 × 4 kHz = 32 kHz.

→ Minimum Required Bandwidth can be found using Nyquist


theorem,
Bmin=N/(2xLog2L)
Delta Modulation (DM)
PCM is a very complex technique → techniques have been developed to
reduce the complexity of PCM
Simplest is delta modulation (DM)
PCM finds the value of the signal amplitude for each sample
→ DM finds the change from the previous sample
Modulator
The modulator is used at the sender site to create a stream of bits from
an analog signal
Process records the small positive or negative changes, called delta δ
If the delta is positive → the process records a 1
If the delta is negative → the process records a 0
However, the process needs a base against which the analog signal is
compared
The modulator builds a second signal that resembles a staircase
Finding the change is then reduced to comparing the input signal with
the gradually made staircase signal
Modulator
The modulator, at each sampling interval, compares the value of the
analog signal with the last value of the staircase signal
If the amplitude of the analog signal is larger → the next bit in the digital
data is 1
If the amplitude of the analog signal is smaller → the next bit in the
digital data is 0
Demodulator
The demodulator takes the digital data and, using the staircase maker
and the delay unit, creates the analog signal
The created analog signal needs to pass through a low-pass filter for
smoothing

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy