1 Lesson2 DigitalCommunication
1 Lesson2 DigitalCommunication
Enabling Objectives
By using the information and answering the worksheet in this lesson, you should be able to demonstrate
ability to:
Know and understand the building blocks of digital communication system.
Understand the need for digitizing analog signals.
Know and understand the elements of pulse code modulation.
Explain the role of sampling in the process of transforming of analog to digital signal.
Comprehend Nyquist theorem and know its importance in determining sampling frequency and rate.
Understand the implication of ‘aliasing’ in the quality of sampled signal and in the design of low pass
filter.
1.0 Introduction
The necessity for digitization is to overcome problems that were encountered with the conventional
methods of communication using analog signals. Analog signals suffer from many losses caused by
distortion, interference, and security breach, among others. With digitized signals, communicating
devices allow communication to be more clear and accurate with tolerable losses.
This lesson covers the processes for digitization of signals, the advantages and the elements of digital
communication system, pulse code modulation of signals and Nyquist Theorem.
(a) (b)
Figure 2.0: Representation of (a) analog signal, and (b) digital signal.
1. Source. The source can be an analog signal. Example of this type of signal is a sound signal.
2. Input Transducer. This is a transducer which takes a physical input (e.g. voice feed to microphone)
and converts it to an electrical signal (see Fig. 2.0a). This block also consists of an analog to
digital converter where a digital signal is needed for further processes. As already mentioned, a
digital signal is generally represented by a binary sequence (0s and 1s).
To illustrate how a source signal goes through the whole process, let us use a human voice picked-
up from a laptop or a cellphone microphone ‘say’ during a synchronous (or on-line) class discussion.
1. Source. When a teacher talks in front of the microphone, his voice is the source analog signal. It
will be fed into the input transducer.
2. Input Transducer. The signal from the source (teacher’s voice) will be converted into an electrical
signal in the form of a sinewave. The teacher’s voice will be converted from analog to digital
signal using the analog to digital circuit (A to D). The output of this block is now in the form of
digital signal and it is fed to the source encoder.
Note: You will continue this in your learning activity worksheet to complete the whole process.
Modulation is the process of varying one or more parameters of a carrier signal in accordance with
the instantaneous values (sinewave) of the message signal. The message signal is the signal which is
being transmitted for communication and the carrier signal is a high frequency signal which has no
data, but is used for long distance transmission.
Instead of a pulse train (represent by sinewave), PCM produces a series of numbers or digits,
represented by the square wave (see PCM output), and hence this process is called as digital. Each
one of these digits, though in binary code or number, represent the approximate amplitude (values
on the sinewave) of the signal sample at that instant. Recall that sinewave values are instantaneous.
In Pulse Code Modulation, the message signal is represented by a sequence of coded pulses. This
message signal is achieved by representing the signal in discrete form in both time and amplitude.
The basic operations in the receiver section are regeneration of impaired (i.e. weakened) signals,
decoding, and reconstruction of the quantized pulse train. Figure 2.2 is the block diagram of PCM
which represents the basic elements of both the transmitter and the receiver sections.
1. Low Pass Filter. This filter eliminates the high frequency components present in the input analog
signal which is greater than the highest frequency of the message signal, to avoid aliasing of the
message signal.
2. Sampler. This is the technique which helps to collect the sample data at instantaneous values of
message signal, so as to reconstruct the original signal. The sampling rate must be greater than
twice the highest frequency component W of the message signal, in accordance with the sampling
theorem.
3. Quantizer. Quantizing is a process of reducing the excessive bits and confining the data. The
sampled output when given to Quantizer, reduces the redundant bits and compresses the value.
4. Encoder. The digitization of analog signal is done by the encoder. It designates each quantized
level by a binary code. The sampling done in this block is the sample-and-hold process. These
three sections LPF, Sampler, and Quantizer will act as an analog to digital converter. Encoding
minimizes the bandwidth used.
7. Reconstruction Filter. After the digital-to-analog conversion is done by the regenerative circuit
and the decoder, a low-pass filter is employed, called as the reconstruction filter to get back the
original signal.
Hence, the Pulse Code Modulator circuit digitizes the given analog signal, codes it and samples it,
and then transmits it in an analog form. This whole process is repeated in a reverse pattern to
obtain the original signal.
Sampling Rate
To discretize the signals, the gap between the samples should be fixed. That gap can be termed as
a sampling period TS.
Sampling Frequency (fs) =1/TS= fs
Where:
Ts is the sampling time
fs is the sampling frequency or the sampling rate
Sampling frequency is the reciprocal of the sampling period (Ts=1/fs). This sampling frequency, can
be simply called as Sampling rate. The sampling rate denotes the number of samples taken per
second, or for a finite set of values.
For an analog signal to be reconstructed from the digitized signal, the sampling rate should be highly
considered. The rate of sampling should be such that the data in the message signal should neither
be lost nor it should get over-lapped. Hence, a rate was fixed for this, called as Nyquist rate.
Nyquist Rate
Suppose that a signal is band-limited with no frequency components higher than W Hertz. This
means, W is the highest frequency. For such a signal, for effective reproduction of the original signal,
the sampling rate should be twice the highest frequency. This gives us
fS=2W
Where:
fs is the sampling rate
W is the highest frequency
2W is the rate of sample for band-limited signal
This rate of sampling is called as Nyquist rate.
Solution:
Nyquist Sampling Frequency (fs): fs = W/2
fs = 44100/2
fs = 22050 Hz or 22.050 Khz
The anti-aliasing filter (low-pass filter) must adequately suppress any higher frequencies but
negligibly affect the frequencies within the human hearing range. Theoretically, a filter that preserves
0–20 kHz is more than adequate. The above result suggests that the low-pass filter design can
preserve 0-22.1 KHz.
Sampling Theorem
The sampling theorem, which is also called as Nyquist theorem, delivers the theory of sufficient
sample rate in terms of bandwidth for the class of functions that are bandlimited.
The sampling theorem states that, “a signal can be exactly reproduced if it is sampled at the
rate fs which is greater than twice the maximum frequency W.” In other words, if the sample
frequency is below it, the signal cannot be recovered.
To understand this sampling theorem, let us consider a band-limited signal, i.e., a signal whose value
is non-zero between some –W and W Hertz.
Such a signal is represented as x(f)=0 for ∣f∣ >W. The |f| means absolute value, which
means that the sign of W is disregarded.
For the continuous-time signal x(t), the band-limited signal in frequency domain, can be represented
as shown in the figure below with x(w) is the highest frequency.
The above figure shows the Fourier transform of a signal xs t. Here, the information is reproduced
without any loss. There is no mixing up and hence recovery is possible.
The Fourier Transform of the signal xs ts
Let us see what happens if the sampling rate is equal to twice the highest frequency (2W)
That means, fs=2W
Where,
fs is the sampling frequency
W is the highest frequency
The result is shown in the figure to the right.
The information is replaced without any loss.
Hence, this is also a good sampling rate.
The signal which is sampled after filtering, is sampled at a rate slightly higher than the Nyquist rate.
This choice of having the sampling rate higher than Nyquist rate, also helps in the easier design of
the reconstruction filter at the receiver.