Professional Documents
Culture Documents
TNE30003 Communication Principles: Pulse Code Modulation
TNE30003 Communication Principles: Pulse Code Modulation
WARNING
TNE30003
Communication Principles
Pulse Code Modulation
Tony Cricenti
L11
Updated March 2018
Aims
• Why PCM?
– PCM uses digital electronic circuits, easy
and inexpensive to design and build.
– The pulses can be easily regenerated since
they are digital signals.
– We can employ powerful error correction
techniques.
Quantisation
interval
Samples Original Signal
+A
Step size is
d=2A/M
d
Quan
tisati
on
-A levels
d/2
Input
-4d -3d -2d -d d 2d 3d 4d
-d/2
-3d/2
-5d/2
-7d/2
Input Samples
error
• The error depend on the step size. Smaller the step size
d, smaller the quantization error.
• Maximum quantisation error = half the voltage of LSB
= d/2.
• The quantiser S/N ratio = 6m – 7.25 dB, where m =
number of bits in each sample.
• The percent of error is large for small-value samples
compared to large-value samples.
• One way to reduce this is to use non-uniform quantiser.
Here, we make smaller step size for small amplitudes
and larger step size for larger amplitudes.
Input
1
Non-uniform
1 A xnorm
if 0 ≤ xnorm < then xcomp = sgn( xnorm )
A (1 + ln( A))
1 (1 + ln A xnorm )
if ≤ xnorm ≤ 1 then xcomp = sgn( xnorm )
A (1 + ln( A))
where:
• xnorm is normalized input signal (-1.0 to +1.0)
• xcomp is compressed output value
• A= compression parameter (=87.6)
• sgn(x) is sign function.
ln(1 + µ xnorm )
xcomp = sgn( x)
ln(1 + µ )
where:
• xnorm is normalized input signal
• xcomp is compressed output value
• µ= compression parameter (=255)
• sgn(x) is sign function.
Signal
-8
Department of Telecommunications, Electrical and Robotics Engineering TNE30003 18
Example
• Number of Quantisation levels M=2A/d=2x8/2=8
• Therefore the number of bits in the PCM word is
n=Log2M=log28 =3 bits
Quantised Quantisation Quan
Samples interval tisati
on
+8
7 levels
Signal +6
6
+4
5
Samples +2
4
0
3
2
1
Sampled Value:
Sampled Value:
Sampled 5.4
-4.1
Value: 1.2
0.5
-3.2 0
Quantised
Quantised Value:
Value: 151-5
Quantised Value: -3 -8
Code Number:
CodeNumber:
Code Number: 46412
Binary:
Binary:
Binary: 110
100001
100
010
Code Number
Department of Telecommunications, Electrical and Robotics Engineering TNE30003 19
Example
• Signal: Amin= -8 V, Amax= 8 V
• Range = Amax – Amin = 8 – (-8) = 16 V Sampled Value: -3.2
Quantised Value: -3
• M = Number of Quantisation levels=8 Code Number: 2
• d = Range/M =16/8 = 2 V Binary: 010
• Number of bits in the PCM word= 3
x q = Amin + (2k + 1)(d / 2)
x s = −3.2
k = decimal code number
x1 = x s / d = −3.2 / 2 = −1.6.
− 3 = −8 + (2k + 1) /( 2 / 2)
Therefore,
5 = 2k + 1; k = 2
x q = lie between − 1d to − 2d
Binary number = 010
= −2 and − 4V
x q = mid - value = −3V % Error =
− 3.2 − (−3.0)
× 100 = −20/3.2 = −6.25%
3.2
Find for xs = 5.4 V
Department of Telecommunications, Electrical and Robotics Engineering TNE30003 20
Minimum Bit Rate of PCM System
22
Department of Telecommunications, Electrical and Robotics Engineering TNE30003
Minimum Bit Rate of PCM System
23
Department of Telecommunications, Electrical and Robotics Engineering TNE30003
Bit Rate: Example
• What is the bit rate required to transmit voice
(W=3.5 kHz) over a telephone channel if 1024
quantisation levels are used?
• The minimum sampling frequency fs is:
• fs=2W=7 kHz = 7000 samples/s
• The number of bits required to obtain 1024
levels is n=Log2M=Log21024=10 bits.
BT = rb/2
• Therefore, the minimum rb =nfs
=10x7000 =70 kbps = 70,000 bps.
• In practice, we usually use 8 bits and fs =8 kHz.
• In such case the rb =8x8=64 kbps = 64,000 bps
Department of Telecommunications, Electrical and Robotics Engineering TNE30003 24
Baseband Signaling Format - Line Codes
• Digital data (binary) can be sent through a pair of
telephone lines, in a variety of ways, these are
generally termed as line codes.
• Traditionally the binary digits were called:
– Mark: Binary 1
– Space: Binary 0
• There are several line codes to represent a Mark and
a Space. We will only look a selected set.
• These line codes can be transmitted directly through
wires, e.g., telephone lines, LAN and WAN.
Department of Telecommunications, Electrical and Robotics Engineering TNE30003 25
Baseband Signaling Format - Line Codes
Desirable features of Line codes:
• Transparency:
• System can convey any bit sequence without causing
problems.
• Should have strong bit timing.
• help to detect the pulses at the receiver, e.g., long strings
of marks or spaces should not cause any problem.
• No DC and low frequency components in spectrum.
• use of ac coupling and transformer in transmission line
will cause problem
• Bandwidth efficiency
• Error detection capability
Ref: Mesiya 9.2.
Department of Telecommunications, Electrical and Robotics Engineering TNE30003 26
Baseband Signaling Format - Line Codes
A 1 0 1 1 0 0 1 1 Unipolar NRZ
0
t
1 0 1 1 0 0 1 1 Unipolar RZ
t
Tb
RZ at mid-bit -interval
Department of Telecommunications, Electrical and Robotics Engineering TNE30003 30
Bipolar Return to Zero RZ
• Bipolar RZ: Similar to Unipolar RZ, except the
space is represented by a negative pulse.
• Example Bipolar RZ representation of binary
stream 101 100 11:
1 0 1 1 0 0 1 1 Bipolar RZ
1 0 1 1 0 0 1 1 AMI
Bipolar RZ , AMI
Mesiya p.504
Bit Time
Display 0’s
Note pulse will not rectangular due to transmission limitations (think about it!!!)
Decision Level
1st Pulse
2nd Pulse
Optimum
sampling time 38
Department of Telecommunications, Electrical and Robotics Engineering TNE30003
References
• Mesiya 8.4 9.2
• Carlson: 12.1