PCM Block Diagram: PCM Consists of Three Steps To Digitize An Analog Signal
PCM Block Diagram: PCM Consists of Three Steps To Digitize An Analog Signal
1. Sampling.
2. Quantization.
Lecture 2 3. Binary encoding.
1
20/03/1443
Given our example, nb = 3 The more zones, the smaller Δ which results in smaller errors.
The 8 zone (or level) codes are therefore: 000, 001, 010, 011, 100, BUT, the more zones the more bits required to encode the samples ->
101, 110, and 111 higher bit rate
2
20/03/1443
Signals with lower amplitude values will suffer more from quantization error as the
Bit rate and bandwidth requirements of
error range: Δ/2, is fixed for all signal levels.
PCM
Non linear quantization is used to alleviate this problem. Goal is to keep SQNR fixed
for all sample values.
The bit rate of a PCM signal can be calculated form the number of bits
Two approaches: per sample multiplied by the sampling rate: Bit rate = Nb x Fs
The quantization levels follow a logarithmic curve. Smaller Δ’s at lower amplitudes
and larger Δ’s at higher amplitudes. The bandwidth required to transmit this signal depends on the type of
line encoding used.
Companding: The sample values are compressed at the sender into logarithmic zones,
and then expanded at the receiver. The zones are fixed in height.
A digitized signal will always need more bandwidth than the original
Companding: is the process of compression and then expansion. With companded analog signal. Price we pay for robustness and other features of digital
system, the higher amplitude analog signals are compressed (amplified less than lower transmission.
amplitude signals) prior to transmission and then expanded (amplified more than the
lower amplitude signals) in the receiver.
Companding: is used in pulse code modulation (PCM). The process involves decreasing
the number of bits used to record the strongest (loudest) signals.
Example 2.1
PCM Decoder
We want to digitize the human voice. What is the bit rate,
assuming 8 bits per sample? To recover an analog signal from a digitized signal we follow the
following steps:
We use a hold circuit that holds the amplitude value of a pulse till the
Solution next pulse arrives.
The human voice normally contains frequencies from 0
to 4000 Hz. So the sampling rate and bit rate are We pass this signal through a low pass filter with a cutoff frequency
calculated as follows: that is equal to the highest frequency in the pre-sampled signal.
3
20/03/1443
This scheme works well for small changes in signal values between
samples.
DM (cont …)
• Advantages
• Low signaling rate and low transmission channel
bandwidth because in DM only one bit is transmitted per
sample
• The delta modulator transmitter and receiver are less
complicated to implement as compared to the PCM
• Disadvantages
• The two distortions slope overhead error noise is
present.
4
20/03/1443
– Bit rate is the number of bits per second. Baud rate is the number of
signal units per second. Baud rate is less than or equal to the bit rate.
Examples:
1– An analog signal carries 4 bits in each signal unit. If 1000 signal units
are sent per second, find the baud rate and the bit rate?
2– The bit rate of a signal is 3000. If each signal unit carries 6 bits, what
is the baud rate?
What is Chanel capacity?
• Baud rate = 3000/6 =500 bauds/sec
The channel capacity is the maximum number of binary symbols (bits)
that can be transmitted per second with a probability of error arbitrarily
close to zero.
5
20/03/1443
Example 2.1
6
20/03/1443
Consider a noiseless channel with a bandwidth of 3000 Hz Consider the same noiseless channel transmitting a signal
transmitting a signal with two signal levels. The maximum with four signal levels (for each level, we send 2 bits). The
bit rate can be calculated as maximum bit rate can be calculated as
Example 2.4
Shannon’s Theorem
We need to send 265 kbps over a noiseless channel with a
bandwidth of 20 kHz. How many signal levels do we • Shannon’s theorem gives the capacity of a
need?
system in the presence of noise.
Solution
We can use the Nyquist formula as shown:
C = B log2(1 + SNR)
7
20/03/1443
This means that the capacity of this channel is zero regardless of the
bandwidth. In other words, we cannot receive any data through this
The Shannon capacity gives us the upper limit; the Nyquist channel.
formula tells us how many signal levels we need.
8
20/03/1443
We can calculate the theoretical highest bit rate of a regular The signal-to-noise ratio is often given in decibels. Assume that
telephone line. A telephone line normally has a bandwidth of 3000. SNRdB = 36 and the channel bandwidth is 2 MHz. The theoretical
The signal-to-noise ratio is usually 3162. For this channel the channel capacity can be calculated as
capacity is calculated as
This means that the highest bit rate for a telephone line is 34.860
kbps. If we want to send data faster than this, we can either increase
the bandwidth of the line or improve the signal-to-noise ratio.
Example 2.9
Problem 1
For practical purposes, when the SNR is very high, we can assume [1] A compact disc (CD) records audio signals digitally by using
that SNR + 1 is almost the same as SNR. In these cases, the PCM. Assume the audio signal bandwidth to be 15 kHz.
theoretical channel capacity can be simplified to
(a) What is the Nyquist rate?
(b) If the Nyquist samples are quantized into L= 65,536 levels
Prove and then binary coded, determine the number of binary digits
required to encode a sample.
(C) Determine the number of binary digits per second (bit/s)
For example, we can calculate the theoretical capacity of the required to encode the audio signal.
previous example as
(d) For practical reasons discussed in the text, signals are sampled
at a rate well above the Nyquist rate. Practical CDs use
44,100 samples per second. If L = 65,536, determine the
number of bits per second required to encode the signal, and
the minimum bandwidth required to transmit the encoded
signal.
9
20/03/1443
Problem 3
Problem 2
a) If an optical fiber has a bandwidth of 2 Gigahertz and a modem uses
512 signal levels, what is the maximum data rate according to Nyquist?
A television signal (video and audio) has a bandwidth of 4.2
MHz. This signal is sampled, quantized, and binary
coded to obtain a PCM signal. b) Using the fiber in part a, if the average signal power is 405 units and
the average noise power is 27 units, what is the maximum channel
a) Determine the sampling rate if the signal is to be capacity according to Shannon?
sampled at a rate 20% above the Nyquist rate.
b) If the samples are quantized into 1024 levels, determine
the number of binary pulses required to encode each
sample.
c) Determine the binary pulse rate (bits per second) of the
binary-coded signal, and the minimum bandwidth
required to transmit this signal.
10
20/03/1443
Why Carrier?
1. Effective radiation of EM waves requires antenna dimensions Analog Modulation
comparable with the wavelength:
– Antenna for 3 kHz would be ~100 km long • The purpose of a communication system is to transmit
– Antenna for 3 GHz carrier is 10 cm long information signals (baseband signals) through a
Antenna is a radiation element and to get efficient radiation, length of communication channel
the antenna start from 0.1 λ and more. • The term baseband is used to designate the band of
For base band signal, frequency range is (300 to 3400 HZ) for voice frequencies representing the original signal as delivered by the
signal. input transducer
Wavelength is in range (C/f) = (113 to 1000 Km), result in unpractical – For example, the voice signal from a microphone is a
antenna size. baseband signal, and contains frequencies in the range of
0-4000 Hz
2. Base band signal that contain lower power is unpractical as it will
fade very quickly between Tx and Rx.
3. Using carrier increase SNR.
• Since the baseband signal contains frequencies in the audio For example, the frequency of a carrier wave for FM can be chosen
frequency range (4 kHz), some form of frequency-band shifting must from the VHF band of the radio spectrum
be employed for the radio system to operate satisfactorily
For AM, the frequency of the carrier wave may be chosen to be
around a few hundred kHz (from the MF band of the radio
• This process is accomplished by a device called a modulator spectrum)
• The transmitter block in any communications system contains the The demodulator extracts the original baseband signal from the received
modulator device modulated signal
To Summarize:
• The receiver block in any communications system contains the
demodulator device Modulation is the process of impressing a low-frequency information
signal (baseband signal )onto a higher frequency carrier signal
• The modulator modulates a carrier wave (the electromagnetic wave) Modulation is done to bring information signals up to the Radio
which has a frequency that is selected from an appropriate band in Frequency (or higher) signal
the radio spectrum
11
20/03/1443
Input Transmission
transducer Modulator
Channel
EM waves (modulated
Carrier signal)
Baseband signal
(electrical signal) Receiver
Output
Demodulator
transducer
12
20/03/1443
Note
13
20/03/1443
Frequency Modulation
Carrier wave
Note
14
20/03/1443
15
20/03/1443
AM vs. FM
Note • AM requires a simple circuit, and is very easy to generate.
• It is simple to tune, and is used in almost all short wave broadcasting.
• The area of coverage of AM is greater than FM (longer wavelengths
The total bandwidth required for PM can (lower frequencies) are utilized)
• However, it is quite inefficient, and is susceptible to static and other
be determined from the bandwidth forms of electrical noise.
and maximum amplitude of the • The main advantage of FM is its audio quality and immunity to noise.
Most forms of static and electrical noise are naturally AM, and an FM
modulating signal: receiver will not respond to AM signals.
BPM = 2(1 + β)B. • The audio quality of a FM signal increases as the frequency deviation
increases (deviation from the center frequency), which is why FM
Where = 2 most often. •
broadcast stations use such large deviation.
The main disadvantage of FM is the larger bandwidth it requires
16