Pulse Code Modulation and Demodulation
Pulse Code Modulation and Demodulation
Pulse Code Modulation and Demodulation
Demodulation
Pulse code modulation is a method that is used to convert an analog signal into a
digital signal so that a modified analog signal can be transmitted through the
digital communication network. PCM is in binary form, so there will be only
two possible states high and low(0 and 1). We can also get back our analog
signal by demodulation. The Pulse Code Modulation process is done in three
steps Sampling, Quantization, and Coding. There are two specific types of
pulse code modulations such as differential pulse code modulation(DPCM)
and adaptive differential pulse code modulation(ADPCM)
diagram of PCM
Here is a block diagram of the steps which are included in PCM.
Block
diagram of PCM
Here is a block diagram of the steps which are included in PCM.
Basically two types of techniques are used for the sampling process. Those
are 1. Natural Sampling and 2. Flat- top Sampling.
Quantization
In quantization, an analog sample with an amplitude that converted into a
digital sample with an amplitude that takes one of a specifically defined set of
quantization values. Quantization is done by dividing the range of possible
values of the analog samples into some different levels and assigning the
center value of each level to any sample in the quantization interval.
Quantization approximates the analog sample values with the nearest
quantization values. So almost all the quantized samples will differ from the
original samples by a small amount. That amount is called quantization error.
The result of this quantization error is we will hear a hissing noise when
playing a random signal. Converting analog samples into binary numbers that
are 0 and 1.
But there are some problems raised in uniform quantization those are
Coding
The encoder encodes the quantized samples. Each quantized sample is
encoded into an 8-bit codeword by using A-law in the encoding process.
Bit 1 is the most significant bit (MSB), it represents the polarity of the sample.
“1” represents positive polarity and “0” represents negative polarity.
Bit 2,3 and 4 will defines the location of the sample value. These three bits
together form a linear curve for low level negative or positive samples.
Bit 5,6,7 and 8 are the least significant bits (LSB) it represents one of the
segments quantized value. Each segment is divided into 16 quantum levels.
PCM is two types of Differential Pulse Code Modulation (DPCM) and Adaptive
Differential Pulse Code Modulation (ADPCM).
In DPCM only the difference between a sample and the previous value is
encoded. The difference will be much smaller than the total sample value so
we need some bits for getting the same accuracy as in ordinary PCM. So that
the required bit rate will also reduce. For example, in 5-bit code 1 bit is for
polarity and the remaining 4 bits for 16 quantum levels.
ADPCM is achieved by adapting the quantizing levels to analog signal
characteristics. We can estimate the values with the preceding sample values.
Error estimation is done as same as in DPCM. In 32Kbps ADPCM method
difference between the predicted value and sample, value is coded with 4 bits,
so that we’ll get 15 quantum levels. In this method data rate is half of the
conventional PCM.
Instead of a pulse train, PCM produces a series of numbers or digits, and hence this
process is called as digital. Each one of these digits, though in binary code, represent
the approximate amplitude of the signal sample at that instant.
In Pulse Code Modulation, the message signal is represented by a sequence of coded
pulses. This message signal is achieved by representing the signal in discrete form in
both time and amplitude.
Basic Elements of PCM
The transmitter section of a Pulse Code Modulator circuit consists of Sampling,
Quantizing and Encoding, which are performed in the analog-to-digital converter
section. The low pass filter prior to sampling prevents aliasing of the message signal.
The basic operations in the receiver section are regeneration of impaired signals,
decoding, and reconstruction of the quantized pulse train. Following is the block
diagram of PCM which represents the basic elements of both the transmitter and the
receiver sections.
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,andQuantizerLPF,Sampler,andQuantizer 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.
Pulse Code Modulation Working
and Application
Differential pulse code modulation is a technique of analog to digital signal
conversion. This technique samples the analog signal and then quantizes the
difference between the sampled value and its predicted value, then encodes
the signal to form a digital value. Before going to discuss differential pulse
code modulation, we have to know the demerits of PCM (Pulse Code Modulation).
The samples of a signal are highly correlated with each other. The signal’s
value from the present sample to the next sample does not differ by a large
amount. The adjacent samples of the signal carry the same information with a
small difference. When these samples are encoded by the standard PCM
system, the resulting encoded signal contains some redundant information
bits. The below figure illustrates this.
Redundant
Information Bits in PCM
The above figure shows a continuing time signal x(t) denoted by a dotted line.
This signal is sampled by flat-top sampling at intervals Ts, 2Ts, 3Ts…nTs.
The sampling frequency is selected to be higher than the Nyquist rate. These
samples are encoded by using 3-bit (7 levels) PCM. The samples are
quantized to the nearest digital level as shown by small circles in the above
figure. The encoded binary value of each sample is written on the top of the
samples. Just observe the above figure at samples taken at 4Ts, 5Ts, and
6Ts are encoded to the same value of (110). This information can be carried
only by one sample value. But three samples are carrying the same
information means redundant.
Now let consider the samples at 9Ts and 10Ts, the difference between these
samples only due to the last bit and first two bits are redundant since they do
not change. So in order to make the process this redundant information and to
have a better output. It is an intelligent decision to take a predicted sampled
value, assumed from its previous output and summarise them with the
quantized values. Such a process is called a Differential PCM (DPCM)
technique.
The sampled signal is denoted by x(nTs) and the predicted signal is indicated
by x^(nTs). The comparator finds out the difference between the actual
sample value x(nTs) and the predicted value x^(nTs). This is called signal
error and it is denoted as e(nTs)
by substituting the value of eq(nTs) from the equation (2) in equation (3) we
get,
xq(nTs) = x^(nTs)+ e(nTs)+ q(nTs)……. (4)
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 is all about Differential Pulse Code Modulation working. We consider that
the information given in this article is helpful for you to a better understanding
of this concept. Furthermore, any queries regarding this article or any help in
implementing electrical and electronics projects, you can approach us by
commenting in the comment section below. Here is a question for you, What
is the role of the predictor in the DPCM technique?
In practice, DPCM is usually used with lossy compression
techniques, like coarser quantization of differences can be used,
which leads to shorter code words. This is used in JPEG and in
adaptive DPCM (ADPCM), a common audio compression method.
ADPCM can be watched as a superset of DPCM.
In ADPCM quantization step size adapts to the current rate of
change in the waveform which is being compressed.
Different ADPCM implementations have been studied. The more
popular is IMA ADPCM, this ADPCM implementation is based on the
algorithm proposed by Interactive Multimedia Association. IMA
ADPCM standard specifies compression of PCM from 16 down to 4
bits per sample.
The good side of the ADPCM method is minimal CPU load, but it has
significant quantization noise and only mediocore compression rates
can be achieved(4:1).
DELTA MODULATION
Basics : https://www.youtube.com/watch?v=vzkLq0tcmhw
Problems : https://www.youtube.com/watch?v=D8zuIYubCao
Receiver : https://www.youtube.com/watch?v=qEEop0IVTKU
ADAPTIVE DELTA MODULATION :::::::
https://www.youtube.com/watch?v=lCnc8rG1BPc
Delta Modulation With It’s Block
Diagram
When signals are transmitted over long distances, they get affected by noise
and interference. There are several methods invented for effective
transmission of signals over long distances without any error. The conversion
of analog signals to into digital form has brought a game-changing revolution
in the field of communication. Modulation is the common term used in
communication systems. Communication systems use modulation and
Demodulation methods for effective transmission of low-frequency signals.
When modulation is used along with digital signals it solved many drawbacks
of analog communication. Some of the digital signal processing methods used
in communication systems are Pulse code modulation, Differential pulse code
modulation, Delta modulation, etc…
What is Delta Modulation?
Delta modulation has its roots in Differential pulse code modulation method. It
is also known as the simplified form of Differential pulse code modulation.
Delta modulation is a scheme to permit the use of a simple quantizing strategy
for constructing the encoded signals which are over-sampled purposely, to
increase the correlation between adjacent samples of the signal, as seen in
Differential pulse code modulation method.
This modulation is also called one bitter two-level version of Differential pulse
code modulation. It provides a staircase approximation of over-sampled base-
band signal. Here, the difference between the present sample and previous
approximated sample is quantized into two levels i.e. ±δ.
If the previous approximation is below the present sample value, then the
error is quantized by +δ. If the approximation is above the present sample
value then the error is quantized by -δ.
Block Diagram
Delta modulation uses the over-sampling technique to achieve high signal-to-
noise ratio. In delta modulation system, the transmitter circuit is composed of
a Summer, Quantizer, Accumulator and an Encoder interconnected with each
other.
Delta-Modulation-
and-Demodulation
Here, the integrator circuit contains a delay of Ts. The output of the integrator
is a staircase approximation delayed by Ts. This staircase approximation is
compared with the present sampled input signal at the summer and the
difference gives the error signal.
This error signal is given to the quantizer circuit which consists of a hard
limiter with an input-output relationship. Here, the error is quantized into two
values i.e. ±δ. Then the output of the quantizer is coded to produce the
desired Delta modulated wave.
It was found that at lower bit rates Delta Modulation is better than the standard
PCM. In a Delta modulation system, operating on voice signals under optimum
conditions, the SNR is increased by 9dB by doubling the bit rate.
The increase of SNR with bit rate is much more dramatic for Pulse code
modulation than for Delta modulation. Therefore this modulation is recommended
only in certain special circumstances such as when it is necessary to reduce the bit
rate below 40 kilobytes per second and limited voice quality is tolerable.
This modulation method is used if extreme circuit simplicity is of over-riding
importance and the accompanying use of a high-bit rate is acceptable.
Delta modulation works with lower channel bandwidth. This makes the system
cost-effective and simple to implement. The feedback mechanism present in this
Modulation system ensures the quick and robust delivery of data bits.
Applications
Some of the applications of this modulation are given below –
Now if you want to map the number of values into x output values, you’ll be using a ⌈log2x⌉
⌈log2x⌉ quantizer.
So, basically a 1-bit quantizer will map the input set into 2 values. Since a single bit can be
used to represent 2 classes, hence the process will be called 1-bit 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.
Difference between Pulse Code Modulation (PCM) and Delta Modulation (DM):
S.NO PCM DM
1. PCM stands for Pulse Code Modulation. DM stands for Delta Modulation.
2. In PCM, feedback does not exist in transmitter or receiver. While in DM, feedback exists in transmitter.
3. Per sample 4, 8, or 16 bits are used. Here, only one bit is used per sample.
6. PCM has good signal to noise ratio. While DM has poor signal to noise ratio.
9. In PCM, signal requires encoder and decoder both sides. In DM, signal can modulate and demodulate.
10
. PM is mostly used in video telephony and audio telephony. DM is mostly used in speeches as well as images.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts
with the DSA Self Paced Course at a student-friendly price and become industry
ready.
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.
The type of quantization in which the quantization levels are uniformly spaced is
termed as a 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.
There are two types of uniform quantization. They are Mid-Rise type and Mid-Tread
type. The following figures represent the two types of uniform quantization.
Figure 1 shows the mid-rise type and figure 2 shows the mid-tread type of uniform
quantization.
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.
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.
Quantization Error
For any system, during its functioning, there is always a difference in the values of its
input and output. The processing of the system results in an error, which is the
difference of those values.
The difference between an input value and its quantized value is called a Quantization
Error. A Quantizer is a logarithmic function that performs
Quantization roundingoffthevalueroundingoffthevalue. An analog-to-digital converter
(ADC) works as a quantizer.
The following figure illustrates an example for a quantization error, indicating the
difference between the original signal and the quantized signal.
Quantization Noise
It is a type of quantization error, which usually occurs in analog audio signal, while
quantizing it to digital. For example, in music, the signals keep changing continuously,
where a regularity is not found in errors. Such errors create a wideband noise called
as Quantization Noise.
Companding in PCM
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 −
The sampling rate of a signal should be higher than the Nyquist rate, to achieve better
sampling. If this sampling interval in a Differential PCM (DPCM) is reduced
considerably, the sample-to-sample amplitude difference is very small, as if the
difference is 1-bit quantization, then the step-size is very small i.e., Δ (delta).
Delta Modulator
The Delta Modulator comprises of a 1-bit quantizer and a delay circuit along with two
summer circuits. Following is the block diagram of a delta modulator.
A stair-case approximated waveform will be the output of the delta modulator with the
step-size as delta (Δ). The output quality of the waveform is moderate.
Delta Demodulator
The delta demodulator comprises of a low pass filter, a summer, and a delay circuit.
The predictor circuit is eliminated here and hence no assumed input is given to the
demodulator.
Following is the block diagram for delta demodulator.
Low pass filter is used for many reasons, but the prominent one is noise elimination for
out-of-band signals. The step-size error that may occur at the transmitter is
called granular noise, which is eliminated here. If there is no noise present, then the
modulator output equals the demodulator input.
1-bit quantizer
Very easy design of modulator & demodulator
However, there exists some noise in DM and following are the types of noise.
We can observe from fig.1 , the rate of rise of input signal x(t) is so high that the
staircase signal can not approximate it, the step size ‘Δ’ becomes too small for
staircase signal u(t) to follow the step segment of x(t).
Hence, there is a large error between the staircase approximated signal and the
original input signal x(t).
This means that for very small variations in the input signal, the staircase signal
is changed by large amount (Δ) because of large step size.
Fig.1 shows that when the input signal is almost flat , the staircase signal u(t)
keeps on oscillating by ±Δ around the signal.
The error between the input and approximated signal is called granular noise.
The solution to this problem is to make the step size small .
Solution
In order to overcome the quantiza tion errors due to slope overload and granular
noise, the step size (Δ) is made adaptive to variations in the input signal x(t).
Particularly in the steep segment of the signal x(t), the step size is increased.
And the step is decreased when the input is varying slowly.
The adaptive delta modulators can take continuous changes in step size or
discrete changes in step size.
Adaptive Delta Modulation – Block
Diagram and Applications
In communication systems, the modulation methods are used to transmit
signals over long distances. In the modulation process, the properties of a
high-frequency signal such as amplitude, phase, etc… are changed according
to the low-frequency base-band signal. With the increase in digital technology
and advancements in signal processing techniques demand of digital
communication increased. Many methods for Digital – to- analog and Analog-
to-digital conversion of sampled signals were introduced for digital
communication. Pulse code modulation, Differential pulse code modulation, Delta
modulation, and Adaptive Delta Modulation are popular methods used for
signal processing in digital communication. In this article let us take a look at
Adaptive Delta Modulation method.
What is Adaptive Delta Modulation?
This Modulation is the refined form of delta modulation. This method was
introduced to solve the granular noise and slope overload error caused during
Delta modulation.
This Modulation method is similar to Delta modulation except that the step
size is variable according to the input signal in Adaptive Delta Modulation
whereas it is a fixed value in delta modulation.
Block Diagram
Adaptive-
Delta-Modulation-Transmitter
At the summer circuit, the difference between the present sample and
staircase approximation of previous sample e(nTs) is calculated. This error
signal is passed to the quantizer, where a quantized value is generated. The
step size control block controls the step size of the next approximation based
on either the quantized value is high or low. The quantized signal is given as
output.
At the receiver end Demodulation takes place. The receiver has two parts.
First part is the step size control. Here the received signal is passed through a
logic step size control block, where the step size is produced from each
incoming bit. Step size is decided based on present and previous input. In the
second part of the receiver, the accumulator circuit recreates the staircase
signal. This waveform is then applied to a low pass filter which smoothens the
waveform and recreates the original signal.
At the logic step size control circuit, the output is decided based on the
quantizer output. If the quantizer output is high, then the step size is doubled
for the next sample. If the quantizer output is low, the step size is reduced by
one step for the next sample.
Advantages
Some of the advantages of this modulation method are listed below-
In Delta Modulation step size is fixed for the whole signal. Whereas in
Adaptive delta modulation, the step size varies depending upon the input signal.
The slope overload and granular noise errors which are present in delta
modulation are not seen in this modulation.
The dynamic range of Adaptive delta modulation is wider than delta
modulation.
This modulation utilizes bandwidth more effectively than delta modulation.
Applications
Some of the applications of this modulation method are listed below-
This modulation is used for a system which requires improved wireless voice
quality as well as speed transfer of bits.
In television signal transmission this modulation process is used.
This modulation method is used in voice coding.
This modulation is also used as a standard by NASA for all communications
between mission control and spacecraft.
Motorola’s SECURENET line of digital radio products uses 12kbits/sec
Adaptive Delta Modulation.
To provide voice detection quality audio at deployed areas, military uses 16 to
32 kbit/sec modulation system in TRI-TAC digital telephones.
US army forces use 16kbit/sec rates to conserve bandwidth over tactical links.
For improved voice quality US Air Forces uses 32kbits/sec rates.
In Bluetooth-services to encode voice signals, this modulation is used with
32bits/sec rates.
HC55516 decoder is used in various arcade games such as sinistar and smash tv
and pinball machines such as gorgor or space shuttle, to play pre-recorded sounds.
Adaptive delta modulation is also known as continuously variable slope delta
modulation.
This modulation encodes at 1-bit per sample. Here the encoder maintains a
reference sample and a step size. Before deciding the step size of the input
signal it is compared with the reference sample. This modulation method
compromise between simplicity, low bitrate, and quality.
This modulation method was first published by Dr. John E. Abate in 1968 at
NJ Institute of technology. By using this modulation method many minute
details of the signal can be preserved. Thus, this modulation method provides
good quality output in addition to fast encoding. This modulation is the first
step in the conversion of the analog signal to a digital signal. The next step is
the representation of this digital signal in mathematical form, for which
digital multiplexing techniques are introduced. Adaptive Delta Modulation is also
known as?
Slide 2