22ec403 - Unit Iii
22ec403 - Unit Iii
22ec403 - Unit Iii
This document is confidential and intended solely for the educational purpose of RMK
Group of Educational Institutions. If you have received this document through email in
error, please notify the system manager. This document contains proprietary
information and is intended only to the respective group / learning community as
intended. If you are not the addressee you should not disseminate, distribute or copy
through e-mail. Please notify the sender immediately by e-mail if you have received
this document by mistake and delete this document from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing or taking
any action in reliance on the contents of this information is strictly prohibited.
R.M.D ENGINEERING
COLLEGE
22EC403
ANALOG AND DIGITAL
COMMUNICATION
(Theory Course with
Laboratory Component)
Department : ECE
Date : 20.02.2024
Table of Contents
1 Course Objectives 7
2 Pre Requisites 8
3 Syllabus 9
4 Course outcomes 11
6.3.3 Quantization 25
27
6.3.4 Uniform & nonuniform quantization
29
6.3.5 Quantization Noise
5
S.No Contents Page
Numb
er
Delta modulation and demodulation
6.3.9 42
6.4 Assignments 51
7 Assessment Schedule 64
6
1. COURSE OBJECTIVES
OBJECTIVES:
Definition of - Discrete Memoryless source, Information, Entropy, Channel Capacity -Hartley law,
Shannon law, Source coding theorem -Shannon Fano & Huffman codes. Channel coding theorem
-Linear Block codes.
LIST OF EXPERIMENTS
10. Simulation of Linear Block
REFERENCES:
1. Sanjay Sharma, Communication Systems (Analog and digital), 7th Edition, S.K. Kataria &
Sons, 2022.
2. Roddy and Coolen, Electronic Communication, 4th Edition, Pearson Education, Noida,
India, 2014.
3. Herbert Taub and Donald Schilling, Principles of Communication Systems, 4th Edition,
McGraw Hill, 2017.
4. HweiKsu and Debjani Mitra, Analog and Digital Communication: Schaum’s Outline
Series, 3rd Edition, McGraw Hill Education, New Delhi, India., 2017.
4. COURSE OUTCOMES
OUTCOMES: K LEVEL
Program
Program Outcomes Specific
Course Level
Outcomes
Outcom of
es CO
K3/
K3 K4 K6 K4/K6 K6 A3 A2 A3 A3 A3 A3 A2 K3/K4/ K3/K4/ K3
K6 K6
PO-1 PO-2 PO-3 PO-4 PO-5 PO-6 PO-7 PO-8 PO-9 PO-10 PO-11 PO-12 PSO-1 PSO-2 PSO-3
C214.1 K3 3 2 1 - 3 - - 1 - - - - 1 1 -
C214.2 K3 3 2 1 - 3 - - 1 - - - - 1 1 -
C214.3 K2 2 1 - - 2 - - 1 - - - - 1 - -
C214.4 K2 2 1 - - 2 - - 1 - - - - 1 - -
C214.5 K4 3 3 1 3 3 1 - 1 - - - - 1 - -
C214.6 K4 3 3 1 - 3 1 - 1 - - - - 1 1 -
11
6 UNIT III
12
6.1 LECTURE PLAN
UNIT II – ANGLE MODULATION
of
Proposed Date
Taxonomy level
No. of Periods
Pertaining CO
Actual Date
Reason for
Deviation
S.No
Topic
Delivery
Mode
1 Block Diagram of
digital communication 1 CO3 PPT
K2
system
Sampling &
2 1 CO3 PPT
Quantization K2
3 Uniform &
nonuniform 1 CO3 K2 PPT
quantization
4 Quantization Noise 1 CO3 K2 PPT
9 Adaptive Delta
Modulation 1 CO3 PPT
K2
13
6.2 ACTIVITY BASED LEARNING
1. Crossword Puzzle
14
6.3 Lecture Notes
15
INTRODUCTION
The conventional methods of communication used analog signals for long
distance communications, which suffer from many losses such as distortion,
interference, and other losses including security breach. In order to overcome these
problems, the signals are digitized using different techniques. The digitized signals
allow the communication to be more clear and accurate without losses.
Source
The input source or the source of information is generally analog in nature. Example: A
Sound signal. These signals are non-electrical quantities and hence cannot be
processed directly in a digital communication system.
Input Transducer
A transducer is a device which converts one form of energy into another form. Since
the information from the input source is non-electrical quantity, the input transducer
converts this non-electrical quantity into electrical quantity. Example: microphone.
This block also consists of an analog to digital converter where a digital signal is needed
for further processes. A digital signal is generally represented by a binary sequence.
However, if the source signal is already in digital form such as computer then analog
to digital converter is not needed in such cases.
Source Encoder
The source encoder is used to compress the data into minimum number of bits. This helps
in effective utilization of the bandwidth. It removes the redundant bits or unnecessary
excess bits that are zeros from the input data.
Channel Encoder
The channel encoder, does the coding for error correction. During the transmission of the
signal, due to the noise in the channel, the signal may get altered and hence to avoid this,
the channel encoder adds some redundant bits to the transmitted data. These are the
error correcting bits.
Digital Modulator
In case of low speed wireless transmission, the base band signal can be transmitted
directly.
Now, for high speed transmission, the digital data is modulated with the help of a high
frequency carrier. This task is performed by the base-band modulator.
The signal is also converted to analog from the digital sequence, in order to make it travel
through the channel or medium.
Channel
The communication channel is the media through which the signal is transmitted from the
transmitting end to the receiving end. It is the part of model at which maximum noise is
added to the signal.
Digital Demodulator
The base-band decoder is the first step at the receiver end. The received signal is
demodulated as well as converted again from analog to digital. The signal gets
reconstructed here.
Channel Decoder
The channel decoder, after detecting the sequence, does some error corrections. During
the transmission, the signal might get distorted. This is corrected by adding some
redundant bits to the signal. This addition of bits helps in the complete recovery of the
original signal.
Source Decoder
The resultant signal is once again digitized by sampling and quantizing so that the pure digital
output is obtained without the loss of information. The source decoder recreates the source
output.
Output Transducer
This is the last block which converts the signal into the original physical form, which was at
the input of the transmitter. It converts the electrical signal into physical output (Example:
loud speaker). Then it converts the digital data into analog signal.
Output Signal
This is the output which is produced after the whole process. Example − The sound signal
received.
SAMPLING
The following figure indicates a continuous-time signal x( t) and a sampled signal xs (t)
When x (t) is multiplied by a periodic impulse train, the sampled signal xs (t) is obtained.
Natural Sampling: Natural sampling takes a slice of the waveform, and the top of the
slice preserves the shape of the waveform.
Flat-Top Sampling: A very common, and easily implemented method of sampling of an
analog signal uses the sample-and-hold operation. This produces flat top samples.
Where,
• Ts is the sampling time
• fs is the sampling frequency or the sampling rate
Nyquist Rate
Suppose that a signal is band-limited with no frequency components higher
than W Hertz. That 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.
A theorem called, Sampling Theorem, was stated on the theory of this Nyquist rate.
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.
fs=2W - The information is replaced without any loss. Hence, this is also a good
sampling rate.
fs<2W - Aliasing
We can observe from the above pattern that the over-lapping of information is done, which
leads to mixing up and loss of information. This unwanted phenomenon of over-lapping is
called as Aliasing.
Aliasing
• In the transmitter section of PCM, a low pass anti-aliasing filter is employed, before
the sampler, to eliminate the high frequency components, which are unwanted.
• 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.
QUANTIZATION
The digitization of analog signals involves the rounding off of the values which are
approximately equal to the analog values. The method of sampling chooses a few points on
the analog signal and then these points are joined to round off the value to a near
stabilized value. Such a process is called as Quantization.
The quantizing of an analog signal is done by discretizing the signal with a number of
quantization levels. Quantization is representing the sampled values of the amplitude by a
finite set of levels, which means converting a continuous-amplitude sample into a discrete-
time signal.
The following figure shows how an analog signal gets quantized. The blue line represents
analog signal while the brown one represents the quantized signal.
Both sampling and quantization result in the loss of information. The quality of a
Quantizer output depends upon the number of quantization levels used. The discrete
amplitudes of the quantized output are called as representation levels or reconstruction
levels. The spacing between the two adjacent representation levels is called a quantum
or step-size.
The following figure shows the resultant quantized signal which is the digital form for
the given analog signal. This is also called as Stair-case waveform, in accordance with
its shape.
TYPES OF QUANTIZATION
There are two types of Quantization - Uniform Quantization and Non-
uniform Quantization.
Uniform Quantization
The type of quantization in which the quantization levels are uniformly
spaced is termed as a Uniform Quantization.
There are two types of uniform quantization. They are Mid-Rise type and Mid-Tread
type.
Mid-rise type uniform Quantization
Rise refers to the rising part. The Mid-Rise type is so called because the
origin lies in the middle of a raising part of the stair-case like graph. The quantization
levels in this type are even in number.
Mid-tread type uniform Quantization
Tread refers to the flat part. The Mid-tread type is so called because the
origin lies in the middle of a tread of the stair-case like graph. The quantization levels in
this type are odd in number.
Both the mid-rise and mid-tread type of uniform quantizers are symmetric about the
origin.
Advantages of Uniform Quantization
The advantages of Uniform Quantization are as follows:
High approximation compared to non-uniform Quantization.
Easy and simple to implement
Non-uniform Quantization
The quantized levels in the non-uniform quantization process are unequally spaced. The
relation between such quantization is generally logarithmic due to non-linear nature of
the signal.
The following table discusses the difference between uniform and non-uniform
quantization.
Parameter Uniform Quantization Non-uniform Quantization
Quantization levels Equally spaced quantization levels Unequally spaced quantization levels
Step size Same step size between all Variable step sizes between quantization
quantization levels levels
Distribution of Not accounted for input data Accounts for input data distribution
input data distribution
Quantization error Quantization error is uniform Lower quantization error for frequently
across all inputs occurring inputs
QUANTIZATION ERROR
The difference between an input value and its quantized value is called a Quantization
Error.
The following figure illustrates an example for a quantization error, indicating the
difference between the original signal and the quantized signal.
Quantization Noise
Quantization is the mapping of a range of analog voltage to a single value. The use of
quantization introduces an error defined as the difference between the input signal and
output signal. The error is called quantization noise.
Figure illustrates a typical variation of the quantization noise as a function of time assuming
the use of a uniform quantizer of midtread type
In the figure Green curve is a scaled version of Vin without any quantization, Red curve is
the ADC Output and ∆ is the step size of the converter.
In the above figure Pink dots show that analog range that maps to an ADC Value. Black
arrows show the Quantization error for 2 points.
Quantization error is uniformly distributed. Figure shows the PDF of Quantization Error
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.
There are many modulation techniques, which are classified according to the
type of modulation employed. Of them all, the digital modulation technique used is Pulse
Code Modulation PCM
A signal is pulse code modulated to convert its analog information into a
binary sequence, i.e., 1s and 0s. The output of a PCM will resemble a binary sequence.
The following figure shows an example of PCM output with respect to instantaneous
values of a given sine wave.
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.
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.
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.
Encoder
The digitization of analog signal is done by the encoder. It designates each quantized
level by a binary code. The sampling done here 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.
Regenerative Repeater
This section increases the signal strength. The output of the channel also has one
regenerative repeater circuit, to compensate the signal loss and reconstruct the signal,
and also to increase its strength.
Decoder
The decoder circuit decodes the pulse coded waveform to reproduce the original signal.
This circuit acts as the demodulator.
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.
Advantages of PCM
Disadvantages of PCM
Applications
• Space communication
• Compact discs
COMPANDING
Companding is a technique of achieving non-uniform quantization. The
step size is variable in non-uniform quantization. In order to maintain proper signal to
quantization noise ratio, the step size must be variable according to the signal level.
Initially at the transmitting end, the signal is first provided to the compressor. The
compressor unit amplifies the low value or weak signal in order to increase the signal
level of the applied input signal.
While if the input signal is a high level signal or strong signal then compressor attenuates
that signal before providing it to the uniform quantizer present in the model.
This is done in order to have an appropriate signal level as the input to the uniform
quantizer. We know a high amplitude signal needs more bandwidth and also is more
likely to distort. Similarly, some drawbacks are associated with low amplitude signal and
thus there exist need for such a unit.
The operation performed by this block is known as compression thus the unit is called
compressor.
The output of the compressor is provided to uniform quantizer where the quantization of
the applied signal is performed.
At the receiver end, the output of the uniform quantizer is fed to the expander.
It performs the reverse of the process executed by the compressor. This unit when
receives a low value signal then it attenuates it. While if a strong signal is achieved then
the expander amplifies it.
This is done in order to achieve the originally transmitted signal at the output.
The input-output characteristics of the expander are the reverse as compared to the
compressor, as shown below:
The graph clearly represents that the compressor provides high gain to weak signal
and low gain to high input signal.
Expander performs reverse operation of the compander. So, it is clear from the
above figure that artificially boosted signals are attenuated to have the originally
transmitted signal.
The compressor and expander performs inverse operations thus in the above figure the
dotted line represents the linear characteristic of the compander indicating that the
originally transmitted signal is recovered at the receiver
They are
(i) A-Law
(ii) µ-law
A-Law
The mathematical expression for A-law compression in continuous domain (PDF) is given
as:
where:
where:
for expansion
where:
The μ-law companding is used for speech and music signals. It is used for PCM
telephone systems in US, Canada and Japan.
DIFFERENTIAL PULSE CODE MODULATION(DPCM)
For the signals which does not change rapidly from one sample to next
sample, the PCM scheme is not preferred. When such highly correlated samples
are encoded the resulting encoded signal contains redundant information.
By removing this redundancy before encoding an efficient coded signal
can be obtained. One of such scheme is the DPCM technique. By knowing the
past behavior of a signal up to a certain point in time, it is possible to make some
inference about the future values. The transmitter and receiver of the DPCM
scheme is shown in the below figure respectively.
2.2.1 DPCM Transmitter
Let x(t) be the signal to be sampled and x(nTs) be its samples. In this
scheme the input to the quantizer is a signal.
where x (nTs ) is the prediction for un-quantized sample x(nTs). This predicted
(SNR)0 = Gp (SNR)Q
(SNR)Q =prediction error to quantization noise ratio Gp=
prediction Gain
Delta Modulation is a special case of DPCM. In DPCM scheme if the base band
signal is sampled at a rate much higher than the Nyquist rate purposely to increase the
correlation between adjacent samples of the signal, so as to permit the use of a simple
quantizing strategy for constructing the encoded signal, Delta modulation (DM) is precisely
such as scheme.
Delta Modulation is the one-bit (or two-level) versions of DPCM.
n = 1 Rb = nfs
=fs
BW= Rb/2 = fs / 2 The
bandwidth requirement is less since n=1
No of representation levels L= 2n
L=2
The two levels are +δ & -δ and Step size Δ = 2 δ
x u (nTs Ts )
Delta modulator with fixed step size is called as Linear Delta modulator (LDM)
Equating equation
X(nTs - Ts) + q(nTs- Ts) = X(nTs ) - e(nTs)
e(nTs) = X(nTs ) - X(nTs - Ts) - q(nTs- Ts) if q(nTs- Ts) is very small
Thus the input to quantizer is a first backward difference of the input signal. So when slope of X(t) is
maximum , x(nTs) is maximum and e(nTs) is also maximum which increases u(nTs ) to catch up the
input signal at maximum slope.
ADAPTIVE DELTA MODULATION:
The performance of a delta modulator can be improved significantly by
making the step size of the modulator assume a time-varying form. In particular,
during a steep segment of the input signal the step size is increased. Conversely,
when the input signal is varying slowly, the step size is reduced.
In this way, the size is adapted to the level of the input signal. The resulting
method is called adaptive delta modulation (ADM). There are several types of ADM,
depending on the type of scheme used for adjusting the step size. In this ADM, a
discrete set of values is provided for the step size.
During a steep segment of input signal the step size is increased to control
slope over load distortion and when input signal is varying slowly the step size is
reduced to control granular noise .Thus the step size is adapted to level of the
input signal. This method is called Adaptive Delta Modulation.
In a practical implementation the step size lies between maximum and
minimum value,
Min (nTs ) Max
Solution:
Let a0 the maximum permissible peak amplitude of the sinusoidal message
signal for avoiding slope overload. Then
a0
2πf 0TS
Sampling frequency
fs = 20x2W
fs = 40W
The maximum permissible value is
a 0(max ) = (or ) fS
2πf 0TS 2πf 0
Let us assume, fo = W, the highest frequency in the pass band of the baseband
low pass filter of receiver
fS
a 0(max ) =
2πf 0
r = 1 X 10 KHz
r = 10 Kbps (for DM System)
Bandwidth
BT = 40 KHz
For DM System
BT = Signaling rate/2
BT = 10000/2
BT = 5 KHz
6. A signal having the bandwidth 4 KHz is to be encoded using
a) 8 bit PCM
b) DM System
If 10 cycles of the signal are digitized, state how many bits will be there in
digitized output? (In each case if sampling frequency is 12 KHz). Also find
bandwidth required in each case
Solution:
fs = 12000 samples/sec
DM transmits 1 bit/sample
BT = 6 KHz
No of Bits (10 cycles) = r x T10
= 96000 x (1/400)
= 240 bits No of Bits (10 cycles) = r x T10
= 12000 x (1/400)
= 30 bits
UNIT III
6.4.ASSIGNMENTS
Q.No Questions BT
CO
Level
Level
In a PCM, if we increase the quantization
1 levels from 2 to 8, how do the relative CO2 K4
bandwidth requirements vary?
56
Bloom
S.No PART A CO’S
s Level
57
S.No PART A CO’S Bloom
s Level
60
6.7 NPTEL REFERENCE VIDEO LINKS
(For Extended Learning)
1. https://nptel.ac.in/courses/117/101/117101051/
Topics covered:
1. Introduction to Digital Communication
2. Sampling
3. Quantization
4. Encoding
5. PCM and Delta Modulation
6. Digital Modulation Techniques
7. Source Coding
2. https://nptel.ac.in/courses/108/102/108102096/
Topics covered:
All the topics of Unit I to V
3. https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-450-
principles-of-digital-communications-i-fall-2006/video-lectures/
Topics covered:
All the topics of Unit I to V
4. http://www.infocobuild.com/education/audio-video-courses/electronics/modern-
digital-communication-iit-kharagpur.html
Topics covered:
All the topics of Unit I to V
6.8 Real time Applications in day to day life and
to Industry
1.PCM,DM and Adaptive DM
https://www.youtube.com/watch?v=yaFqc34kwNk&list=PLmzPxio-
afCCg5eVxvqtPRKXhdrF82pCw&index=36
https://www.youtube.com/watch?v=i8c4t9ck0cs
3. DM Applications
https://www.youtube.com/watch?v=WyjGCEWU4zY
https://link.springer.com/article/10.1007/BF02368458
https://ieeexplore.ieee.org/document/6767546
6.9 Content beyond Syllabus
Applications of PPM:
1. It is utilized in air traffic control and telecommunications networks.
2. Pulse code modulation is used in remote-operated autos, planes, and trains.
3. It is used to compress data and, therefore, for storage.
Applications of PWM:
1. Drive a buzzer with varying levels of volume.
2. Control the motor's speed.
3. Control the movement of a servo.
4. Make an analog output available.
5. Create an audio signal.
6. Message encoding in telecommunications
7. Assessment Schedule
Unit 2 Assignment
Assessment
Internal Assessment 1 12.02.2024
Retest for IA 1
Unit 3 Assignment
Assessment
Unit Test 2
Unit 4 Assignment
Assessment
Internal Assessment 2 01.04.2024
Retest for IA 2
Unit 5 Assignment
Assessment
Revision Test 1
Revision Test 2
Remodel Exam
65
8. Prescribed Text Books & Reference Books
Text Books
References
66
9. Mini Project suggestions
67
Thank you
Disclaimer:
This document is confidential and intended solely for the educational purpose of RMK Group of
Educational Institutions. If you have received this document through email in error, please notify the
system manager. This document contains proprietary information and is intended only to the
respective group / learning community as intended. If you are not the addressee you should not
disseminate, distribute or copy through e-mail. Please notify the sender immediately by e-mail if you
have received this document by mistake and delete this document from your system. If you are not
the intended recipient you are notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.