Unit 2 - Digital Communication
Unit 2 - Digital Communication
Tech
Subject Name: Digital Communication
Subject Code: EC-502
Semester: 5th
Downloaded from www.rgpvnotes.in
Unit 2
Digital conversion of Analog Signals: Sampling theorem, sampling of band pass signals, Pulse Amplitude
Modulation (PAM), types of sampling (natural, flat-top), equalization, signal reconstruction and
reconstruction filters, aliasing and anti-aliasing filter, Pulse Width Modulation (PWM), Pulse Position
Modulation (PPM)
Digital transmission of Analog Signals: Quantization, quantization error, Pulse Code Modulation (PCM),
companding, scrambling, TDM-PCM, Differential PCM, Delta modulation, Adaptive Delta modulation,
vocoder.
Sampling is defined as, “The process of measuring the instantaneous values of continuous-time signal in a
discrete form.” In the process of sampling an analog signal is converted into a corresponding sequences of
samples, that are uniformly spaced in time.
This discretization of analog signal is called as 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.
Sampling frequency is the reciprocal of the sampling period. 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.
Page 1 of 24
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.
Page 2 of 24
= ∑ 𝐹𝑛 𝑒 𝑗2𝜋𝑛𝑓0 𝑡
𝑛=−∞
𝑇
1
Where 𝐹𝑛 = 𝑇 ∫2𝑇 𝑝(𝑡)𝑒 𝑗𝑛𝜔0 𝑡 𝑑𝑡
−
2
1
= (𝑛𝜔𝑠 )
𝑇𝑃
Substitute Fn value in equation 2.1.2.2
∞
1
∴ p(t) = ∑ P(nωs )ejnω0 t
T
n=−∞
∞
1
= ∑ P(nωs )ejnω0 t
T
n=−∞
∞
1
= ∑ 𝑃(𝑛𝜔𝑠 )𝑥(𝑡)𝑒 𝑗𝑛𝜔0 𝑡
𝑇
𝑛=−∞
To get the spectrum of sampled signal, consider the Fourier transform on both sides.
∞
1
𝐹. 𝑇. [y(t)] = F. T. ∑ [P(nωs )x(t)ejnω0 t ]
T
n=−∞
∞
1
= ∑ P(nωs )F. T. [x(t)ejnω0 t ]
T
n=−∞
Page 3 of 24
Page 4 of 24
Here, you can observe that the sampled signal takes the period of impulse. The process of sampling can be
understood as under.
The sampled signal is given by
𝑦(𝑡) = 𝑥(𝑡). 𝛿 (𝑡) = 𝑥(𝑡). 𝛿𝑇𝑠 (𝑡)
= ∑ 𝑥(𝑛𝑇𝑠 ). 𝛿(𝑡−𝑛𝑇𝑠 ) ….(2.1.3.1)
𝑛
The impulse train 𝛿𝑇𝑠 (𝑡) is a periodic signal of period 𝑇𝑠 , hence it can be expressed as a Fourier series
1
𝛿𝑇𝑠 (𝑡) = [1 + 2 𝑐𝑜𝑠𝜔𝑠 𝑡 + 2 𝑐𝑜𝑠2𝜔𝑠 𝑡 + 2 𝑐𝑜𝑠3𝜔𝑠 𝑡 + ⋯ ]
𝑇𝑠
2𝜋
Where 𝜔𝑠 = 𝑇 = 2𝜋𝑓𝑠 ….(2.1.3.2)
𝑠
Therefore as long as the sampling frequency 𝑓𝑠 is greater than 2𝐵, 𝑌(𝜔), will consist of non overlapping
repetitions of 𝑋(𝜔), and 𝑥(𝑡) can be recovered from 𝑦(𝑡) by passing 𝑦(𝑡) by an ideal low pass filter with
cut off frequency B Hz.
Nyquist Rate
The minimum sampling rate 𝑓𝑠 = 2𝐵 required to recover 𝑥(𝑡) from its samples 𝑦(𝑡) is called the Nyquist
rate and the corresponding sampling interval is called Nyquist Interval for 𝑦(𝑡).
Page 5 of 24
In case of band pass signals, the spectrum of band pass signal X[ω] = 0 for the frequencies outside the
range f1 ≤ f ≤ f2. The frequency f1 is always greater than zero. Plus, there is no aliasing effect when f s > 2f2.
But it has two disadvantages:
The sampling rate is large in proportion with f2. This has practical limitations.
The sampled signal spectrum has spectral gaps.
To overcome this, the band pass theorem states that the input signal x(t) can be converted into its samples
and can be recovered back without distortion when sampling frequency 𝑓𝑠 < 2𝑓2.
Also
1 2𝑓2
𝑓𝑠 = =
𝑇 𝑚
Where m is the largest integer < f2 /B and B is the bandwidth of the signal. If f2=KB, then for band pass
signals of bandwidth 2fm and the minimum sampling rate fs=2B=4fm, the spectrum of the sampled signal is
given by
∞
1
𝑌[𝜔] = ∑ 𝑋[𝜔 − 2𝑛𝐵]
𝑇
𝑛=−∞
Aliasing
Aliasing can be referred to as “the phenomenon of a high-frequency component in the spectrum of a
signal, taking on the identity of a low-frequency component in the spectrum of its sampled version.”
The corrective measures taken to reduce the effect of Aliasing are −
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.
Page 6 of 24
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.
In pulse width modulation, there are different types of modulation for analog and digital as shown below:
PCM: Pulse Code Modulation for Analog Modulation.
PPM: Pulse Position Modulation for Digital Modulation
PDM: Pulse Duration Modulation for Digital Modulation.
PAM: Pulse Amplitude Modulation for Digital Modulation.
Types of Modulation – Tree Diagram:
Types of Modulation
The PCM system block diagram is shown in fig 3.2. The essential operations in the transmitter of a PCM
system are Sampling, Quantizing and Coding. The Quantizing and
encoding operations are usually performed by the same circuit, normally referred to as
analog to digital converter. The essential operations in the receiver are regeneration, decoding and
Page 7 of 24
demodulation of the quantized samples. Regenerative repeaters are used to reconstruct the transmitted
sequence of coded pulses in order to combat the accumulated effects of signal distortion and noise.
Page 8 of 24
PAM can generate other pulse modulation signals and can carry the message or information at
same time.
Page 9 of 24
2.7 Quantization
In the process of quantization we create a new signal 𝑚𝑞 (𝑡), which is an approximation to 𝑚(𝑡). The
quantized signal 𝑚𝑞 (𝑡), has the great merit that it is separable from the additive noise.
The operation of quantization is represented in figure 2.7.1. Here we have a signal m(t), whose amplitude
varies in the range from VH to VL as shown in the figure.
We have divided the total range in to M equal intervals each of size S, called the step size and given by
(𝑉𝐻 − 𝑉𝐿 )
𝑆 = ∆=
𝑀
In our example M=8. In the centre of each of this step we located quantization levels 𝑚0, 𝑚1, 𝑚2, … 𝑚7.
The 𝑚𝑞 (𝑡) is generated in the following manner-
Whenever the signal 𝑚(𝑡) is in the range ∆0 , the signal 𝑚𝑞 (𝑡) maintains a constant level 𝑚0 , whenever
the signal 𝑚(𝑡) is in the range ∆1 , the signal 𝑚𝑞 (𝑡) maintains a constant level 𝑚1 and so on. Hence the
Page 10 of 24
signal 𝑚𝑞 (𝑡) will found all times to one of the levels 𝑚0, 𝑚1, 𝑚2, … 𝑚7. The transition in 𝑚𝑞 (𝑡) from
𝑚0 to 𝑚1 is made abruptly when 𝑚(𝑡) passes the transition level 𝐿01 , which is mid way between 𝑚0
and 𝑚1 and so on.
Using quantization of signals, the effect of noise can be reduced significantly. The difference between 𝑚(𝑡)
and 𝑚𝑞 (𝑡) can be regarded as noise and is called quantization noise.
𝑞𝑢𝑎𝑛𝑡𝑖𝑧𝑎𝑡𝑖𝑜𝑛 𝑛𝑜𝑖𝑠𝑒 = 𝑚(𝑡) − 𝑚𝑞 (𝑡)
Also the quantized signal and original signal differs from one another in a ransom manner. This difference
or error due to quantization process is called quantization error and is given by
𝑒 = 𝑚 ( 𝑡 ) − 𝑚𝑘
( )
when 𝑚 𝑡 happens to be close to quantization level 𝑚𝑘 , quantizer output will be 𝑚𝑘 .
The process of transforming sampled amplitude values of a message signal into a discrete amplitude value
is referred to as Quantization. The quantization Process has a two-fold effect:
1. the peak-to-peak range of the input sample values is subdivided into a finite set of decision levels or
decision thresholds that are aligned with the risers of the staircase, and
2. The output is assigned a discrete value selected from a finite set of representation levels that are aligned
with the treads of the staircase.
A quantizer is memory less in that the quantizer output is determined only by the value of a corresponding
input sample, independently of earlier analog samples applied to the input.
Types of Quantizers:
1. Uniform Quantizer
2. Non- Uniform Quantizer
0 Ts 2Ts 3Ts Time Analog Signal Discrete Samples (Quantized)
In Uniform type, the quantization levels are uniformly spaced, whereas in non-uniform type the spacing
between the levels will be unequal and mostly the relation is logarithmic. Types of Uniform Quantizers:
(based on I/P - O/P Characteristics)
1. Mid-Rise type Quantizer
Page 11 of 24
In the stair case like graph, the origin lies the middle of the tread portion in Mid –Tread type whereas the
origin lies in the middle of the rise portion in the Mid-Rise type. Mid – tread type: Quantization levels – odd
number. Mid – Rise type: Quantization levels – even number.
`
Figure 2.7.3 IO Characteristics of Mid-Tread type Quantizer
Quantization noise is produced in the transmitter end of a PCM system by rounding off sample values of an
analog base-band signal to the nearest permissible representation levels of the quantizer. As such
quantization noise differs from channel noise in that it is signal dependent.
Let ‘Δ’ be the step size of a quantizer and L be the total number of quantization levels.
Quantization levels are 0, ± Δ., ± 2 Δ., ±3 Δ . . . . . . .
The Quantization error, Q is a random variable and will have its sample values bounded
by [-(Δ/2) < q < (Δ/2)]. If Δ is small, the quantization error can be assumed to a
uniformly distributed random variable.
Page 12 of 24
Where fQ(q) = probability density function of the Quantization error. If the signal does not overload the
Quantizer, then the mean of Quantization error is zero and the variance 𝜎𝑥 2 .
Therefore
𝜎𝑄 2 = 𝐸{𝑄2 }
∞
𝜎𝑄 2 = ∫ 𝑞 2 𝑓𝑞 (𝑞 )𝑑𝑞 …(2.7.1.4)
−∞
1 ∆/2 2 ∆2
𝜎𝑄 2 = ∫ 𝑞 𝑑𝑞 = …(2.7.1.5)
∆ −∆/2 12
Page 13 of 24
Thus the varience of the Quantization noise produced by a Uniform Quantizer, grows as the square of the
step size. Equation (2.7.1.5) gives an expression for Quantization noise in PCM system.
Let 𝜎𝑥 2 = Variance of the base band signal x(t) at the input of the quantizer.
When the base band signal is reconstructed at the receiver output, we obtain original signal plus
Quantization noise. Therefore output signal to Quantization noise ration (SNR) is given by
𝑆𝑖𝑔𝑛𝑎𝑙 𝑃𝑜𝑤𝑒𝑟 𝜎𝑥 2 𝜎𝑥 2
(𝑆𝑁𝑅)𝑄 = = 2= 2 …(2.7.1.6)
𝑁𝑜𝑖𝑠𝑒 𝑃𝑜𝑤𝑒𝑟 𝜎𝑄 ∆ /12
Smaller the step size ∆, larger will be the SNR.
Page 14 of 24
2. The system operates with an average signal power above the error threshold so
that the effect of channel noise is made negligible and performance is there by
limited essentially by Quantization noise alone.
3. The Quantization is fine enough (say n>6) to prevent signal correlated patterns in
the Quantization error waveform
4. The Quantizer is aligned with input for a loading factor of 4
Note: 1. Error uniformly distributed
2. Average signal power
3. n > 6
4. Loading factor = 4
From (2.7.1.13): 10 log10 (SNR)O = 6n – 7.2
𝐵
10𝑙𝑜𝑔10 (𝑆𝑁𝑅)𝑄 = 6( ) − 7.2 …(2.7.1.14)
𝑊
Page 15 of 24
the recovered analog waveform at the output of the PCM system will have flat – top near the peak values.
This produces overload noise.
Granular Noise:- If the input level is reduced to a relatively small value w.r.to to the design level
(quantization level), the error values are not same from sample to sample and the noise has a harsh sound
resembling gravel being poured into a barrel. This is granular noise. This noise can be randomized (noise
power decreased) by increasing the number of quantization levels i.e. Increasing the PCM bit rate.
Hunting Noise:- This occurs when the input analog waveform is nearly constant. For these conditions, the
sample values at the Quantizer output can oscillate between two adjacent quantization levels, causing an
undesired sinusoidal type tone of frequency (0.5fs) at the output of the PCM system. This noise can be
reduced by designing the quantizer so that there is no vertical step at constant value of the inputs.
Page 16 of 24
equivalent before transmission. Then the digits of the binary representation of the code are transmitted as
pulses. This system of transmission is called binary Pulse Code Modulation. The whole process can be
understood by the following diagram.
(A) Transmitter
Page 17 of 24
Input
Message
Quantizer Holding Circuit LPF
Decoder
(c) Receiver
Figure (c) shows the receiver. The first block is again the quantizer, but this quantizer is different from the
transmitter quantizer sa it has to take the decision regarding the presence or absence of the pulse only.
Thus there are only two quantization levels. The output of the quantizer goes to the decoder which is an
D/A converter that performs the inverse operation of the encoder. The decoder output is a sequence of
quantized pulses. The original signal is reconstructed in the holding circuit and the LPF.
Page 18 of 24
Pulse code modulation receivers are cost effective when we compared to other modulation
receivers.
Developing pulse code modulation is bit complicated and checking the transmission quality is also
difficult and takes more time.
Large bandwidth is required for pulse code modulation when compared to bandwidth used by the
normal analog signals to transmit message.
Channel bandwidth should be more for digital encoding.
PCM systems are complicated when compared to analog modulation methods and other systems.
Decoding also needs special equipment’s and they are also too complex.
The word Companding is a combination of Compressing and Expanding, which means that it does both.
This is a non-linear technique used in PCM which compresses the data at the transmitter and expands the
same data at the receiver. The effects of noise and crosstalk are reduced by using this technique.
There are two types of Companding techniques. They are −
A-law Companding Technique
Uniform quantization is achieved at A = 1, where the characteristic curve is linear and no
compression is done.
A-law has mid-rise at the origin. Hence, it contains a non-zero value.
A-law companding is used for PCM telephone systems.
Page 19 of 24
quantize 𝑚(𝑘), and corresponding fewer bits will be needed to encode the signal. The basic principle of
DPCM is shown in figure 2.10.1.
(a) Transmitter
(b) Receiver
Figure 2.10.1 Differential PCM
The receiver consists of an accumulator which adds-up the receiver quantized differences ∆𝑄 (𝑘) and a
filter which smoothes out the quantization noise. The output of accumulator is the signal approximation
𝑚̂ (𝑘) which becomes 𝑚 ̂ (𝑡) at the filter output.
At the transmitter we need to know whether the 𝑚 ̂ (𝑡) is larger or smaller than 𝑚(𝑡) and by how much
amount. We may than determine whether the next difference ∆𝑄 (𝑘) needs to be positive or negative and
of what amplitude in order to bring 𝑚 ̂ (𝑡) as close as possible to 𝑚(𝑡). For this reason we have a duplicate
accumulator at transmitter.
At each sampling time the transmitter difference amplifier compares 𝑚(𝑡) and ̂(𝑡), 𝑚 and the sample and
hold circuit holds the result of that comparison ∆(𝑡), for the duration of interval between sampling times.
The quantizer generates the signal 𝑆0 (𝑡) = ∆𝑄 (𝑘) both for the transmission to the receiver and to provide
the input to the receiver accumulator in the transmitter.
The basic limitation of the DPCM scheme is that the transmitted differences are quantized and are of
limited values.
Need for a predictor:
There is a correlation between the successive samples of the signal 𝑚(𝑡). To take the advantage of this
correlation a predictor is included. It needs to incorporate the facility for storing past differences and
carrying out some algorithm to predict then next required increment.
Delta Modulation is a DPCM scheme in which the difference signal ∆(𝑡) is encoded into just a single bit.
The single bit providing just for two possibilities is used to increase or decrease the estimate ̂𝑚(𝑡)[𝑚𝑞 (𝑡)].
The Linear Delta Modulator is shown in figure 2.11.1.
The baseband signal 𝑚(𝑡) and its quantized approximation ̂ 𝑚(𝑡) are applied as input to a comparator. The
comparator has one fixed output V(H) when 𝑚(𝑡) > 𝑚𝑞 (𝑡) and a difference output V(L) when 𝑚(𝑡) <
𝑚𝑞 (𝑡). Ideally the transition between V(H) and V(L) is arbitrarily abrupt as 𝑚(𝑡) − 𝑚𝑞 (𝑡) passes through
Page 20 of 24
Figure 2.11.2 The response of the delta modulator to a baseband signal m(t)
Page 21 of 24
It should be noted that when 𝑚𝑞 (𝑡) has caught up 𝑚(𝑡) and even though 𝑚(𝑡) remains constant, 𝑚𝑞 (𝑡)
hunts, swinging up and down to 𝑚(𝑡).
Slope Overload
The excessive disparity between 𝑚(𝑡) and 𝑚𝑞 (𝑡) is described as a slope overload error and occurs
whenever 𝑚(𝑡) has a slope larger than the slope 𝑆/𝑇𝑠 which can be sustained by the waveform 𝑚𝑞 (𝑡). The
slope overload as shown in figure 3.11.4 is developed due to the small size of S. To overcome the overload
we have to increase the sampling rate above the rate initially selected to satisfy the Nyquist criterion. The
sampling rate 𝑓𝑠 must satisfy the following condition
𝑠𝑓𝑠 = 2𝜋𝑓𝐴
Features of DM
Following are some of the features of delta modulation.
An over-sampled input is taken to make full use of the signal correlation.
The quantization design is simple.
The input sequence is much higher than the Nyquist rate.
The quality is moderate.
The design of the modulator and the demodulator is simple.
The stair-case approximation of output waveform.
The step-size is very small, i.e., Δ (delta).
The bit rate can be decided by the user.
This involves simpler implementation.
In digital modulation, we have come across certain problem of determining the step-size, which influences
the quality of the output wave.
A larger step-size is needed in the step slope of modulating signal and a smaller step size is needed where
the message has a small slope. The minute details get missed in the process. So, it would be better if we
can control the adjustment of step-size, according to our requirement in order to obtain the sampling in a
desired fashion. This is the concept of Adaptive Delta Modulation.
Following is the block diagram of Adaptive delta modulator.
Page 22 of 24
In figure 2.12.1, the output 𝑆0 (𝑡) is called 𝑒(𝑘), which represents the error i.e. the discrepancy between
the 𝑚(𝑡) and 𝑚𝑞 (𝑡), and it is either V(H) or V(L).
The features of ADM are shown in figure 2.12.2. As long as the condition 𝑚(𝑡) > 𝑚𝑞 (𝑡) persists the jumps
in 𝑚𝑞 (𝑡) becomes larger, that’s why 𝑚𝑞 (𝑡) catches up with 𝑚(𝑡) sooner than in the case of linear DM, as
shown by 𝑚′𝑞 (𝑡).
On the other hand, when the response to the large slope in 𝑚(𝑡), 𝑚𝑞 (𝑡) develops large jumps and large
number of clock cycles are required for these jumps to settle down. Therefore the ADM system reduces
the slope overload but it increases the quantization error. Also when 𝑚(𝑡) is constant 𝑚𝑞 (𝑡) oscillates
about 𝑚(𝑡) but the oscillation frequency is half of the clock frequency.
Page 23 of 24
A vocoder i.e. voice encoder is an analysis/synthesis system, used to reproduce human speech. In the
encoder, the input is passed through a multiband filter, each band is passed through an envelope follower,
and the control signals from the envelope followers are communicated to the decoder. The decoder
applies these control signals to corresponding filters in the (re)synthesizer.
It was originally developed as a speech coder for telecommunications applications in the 1930s, the idea
being to code speech for transmission. Its primary use in this fashion is for secure radio communication,
where voice has to be encrypted and then transmitted. The advantage of this method of "encryption" is
that no 'signal' is sent, but rather envelopes of the band pass filters. The receiving unit needs to be set up
in the same channel configuration.
Information, and recreates it, The Voder i.e. Voice Operating Demonstrator generates synthesized speech
by means of a console with fifteen touch-sensitive keys and a pedal, basically consisting of the "second
half" of the vocoder, but with manual filter controls, needing a highly trained operator.
The human voice consists of sounds generated by the opening and closing of the glottis by the vocal cords,
which produces a periodic waveform with many harmonics. This basic sound is then filtered by the nose
and throat (a complicated resonant piping system) to produce differences in harmonic content (formants)
in a controlled way, creating the wide variety of sounds used in speech. There is another set of sounds,
known as the unvoiced and plosive sounds, which are created or modified by the mouth in different
fashions.
The vocoder examines speech by measuring how its spectral characteristics change over time. This results
in a series of numbers representing these modified frequencies at any particular time as the user speaks.
In simple terms, the signal is split into a number of frequency bands (the larger this number, the more
accurate the analysis) and the level of signal present at each frequency band gives the instantaneous
representation of the spectral energy content. Thus, the vocoder dramatically reduces the amount of
information needed to store speech, from a complete recording to a series of numbers. To recreate
speech, the vocoder simply reverses the process, processing a broadband noise source by passing it
through a stage that filters the frequency content based on the originally recorded series of numbers.
Information about the instantaneous frequency (as distinct from spectral characteristic) of the original
voice signal is discarded; it wasn't important to preserve this for the purposes of the vocoder's original use
as an encryption aid, and it is this "dehumanizing" quality of the vocoding process that has made it useful
in creating special voice effects in popular music and audio entertainment.
Since the vocoder process sends only the parameters of the vocal model over the communication link,
instead of a point by point recreation of the waveform, it allows a significant reduction in the bandwidth
required to transmit speech.
Page 24 of 24