3.4.pcm Numericals and Line Codes
3.4.pcm Numericals and Line Codes
3.5
39.35 x 10-d x
NN,= 64
or = 2.15 mW
N
n) Signal power S, and SNR can be calculated as under
=
A = .
So 1/2
Output signal to noise ratio N.
q (2.15x10
or (SNR), = 232.3 or 23.66 dB. Ans.
or
f= 20% above the Nyquist rate =1.2 x 2 f1.2 x 2x 4.5 MH.
f,= 10.8 MHz.
Let us calculate the number of bits/sec.
r=vf
But, we do not know the value of v.
We know that
2
2 1024
V 10
= x
Therefore, bits/sec 10 10.8 MHz =
108 M bits/sec. Ans.
EXAMPLE 3.35. If a voice frequency is sampled at the rate of
characterized by peak value of 2 Volts,signal 32,000 samples/sec and
What is determine the value of step size to avoid
quantization noise power N, and corresponding SNR ? slope overload.
kHz. Assume bandwidth of as4 signal
Solution:Given that f 32,000 samples/sec.
Peak value of the =
signal A 2 V.
Bandwidth BW 4 kHz. =
21tx 4x103
or
2x 27T x 4x10*
A2
32000
or A2 1.57 Volt Ans.
(i) Next, we find the quantization noise power (N,).
The quantization noise power for a delta modulator is given by
N=157 .
0.822 W
Gii) We know that the signal to noise ratio is
given by
3r 3x(32103)3 = Ans.
19.45
SNR R2 2
BW 8t x(4 x103 2 x 4x103
WAVEFORM CODING TECHNIQUES
EXAMPLE 3.36. A compact disc (CD) records audio signals digitally PCM. Assume audio
by
bandwidth to be 15 kHz. If signals are sampled at a rate 20% above signal's
rate for
Nyquist practical
reasons and the samples are
encode
quantized into 65,536 levels. Determine bits/sec required to
the signal and minimum bandwidth required to transmit encoded
signal.
(WBTU, Kolkata, Sem. Exam., 2006-07)
Solution: Given that m15kHz f= 1.2 x 2 fm
2.4 x 1.5 kHz =
36 kHz
q 65,536.
Signaling rate (r) can be calculated as under:
We know that q 2
V= log,
or V (65,536) =16
log102
Now, sigmaling rate r = vf, = 16 x 36 kHz = 576 Kbits/sec. Ans.
Hence, the signaling rate r is 576 Kbits/sec.
i) Minimum bandwidth can be calculated as under
576
BW (signaling rate) = Kbits/sec.
Therefore, minimum bandwidth, BWmin
min
288 kHz. Ans.
EXAMPLE 3.37. In a single integration DM scheme, the voice signal is sampled at a rate of 64 kHz.
The maximum signal amplitude is 1 Volt.
(6) Determine the minimum value of step size to avoid slope overload.
(ii) Determine granular noise power Ng, if the voice signal bandwidth is 3.5 kHz.
(ii) Assuming signal to be sinusoidal, calculate signal power S, and signal to noise ratio (SNR).
(iv) Assuming that the voice signal amplitude is uniformly distributed in the range (-1, 1),
determine S and SNR.
= 1 Volt
Solution: Given that f= 64 kHz A
0) Minimum step size to avoid slope overload is given by
AS Afg
21t fm
27Tfm A 2Tx3.5x10" x1
or
Amin 64 x103
or min0.3436 Volt. Ans.
Dnin
1) Granular noise power is expressed as
(0.3436)2 3.5
X
3 64
Solving, we get = 2.15 x 10- W Ans.
N.
FYAMn nlituda of innut signal m(t) is confined
EXAMPLE 3.40. Atelephone signal with cut-off frequency of 4kHz is digitized into 8 bit PCM, sample
t Nvquist rate. Calculate the baseband transmission bandwidth and quantization S/N ratio.
Solution:
G) The Nyquist rate = 2 x 4 kHz= 8 kHz.
EXAMPLE 3.41. In a single integration DM scheme, the voice signal is sampled at a rate of 64 kH:
The maximum signal amplitude is 2 volts. Voice signal bandwidth is 3.5 kHz. Determine th
minimum value of step size to avoid slope overload and granular noise power.
Solution: Given that: f =64 kHz, Amax2V, fm = 3.5 kHz
Solution:
) The Nyquist rate = 2 x 4 kHz = 8 kHz.
EXAMPLE 3.41. In a single integration DM scheme, the voice signal is sampled at a rate of 64 kHz.
The maximum signal amplitude is 2 volts. Voice signal bandwidth is 3.5 kHz. Determine the
minimum value of step size to avoid slope overload and granular noise power.
Solution: Given that: , = 64 kHz, Amax2V, fm =3.5 kHz
to avoid slope overload
a) Minimum step size
2n 28f,_fm
Hence, maximum value of A
Example 14. A signal mlt) bandlimited to 4 KHz is sampled at a rate 50 % higher than Nyquist rate. The maximum acceptable
error in the sample amplitude is 1 % of peak amplitude. The quantized samples are binary coded. Find minimum bandwidth of a
channel reguired to transmit the encoded binary signal. SPPU Dec-10, Marks 8
Solution : To obtain samplling rate ()
Here W = 4000 Hz and f, = 50 % higher tharn Nyquist rate. This means,
is 0.01 V. Thus maximum acceptable error (emax) is 1% or 0.01 V. For uniform quantization,
Emax
Or 8 = 0.02
And
2
4 O07 100 levels.
And 4 2
Minimum bandwidth
s22W
2 2x34 kHz 2 6.8 kHz
i) Number of blts
per sample
r vfs
dB
Digital Communication
1-46
*****************
*********nt m vo
re
igital
Transmisslon
ano D
e*******"****'********************"*********"********""*******************
************************************ ot
Output Analr
"**** *****
**s*********
iv) Signals with wide dynamic range must be sampled using non-uniform quantization.
5.3 Companding
Normally we don't know how
the signal level will vary in advance. Therefore the nonuniform quantization
(variable step size ') becomes difficult to implement. Therefore the signal is amplified at low signal levels and
attenuated at high signal levels. After this process, uniform quantization is used. This is equivalent to more ste
size at low signal levels and small step size at high signal levels. At the receiver a reverse process is done. Th
is
s signal attenuated at low signal levels and amplified at high signal levels to get original signal. Thus
t
compression of signal at transmitter and expansion at receiver is called combinely as companding. ig 13|
shows compression and expansion curves.
Digital Communicetion
1-47 Digital Transmlssion of Analog Signal
AX for 0sxls
1+InA
x) (1.5.2)
1+ In( Ax|)
+ InÅ for forxs1 s1
.When A = 1, we get uniform quantization. The practical value for A is 87.56. Both A-law and -law
companding is used for PCM telephone systems. Fig. 1.54 (b) shows the characteristic for A-law.
********************************************* *********************.*******************vnae ssaud bessee sanoo
a***
**********************
wwwwwo***wwwwwww.ww
Digital Communication 1-49
Digital Transm/ssion of Analog Signal
Solution: Here fs = 8000 Hz
40 dB.
S
= 10 l0810 N
40 10log10 = 10 = 10,000
i) Number of levels (4) and number of bits (v)
For audio signal. 4.8 +6 v
JdB
40 4.8 + 6 v
v = 5.86 - 6 bits.
And 2 = 64 levels.
i Bandwidth (B)
Br f =x6x8000=24 kHz
ii) Number of levels (q), bits (v) and bandwidth (B, ) for A-law companding
used). From equation (1.6.15)
of Ais not specified. Hence assume A =87.56 (which commonly
is
.Here value
3gPA2
(1+ InA)
S
Putting forand
N A,
10,000 34(8756
(1+In87.56)
9= 3.6 4 levels
log104 loB10=2 bits
v =
log29 log10 2 log102
B f-*2x8000=B000Hz
than the Nyguist rate and quantized into
256
1 MHz is sampled at a rate 50 % higher
Example 1.6.2 A signal bandlimited to
255.
evels ustng 4 p law guantizer with
desired SNR
Deternmine the signal to quantization noise ratio. must be increased byatleast10 dB. Would you be able to obtain the
The SNR found in part i) was
unsatistactory, t Nyquistrate is adequate ? f so
sampling ate 20 % above the
banduridihifit was found that a SPPO Dec-07, Matts 10
hout inCreasing the transmission
thatcan be realizedinthisway
eplainhoD What ismaximumSNR
****
Solution Given data:
1MHz.
Bandwidth of signal, W
=
IFSS THAN PHOT0cOPY PRICE
Digital Transmission of Analog Sion
Communication 1-50
Nyquist rate = 2W = 2 MHz
unce sampling rate is 50 % higher than (ie. 1.5 times) rquist rate
a m p l i n g frequency, f = 1.5 x Nvquist rate = 1.5 x 2 MHZ = 3 M
Quantization levels, q = 256
Quantization O8 250_ 8 bits
bits, o
Quantization bits, o' loga
log2 4 08104 a =
Tog12 log2
Transmission bandwidth, Br = , =x8x3 MHz = 12 MHz
255
i) To obtain signal to quantization noise ratio
34 3x(256)2 = 6393.96 = 38 dB
1+4) [n(1+255)
) To increase signal to noise ratio by atleast 10 dB without Increasing bandwidtn
The new sampling
rate must be atleast 38 + 10 48 dB.
The sampling frequency of 20 % above Nyquist rate is said to be adequate. Hernce new sampling rate 1s,
s 1 2 x Nyquistrate = 1.2 x2 MHz = 24 MHz
Let the bandwidth, B, 12 MHz=
remains same.
.Then number of bits for new sampling rate becomes,
12 MHz =
x2.4 MHz » D = 10 bits
9 2 210 1024.
S 3x(1024)
3x(1024)2
N =
102303.45 50 dB
tn(1+ p) bn(1+255)]
Comment Thus the signal to noise ratio
increased is by 10 dB, without
increasing the transmission bandwidth.
A sampling rate of 20 % above Nyquist rate is adequate. Hence number of quantization
are increased such that bandwidth remain bits (& hence levels)
same. This increse in
signal to noise quantization levels increases
ratio.
Maximum signal to noise ratio
The minimum sampling rate, f, 2W = 2 MHz
T6 the bandwidth, Br = 12 MHZ remains same,
tnen number of bits for
this new
sampling rate becomes,
12 MHz =xvx2MHz » D =
12 bits
q 2= 4096
N
342 3x(4096)21636855.2 =
62.1 dB
n(1+) [n(1+255)2
Example 1.6.3 For 255 determine the maximum adoantage over linear quantizer if the peak power to áverage power ratio is 9
and dynamic range of input signal is 30 dB and quantizer uses 256 levels. SPPU Dec-05, Mark 10
Solution: Linear quantizer
Here q = 256
Average signal power is given as x(t), The peak signal power is given as xmax. The peak power to average
power ratio is givern as 9. Hernce,
AX=9 (Given)
x(t)
Average signal power, S 0) (1.5.5)
Noise power, N
Here 4 max then above equation becomes,
N -max / 9) Xnax
12 3q
and above equation signal to noise ratio becomes,
From equation (1.5.5)
S m a 3 2 342 )
N 2 max
noise ratio ie,
9 in above equation we will get maximum sigmal to
Putting for q =256 and =
x2t) 43.4 dB.
S 3(256) 21845.33 =
( N
signal to noise ratiò will be,
input signal is 30 dB, the minimum
Since dynamic range of
- (Dynamic range of signal)
( min (8). max
= 43.4 -30 13.4 dB.
-law compounding
to noise ratio is given as,
For -law, the signal
S 3q
in(1+
3 x(256)2
For = 255, N In(1+ 255)]F
PHOTOcOPY PRICE
@LESS THAN
Analo-
= 6394 = 38 dB.
ample 1.5.4 A signal mt) of bamdwidth B=4 kHz is transmitted using a binary companded PCM with
trarsmission barndtwidth and output SNR for 256 =
100. C
Solution: Given W
quantizat107 0eis SPPU: May-03, M
B =
4 kHz
4 100, q = 256
i)Transmission bandwidth
The transmission
bandwidth is given as,
Br= vW
Here
2 or v log2g log2 256
=
=
=
8
Br 8x4 kHz =
32 kHz
i) Output SNR
.The signal to noise ratio of
companded PCM is given by
equation 1.5.3 as,
S 32
N 3x(256)2
ln(1+))2 In (1+ 100)12 230.71 = 39.65 daB
Review Questions
1, What is the necessity of nonuniform
quantization and explain
companding ? Explain A-low and
PPU Aug 15(in Semi u-law of companats
2. Write a short note on
comparnding.
Marks Deca
2
Fplain the SPPU Nov 95,
necessity of non-unijorm
quantizationi for speech Dec.96. 99,Moy May-98, 98, 001, 03,
03, Marks 6, Dec
Dec -08
0
signal. How it is
4. Plot -law compression achieved,
characteristic forp =255. SPP Mav 96 Marks b; ww.o
5. How May1 9
companding improves signal to noise ratio
6. Explain how
companding improves the signal to
?
PPUMay 97, Marks
www.ww* 4: Dec..05
noise ratio of no
TO De Dncreasea to aVo1d
diStoru the signal.
Example 174 Consider a DM system designed to accomodate analog message signals limited to
stnusoidal test signal of amplitude A 1 volt and frequency f 1kHz is applied to the system.
bandwidth W 5 kHz. A
50 kHz
The sampling rate of the systemis
i Calculate the minimum step size A reguired to minimize
slope overload.
) Calculate signal-to lquantization) noise ratio of the system for the specified sinusoidal test
*************** signal
** ************************************** SPPUMar 13 Marks &
Solution: Am =1 V, Jm =1 kHz, T, =T 50
50xx103
103 s
Am 2TfmTs
1
or 82 21 mT,Am 227nx1000 x x1 =0.125 V
50 x103
i) Signal to quantization noise ratio
S 3 3
949.88
N 8m WfTS 2 x5000 x(1000) 1
*50
50xx103
103
= 10log10 949.88 = 29.77 dB
T 30006
i)8-bitPCM
Signaling rate in 8-bit PCM will be,
= 80,000 bits/sec.
=vf = 8 bits/sample x 10,000 samples/sec
=
80,000 bits/sec x sec 266.67 »267 bits.
i DM system
Example 1.T.6 In a single integration DM scheme,the voice signal is sampled at a rate of 64 kH The maximum signal ampihude
is 1 volt, voice signal bandwidth is 3.5 kHz
i Determine the mininmum value of step size to avoid slope overload.
) Determine granular noise N. .
ä) Assuming signal to be sinusoidal, calculate signal power and signal to noise ratio
io) Assuting #hat noise signual amplitude is uniformly distributed in the range (-1, 1) determine the signal power and sigmal to no
Am2 fm Ts
Putting values in above equation with
T 64 x 103 dia Jm = 3.5 kHz
1S
27T x 3500 x-
64 x 103
820.3436 volts
it) To obtain granular noise power
Noise power is given by equation (1.7.8) as,
1/2 = 232.3
2.15 x 103
or
= 10log10 23.66 dB
****""******************************************************************************
aB
if it is distributed
easily calculated thatSx(x)
=
It can be
value of the signal can be
over (-1, 1). Hence mean square
calculated as,
Fig. 1.7.11 Uniformly distributed signal
- sioe-jj-
= X with R = 1
Normalized signal power
W
Hence signal to noise ratio becomes,
Signal power -
2.15x 10
3 = 155
Noise power
21.9 dB
155
or dB
10log10
ww
x(t) =
an p(t-nt) 2.2.1
P(t)=rect
(2.2.3)
Here 'o is the width of the
pulse. The signaling rate will be equal to signaling rate, r =
.(2.2.4)
2.2.1 Unipolar RZ and NRZ
In Unipolar Format the waveform does have a
single polarity. The waveform can have +5 or +12 volts when
high. The waveform is simple on-off. In the
unipolar RZ form, the waveform has zero value when symbol is
transmitted and waveform has 'V volts when '1' is '0
transmitted. In RZ form, the V" volts is for
present T, /2
period if symbol '1' is transmitted and for remaining T»/2 waveform retums to zero
form,
RZ value, ie. for unipolar
If symbol '1' is transmitted,
x (t)
V for 0st<T, / 2 (Half interval)
0 for Th /2 St< Th (Half interval)
and if symbol '0' is transmitted,
x(t) = 0 for
0st<T (complete interval)
Thus in Unipolar RZ format every pulse returms to a zero value. Fig, 2.2.1 (a) shows this signal format. A
unipolar NRZ (not return to zero) format is shown in Fig 2.2.1 (b). When symbol 1 is to be trarismitted, the
signal has 'A' volts for full duration. When symbol '0' is to be transmitted, the signal has zero volts (no signal)
for complete symbol duration. ie. for unipolar NRZ form.
Since there is no separation between the pulses, the receiver needs synchronization to detect unipolar NRZ
interval is same) is more. Hence energy of
pulses. As compared to RZ format, NRZ pulse width (pulse pulse
to
for 0St
for
st<T
and if symbol '0' is transmitted,
for 0st
x ()=
Polar RZ waveform is
forstT
shown in Fig. 2.2.1 (c). The polar NRZ format is shown in
Fig. 221(d). In polar NRZ
format, symbol 1' is
represented by positive polarity and symbol '0' is represented by negative
polarities maintained over the
are
polarity. These
complete pulse duration. ie. for polar NRZ,
if symbol 1 is transmitted,
for 0St<T,
Since polar RZ and NRZ formats are bipolar, the average DC value is minimum in these waveforms. If
probabilities of occurrence of symbols 1' and 0' are same, then average DC components of the waveform will
be zero. (See Fig. 2.2.1 on next page)
3 Bipolar NRZ [Pseudo-trinary or Alternate Mark Inversion (AMI)]
. In this format successive '1's are represented by pulses with alternate polarity and 0's are represented by no
pulses. Fig. 2.2.1 (e) shows the Bipolar NRZ or AMI waveform. f there are even number of 1's, the DC
component of the waveform will be zero. The advantage of this format is that the ambiguities due to
transmission sign inversion are eliminated.
for 0St
x (t) =
forst<T
Bas
* * *******************A4 *********assAaAAMe
*****************aAaAaaA
******
*****
Unipolar
RZ ******.
*****
**** Unipolar
NRZ *?***
V/2
Polar
RZ
V/2
****°*************** :
"*VI2
Polar
NRZ
-VI2J
**{**********" *****
Bipoler
NRZ
*************"*****************
Split
phase
VIZFEFE
Manchester
-V/2
*************?****************g*******g*******f******************** **
Combination of
3V/2 successive bits.
Polar
quatemary V2
-3V/2
1 1
******e*** mnoosoo. **
essage bis
*******
Cray Codp
*** VIZ.. ***s**s*nosn*** *i**** ***** *** ** *****.
Gray V2"}
coding
-VI2{
***************7"
3VI2 |
*wwwwvY wvrervrwwir wwwwww.w*****www* wN**** ****"************* * * * * * **www
formats
Fig. 2.2.1 Various digltal PAM signals
Polar RZ (d) Polar NRZ (e) Blpolar NRZ
(a) Unipolar RZ (b) Unipolar NRZ (c)
NRZ (h) Gray coding
() Split phase manchester (9) Polar quatemary
Digital Communication
2-18
Baseband Digital Trasnmisslon
and if symbol '0' is to be transmitted,
for 0St
(t)
forst<T
The main
advantage of this format is that of the probability of occurence of
irrespective symbole 'n
waveform has zero average value. Therefore by this mode, the power saving is more. and , the
The drawback of this format is that it needs absolute sense of polarity at the receiver.
2.2.5 Polar Quatemary NRZ
ig 2.2.1 (g) shows the
waveform of this format. This format is derived to reduce the
message bits signaline m.
are
grouped in the blocks of two. Therefore there are four possible The
To these four combinations 00.01 10
combinations, four amplitude levels are assigned. The Table 2.2.1 shows 1
how this is done
and
signaling rate is given as,
(2.2.5
2.2.6 Gray Coding
.
The messages are gray coded and
polar
message and its
equivalent Gray code. quaternary NRZ encoding is done.
Table 2.2.2 (a) shows
Message bits
00 01
10 11
Gray c0de
wwww
ew
x(t) V
equivalent Gray code is 10. Hence encoded amplifide level for first pair of message bits is V/2.
2.2.7 M-ary Coding
In polar quaternary NRZ type of coding we combine two successive bits. In
M-ary coding, we combine k
successive message bits. Hence we get M= 2* distinct symbols or levels. Therefore this type of coding is called
M-ary coding. For example consider that the given message string of Fig. 2.2.1. ie. 10110100.
Let k= 3, Then we have M=23 =8 distinct levels or symbols. Thus this coding will be 8-ary coding. The
duration of each symbol will equal to 3 bits, 3 Th. Thus the signaling rate is reduced.
Let us represent the signaling rate of 2 level coding (i.e. RZ and NRZ) be r,. Then the signaling rate of M-ary
coding is given as,
.. (2.2.6)
. k = log 2M
.(2.2.7)
Hence equation (2.2.6) becomes,
log2 M .(2.2.8)
.We studied different types of line codes. The choice of the particular line code depends upon type of
application.
1. The line code should have adquate timing conternt, so that clock information can be extracted from the
waveform.
2. The line code should be immune to channel noise and interference.
3. The line code should allow error detection and correction.
4. The power spectrum of line code should be matched to that of channel to reduce signal distortion.
5. The waveform of the line code should be transparent to the digital data being transmitted.
****
s (A
nawreN****
g*******g******Y*****"******""Y*****
***A*Awrm
****|****T***T*****g a8nmls lon
In this format,
NRZ Unipolar Format: Hence
be +A or zero.
unpolar. Its amplitude can
Hence most of
*************i******* ...
shaped and its main lobe extends from DC to T nuuwnas*antussasscaauasAAAASAASA asneaanAnaa******* ******a****** d
|.0
waveform has some DC value. The power spectra is
****
Parameter
Unipolar Unipolar Polar RZ Polar NRZipolar NRZ Manchester Polar Quaterna
RZ NRZ (AMI)
- - -
*
****************
* ****
Nature/ Unipolar Unipolar Bipolarve Bipolar Bipolar +ve Bipolar +ve, and Bipolar
polarities of the 0 andve 0 and +ve ve and zerc +ve arnd ve and zero -ve Fourlevels
Two levels Three levels ve Three levels Two levels
signal Two levels
Two levels
DC component in the Present Present maybe may be Absent Absent may be present
signal present present
Signal frequency f f
(Bandwidth)