Adc Unit 4 Material
Adc Unit 4 Material
Adc Unit 4 Material
1
Sampling :
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.
• How many samples are necessary to ensure we are preserving the
information contained in the signal?
• If the signal contains high frequency components, we will need to
sample at a higher rate to avoid losing information that is in the
signal.
Ex(2):
2
In general, to preserve the full information in the signal, it is
necessary to sample at twice the maximum frequency of the signal. This is
known as the Nyquist rate. The Nyquist rate or frequency is the
minimum rate at which a finite bandwidth signal needs to be sampled to
retain all of the information.
Sampling theorem gives the criteria for minimum number of samples that
must be taken.
The Sampling Theorem states that a signal can be exactly reproduced if
it is sampled at a frequency F, where F is greater than twice the
maximum frequency in the signal. I,e Sampling frequency must be
twice the highest freq. fs=2fm Or
The original information signal can be reconstructed at the receiver
with minimal distortion if the sampling rate in the pulse modulation
system equal to or greater than twice the maximum information signal
frequency. fs >= 2fm (max)
infinite bandwidth cannot be sampled.
the sampling rate must be at least 2 times the highest frequency,
not the bandwidth.
3
Sometimes the highest frequency components of a signal are simply
noise, or do not contain useful information. To prevent aliasing of these
frequencies, we can filter out these components before sampling the signal.
Because we are filtering out high frequency components and letting lower
frequency components through, this is known as low-pass filtering.
Aliasing effect:
Problem (1):
A complex low-pass signal has a bandwidth of 200 kHz. What is the
minimum sampling rate for this signal?
Solution: The bandwidth of a low-pass signal is between 0 and f, where f is
the maximum frequency in the signal. Therefore, we can sample this signal
at 2 times the highest frequency (200 kHz). The sampling rate is therefore
400,000 samples per second.
Problem (2):
A complex bandpass signal has a bandwidth of 200 kHz. What is the
minimum sampling rate for this signal?
Solution :
We cannot find the minimum sampling rate in this case because we do not
know where the bandwidth starts or ends. We do not know the maximum
frequency in the signal.
4
Types of Sampling Methods:
5
Pulse Amplitude Modulation (PAM):
Definition: A modulation technique in which the amplitude of the pulsed
carrier signal is changed according to the amplitude of the message signal is
known as Pulse Amplitude Modulation (PAM) where width and position
remains constant.
(OR)
The amplitude of the pulsed carrier varies in accordance with the
instantaneous value of modulating signal, is called PAM.
Simply put, the transmission of data takes place by the variation of the
amplitude of pulse according to the modulating signal.
Block diagram of PAM
FIGURE 1
Above figure consist of a low pass filter, a modulator along with a train
generator and a pulse reshaping circuit. The modulating signal is given to
the low pass filter in order to band limit the message signal.
The LPF at the beginning is placed in order to avoid aliasing of the
samples. The LPF passes only the low-frequency component of the signal
and eliminates the high-frequency signal component. The output of LPF is
then provided to a modulator, where it gets mixed with the rectangular
pulse train.
6
Basically, the pulsed carrier gets modulated by the message signal
here. The rectangular carrier pulse is generated by the pulse generator
circuit.
The modulator generates a pulse amplitude modulated signal. The
sampled pulses can be achieved either by natural or flat top sampling. The
output of the modulator is provided to the pulse reshaping circuit. This
basically shapes the pulses so that it can be easily detected at the receiver.
Why flat top sampling is preferred over natural sampling?
Regeneration of flat-top pulses by the repeater is somewhat easier in case of
long distance signal transmission.
Waveforms of PAM:
m(t)
c(t)
p(t)
t
p(t)
7
Example (2)
Here as we can see the first image represents the analog message signal and
the next one shows the pulsed carrier wave that is to be modulated. The last
figure shows the PAM signal generated by the circuit.
Transmission bandwidth of PAM:
The bandwidth for the transmission of the PAM signal is greater than
the maximum frequency component of the message signal.
Demodulation of PAM:
For pulse amplitude modulated (PAM) signals, the demodulation is
done using a Holding circuit. below figure.1 shows the block diagram of a
PAM demodulator.
Figure 1
8
In this method, the received PAM signal is allowed to pass through a Holding
circuit and a low pass filter (LPF) as shown in above figure.
The Sample and Hold circuit is an electronic circuit which creates
the samples of voltage given to it as input, and after that, it holds these
samples for the definite time. The time during which sample and hold circuit
generates the sample of the input signal is called sampling time. Similarly,
the time duration of the circuit during which it holds the sampled value is
called holding time. Now, fig.2 illustrates a very simple holding circuit.
9
Fig.4: Output of holding circuit
10
It is a type of Pulse Time Modulation (PTM) technique where the timing of
the carrier pulse is varied according to the modulating signal.
Waveforms of PWM:
Figure 5
11
A sawtooth generator generates a sawtooth signal of frequency fs, and
this sawtooth signal in this case is used as a sampling signal. It operates
at carrier frequency and is applied to the inverting terminal of a
comparator.
The modulating signal x (t) is applied to the non-inverting terminal of
the same comparator.
The Comparator compares the two signals and generates a PWM
signal as its output waveform. This gives rise to a PWM signal at the
comparator output as shown in fig.6
12
• The PWM signal received at the input of the detection circuit is
contaminated with noise. This signal is applied to pulse generator
circuit which regenerates the PWM signal. Thus, some of the noise is
removed and the pulses are squared up.
• The regenerated pulses are applied to a reference pulse generator. It
produces a train of constant amplitude, constant width pulses. These
pulses are synchronized to the leading edges of the regenerated PWM
pulses but delayed by a fixed interval.
• The regenerated PWM pulses are also applied to a ramp generator. At
the output of it, we get a constant slope ramp for the duration of the
pulse. The height of the ramp is thus proportional to the width of the
PWM pulses.
• At the end of the pulse, a sample and hold amplifier retains the final
ramp voltage until it is reset at the end of the pulse.
• The constant amplitude pulses at the output of reference pulse
generator are then added to the ramp signal.
• The output of the adder is then clipped off at a thereshold level to
generate a PAM signal at the output of the clipper.
• A low pass filter is used to recover the original modulating signal back
from the PAM signal. The waveforms for this circuit have been shown
in above fig.
Waveform Representation of PWM Signal Detection:
13
Advantages of Pulse Width Modulation (PWM):
1. PWM technique helps in preventing overheating of LED’s while
maintaining its brightness.
2. Pulse Width Modulation provides accuracy and quick response time.
3. It provides high input Power Factor.
4. Initial cost is low.
5. PWM technique helps the motors to generate maximum torque even
when they are running at lower speeds.
Disadvantages of Pulse Width Modulation (PWM):
The disadvantages are:
As the PWM frequency is high, switching losses is considerably high.
It induces Radio Frequency Interference (RFI).
Applications of Pulse Width Modulation (PWM):
PWM Techniques are used in Telecommunications for encoding
purposes.
Pulse Width Modulation helps in voltage regulation and thus finds its
use in controlling Brightness in Smart Lighting Systems and also
controls the speed of motors.
Computer Motherboard requires PWM Signals that controls the heat
generated in the board.
It is also used in Audio/Video Amplifiers.
Pulse Position Modulation (PPM):
Definition: A modulation technique that allows variation in the position
of the pulses according to the amplitude of the sampled modulating signal
is known as Pulse Position Modulation (PPM). It is another type of PTM,
where the amplitude and width of the pulses are kept constant and only the
position of the pulses is varied.
Simply put, the pulse displacement is directly proportional to the
sampled value of the message signal.
To understand the generation of the PPM signal, it is necessary to
understand Pulse Width Modulation (PWM or PDM). PWM is the first type of
PTM.
14
Basics of Pulse Position Modulation
The basic idea about the generation of a PPM waveform is that here, as the
amplitude of the message signal increases, the pulse shifts according to the
reference.
In PWM, is that due to the variable width of the pulses, the transmission
power also varies accordingly. However, this is not the case with PPM as
here the width of the pulses remains constant and only their position varies.
Thus, transmission power does not show variation.
How the position of the pulses show variation?
A PPM signal is generated in reference to a PWM signal. Thus, the trailing
edge of the PWM signal acts as the beginning point of the pulses of PPM
signal.
The figure below shows the waveform representation of the PPM signal:
Here, the first image shows the modulating signal, and the second one
shows a carrier signal. The next one shows a PWM signal which is
considered as reference for the generation of PPM signal shown in the last
image.
In the above figure that the point of ending the PWM pulse and the
beginning of PPM pulse is coinciding, which can be clearly seen from the
dotted line.
15
Generation of PPM Signal
The PPM signal can be generated from PWM signal as shown in below fig.2
(a).
Fig.3
16
Detection (Demodulation) of PPM signal:
The figure below shows the block diagram for the detection of a PPM signal
at the receiver:
System complexity is
System complexity is low System complexity is low
high
18
Multiplexing – Definition – Types of Multiplexing
Generally, a communication channel such as an optical fiber or
coaxial cable can carry only one signal at any moment in time. This results
in wastage of bandwidth. However, we can overcome this drawback by using
a technique called multiplexing. By using the multiplexing technique, we
can easily send multiple signals simultaneously over a communication
channel (medium).
Multiplexing Definition
Multiplexing is a technique which combines multiple signals into one signal,
suitable for transmission over a communication channel such as coaxial
cable or optical fiber. Multiplexing is also sometimes referred to as muxing.
The multiplexing technique divides the communication channel into
several logical sub-channels. Each logical sub-channel is dedicated to an
individual signal.
Thus, the multiple signals are sent simultaneously over a shared
communication channel (medium). Multiplexing has-been used for many
years in long-distance telephony.
Multiplexing is done by using a device called Multiplexer or MUX. The
multiplexer combines n input lines to generate one output line.
Without Multiplexing vs With Multiplexing
The below figure shows the communication system without multiplexing.
19
The communication system without multiplexing carries only one
signal at any moment in time. Thus, it uses three communication channels
to carry three signals. In this technique, a large amount of bandwidth is
wasted.
The below figure shows the communication system with multiplexing. It
carries three signals simultaneously. Thus, it uses only one communication
channel to carry 3 signals (multiple signals). In this technique, the
bandwidth is effectively used.
Advantages of multiplexing
1. Multiple signals can be sent simultaneously over a single communication
channel.
2. Effective use of channel bandwidth
3. Multiplexing reduces cost
4. Multiplexing reduces circuit complexity
Applications of Multiplexing
1. Communication system
2. Computer memory
3. Telephone systems
4. TV broadcasting
5. Telemetry
6. Satellites
20
Types of Multiplexing
Multiplexing is mainly classified into two types:
o Analog multiplexing
o Digital multiplexing
22
Each logical sub-channel is separated by an unused bandwidth called
Guard Band to prevent overlapping of signals. In other words, there exists a
frequency gap between two adjacent signals to prevent signal overlapping. A
guard band is a narrow frequency range that separates two signal
frequencies.
How FDM system works:
The above figure shows the schematic diagram of an FDM system. The
transmitter end contains multiple transmitters and the receiver end
contains multiple receivers. The communication channel is present between
the transmitter and receiver.
At transmitter end, each transmitter sends a signal of different frequency. In
the above figure, the transmitter 1 sends a signal of 30 kHz, transmitter 2
sends a signal of 40 kHz, and transmitter 3 sends a signal of 50 kHz. These
signals of different frequencies are then multiplexed or combined by using a
device called multiplexer. It then transmits the multiplexed signals over a
communication channel.
At the receiver end, the multiplexed signals are separated by using a
device called demultiplexer. It then sends the separated signals to the
respective receivers. In the above figure, the receiver 1 receives signal of 30
kHz, receiver 2 receives signal of 40 kHz, and receiver 3 receives signal of 50
kHz.
Advantages of Frequency Division Multiplexing (FDM)
1. It transmits multiple signals simultaneously.
2. In frequency division multiplexing, the demodulation process is easy.
3. It does not need Synchronization between transmitter and receiver.
Disadvantages of Frequency Division Multiplexing (FDM)
It needs a large bandwidth communication channel.
Applications of Frequency Division Multiplexing (FDM)
1. Frequency division multiplexing is used for FM and AM radio
broadcasting.
2. It is used in first generation cellular telephone.
3. It is used in television broadcasting.
23
Digital Multiplexing
The process of combining multiple digital signals into one signal is called
digital multiplexing.
Time Division Multiplexing
Time Division Multiplexing is a technique in which multiple signals are
combined and transmitted one after another on the same communication
channel.
At the receiver side, the signals are separated and received. Each signal is
received by a user at a different time.
Time Division Multiplexing is also simply referred to as TDM. It is the digital
multiplexing technique.
In frequency division multiplexing, all signals of different frequencies are
transmitted simultaneously. But in time division multiplexing, all signals
operate with the same frequency are transmitted at different times.
In frequency division multiplexing, the sharing of a channel is done on the
basis of frequency. But in time division multiplexing, the sharing of a
channel is done on the basis of time.
24
In time division multiplexing, all signals are not transmitted
simultaneously; instead, they are transmitted one after another. For
example, as shown in the above figure, at first, we send signal A. Then after
second signal B and then after third signal C and finally, we send last signal
D. Thus, each user occupies an entire bandwidth for a short period of time.
The time division multiplexing technique is used to multiplex analog
signals or digital signals. However, the time division multiplexing is more
suitable for digital signal multiplexing.
In time division multiplexing, the bandwidth capacity of the
communication channel should be greater than the multiple input signals.
Types of TDM (Time Division Multiplexing)
Time Division Multiplexing is mainly classified into two types:
o Synchronous TDM (Time Division Multiplexing)
o Asynchronous TDM (Time Division Multiplexing)
Synchronous TDM (Time Division Multiplexing)
synchronous time division multiplexing, each device (transmitter) is
allotted with a fixed time slot, regardless of the fact that the device
(transmitter) has any data to transmit or not. The device has to transmit
data within this time slot. If the device (transmitter) does not have any data
to send then its time slot remains empty.
As shown in the figure, the various time slots are arranged into frames
and each frame consists of one or more time slots dedicated to each device
(transmitter).
25
For example, if there are 3 devices, there will be 3 slots in each frame.
Similarly, if there are 5 devices, there will be 5 slots in each frame.
The above figure shows 4 devices (transmitter A, transmitter B,
transmitter C, and transmitter D) that have 4 dedicated time slots (time slot
A, time slot B, time slot C and time slot D).
The transmitter A data is sent at time slot A, transmitter B data is sent at
time slot B, transmitter C data is sent at time slot C and transmitter D data
is sent at time slot D.
In the time frame 2, the transmitter B and C does not have any data to send
so the time slot B and C remains empty.
The main drawback of synchronous time division multiplexing is that
the channel capacity is not fully utilized. Hence, the bandwidth goes
wasted.
Asynchronous TDM (Time Division Multiplexing)
In Asynchronous time division multiplexing, the time slots are not
fixed (I.e. time slots are flexible). The asynchronous TDM is also known as
statistical time division multiplexing.
26
TDM are always less than the number of devices (transmitter). For
example, if we have X devices and Y time slots. Y should always be less than
X (I.e. Y < X).
In asynchronous time division multiplexing, time slots are not fixed to
a particular device; instead, they are allotted to any of the devices that have
data to send.
In the above figure, it is shown that the number of devices are 4 and
time slots are 3. The timeframe 1 (all slots) is completely filled with data
from devices A, B, and C. The timeframe 1 has only 3 time-slots. So the data
from device D is filled in the next timeframe (I.e. timeframe 2) in timeslot 1.
The data from devices A and D will be filled in timeslots 2 and 3 in
timeframe 2.
In asynchronous time division multiplexing, the multiplexer scans all
the devices (transmitters) and accepts input only from the devices that have
actual data to send and fills all the frames, and then sends it to the receiver.
If there is not enough data to fill all the slots in a frame, then the partially
filled frames are transmitted. In most of the cases, all the time slots in
frames are completely filled.
27
Comparison of FDM and TDM
Sl.no FDM TDM
1 FDM stands for Frequency TDM stands for Time Division
Division Multiplexing. Multiplexing.
2 FDM is an analog technique TDM is a Digital technique.
3 The communication channel is The communication channel is
divided by frequency divided by time.
4 All signals of different frequencies All signals operate with the same
are transmitted simultaneously. frequency are transmitted at
different times.
5 Synchronization is not required Synchronization is required.
6 The bandwidth of the The bandwidth capacity of the
communication channel should be communication channel should
greater than the combined be greater than the multiple
bandwidth of individual signals. input signals.
7 FDM requires complex circuitry at TDM does not require complex
the transmitter and receiver. circuitry.
8 In FDM, the problem of crosstalk In TDM, the problem of crosstalk
is severe. is not severe.
9 The channel bandwidth is The channel bandwidth is
effectively used. wasted.
10 FDM requires Guard bands for its TDM requires sync pulse for its
operation. operation.
11 FDM is used in TV and RADIO TDM is used in Pulse code
broadcasting modulation
28
UNIT IV PULSE MODULATION PART 2
29
Introduction Digital Communication:
30
4). Complex circuit, more sophisticated device making is also drawbacks of
digital system.
5). Introduce sampling error
6). As square wave is more affected by noise, That’s why while
communicating through channel we send sin waves but while operating on
device we use square pulses.
Pulse Code Modulation (PCM)
Definition: A technique by which analog signal gets converted into digital
form in order to have signal transmission through a digital network is
known as Pulse Code Modulation. It is abbreviated as PCM.
PCM systems are basically signal coders also known as waveform
coders. PCM allows the representation of the continuous time message
signal as a sequence of binary coded pulses. The binary form permits only 2
probable states i.e., 0 and 1.
The following figure shows an example of PCM output with respect to
instantaneous values of a given sine wave.
31
Basics of PCM
In pulse code modulation, the analog message signal is first sampled, and
then the amplitude of the sample is approximated to the nearest set of
quantization level. This allows the representation of time and amplitude in a
discrete manner. Thereby, generating a discrete signal.
This discrete signal is then converted into its binary form for the
transmission of the signal.
It is to be noted here that, in PCM technique the signal gets transmitted in
the coded format and must be decoded at the receiver in order to have the
original message signal.
Block diagram of Pulse Code Modulation
The figure below shows the block diagram representing a PCM system
32
PCM Transmitter
The detailed diagram of a practical PCM transmitter is shown below
LPF: Here, the message signal which is in the continuous time form,
is allowed to pass through a low pass filter (LPF). This LPF whose cutoff
frequency is fm eliminates the high-frequency components of the signal and
passes only the frequency components that lie below fm.
Sampler: The output of the LPF is then fed to a sampler where the
analog input signal is sampled at regular intervals. The sampling of the
signal is done at the rate of fs. This sampling frequency is so selected that it
must follow the sampling theorem that is expressed as:
fs ≥ 2fm
The output of the sampler is a signal that is discrete time continuous
amplitude signal denoted as nTs which is nothing but a PAM signal.
Quantizer: A quantizer is a unit that rounds off each sample to the
nearest discrete level. The sampler provides a continuous range signal and
hence still an analog one. The quantizer performs the approximation of each
sample thus assigning it a particular discrete level.
33
As it basically rounds off the value to a certain level this shows some
variation by the actual amount. Thus we can say, quantizing a signal
introduces some distortion or noise into it. This is known as quantization
error.
This noise factor is somewhat better than the channel noise as it is
controllable.
A quantizer can be of two types, uniform and non-uniform quantizer. In
uniform quantizer, there exists a uniform spacing in between the level. As
against, in non-uniform quantizer, the spacing in between the levels is not
uniform. Here, we have employed a uniform quantizer.
For a low signal level, the quantization error is high i.e., bad SNR. But,
for a high signal level, the quantization error is low providing good SNR.
The figure below shows the sampling of analog signal and further
quantization of the samples
The PCM signal when provided to the regenerative repeater, the equalizer
circuit at the beginning performs the reshaping of the distorted signal. At
the same time, the timing circuit generates a pulse train that is a derivative
of input PCM pulses.
This pulse train is then utilized by the decision-making device in order
to sample the PCM pulses. This sampling is done at the instant where
maximum SNR can be achieved. In this way, the decision-making device
generates the distortionless PCM wave.
The decision device decides its output based on whether the
amplitude of the quantized pulse and the noise, exceeds a pre-determined
value or not.These are few of the techniques used in digital communications
35
PCM Receiver
The figure below shows the functional block diagram of a PCM receiver
36
Advantages of PCM
Immune to channel induced noise and distortion.
Repeaters can be employed along the transmitting channel.
Encoders allow secured data transmission.
It ensures uniform transmission quality.
Disadvantages of PCM
Pulse code modulation increases the transmission bandwidth.
A PCM system is somewhat more complex than another system.
Thus from the above discussion, we can conclude that a PCM system,
transmits data in a coded format, that ensures secured transmission. But,
this at the same time needs decoding system in order to reproduce exact
message signal that increases system complexity.
Applications:
1) PCM in Compact Disk (CD)
2) PCM in Wired Telephony
QUANTIZATION BASICS:
In PCM, conversion of analog signal to digital signal is done in two steps
Sampling and Quantization
Below figure shows sampling step:
37
Defination of Quantization:
Representing the analog sampled values by a finite set of levels is called
quantization. While sampling converts a continuous time signal to discrete
time signal.
Quantizer converts continuous amplitude to discrete amplitude
samples.
The analog signal is quantized into countable & discrete levels known
as quantization levels. Each of these levels represents a fixed input
amplitude.
During quantization, the input amplitude is round off to the nearest
quantized level. This rounding off is known as quantization error.
Quantization error can be reduced by increasing the numbers of
quantization levels.
In quantization, Approximating each sampled values to its nearest
predefined discrete amplitude level (I,e quantization level)
Process of Quantization:
ii) Divide this range in to L equal intervals, each size Δ, Step size
38
iv) Generate the Quantized signal mq(t).
Where so, s1, s2....... are output levels of the quantizer, and
L0,L1....... are the analog information source.
• If, decreases the Step size(Δ) then we can increase the no.of levels
•
l
40
Quantization error = Δ/2 = 0.25/2 = 0.125
Analog
Information Quantizat
source ion levels
11
10
01
00
Quantizing 0.4 V sample value: See that level 2 is near to 0.4 V. So, for
sample voltage 0.4 V, 01 code is transmitted.
Quantization error = 0.4 – 0.375 = 0.025 V
Quantizing 0.78 V sample: Level 4 is nearest to 0.78 V. So, digital code
11 is transmitted.
41
Quantization error = 0.875 -0.78 = 0.095 V
Sampled value
Quantized value
EX:3
42
43
Types of Quantization:
There are two types of Quantization: i) Uniform Quantization and
ii) Non-uniform Quantization.
The type of quantization in which the quantization levels are uniformly
spaced is termed as a Uniform Quantization.
(or)
If the step size (Δ) is maintained constant throughout the quantization
process is called Uniform Quantization.
The type of quantization in which the quantization levels are unequal and
mostly the relation between them is logarithmic, is termed as a Non-
uniform Quantization. (or)
If the step size (Δ) changes in throughout the quantization process is is
called Non-uniform Quantization.
There are two types of uniform quantization. They are
a) Mid-Rise type
b) Mid-Tread type.
Uniform Quantization: Example: Uniform n =3 bit quantizer
L=8 and XQ = {1,3,5,7}
Midtread: Origin lies in the middle of a tread of the staircase like graph in
fig (a), utilized for odd levels
Midrise: Origin lies in the middle of a rising part of the staircase like graph
fig.(b), utilized for even levels
45
Many signals such as speech have a nonuniform distribution.
The amplitude is more likely to be close to zero than to be at
higher levels.
Nonuniform quantizers have unequally spaced levels
The spacing can be chosen to optimize the SNR for a particular type of
signal
46
• The higher amplitude analog signals are compressed prior to
transmission and then expanded in receiver. Improving the Dynamic
Range of a communication system.
Initially at the transmitting end the signal is compressed and further at the
receiving end the compressed signal is expanded in order to have the
original signal.
Companding Functions:
47
Companding Characteristics in Non uniform quantization: :
Method of Companding:
For the compression, two laws are adopted: the -law in US and Japan and
the A-law in Europe.
-law Vmax ln( 1 Vin Vmax )
Vout
ln( 1 )
A-law
AVin Vmax Vin 1
Vmax 0
1 ln A Vmax A
1 ln( A Vmax )
Vout Vin
1 Vin
1
1 ln A A Vmax
48
Vin (V) -4 -2 0 2 4
Plot the compression characteristic that will handle input voltage in the
given range and draw an 8 level non-uniform quantizer characteristic that
corresponds to the given µ.
50
Bit rate (rb) = nb x fs
= nb x 1/Ts
The bandwidth required to transmit this signal depends on the type of line
encoding used. Practically, The transmission bandwidth to be a little higher
than the minimum bandwidth required.
• The min. bandwidth of a PCM System is half of the bit rate(rb) hence
B.W of PCM = rb/2
= nb x fs / 2
BW ≥ nfm
Noise considerations in PCM
The performance of a PCM system is influenced by two major sources of
noise:
1. Channel noise, which is introduced anywhere between the transmitter
output and the receiver input. Channel noise is always present, once the
equipment is switched on.
2. Quantization noise, which is introduced in the transmitter and is
carried all the way along to the receiver output. Unlike channel noise,
quantization noise is signal dependent in the sense that it disappears when
the message signal is switched off.
The main effect of channel noise is to introduce bit errors into the
received signal. In the case of a binary PCM system, the presence of a bit
error causes symbol 1 to be mistaken for symbol 0, or vice versa. Clearly,
the more frequently bit errors occur, the more dissimilar the receiver output
becomes compared to the original message signal.
The fidelity of information transmission by PCM in the presence of
channel noise may be measured in terms of the average probability of
symbol error, which is defined as the probability that the reconstructed
symbol at the receiver output differs from the transmitted binary symbol, on
the average. The average probability of symbol error, also referred to as the
bit error rate (BER), assumes that all the bits in the original binary wave are
of equal importance.
51
To optimize system performance in the presence of channel noise, we
need to minimize the average probability of symbol error. For this
evaluation, it is customary to model the channel noise as additive, white,
and Gaussian. The effect of channel noise can be made practically negligible
by ensuring the use of an adequate signal energy-to-noise density ratio
through the provision of short-enough spacing between the regenerative
repeaters in the PCM system.
Quantization noise is essentially under the designer's control. It can
be made negligibly small through the use of an adequate number of
representation levels in the quantizer and the selection of a companding
strategy matched to the characteristics of the type of message signal being
transmitted.
(Extra information reated noise in PCM system)
Noise in PCM Systems related to Probability of bit error and Signal to
Noise ratio (SNR):
Two main effects produce the noise or distortion in the PCM output:
– Quantizing noise that is caused by the M-step quantizer at the
PCM transmitter.
– Bit errors in the recovered PCM signal, caused by channel noise
and improper filtering.
• If the input analog signal is band limited and sampled fast enough so
that the aliasing noise on the recovered signal is negligible, the ratio of
the recovered analog peak signal power to the total average noise
power is:
•
• The ratio of the average signal power to the average noise power is
•
– M is the number of quantized levels used in the PCM system.
52
– Pe is the probability of bit error in the recovered binary PCM
signal at the receiver DAC before it is converted back into an
analog signal.
•
• The Average SNR due to quantizing errors is:
•
• Above equations can be expresses in decibels as,
•
• Where, M = 2n
• α = 4.77 for peak SNR α = 0 for average SNR
53
Problem (1):
A message signal m(t)= 5cos 4Π103t is transmitted through the channel
using 5- bit PCM. The sampling rate is twice the Nyquist rate. Calculate all
parameters of PCM.
Solution: +5v
-5v
n=5
54
Problem (2):
A message signal m(t)= 8cos 4Π103t is transmitted through the channel
using 3-bit PCM. The sampling rate is 50% higher then the Nyquist rate.
a)Calculate all parameters of PCM.
b) If the sampled values are (7.8, 5, 2.2, -1.8, -3.7, -5.2, -7.2, -7.9) calculate
the quantized output, code number, encoder output and find the
quantization error in each sample.
Solution: +8v
-8v
n=3
55
b) Sampled values are (7.8, 5, 2.2, -1.8, -3.7, -5.2, -7.2, -7.9)
56
Differential Pulse Code Modulation:
Differential Pulse Code Modulation (DPCM) is a procedure of
converting an analog into a digital signal in which an analog signal is
sampled and then the difference between the actual sample value and its
predicted value (predicted value is based on previous sample or samples) is
quantized and then encoded forming a digital value.
Which means, its value from present sample to next sample does not
vary by a large amount.The adjacent samples of the signal carry the same
information with a little difference.
DPCM code words represent differences between samples unlike PCM
where code words represented a sample value.
Redundant Information in PCM
Fig.1 shows a continuous time signal x(t) by dotted line. This signal is
sampled by flat top sampling at intervals Ts , 2Ts , 3Ts ….. nTs .
58
The predicted value is produced by using a prediction filter. The
quantizer output signal gap eq(nTs) and previous prediction is added and
given as input to the prediction filter. This signal is called xq(nTs). This
makes the prediction more and more close to the actual sampled signal.
We can observe that the quantized error signal eq(nTs) is very small
and can be encoded by using small number of bits.
Thus number of bits per sample are reduced in DPCM. The quantizer output
can be written as ,
eq(nTs) = e(nTs) + q(nTs)………………………..(2)
Here, q(nTs) is the quantization error.
As shown in fig.2, the prediction filter input xq(nTs) is obtained by
sum xˆ(nTs) and quantizer output. i.e.,
xq(nTs) = xˆ(nTs) + eq(nTs)……………………..(3)
Substituting the value of eq(nTs) from eq.(2) in the above eq. (3) , we get,
xq(nTs) = xˆ(nTs) + e(nTs) + q(nTs) ………………….(4)
eq.(1) is written as,
e(nTs) = x(nTs) – xˆ(nTs)
∴ e(nTs) + xˆ(nTs) = x(nTs)
Therefore, substituing the value of e(nTs) + xˆ(nTs) from the above
equation into eq. (4), we get,
xq(nTs) = x(nTs) + q(nTs) …………………..(5)
The quantized signal xq(nTs) is the sum of Original sample values x(nTs)
and quantization error q(nTs)
Reception of DPCM Signal
Fig.3 shows the block diagram of DPCM receiver.
Advantages of DPCM
As the difference between x(nTs) and xˆ(nTs) is being encoded and
transmitted by the DPCM technique, a small difference voltage is to be
quantized and encoded.
This will require less number of quantization levels and hence less
number of bits to represent them.
Thus signaling rate and bandwidth of a DPCM system will be less
than that of PCM.
Applications of DPCM:
• The DPCM technique mainly used Speech, image and audio signal
compression.
• The DPCM conducted on signals with the correlation between
successive samples leads to good compression ratios. In images, there
is a correlation between the neighboring pixels, in video signals, the
correlation is between the same pixels in consecutive frames and
inside frames (which is the same as correlation inside the image).
• This method is suitable for real-Time applications.
• To understand the efficiency of this method of medical compression
and real-time application of medical imaging such as telemedicine and
online diagnosis.
• Therefore, it can be efficient for lossless compression and
implementation for lossless or near-lossless medical image
compression.
60
Adaptive Differential Pulse Code Modulation (ADPCM)
• Adaptive Differential Pulse Code Modulation (ADPCM)– Very popular
waveform coding technique
• Main application is Telecommunications– Speech compression for
transmission,
• Storage and reconstruction– Reduce the bit data rate while
maintaining good voice quality.
• Technique can apply to all waveforms which need high-quality audio,
image and modem data, Integrated Circuit Design Project.
Disadvantages of DPCM:
1) i. In DPCM we subtract adjacent samples and code the differences,
however this method is inefficient since they do not adapt themselves
to varying magnitudes of audio stream.
2) ii. Hence, better results are obtained using ADPCM (Adaptive
Differential Pulse Code Modulation).
3) iii. ADPCM uses the previous sample to predict the current sample.
4) iv. It then computes the difference between the current sample and its
predictions and quantizes the difference.
61
• Therefore, it would be better for the quantization step Δv to be
adaptive so that Δv is large or small depending on whether the
prediction error quantizing is large or small.
• It is important to note that the quantized prediction error can be
good indicator of the prediction error size.
Applications:
• ADPCM speech coder and decoder (codec )
• ADPCM codec are used in the personal handyphone systems(PHS) or
Personal Access System ( PAS ).
• The PHS is a mobile network system similar to a cellular network. It is
a short range low power facility and operates in the 1880 to 1930 MHz
frequency band.
Delta Modulation (DM):
Definition: A modulation technique that converts or encodes message
signal into a binary bit stream is known as Delta Modulation. Here only 1
bit is used to encode 1 voltage level thus, the technique allows transmission
of only 1 bit per sample.
As PCM has the property of converting message signal directly into a
sequence of a binary coded pulse, this resultantly increases the bandwidth
requirement of the system. So, in order to remove the drawbacks of PCM,
delta modulation is used.
Working Principle
Delta modulation transmits only one bit per sample. Here, the present
sample value is compared with the previous sample value and this result
whether the amplitude is increased or decreased is transmitted.
Input signal x(t) is approximated to step signal by the delta modulator.This
step size is kept fixed.
The difference between the input signal x(t) and staircase approximated
signal is confined to two levels, i.e., +Δ and -Δ.
When +Δ is noticed i.e., increase in step size, then 1 is
transmitted. However, in the case of –Δ i.e., decrease in step size, 0 is
transmitted. Hence, DM allowing only a single binary bit to get
transmitted for each sample. (OR)
62
When the step is reduced, ‘0’ is transmitted and if the step is increased, ‘1’
is transmitted. Hence, for each sample, only one binary bit is
transmitted.
Below Fig.1. Delta Modulation Waveform shows the analog signal x(t) and
its staircase approximated signal by the delta modulator.
DM Transmitter:
Fig. 2 (a) shows the transmitter. It is also known as Delta modulator.
given as:
Where e( nTs) = error at present sample
63
x(nTs) = sampled signal of x(t)
This means that depending on the sign of error e( nTs) , the sign of step
size Δ is decided. In other words we can write
64
if it is -Δ, then binary ‘0’ is transmitted .
67
The logic for step size control is added in the diagram.
The step size increases or decreases according to a specified rule
depending on one bit quantizer output.
For an example, if one bit quantizer output is high (i.e., 1), then step
size may be doubled for next sample.
If one bit quantizer output is low, then step size may be reduced by
one step.
Fig.2 shows the staircase waveforms of adaptive delta modulator and
sequence of bits to be transmitted.
ADM Receiver:
Fig.3 shows the receiver of an ADM.
68
Fig.3: ADM Receiver
The receiver has two portions. The first portion produces the step size
from each incoming bit.Exactly the same process is followed as that in
transmitter.
The previous input and present input decide the step size.
It is then applied to the second portion i.e., an accumulator which builds up
staircase waveform.
The low pass filter then smoothens out the staircase waveform to
reconstruct the original signal.
Advantages of Adaptive Delta Modulation
Adaptive delta modulation has certain advantages over delta modulation as
under :
1. The signal to noise ratio of ADM is better than that of DM because of
the reduction in slope overload distortion and idle noise.
2. Because of the variable step size , the dynamic range of ADM is wider
than DM.
3. Utilization of bandwidth is better in ADM than DM.
69
Comparison of PCM, DPCM, DM and ADM:
70