2.3 Pulse Code Modulation
2.3 Pulse Code Modulation
2.3 Pulse Code Modulation
Figure 3-7 Digital and analog communication systems, Leon Couch, 8th edition
Illustration of waveforms in a PCM system
Ch 3.1_3
-6
c. Error signal
Peak value of error signal (± 1) is
one half the quantizer step size (=2)
Figure 3-8 Digital and analog communication systems, Leon Couch, 8th edition
Three-bits Gray code for M = 8 levels
Ch 3.1_3
-7
Gray code: one bit change for each step change (allows fast coding)
Table 3-1 Digital and analog communication systems, Leon Couch, 8th edition
Practical PCM circuits
Ch 3.1_3
-8
vramp(t)
encode t
reset
PCM receiver with DAC
Ch 3.1_3
- 10
D/A conversion
Flash ADC
Ch 3.1_3
- 11
VREF∙5/8
• Sampling done by comparators; no separate
sample-and-hold circuit needed
• Very fast (instantaneous, not successive
VREF∙3/8
approximation)
VREF∙1/8
“Bubble error correction”: to provide redundancy in order to reduce the impact of possible
failures in the comparator stages (which may happen at high speed operation)
[ http://en.wikipedia.org/wiki/Flash_ADC ]
Signal scaler
Ch 3.1_3
- 12
⚫ Ideal amplifier: A=, Zin=
𝑖𝑖𝑛 = 𝑣𝑖𝑛 /𝑅𝑖𝑛
RF 𝑖𝐹 = 𝑣𝑜𝑢𝑡 /𝑅𝐹
iF 𝑖𝑖𝑛 + 𝑖𝐹 = 0
vin
Rin - vout 𝑣𝑜𝑢𝑡 𝑅𝐹
iin A= 𝐴= =−
𝑣𝑖𝑛 𝑅𝑖𝑛
+
⚫ Dimensionality theorem*: 1 1
(so PCM requires a bandwidth at least n times 𝐵PCM ≥ 𝑅 = 𝑛𝑓𝑠 ≥ 𝑛𝐵
2 2
as large as that of the input analog signal )
⚫ BPCM depends on the line coding. (see next sheet, will be addressed in Week 2)
➢ Polar rectangular NRZ signal: 𝐵PCM = 𝑅 = 𝑛𝑓𝑠
(null bandwidth at f = 1/Tb = R) 1
➢ Unipolar NRZ with sinc pulses: 𝐵PCM = 𝑅 (see 2nd next sheet)
2
⚫ When too narrow bandwidth: pulses are smeared into
neighbouring bit slots, causing intersymbol interference, ISI
Line codes (Binary signalling waveforms)
Ch 3.1_3
- 15
Unipolar NRZ
{0, 1}
Polar NRZ
{-1, +1}
Unipolar RZ
{1 0, 0 0}
Bipolar RZ
{0 0, 1 0 or -1 0}
Manchester NRZ
{1 -1, -1 1}
Figure 3-15 Digital and analog communication systems, Leon Couch, 8th edition
* will be addressed in detail in section 3.5
Sinc pulse
Ch 3.1_3
- 16
𝐵PCM = 𝑅 = 𝑛𝑓𝑠 = 𝑛 ⋅ 2𝐵
Table 3-2 Digital and analog communication systems, Leon Couch, 8th edition
Spectral efficiencies of line codes
Ch 3.1_3
- 18
*
* with L=2l levels
Unipolar NRZ with sinc pulses ½R 2
Table 3-6 Digital and analog communication systems, Leon Couch, 8th edition
Contents
Ch 3.1_3
- 19
produced by
⚫ Quantising noise
- by round-off errors in the approximating M-step quantiser
Figure 7-15 Digital and analog communication systems, Leon Couch, 8th edition
Output Signal-to-Noise Ratio*
Ch 3.1_3
- 22
Signal-to-noise ratio: 𝑆 𝑀2
where Pe is the bit error rate = 𝑷𝒆 … 𝒃𝒊𝒕 𝒆𝒓𝒓𝒐𝒓 𝒑𝒓𝒐𝒃𝒂𝒃𝒊𝒍𝒊𝒕𝒚
𝑁 out 1 + 4𝑃𝑒 𝑀2 − 1
of the channel
𝑆 3𝑀2
=
𝑁 pk out 1 + 4𝑃𝑒 𝑀2 − 1
(S/N )out M 2
0,6
px(x) x=0 ∞
0,5
x=1 1 −𝑥 2 /2
0,4 𝑄(𝑧) = න 𝑒 𝑑𝑥
2𝜋
0,3 𝑧
0,2 Q(z)
1 𝑧
= erfc
0,1 2 2
0
z
-2 -1 0 1 2
x
Probability density function (pdf)
Ch 3.1_3
Continuous random variable x - 25
0.25
Probability that x is between a and b x
𝑏 0.2
න 𝑝𝑥 (𝑥) 𝑑𝑥 = 1
0.05
−∞
Average value of x 0
+∞ -2 0 2 4 6 8 10 12 14
a b
𝑥 = න 𝑥 𝑝𝑥 (𝑥) 𝑑𝑥 = 𝜇𝑥 x
−∞
Gaussian pdf (a.k.a. normal pdf)
Standard deviation of x
+∞
𝜎𝑥2 = 𝑥− 𝑥 2 = න 𝑥− 𝑥 2 𝑝𝑥 (𝑥) 𝑑𝑥
1 − 𝑥−𝜇𝑥 2 / 2𝜎𝑥2
𝑝𝑥 (𝑥) = 𝑒
+∞
−∞ 𝜎𝑥 2𝜋
= න 𝑥 2 𝑝𝑥 (𝑥) 𝑑𝑥 − 𝑥 2 = 𝜇𝑥,2 − 𝜇𝑥2
−∞
The Q function (2/2)
Ch 3.1_3
∞ - 26
1 −𝑥 2 /2
𝑄(𝑧) = න 𝑒 𝑑𝑥
2𝜋
𝑧
1 𝑧
= erfc
2 2
Chernoff bound:
1 2 /2
𝑄(𝑧) ≤ 𝑒 −𝑧
𝑧 2𝜋
Q(6)=10-9
Q(7)=10-12 𝑆
𝑃𝑒 = 𝑄
𝑁 𝑖𝑛
Figure B-7 - Digital and analog communication systems, Leon Couch, 8th edition
Bit error probability for binary reception Ch 3.1_3
- 27
decision circuit
r(t) xk=r(kTs)
+ 𝑠ෝ𝑘
kTs
D -
V0 D V1 x
𝑆 22𝑛
For M = 2n >> 1 : ≈
𝑁 out 1 + 4𝑃𝑒 22𝑛
The PCM transmission system is designed to deliver a signal to noise ratio of 25. If
the noise spectral density is given to be 10-12 Watt / Hz and the transmission system
has an attenuation of 36dB.
5-10-2022 PAGE 29
Solve
Ch 3.1_3
- 30
A music signal with a spectrum of 20KHz is transmitted using PCM over a baseband channel.
The audio signal is optimally sampled and transmitted. During the transfer of signals between
the transmitter and receiver white Guassian noise is added. If n=9 is used for quantization and
the SNR at the output is 47dB. Assume that the signal is uniformly distributed.
a. What is the probability of errors Pe of the PCM bit steam at the entrance to the PCM
receiver?
b. Thermal noise is given as -174dBm/Hz. If this is the only noise in the analog part of the
system, what is the total noise power assuming an ideal low pass filtering at the input to the
receiver?
c. What is the SNRin that is related to the Pe computed in a)?
d. How much signal power is present at the input under these conditions?
e. Would increasing the number of quantization levels improve the output SNR? What is the
maximum SNR achievable at the output?
f. If we want to reach SNRout > 80dB what would that imply for the Pe and respective SNRin?
5-10-2022 PAGE 30
Signal-to-noise improvement of PCM
Ch 3.1_3
- 31
n=8
M=2n
n=7
n=6
10 log10 M2
n=5 = 20 log10 n
[dB]
𝑆 𝑀2 𝑆
= 𝑃𝑒 = 𝑄
𝑁 out 1 + 4𝑃𝑒 𝑀2 − 1 𝑁 𝑖𝑛
Max. PCM Signal-to-Noise ratio
Ch 3.1_3
- 32
Maximum value of average output S/N, if Pe negligible:
𝑆 𝑺
= 𝑀2 ⇒ in dB: = 𝟔. 𝟎𝟐 × 𝒏 [dB] ( M=2n )
𝑁 out 𝑵 out, dB
𝑆
In general: = 6.02 × 𝑛 + 𝛼 [dB]
𝑁 out, dB
where 10 log 3 = 4.77, depending on the range used of the ADC
4 types of Quantising noise
Ch 3.1_3
- 33
Questions:
⚫ minimum sampling frequency needed ? 6.8 k samples/s
⚫ bitrate used ? R=64 kbit/s
⚫ symbol rate ? 64 kBaud for binary symbols (1 bit/symbol)
⚫ minimum bandwidth required ? Bmin=R/2=32 kHz
⚫ for which pulse shape ? for sinc pulse
⚫ bandwidth for rectangular pulse ? BPCM=R=64 kHz (1st null of sinc spectrum)
⚫ peak S/N ? (S/N)peak=3 M2 = 3·(28)2 = 52.9 dB
10∙log(3∙216) = 4.77+16∙3.01 = 52.9 dB
Non-uniform quantising
Ch 3.1_3
- 35
To avoid
- small-signal granularity
- large-signal overload
use a variable step size
(by compressing non-linear amplifier,
followed by PCM uniform quantiser)
Usual method:
- companding at the transmitter
⚫ -law
⚫ A-law
At receiver: expansion
Figure 3-9a Digital and analog communication systems, Leon Couch, 8th edition
µ-law compression
Ch 3.1_3
- 36
⚫ in US, Canada, Japan
ln 1 + 𝜇 𝑤1 𝑡
𝑤2 𝑡 =
ln 1 + 𝜇
𝜇
Slope for w1= 0:
ln 1 + 𝜇
𝑤1 𝑡 = 1 ⇒ 𝑤2 𝑡 = 1
⚫ use = 255
⚫ piece-wise linear approx. of curve, and per piece
16-steps uniform quantisation
Figure 3-9b Digital and analog communication systems, Leon Couch, 8th edition
A-law compression
Ch 3.1_3
- 37
⚫ in Europe
𝑤2 𝑡
𝐴 𝑤1 𝑡 , 1
0 ≤ 𝑤1 𝑡 ≤
1 + ln 𝐴 𝐴
=
1 + ln A w1 𝑡 1
, < 𝑤1 𝑡 ≤1
1 + ln 𝐴 𝐴
1 𝐴
Slope for 𝑤1 ≤ ∶
𝐴 1 + ln 𝐴
Figure 3-9c Digital and analog communication systems, Leon Couch, 8th edition
Piecewise linear compression
Ch 3.1_3
- 38
Figure 3-9d Digital and analog communication systems, Leon Couch, 8th edition
S/N ratio for companded PCM
Ch 3.1_3
- 39
𝑆
= 6.02 × 𝑛 + 𝛼 [dB]
𝑁 out, dB
Uniform quantising:
𝑉 𝑉
𝛼 = 4.77 − 20log( ) (-7.3 for = 4 , i.e. loading factor = 4)
𝑥𝑟𝑚𝑠 𝑥𝑟𝑚𝑠
µ-law companding:
= 4.77 - 20 log[ln(1+µ)] (-10 for µ = 255)
A-law companding:
= 4.77 - 20 log[1+ln A] (-10 for A = 87.6)
Output SNR of 8-bit PCM systems with and without companding
Ch 3.1_3
- 40
Figure 3 – 10 Digital and analog communication systems, Leon Couch, 8th edition