3.PCM Theory and Numericals
3.PCM Theory and Numericals
1. Definition
Pulse-code modulation is known as a digital pulse modulation technique. In fact, the pulse-code
modulation (PCM) is quite complex compared to the analog pulse modulation techniques ie, PAM,
PWM and PPM) in the sense that the message signal is subjected to a great number of operations.
Recons- Destina-
Regene truction
Input Decoder tion
ration filter
O-
circuit
(c) Receiver
Transmission path (c)
Transmitter (b)
of a PCM system (a)
elements
Fig. 3.2. The basic
obtained from
a the class of baseband signals
Purther, at intermediate points, along the transmission route from the
the transr
receiver, regenerative repeaters are used to reconstruct (i.e., regenerate) the transmitte transmitter to the
lntigure
diserete
in
of coded in order to combat the accumulated effects equence
pulses signal distortion of noise As
discussed in article 3.3, the quantization refers to the use of a finite set of amplitud 11se. andd eguence is
ixred
dis
evels.l tt
the selection of a level nearest to a partieular sample value of the message signal as therepreers and
orerror 1
for it. In fact, this operation combined with sampling, permits the use of coded pulsesfor renroation
calledx(n
,
the message signal. Thus, it is the combined use of quantizing and coding that
pulse code modulation from analog modulation techniques. ishes convertsit
encoderis
3. Few Important Points
Now, let us summarize PCM in the form of few points as under: a Imp
)PCM is a type of pulse modulation like PAM, PWM or PPM but there is an imnortand binary
difference between them PAM, PWM or PPM are analog pulse modulation systems serialh
PCM is a digital pulse modulation system.
whereas
a shift
(i) This means that the PCM output is in the coded digital form. It is in the form of of bina
pulses of constant amplitude, width and position.
digital
(iii) The information is transmitted in the form of code words. A PCM system consists of a Alsc
PCM encoder (transmitter) and a PCM decoder (receiver). Convert
and enc
(iv) The essential operations in the PCM transmitter are sampling, quantizing and
encoding.
(v) All the operations are usually performed in the same circuit called as analog-to-digital 3.6. P
converter.
(vi) It should be understood that the PCM is not modulation in the conventional sense. The pa
(vii) Because in modulation, one of the characteristics of the carrier is
varied in proportion Over
with the amplitude of the modulating signal. Nothing of that sort happen in PCM. trans
most
3.5. A PCM GENERATOR OR TRANSMITTER Contr
In the last article, Wave
we had
overview of the elements of a PCM system (i.e.,
an
by
transmission-path and receiver). In this section, we shall discuss the PCM generator (i.e.,transmitUer
from a practical point of view. transmiutet n f
Figure 3.3 shows a practical block diagram of a PCM genera each
In PCM generator of
figure 3.3, the signal x(t) is first passed through the low peri
cut-off frequency fm Hz. This -pass
low-pass filter blocks all the frequency components
Wnic and
lying above fm Hz.* ro
Digitally encoded
Bandlimiting
Low pass signal
x(t)| filter with A Sample A Binary
Continuous cut-off freq
and hold nTs q-level
g-level X(nT) encoder
time (S/H) circuit PAM quantizer Quantized (digitizer)
messagee signal PAM
signal
v digits
Parallel PCM
Timer to serial Outpu
22m converter|r=uf,
Fig. 3.3. A practical PCM
This means that
generator h o l d
c i r c u i t
now the signal x(t) is bandlimited to f Hz. The
then samples this s1gnal at the rate of sample
f. Sampling frequency f. is selected iently
ciently abov
aD
nyquist rate to aviod aliasing i.e. suu
WAVEFORM CODING
f2f x(nT). This signal x(nT)1s
and hold circuit is denoted by
the output of sample
with
3.3, input x(nT,)
In figure A q-level quantizer compares
time a n d c o n t i n u o u s in amplitude. with its fixed digital
discrete in level to x(nT.)
levels. It assigns any o n e of the digital minimum distort1on
its fixed digital one of digital
the level to x(nT.) which results
in
a digital level
levels. It then ass1gns any of quantizer is
e r r o r . Thus, output
e r r o r is called quantization
encoder
encoder. This
error. This to binary
Now, the quantized signal level x.(nT) is given 'v' binary bits.
This
called x,(nT). is converted to
to 'v digits binary word. Thus x.(nT.)
converts input signal
also k n o w n a s digitizer.
encoder is
each bit of the
possible to transmit
It may be noted that it is not converted to
a Important Point: 'v' binary digits are
transmission line. Therefore usually
separately on to serial converter,
binary word baseband signal. In a parallel
to generate single baseband signal
serial bit stream is thus a single
this The output of PCM generator
job.
a shift register does
of binary bits. to serial
hold circuit and parallel
clocks for sample and and hold, quantizer
oscillator generates the
Also, a n discussed above, sample
code m o d u l a t i o n generator
converter. In the pulse converter (ADC).
form a n analog to digital
and encoder combinely
TRANSMISSION PATH
3.6. PCM
receiver DO YOU KNOW?
t r a n s m i t t e r and PCM
the PCM
The path between PCM
travel, is called a s that the amplitude
which the PCM signal The PCM requires
over
shown in figure 3.4.
path and it is
as
of a signal be
transmission
lies in its ability to of each sample
feature of PCM system binary
number.
most important when the PCM converted to a
distortion and noise bits used for
the
control the effects of this capacity The more
on the
channel. PCM accomplishes the accuracy,
w a v e travels as shown number, the greater
a chain of
regenerative repeaters the bit rate
by m e a n s of using a r e spaced
close enough to but the greater
Such repeaters
in figure 3.4. The r e g e n e r a t i v e required.
t r a n s m i s s i o n path.
each other on the equalization, timing POCM signal
free
operations namely the clean noise
performs three basic reproduces of PCM
each repeater actually the performance
and decision making. Hence, channel noise.
This improves
distorted by the
from the PCM signal
in presence of noise.
Regenerative Regenerated
Regenerative repeater PCM wave
Distorted. repeater
PCM
LM o
o L
PCM+Noise
oClean PCM
P M+Noise
Clean PCM
transmission path
Fig. 3.4. PCM
3.6.1. Block Diagram of
a Repeater
repeater.
of a regenerative the effects
the block diagram compensate for
Figure 3.5 shows d i s t o r t e d PCM
w a v e so a s to
which is
shapes the pulse train
The amplitude equalizer circuit produces a periodic
d i s t o r t i o n s . The timing the decision making
is then applied to
OT amplitude and phase PCM pulses.
This pulse train
equalized PCM pulses.
derived from the input train for sampling the
u s e s this pulse maximum. The
making device to noise ratio is
evice. The decision out at the
instants where the signal has a 0
carried PCM w a v e at its input
he sampling is decision about
whether the equalized
decision device makes a
value or 1 value at the instant
of sampling. Such a Amplitude Decision
decision 1s PCM wave making
made by comparing equalized
equalizer
device Regenerate
PCM wave
PCM with a reference level
called decision threshold as LM Timing
circuit
illustrated in figure 3.6. At the
output of the decision device, Fig. 3.5. Block diagram of a
regenerative repeater
we get a clean PCM signal without any trace of noise.*
3.7. PCM RECEIVER NMAAA w
Distorted
Decision
In this section, we shall discuss a PCM PCM wave
.bOundary
receiver from practical point of view. ada orthreshold
Figure 3.7(a) shows the block diagram Sampling
of PCM receiver and figure 3.7 (b) instants
LHH
decision
shows the reconstructed signal. The
regenerator at the start of PCM Output
receiver reshapes the pulse and Hegenerated
removes the noise. This signal is then PCM)
converted to parallel digital words for Fig. 3.6. Waveforms of a regenerative repeater
each sample.
v digits
Incoming Clean
PCM+Noise A A serial
PCM AA digital to A sample Low pass
Signal
Regene- to parallel:analog (D/A)
converter
and hold filterwith
rator converter (S/H) circuit
Sync Timer
(a)
5/q x(t)
3/q
x(KT)
1/q
KTs
(b)
Fig. 3.7. (a) PCM receiver (b) Reconstructed waveform
Now, the digital word is converted to its analog value denoted as x.(t) with the help of a s
hold circuit. This signal, at the output of
masS
sample and hold circuit, is allowed to paSs throg
reconstruction filter to get the appropriate original message
signal denoted as x(). ssible to
Important Note: As shown in reconstructed signal of figure 3.7 (b), it is 1u i n t r o d u c e d
reconstruct exact original signal x(t) because of
permanent quantization error dnced
rror
educed by
during quantization at the transmitter. In fact, this quantization error can De
WAVEFORM CODING TECHNIQUES
95
increasing the binary levels. This is equivalent to increasing
But increasing bits 'v increases the binary digits (bits) per sample.
signalling rate
have observed in last article. Therefore the choice of
as well as transmission bandwidth as we
these parameters is made, in such a
manner that noise due to
quantization error (i.e., also called asquantization noise) is in
tolerable limits.
3.8. QUANTIZER (WBUT, Kolkata, Sem. Exam., 2004-05) (08 marks)
As discussed earlier, a q-level quantizer compares the discrete-time
input x(nT) with its fixed
digital levels. It assigns any one of the digital level to x(n'T) with its fixed digital levels. It then
assigns any one of the digital level to x(nT) which results in minimum distortion or error. This
error is called quantization error. Thus, the output of a quantizer is a
digital level called x,(nT,.
3.8.1. Ciassification of Quantization Processs
Basically, quantization process may be classified as follows
Quantization
Uniform Quantization Nonuniform Quantization
Midtread type Midrise type
The quantization process can be classified into two types as under:
(i) Uniform quantization
11) Non-uniform quantization.
This classification is based on the step size as defined earlier.
(6) Uniform Quantizer
the 'step size' remains throughout
A uniform quantizer is that type of quantizer in which
same
the input range.
(ii) Nonuniform Quantizer
varies according
of quantizer in which the 'step-size'
A non-uniform quantizer is that type
to the input signal values.
3.8.2. A Uniform Quantizer
remains
called a s a n uniform quantizer if the step size
As discussed quantizer is
earlier, a
constant throughout the input range.
Types of Uniform Quantizer
3.8.2.1.
a s under:
quantizer
There are two types of uniform
of the midtread type
(1 Symmetric quantizer
of the midrise type the
11) Symmetric quantizer uniform o r nonuniform type.
In a uniform quantizer,
can be of a is nonuniform. Now,
let us
Basically, quantizers otherwise, the quantizer
uniformly spaced; on. The quantizer
epresentation levels a r e
nonuniform quantizer
shall be considered later characteristic
quantizers, input-output
Consider only uniform midtread o r midrise type.
Figure 3.8(a) shows the lies in the
because the origin
Characteristic c a n also be type, which is so called input-output
of the midtread the corresponding
Oa uniform quantizer graph. Figure 3.8(b) shows lies in the
middle
in which the origin
staircaselike
tread of the
ddle of a of the midrise type,
laracteristic ofa uniform quantizer
of a rising part of the staircaselike graph. It may be noted that both the midtread and midriso
symmetric about the origin.*
ypes of uniform quantizers illustrated in figure 3.8 are
Output level
Output level
4 1 2 3
Input
4 level -3 -2 10 1 2 3 Input
4
level
. -1
-2
-3
-4
(a) (b)
Fig. 3.8. Two types of Uniform quantization: (a) Midtread, and (b) Midrise
3.9. WORKING PRINCIPLE OF QUANTIZER
In this section, let us see how uniform
consider uniform quantizer of midrise type.
quantization takes place. For this purpose, we shall1
uniform
Figure 3.9(a) shows the transfer characteristics of a
quantizer of midrise type. In figure 3.9(a), let us assume that
x(nT) varies from 4 A to + 4 A. This means that the peak to peak valuethe input to the quantizer
of x(nT) will be between
-
4A to44. Here, 'A' is the step si1ze.
+
Thus, input x(n'T) can take any value between 4 A
-
to + 4 A. Now, the fixed digital levels
are available E
at
AA and tA. These levels are available at quantizer because ot
its characteristics.
Hence, according to figure 3.9(a), we have
If
x(nT) =
4 A, then xq (nT) A =
and if
x(nT) =
-4 , then
x, (nT) =-5A
Thus, it may be observed from
figure 3.9 (b) that
maximum
From above, we conclude
that
quantization error would De 2
quantization error may be
here 'e exn) -x(nT) expressed as
represents the quantization error
..3.1)
*To increase the
be increased. To
resolution of a digitizing system
increase the number requires
o f q u a n t i z a t i o nl e v e l s
of that the number
digits representing each
voltage level bequantization levels requires that the
e r o fb i n a r y
increased. nu
.
WAVEFORM CODING TECHNIQUES
Now, when x(nT,)= 0, quantizer will assign
either A/2 or A/2. If A2 is assigned, then
-
any one of the nearest binary levels i.e.,
quantization error will be,
Quantizer output x(nT)
Transfer characteristics
passing through zero
7A/2
Max. -ve input 5/2
3A/2
Max. + Ve input
4A -3A -24 -A A/2,
Quantizer
-/2A 2A 3A 4A input x(nT
-3/2
-5/2
-7N2
Peak to Peak excursion of input
(a)
Quantization error (e)
Maximum = IA/2
quantization error
/2
Input
x(nTs)
(b)
Transfer characteristic of a quantizer (b) Variation of quantization
Fig. 3.9. (a)
= A/2-0 = A/2
with input e =x,(nT,) x(nT)
-
error
From figure 3.9(a), it may also be observed that DO YOU KNOW?
3
= With a uniform quantizer, weak
for A<x (nT) <24, x,(nT) signals would experience a
40-dB
poorer SNR than that of strong
- A < x(nT)<- 2A, x(nT) signals. The standard telephone
=
or
error will technique of handling the large
This means that the maximum quantization input signal
range of possible
be t A/2. is to logarithmic
use a
quantization e r r o r is given by
levels instead of
maximum
In other words, compressed quantizer
a uniform one.
..(3.2)
'.
max
CHARACTERISTICS
QUANTIZATION
INCORRECT
QUANTIZER WITH
10. A UNIFORM (Important)
step the size remains same
quantizer since
known as uniform then quantizer is
known a s
last section is to the input,
#Luantizer discussed in varies according
step size reduce the
the input range, Also, if etc. is to
levels at+A/2,t A...
ghout
for taking the digital
lorm quantizer. The reason
DIGITAL COMMUNICATIONS
quantization error. This has been ilustrated in figure 3.10. Hence, there ara
as shown in
figure 3.10 (a). That is one characteristie 'A' with thick line two
with thin line. It may be
observed that for characteristic 'A', we
have
: possiblecharcharacte
econd
Quantizer output x(nT
Transfer characteristics
not passing through zero
44
3A
-Characteristic 'A'
2A -Characteristic 'B
A/2
-4-3A -2 -A
A 2A 3A 4 Quantizer
input x(nT
(a)
Quantization error (e)
Maximum
quantization error =A
-4A-3A -2A-A NN 0 A 2A 3A 4A
Input
x(nT)
()
Fig. 3.10. (a) Incorrect
If 0<
xnT) <
A; then
quantization
characteristic (b) Increased
or
2A< x (nT) output x (nT) A
<3 A; then
= quantization error
Therefore, the output x, (nT) 3A
Similarly maximum =
for
shows actual characteristic 'B maximum quantization error
will be
equal to A as shown 3.106
figure 3.10(a).transfer characteristic whichquantization error is otted
through originequal
to -
On the other hand,
passes
for
A. shown
it does not
pass charactern
levels are taken
through characteristic of figure the diga
at 3.10(a). n
quantization error.*
tA/2,tA etc. It provides correct
quantization«characteristic
redu
and
1on
3.11.
TRANSMISSION BANDwIDTH IN A PCM
In this section, we
SYSTEM
shall evaluate 2005D
that the the
quantizerbe
levels that
use 'v
number transmission (BPTU, Orissa, Sem. B x a m .
assus
represented by 'v'binary digits tobandwidth for PCM sys the
may of Let u s
tem. h en u m b e r
Another digits will be, represent each level.
way of improving
the
Tn
accuracy of the
quantized signal is to increaff
e sample
rate
..(3.3)
q = 2
For example, if v =
4
levels of a q-level quantizer.
Here 'q represents total number of digital
number of levels will be,
bits, the total q 24 = 16 levels
Each sample is converted to 'v' binary bits. i.e.,
Number of bits per sample v.
=
We know that, number
of samples per second f =
second is expressed as
Therefore, Number of bits per x (Number of samples per
second)
(Number of bits per samples) ..3.4)
(Number of bits per second)
=
second
v bits per sample
x
f samples per
=
r a t e of PCM and
second is known a s signaling
As a fact, the number of bits per
matter of
is denoted by 'r' i.e., .(3.5)
Signaling rate in PCM,
r =
v f,
where f22 fm given by half of
the signaling rate
since bandwidth needed
for PCM transmission is
Also, Bandwidth in PCM,
Transmission
therefore, we have.
.(3.6)
BW2T
But r = vfs
..(3.7)
Therefore, BW2
Again, since f2 2 fm .(3.8)
BW 2v fm
Hence, bandwidth of a PCM system.
expression for
This is the required
NOISE/ERROR IN PCM
QUANTIZATION
3.12. Sem. Exam. 2006-07)
(JNTU, Hyderabad,
PCM system
noise (i.e., error) in a
for quantization
shall derive a n expression Because of quantization,
inherent e r r o r s a r e
In this section, w e quantization. quantization
for linear quantization
o r uniform
quantization error.*
As defined earlier, the
e r r o r is called
introduced in the signal. This
error is given as
...(3.9)
x g (nT)-x(nT, quantizer has
continuous amplitude
linear o r uniform
Let us assume that the input x(nT,) to a
in the range - xmax to max of input x(nT,) is mapped
total excursion
observed that the
it may be
From figure 3.9(a),
output isA and when input
vertical axis. This
means that when input is 44,
into 'q' levels o n
1 - A . Therefore,
represents
and -
x max represents 2
A. Thus, +:xmax 2
is-44,output is
max
the total amplitude range becomes,
= X,max-(-Xmax2 Xmax then the step size'A
Total amplitude range
range is
divided into 'q levels of quantizer,
amplitude
Now, if this total
number.
will be, be converted to a binary
sample of a signal
amplitude of each the greater the bit
rate required.
*PCM requires that the mher the greater the accuracy, but
00 DIGITAL COMMUNICATIONS
nax 2xXmax
step size' A = max
Again, now if signal x(t) is normalized to minimum and maximum values equal to 1
3.10)
we have then
Amax =l
max 1
Therefore, step side would be, 3.11)
A (for normalized signal)
q .3.12)
Now, if step size 'A' is considered as sufficiently small, then it may be assumed that
tho
quantization error'e' will be an uniformly distributed random variable. We know thatthemari
um
quantization error is given as,
max 2 .3.13)
1.e.,
.3.14)
Hence, overtheinterval- A2
quantization error may be assumed as b- 1
an uniformly distributed random /2--2
variable.
Figure 3.11(a) shows an
uniformly
distributed random variable X over an -A2 2
interval (a, b). Recall that the PDF of Fig. 3.11. (a) A Uniform distribution (b) A Uniform
uniformly distributed random variable distribution for quantization error
X is given as
0 for x S a
b-a tora x Sb12tor linear quantization.
0 for x > b ..(3.15)
Thus, with the help of equation (3.15), the probability density function (PDF) for quantization
error 'e may be defined as
0 for es-
e)= for
A
0 for e> ..(3.16)
Also, from figure 3.11(b), it may be observed that verage
value. In other words, the mean 'm of the quantization quantization
error 'E
has zerd ot the
error is zero. Further, we know u
signal to quantization noise ratio of the quantizer is defined as,
S Signal power (normalized) .(3.17)
Noise power (normalized)
WAVEFORM CODING TECHNIQUES
If type of signal at input ie., x(t) is known, then it is possible to calculate signal power. The
noise power 1s expressed as,
Noise power = VRoise
noise .(3.18)
R
noise is defined
Here, Vnoise 1S taken as the mean square value of noise voltage. Since, here
varible 'E, and PDF f, (e)therefore, its mean square value is given
by random
Mean square value = E[e2] = e = v2 ...(3.19)
noise
square value of random variable X is expressed as,
We know that the mean a
= EX = xtx(x) dx ..(3.20)
...(3.21)
Here ElE=t,e)de
Using equation (3.16), above equation may be written as,
E lE]
A/2
-A/2 A3 J-a/2
74/2
, 3
Simplifying, we get
.. (3.22)
El 12 would be
square value of noise voltage
Now, using equation (3. 19), the
mean
42
square value
=
mean
Vnoise 12
ohm, then the noise power is normalized i.e.,
Also, if load resistance, R= 1
= noise (putting R =1 in equation (3.18)
Noise power (normalized)
Ah2 1 12
Hence, finally, we write
Normalized noise power
or Quantization noise power
..(3.23)
or Quantization error (in terms of power)= 1
RATIO FOR LINEAR QUANTIZATION
3.13. SIGNAL TO QUANTIZATION NoISE
marks)
(C.G.U.T. Bhilai, Sem. Exam., 2005-06)(08
ratio is
PCM system for linear quantization
the signal to quantization noise
e know that in a
given as,
Here, we are as8umine that x(t) is a voltage signal.
Normalized signal power
Normalized noise power
But, normalized noise power has been calculated as -12
Therefore, SNormalized signal power
N (A12)
We know that the number of bits 'v and
quantization levels are related
as,
2
Let us assume that
range
input x(nT) to a linear
quantizer has continuous
Xmax to+Xmax Therefore, total amplitude amplitude inmtthe
range
*max
maxFmax
Now, the step size will be
ZXmax
A max
Here, substituting the value of q from ..3.26
equation (3.25) in equation (3.26), we get
A = max
Now 2
substituting this value in
equation (3.24), we
Normalized signal power get,
Let
2a 2
DO YOU KNOW?
normalized signal power be denoted The transmission bandwidth
as P. varies
Then, S
P directly with the bit rate.
42 2
3P
22v
In order to keep the bit rate and
thus the
max v required
This is the
a PCM system.
2v 12
required relation for signal
max
companding is usedbandwidth low,
to
Hence, signal to quantization quantization noise ratio for
noise ratio: linear
quantizatio
22v
This max
expression shows that signal
with increasing bits to
per sample. noise power
Now, if we assume that ratio of ..(3.27)
input x(t) is
normalized, i.e.,
quantizer increases
max 1 exponentially
exp
Then, signal to quantization noise ratio will
be,
N 3 x 23 xP .(3.28)
Also, if the destination signal power "P is
PS 1 normalized, i.e.
.(3.29)
Then, the signal to noise ratio will be
given as
8x22
N
.(3.30)
.(3.31)
WAVEFORM CODING TECHNIQUES 103
Because Xmax 1 and P < 1, the signal to noise ratio given by equation (3.31) is said to be
normalized. Expressing the signal to noise ratio in decibels, we get
aB 10logs0B s10log,, 13
= x 23]s(4.8+6 ) dB
Thus, signal to quantization noise ratio for normalized values of power P" and amplitude of
input x(t), will be
dB(4.8 +6v) dB ..3.32)
3.14. INFLUENCE OF NOISE ON THE PCM SYSTEM (Important)
To illustrate the influence of noise on the transmitted pulses, let us consider figure 3.12. First,
let us look at figure 3.12(a). Due to the noise superimposed on the pulse, only the PAM system
shall be affected. However, the PWM, PPM and PCM systems will remain unaffected. The
regeneration of the pulses is achieved by using a clipper circuit with reference levels A andB.
Now, let us observe figure 3.12 (b). Here, the sides of the transmitted pulse are not perfectly
vertical. In practice, the transmitted pulses usually have slightly sloping sides (edges). As the
noise is superimposed on them, the width and the position of the regenerated pulses is changed.
Now, this is going to distort the information contents in the PWM and PPM signals.*
Noise- -Noise~
AAA
Clipping A A--
levels B B -----*--{ -**-" ---**-***-f
AAAA
Regenerated
Regenerated pulses
pulses
No change Change in width
in width or position and position
(a) (b)
3.12. Effect of noise on PCM
Fig.
a Important Point: However, PCM is still unaffected as it does not contain any information
in the width or the position of the pulses. Hence, PCM has much better noise immunity as
compared to PAM, PWM and PPM systems.
3.15. VARIOUS IMPORTANT ASPECTS RELATED TO PCM
.15.1. Advantages of Digital Representation of a Signal: Salient Features
The digital representation of a signal has following advantages
interference.
Immunity to transmission noise and
along the transmission path.
() It is possible to regenerate the coded signal
Communication can be kept private and
secured by the use of encryption technique.
Mo use less bandwidth than equivalent analog
ern digital systems have better performance and
systems.
DIGITAL COMMUNICATIONS
v) The possibility of uniform format for different kinds of baseband signals.
1 s possible to store the signal and process it whenever required.
3.15.2. Drawbacks
The advantages listed above are attained at the cost offollowing factors:
Increased transmission bandwidth.
i) Increased system complexity.
(11) PCM belongs to a class of signal coders known as waveform coders.
iv) The name waveform coders is given since in PCM, an analog signal is usually approxima
by mimicking the amplitude - versus time waveform. imated
3.15.3. Difference Between Waveform Coding and Source Coding
) Basically, the waveform coders are generally designed to be signal independent.
i) The waveform coders are different from the source coders (1.e., linear predictive coder:l
The source coders depend on
parameterization of the analog signal in accordance with an
appropriate model for the generation of the signal.
3.15.4. Encoding in PCM Binary
We know that encoding is the
ata010 1|100
process that follows the sampling unipolar
NAZ
and quantization. Encoding
process converts the quantized
samples into codewords. In a
binary code, each symbol may Polar
have either a 0 value or a 1 value. NRZ
There are various formats (i.e.,
waveforms) to represent the
binary sequence. They are known
as line codes. Figure 3.13 shows Fig. 3.13. Two binary formats
two of such formats called
unipolar NRZ and polar NRZ, where the NRZ stands for non-return to
zero.
1 Pmax X1 . (3.34)
P,-erte No 2 N/T,
the average noise
****"***** ****
10
C. Observations
e r r o r in PCM
receiver
) The average probability of **********a*************"
10
energy
depends only on the ratio peak signalmeasured at
of max
to the noise power spectral density No 70o ***
******
But, WN =B/2
B
Therefore, R= 2xlog, M
R
B log M
or
M from equation (3.38), we get,
Substituting the expression of
R= Blog2|1NB bits/sec
12 P
C R=B log2|1
This is the required result.
NB
The ideal system is described by Shannon's channel capacity theorem. It sto
capacity C is given by, states the channe
C Blog, 1 NB
Now, let us compare equations (3.41) and (3.42). If they are to be equal, then
transmitted power of the PCM system should be increased by a factor k</12 as
comnaro
ideal system. ote
Trade off between Bandwidth and SNR
By Shannon-Hartley theorem, we get the channel capacity as under:
C Blo821
N
Now, let us find out the maximum possible value of C. From the equation for C, it is evident
that it depends on two factors, which are the bandwidth B and
the S/N ratio. Let us find their effet
on C one by one.
Effect of S/N on C
Ifthe communication channel is noiseless, then, N =0. Therefore, (S/N) - o and, so, Calso w
tend to Thus, the noiseless channel will have an infinite
.
capacity.
Effect of Bandwidth B on C
Now, let us consider that some white
gaussian noise is present, hence, (S/N) is PCM
8
not infinite.
Now, as the bandwidth Ideal
approaches infinity, the channel capacity system -M=8
does not become infinite since N N, B =
When PCM system enters into saturations the error probability reaches its limiting
increasing. a
value of 1.
3S,
where q=2" for binary PCM and q M for M-ary PCM.
=
Therefore, we have
3 x (M)S,
=
3 x
M2S, =3M2b s
destination
Signal to noise ratio at the
Here, =
D
destination
Signal power at the to M2b which is much
S =
in figure
function of y. All the c u r v e s 2 and v = b.
been drawn for M
=
PCM c u r v e s have
threshold points. The
Or
dB 10 log (1.5) + 10 log10 (24)
or dB 1.76 +2v x 10 x 0.3
Therefore, we have
or V =
log10 512
log102
Simplifying, we get, v = 9 bits
or f28.4 MHz
Substituting this value of 'f in equation (i) for signaling rate, we get
r = 9 x 8.4 x 105 bits/sec = 75.6 x 106 bits/sec Ans.
or
The transmission bandwidth may also be obtained as,
dB (4.8 +6v) dB
But v 9
112 DIGITAL COMMUNICATIONS
EXAMPLE 3.3. The bandwidth of an input signal to the PCM is restricted to 4 kHz, T
S1gnal varies in amplitude from - 3.8 V to +3.8 V and has the average power of 30 ut
required signal to noise ratio is given as 20 dB. The PCM modulator produces binar The
Assuming uniform quantization,
(i) Find the number of bits required per sample.
Gi)
Outputs of such PCM codersaretimemultiplexed. What would be the minimum
30
transmission bandwidth for this multiplexed signal?
ra..
red
(PTU, Jalandhar, Sem, Exam,
Solution: The given value of signal to noise ratio is 20 dB. 2006-07n
This means that.
dB =
10log1o 2 0 dB
Hence, = 100
S 3P 22v
N 2max
Here, we are given, xmax 3.8 V
P 30 mW
and = 100
N
3x 30x10- x22v
Therefore, 100
(3.8)
Solving, we get v =
6.98 bits =
7 bits Ans.
(ii) The maximum frequency is given as
f 4 kHz
We know that the transmission bandwidth is
BW2 vfm
expressed as,
Since there are 30 PCM coders which
time multiplexed, the
are
BW 2 30 xvx transmission bandwidth must be,
We also know that the fm2 30 x 7 x 4 kHz 2
840 kHz Ans.
signaling rate is two times the
Signaling rate, r = 840 x 2 bits/sec transmission bandwidth, i.e.
=1680 bits/sec. Ans.
EXAMPLE 3.4. The information in an analog
/pCM svstem with an accuracy of+ 0.1% (full signal voltage waveform is to be transm smitted
over a
max
or 0.001
Therefore, Step size A = 2 x 0.001 0.002
We know that the step size, number of
related as
quantization levels and maximum value of the signal are
A = 2 Xmax
)
Here, given| xmax l = 10 volts
or
20
= 10,000
0.002
Hence, the number of levels are 10,000.
) The maximum frequency in the signal is given as 100 Hz, i.e.,
fm 100 Hz
By sampling theorem minimum sampling frequency should be,
f 2 2 fm2 2 x 100 2 200 Hz Ans.
(ii) We know that minimum 10,000 levels should be used to quantize the signal. If binary PCM is
used, then number of bits for each samples may be calculated as under, i.e.
= 2
Here, q= number of levels
v = bits in PCM,
Thus, 10,000 2
log10 10,000 =
v
log10 2
or V
log1010,000
13.288 14 bits Ans.
log102
(ii) The bit rate or signaling rate is expressed as,
r2 vf 214 x 200 2 2800 bits per second. Ans.
(iv) The transmission bandwidth for PCM is expressed as,
EXAMPLE 3.5. Twenty four voice signals are sampled uniformly and then have to be time division
multiplexed. The highest frequeney component for each voice signal is equal to 3.4 kHz. Now
(i) If the signals are pulse amplitude modulated using Nyquist rate sampling, what would
be the minimum channel bandwidth required.
(i) Ifthe signals are pulse code modulated with an 8bit encoder, what would be the sampling
rate? The bit rate of system is given as 1.5 x 10° bits/sec.
olution: (i) As a matter of fact, if N channels are time divis1on multiplexed, then minimum transmission
bandwidth is expressed as,
BW N fm
Here, f is the maximum frequency in the signals
Given, 3.4 kHz
DIGITAL COMMUNICATIONS
1.5 x 10
r (one channel) =E = 62500 bits/sec
24
Further, since each sample is encoded using 8 bits, the samples per second will be,
62500 bits/sec
Thus, we have
8bits/sample
Solving, we get, f 7812.5 Hz or samples per second Ans.
d B = 1.8 + 6v
dB =
1.8 + 6 x 7 =43.8 dB Ans.
= M= 16
We know that the bits and levels in
binary PCM are related as,
2
N 12
the step size is fixed, the quantizatm
This shows that in the uniform quantization,
once
power is not
constant. It is propornon
noise power remains constant. However, the signal
will be small for weak signals, but qua
the square of signal amplitude. Hence signal power
to quantization noise
for the weak sigdid
noise power is constant. Therefore, the signal
of signal. The remedy is to use
companding. Compa
poor. This will affect the quality
term derived from two words i.e., compression
and expansion as under
tnown
CompandingCompressing
= + Expanding
non-uniform quantization becausmethod us
is
1s method
in
ock that pr
t h a tp r o v i d e s
attenuated
is called as a compressor,
followed which is called expans at th nding
is called a s a n expander.
The compression or sig
providing e x p a n s i o n called companding. Iu
the receiver is combined to be
and expansion at
E x p a n d e r
Uniform
in the form
has been shown Input Compressor quantizer
quantizer
block diagram in figure ignat
of a
A companding
mode
n
he made
WAVEFORM CODING TECHNIQUES
2006-07) (10
A
*************s**ansann"
Compression
() -law companding
i) A-law companding
constant for all signals within the
used to make the SNR a
0.8 H 255
50t
= 5
0.6 40
0 with companding
0.4 30
0.2
20
without compandingg
0.4 0.8
40 -30 -20 -10 Signal
0 leve! (dB)
Normalized input,I * max
(a) Compressor characteristics of a
p-law compressor (b) PCM performance with -law companding
Fig. 3.23.
3.23.2. A-law Companding Normalized output
1.0
(VTU, Bangalore, Sem. Exam.,
In the A-law 2004-2005) 0.8 A 87.56
companding, the A =2/
characteristic is piecewise, made up
Compressorr
compressor
for of a linear
low level inputs and a 0.6
level inputs. Figure 3.24 logar+thmic segment segment
for high A =1
shows the A-law
characteristics for different
values of
compressor 0.4
to A = we
A.
1, observe that the Corresponding
to
characteristic is
a
which corresponds linear o2
uniform The
practically used value
of Ais 87.56. Thequantization.
A-law
is used for companding 0.8 1
0.4 0.6
PCM telephone systems in
segment of the characteristics is Europe. The linear 0.2 Normalized
lnpu