Unit 4 - Analog and Digital Communication - WWW - Rgpvnotes.in
Unit 4 - Analog and Digital Communication - WWW - Rgpvnotes.in
Tech
Subject Name: Analog and Digital Communication
Subject Code: IT-404
Semester: 4th
Downloaded from be.rgpvnotes.in
4.1. Sampling of signal: The signals we use in the real world, such as our voices, are called "analog" signals. To
process these signals in computers, we need to convert the signals to "digital" form. While an analog signal is
continuous in both time and amplitude, a digital signal is discrete in both time and amplitude. To convert a
signal from continuous time to discrete time, a process called sampling is used. The value of the signal is
measured at certain intervals in time. Each measurement is referred to as a sample.
A discrete-time signal can be obtained by uniformly sampling a continuous-time signal at tn =nTS , i.e.,x[n] =
x[nTs]. The values x[n] are samples of x(t), the time interval between samples is Ts, the sampling rate is fs =1/Ts.
A system which performs the sampling operation is called a continuous-to-discrete (C-to-D) converter.
Figure.4.2.Sampler as switch
If we have a continuous time signal x(t). The spectrum of x(t) is a band limited to f m Hz i.e. the spectrum of x(t)
is ze o fo |ω|>ω m.
Sampling theorem statement 2: A continuous-time signal x(t) with frequencies no higher than fm (Hz) can be
reconstructed EXACTLY from its samples x[n] = x(nTs), if the samples are taken at a rate fs = 1/Ts that is
greater than 2fm.
“a pli g of i put sig al t a e o tai ed ultipl i g t ith a i pulse t ai δ t of period Ts. The
output of multiplier is a discrete signal called sampled signal which is represented with y(t) in the following
diagrams:
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
= .� = .�
=∑ .� −
The impulse train � is a periodic signal of period , hence it can be expressed as a Fourier series
� = [ + � + � + � + ⋯]
�
Where � = = �
�
Substitute � in equation 1.
→ = .�
= [ + � + � + � + ⋯]
Now to find the � , we have to take the fourier transform of both the sides,
� = [ � + �−� + �+� + �− � + � + � + ⋯]
� = ∑∞=−∞ � − � Where = ,± ,± ,…
�
The Fourier spectrum � is shown in figure. Now If we have to recover from , we should be
able to recover � from � , and it is possible only if there is no overlapping between the successive
cycles of � , and for this condition
> �
Therefore the sampling interval
<
Therefore as long as the sampling frequency is greater than , � , 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.
4.3. Sampling theorem for Band pass signal
I ase of a d pass sig als, the spe t u of a d pass sig al X[ω] = fo the f e ue ies 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 fs < 2f2.
4.5. Aliasing – Aliasing refers to the phenomenon of a high frequency component in the spectrum of a signal
seemingly taking on the identity of a lower frequency in the spectrum of its sampled version (under sampled
version of the message signal) Corrective measures for aliasing effects
1. Prior to sampling, a low-pass anti-aliasing filter is used to attenuate those high-frequency components of
the signal that are not essential to the information being conveyed by the signal.
2. The filtered signal is sampled at a rate higher than the Nyquist rate.
Figure.4.5. Aliasing
Ideal signal reconstruction:
During transmission, noise is introduced at top of the transmission pulse which can be easily removed if the
pulse is in the form of flat top. Here, the top of the samples are flat i.e. they have constant amplitude. Hence,
it is called as flat top sampling or practical sampling. Flat top sampling makes use of sample and hold circuit.
Figure.4.8.Natural Sampling
Figure.4.9.Impulse Sampling
This is called ideal sampling or impulse sampling. You cannot use this practically because pulse width cannot
be zero and the generation of impulse train is not possible practically.
4.6. Time Division Multiplexing:
In TDM, the data flow of each input stream is divided into units. One unit may be 1 bit, 1 byte, or a block of
few bytes. Each input unit is allotted an input time slot. One input unit corresponds to one output unit and
is allotted an output time slot. During transmission, one unit of each of the input streams is allotted one-
time slot, periodically, in a sequence, on a rotational basis. TDM allows each channel the full band width of
the transmission medium whenever its signal is transmitted, although each channel is not continuously on
the system.
Advantages of TDM
– high reliability and efficient operation as the circuitry required is digital.
– Relatively small inter channel cross-talk arising from nonlinearities in the amplifiers that handle the
signals in the transmitter and receiver.
Disadvantages of TDM – timing jitter
It is a type of analog modulation. In pulse width modulation or pulse duration modulation, the width of the
pulse carrier is varied in accordance with the sample values of message signal or modulating signal or
modulating voltage. In pulse width modulation, the amplitude is made constant and width of pulse and
position of pulse is made proportional to the amplitude of the signal. We can vary the pulse width in three
ways:
1. By keeping the leading edge constant and vary the pulse width with respect to leading edge
2. By keeping the tailing constant.
3. By keeping the center of the pulse constant.
We can generate pulse width using different circuitry. In practical, we use 555 Timer which is the best way
for generating the pulse width modulation signals. By configuring the 555 timer as mono stable or a stable
multi vibrator, we can generate the PWM signals. We can use PIC, 8051, AVR, ARM, etc. microcontrollers to
generate the PWM signals. PWM signal generation has n number of ways. In demodulation, we need PWM
detector and its related circuitry for demodulating the PWM signal. The waveforms are shown in the figure.
4.10. Pulse Position Modulation (PPM): In the pulse position modulation, the position of each pulse in a
signal by taking the reference signal is varied according to the sample value of message or modulating signal
instantaneously. In the pulse position modulation, width and amplitude is kept constant. It is a technique
that uses pulses of the same breath and height but is displaced in time from some base position according to
the amplitude of the signal at the time of sampling. The position of the pulse is 1:1 which is propositional to
the width of the pulse and also propositional to the instantaneous amplitude of sampled modulating signal.
The position of pulse position modulation is easy when compared to other modulation. It requires pulse
width generator and mono stable multi vibrator.
Pulse width generator is used for generating pulse width modulation signal which will help to trigger the
mono stable multi vibrator; here trial edge of the PWM signal is used for triggering the mono stable multi
vibrator. After triggering the mono stable multi vibrator, PWM signal is converted into pulse position
modulation signal. For demodulation, it requires reference pulse generator, flip-flop and pulse width
modulation demodulator.
4.11. Quantization:
The operation of quantization is represented in figure 4.14. 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 , , ,… 7. The
is generated in the following manner-
Whenever the signal is in the range ∆ , the signal maintains a constant level , whenever the
signal is in the range ∆ , the signal maintains a constant level and so on. Hence the signal
will found all times to one of the levels , , , … 7. The transition in from to is
made abruptly when passes the transition level , which is mid way between and 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
= −
We can define the variable v to be the height of the each of the L levels of the quantizer as shown above.
This gives a value of v equal to
v
2mk
L
Therefore, for a set of quantizers with the same mk, the larger the number of levels of a quantizer, the
smaller the size of each quantization interval, and for a set of quantizers with the same number of
quantization intervals, the larger mp is the larger the quantization interval length to accommodate all the
quantization range. 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.
4.11.1 Quantization error:
Both sampling and quantization results 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 two adjacent representation levels is
called a quantum or step-size.
Now if we look at the input output characteristics of the quantizer, it will be similar to the red line in the
following figure. Note that as long as the input is within the quantization range of the quantizer, the output
of the quantizer represented by the red line follows the input of the quantizer. When the input of the
quantizer exceeds the range of –mp to mp, the output of the quantizer starts to deviate from the input and
the quantization error (difference between an input and the corresponding output sample) increases
significantly.
Quantizer
Output xq
x
xq
v/2
v/2
v/2
v/2
Quantizer
v v v
v v/2 v v v v Input x
v/2
v/2
v/2
mp
Now let us define the quantization error represented by the difference between the input sample and the
corresponding output sample to be q, or
q x xq
Plotting this quantization error versus the input signal of a quantizer is seen next. Notice that the plot of the
quantization error is obtained by taking the difference between the blow and red lines in the above figure.
Quantization Error q
v/2
Quantizer
v/2 Input x
v v v v v v v v
mp
It is seen from this figure that the quantization error of any sample is restricted between –v/2 and v/2
except when the input signal exceeds the range of quantization of –mp to mp.
A signal which is to be quantized before transmission is sampled as well. The quantization is used to reduce
the effect of noise and the sampling allows us to do the time division multiplexing. The combined operation
of sampling and quantization generate a quantized PAM waveform i.e. a train of pulses whose amplitude is
restricted to a number of discrete levels.
Rather than transmitting the sampled values itself, we may represent each quantization level by a code
number and transmit the code number. Most frequently the code number is converted in to binary
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.
Basic Blocks:
1. Anti aliasing Filter, 2. Sampler, 3. Quantizer, 4. Encoder
The block diagram of a PCM transmitter is shown in figure 4.16. An anti-aliasing filter is basically a filter used
to ensure that the input signal to sampler is free from the unwanted frequency components. For most of the
applications these are low-pass filters. It removes the frequency components of the signal which are above
the cutoff frequency of the filter. The cutoff frequency of the filter is chosen such it is very close to the
highest frequency component of the signal.
The message signal is sampled at the Nyquist rate by the sampler. The sampled pulses are then quantized by
the quantizer. The encoder encodes these quantized pulses in to binary equivalent, which are then
transmitted over the channel. During the channel the regenerative repeaters are used to maintain the signal
to noise ratio.
(A) Transmitter
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 as 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.
4.13.1. Uniform Quantizer: In Uniform type, the quantization levels are uniformly spaced, where as in non-
uniform type the spacing between the levels will be unequal and mostly the relation is logarithmic.
Types of Uniform Quantizer: (based on I/P - O/P Characteristics)
1. Mid-Rise type Quantizer
2. Mid-Tread type Quantizer
In the stair case like graph, the origin lies the middle of the tread portion in Mid –Tread type where as the
origin lies in the middle of the rise portion in the Mid-Rise type.
Figure.4.17 (a) Mid – Rise type: Quantization levels: even number (b) Mid – tread type :Quantization levels:
odd number
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. In Non - Uniform
Quantizer the step size varies. The use of a non – uniform quantizer is equivalent to passing the baseband
signal through a compressor and then applying the compressed signal to a uniform quantizer. The resultant
signal is then transmitted.
At the receiver, a device with a characteristic complementary to the compressor called Expander is used to
restore the signal samples to their correct relative level. The Compressor and expander take together
constitute a Compander.
The compressor will compress the dynamic range of the signal so that high dynamic range signal can be
passed through components of low dynamic range capability, the uniform quantizer will undergo the
quantization process of the compressed signal and the lastly the expander will undergo expansion and
invert the compression function to reconstruct the original signal.
The expander has complementary characteristics as that of compressor so that the compressor input is
equal to expander output in order to reproduce the signal at the receiver.
The Figure.4.19 below illustrates the input-output characteristics and curves of the companding process,
and it can be seen that companding has linear characteristics.
1. Higher average signal to quantization noise power ratio than the uniform quantizer when the signal is non
uniform which is the case in many practical situations.
2. RMS value of the quantizer noise power of a non – uniform quantizer is substantially proportional to the
sampled value and hence the effect of the quantizer noise is reduced.
Uniform quantization is achieved at A = 1, where the characteristic curve is linear and there
is no compression.
A-law has mid-rise at the origin. Hence, it contains a non-zero value.
A-law companding is used for PCM telephone systems.
A-law is used in many parts of the world.
µ-law Companding Technique
Uniform quantization is achieved at µ = 0, where the characteristic curve is linear and there
is no compression.
µ-law has mid-tread at the origin. Hence, it contains a zero value.
µ-law companding is used for speech and music signals.
µ-law is used in North America and Japan
µ-law provides slightly larger dynamic range than A-law. A-law has smaller proportional distortion for small
signals. A-law is used for international connections if at least one country uses it.
�� � �
=
∆
Let the normalized signal power is equal to P then the signal to quantization noise will be given by:
4.15. Data rate: Bit rate is typically seen in terms of the actual data rate.
Bit Rate: The speed of the data is expressed in bits per second (bits/s or bps). The data rate R is a function of
the duration of the bit or bit time (TB). R = 1/TB .Rate is also called channel capacity C.
Baud rate: Baud rate refers to the number of signal or symbol changes that occur per second. A symbol is
one of several voltage, frequency, or phase changes. If N is the number of bits per symbol, then the number
of required symbols is S = 2N. Thus, the gross bit rate is:
When a large number of PCM signals are to be transmitted over a common channel, multiplexing of these
PCM signals is required. Figure shows the basic time division multiplexing scheme, called as the PCM
multiplexed digital system. This system has been designed to accommodate N voice and each signal is band
limited to Fm kHz, and the sampling is done at a standard rate of 2Fm kHz. This is Nyquist rate. The sampling is
done by the commutator switch SW1. These voice signals are selected one by one and connected to a PCM
transmitter by the commutator switch SW1. Each sampled signal is then applied to the PCM transmitter
which converts it into a digital signal by the process of A to D conversion and companding. The resulting
digital waveform is transmitted over a co-axial cable. Periodically, after every constant distance, the PCM-
TDM sig al is ege e ated a plifie s alled epeate s . They eliminate the distortion introduced by the
channel and remove the superimposed noise and regenerate a clean PCM-TDM signal at their output. This
ensures that the received signal is free from the distortions and noise. At the destination the signal is
companded, decoded and demultiplexed, using a PCM receiver. The PCM receiver output is connected to
different low pass filters via commutator switch SW2. Synchronization between the transmitter and receiver
commutator SW1 and SW2 is essential in order to ensure proper communication.
In DPCM instead of transmitting the sampled values itself at each sampling time; we can transmit the
difference between the two successive samples. If such changes are transmitted then at the receiving end
we can generate a waveform identical to the m(t) by simply adding up these changes.
The DPCM has the special merit that when these differences are transmitted by PCM. The differences
− − will be smaller than the sample values them and fewer levels will be required to
quantize , and corresponding fewer bits will be needed to encode the signal. The basic principle of
DPCM is shown in figure.
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.
(a) Transmitter
(b) Receiver
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 = ∆� 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.
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
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
zero. The up-down counter increments or decrements its count by 1 at each active edge of the clock
waveform. The count direction i.e. incrementing or decrementing is determined by the voltage levels at the
Cou t di e tio o a d i put to the ou te . Whe this i a i put is at le el V H , the ou te ou ts
up and when this binary input is at level V(L), the counter counts down.
The digital output of the counter is converted into analog quantized approximation by a D/A
converter. The waveforms for the delta modulator is shown in figure (b), assuming that the active clock edge
is falling edge. The Linear Delta Modulator is shown in figure (a).
Figure.4.22. (a) Delta Modulator (b) The response of the delta modulator to a baseband signal m(t)
It may be noted that at startup there is a brief interval when the quantized signal may be a poor
approximation to the baseband signal as shown in figure (a).
The initial large discrepancy between and and stepwise approach of to is shown in
figure (b).
It should be noted that when has caught up and even though remains constant,
hunts, swinging up and down to .
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 (b) 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
= = �
4.17.3. 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.
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
The step size S is not of fixed size but it is always a multiple of basic step size . The basic step size is
either added or subtracted by the accumulator as required to move more close to . If the
direction of the step at the clock edge K is same as at edge K-1, then the processor increases the step size by
an amount . If the directions are opposite then the processor decreases the magnitude of the step by .
In figure (a), the output 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 (b) As long as the condition > persists the jumps in
e o es la ge , that’s h 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.