Professional Documents
Culture Documents
Engineering
PCM
MIAN AHMED YASER
ASSISTANT PROFESSOR
ELECTRICAL ENGINEERING DEPARTMENT
COMSATS INSTITUTE OF INFORMATION TECHNOLOGY
Contd...
Because voice data is limited to frequencies below
4000 Hz, a codec makes 8000 samples/sec. (i.e., 125
microsecond/sample).
If a signal is sampled at regular intervals at a rate
higher than twice the highest signal frequency, the
samples contain all the information of the original
signal.
4 Steps Process
Contd
PCM Example
Quantization
Contd...
Analog input signal
Sample pulse
PAM signal
PCM code
Contd
The quantization interval @ quantum
= the magnitude difference between adjacent steps.
The resolution = the magnitude of a quantum
= the voltage of the minimum step size.
The quantization error = the quantization noise
= quantum
= (orig. sample voltage quantize level)
PCM code = (sample voltage/resolution)
QUANTIZATION ERROR
A difference between the exact value of the analog signal &
the nearest quantization level.
Types of Quantization
Midtread
Midrise
Types of Quantizer
1. Uniform type : The levels of the quantized amplitude are uniformly spaced.
2. Non-uniform type : The levels are not uniform.
Vmax
Vmax
=
DR =
Vmin resolution
DR = 2 n 1
DR(dB) = 20 log( DR)
Where
Example 1
1. Calculate the dynamic range for a linear PCM
system using 16-bit quantizing.
2. Calculate the number of bits in PCM code if
the DR = 192.6 dB
Coding Efficiency
A numerical indication of how efficiently a
PCM code is utilized.
The ratio of the minimum number of bits
required to achieve a certain dynamic range to
the actual number of PCM bits used.
Coding Efficiency = Minimum number of bits x 100
Actual number of bits
Quantization Distortion
Difference between the signal waveform as
presented to the PCM multiplex codec and the
equivalent quantized value
For a linear codec with n binary digits per
sample the ratio of full sine wave power to
quantizing distortion power (S/D) is
(S/D)=6n + 1.8 dB
n=Number of bits per PCM word
Example
n= 7 bit word expressing a sample level
S/D=6 x 7 + 1.8 = 43.8 dB
Each binary digit added to PCM code word
increases the S/D ratio 6 dB for linear
quantization
Practical S/D values range in the order of 3338 dB
COMPANDING
Compression at the sender
Expansion at the Receiver
More code segments are assigned to low level
speech than high level speech
PCM systems
Old PCM systems had 7 bit code
Modern PCM systems use 8-bit code with
improved quantization distortion performance
Companding and coding are carried out together
Compression and expansion are logrithmic
SQR(min)
SQR(max)
resolution
=
Qe
R =resistance
(ohm)
v = rms signal
voltage
q = quantization
interval
Vmax
=
Qe
SQR( dB )
v2
( q 12)
v2
= 10 log q 2
12
Example 2
1.
2.
Calculate the SQR (dB) if the input signal = 2 Vrms and the
quantization noise magnitudes = 0.02 V.
Determine the voltage of the input signals if the SQR =
36.82 dB and q =0.2 V.
Nonlinear Encoding
Quantization levels not evenly spaced
Reduces overall signal distortion
Can also be done by companding
Companding
The process of compressing and then expanding.
The higher amplitude analog signals are compressed
prior to transmission and then expanded in receiver.
Improving the DR of a communication system.
Companding Functions
Method of Companding
For the compression, two laws are adopted: the -law in US and Japan
and the A-law in Europe.
-law
Vout =
A-law
Vout
A Vin Vmax
Vmax
1 + ln A
=
Vin
1
ln(
+
A
Vmax )
1 + ln A
Vin
1
0
Vout A
1 Vin
1
A Vout
Example 3
A companding system with = 255 used to
compand from 0V to 15 V sinusoid signal.
Draw the characteristic of the typical system.
Draw an 8 level non-uniform quantizer
characteristic that corresponds to the
mentioned .
Contd...
-law
A-law
The data rate at which serial PCM bits are clocked out of the
PCM encoder onto the transmission line.
bits
samples
line speed =
X
second sample
Where
Line speed = the transmission rate in bits per second
Sample/second = sample rate, fs
Bits/sample = no of bits in the compressed PCM code
Example 4
For a single PCM system with a sample rate fs
= 6000 samples per second and a 7 bits
compressed PCM code, calculate the line
speed.
samples
bits
line speed =
X
second sample
Contd
Secure communication through the use of
special modulation schemes of encryption.
These advantages are obtained at the cost of
more complexity and increased BT.
With cost-effective implementations, the cost
issue no longer a problem of concern.
With
the
availability
of
wide-band
communication channels and the use of
sophisticated data compression techniques, the
large bandwidth is not a serious problem.
Time-Division Multiplexing
This technique combines time-domain
samples from different message signals
(sampled at the same rate) and transmits
them together across the same channel.
The multiplexing is performed using
commutator (switch). At the receiver
decommutator
(switch)
is
used
synchronism with the commutator
demultiplex the data.
a
a
in
to
Contd
TDM system is very sensitive to symbol dispersion, i.e.,
Example 5
For a PCM system with the following parameters,
Maximum analog input frequency = 4 KHz
Maximum decoded voltage at the receiver = 2.55 V
Minimum dynamic range = 46 dB
Determine
PCM
Pulse Code Modulation
Sampling Rate
a. Minimum sampling rate fs=2 x f= 2 x 4k =8
kHz
DR = 2 n 1
n=log (Dynamic Range + 1)/log (2)---------------I
DR=46 dB
Transforming to linear scale
20 log DR = 46
Log DR =46/20
DR = 199.53
Putting this value in Eq I
n=(log (199.3 + 1))/log 2
= 7.64
c. Resolution:
DR=Vmax/resolution
Resolution= Vmax/DR
But DR= 2n-1
Resolution=2.55/(2 7.64-1) = 0.013
d. Quantization Error:
Qe=Resolution/2 = 0.013/2 = 0.0065