Manal Ibrahim Hamammu
4931
Digital Communications
63244
Problems in
Encoding
2026
Problem 1
A human voice signal is sampled at a rate of 8 kHz and converted into a PCM signal using a quantizer with 256 discrete
levels (πΏ = 256).
1)
Calculate the number of bits required per sample (n).
2)
Determine the resulting bit rate (R) of the encoder.
Solution:
1. Using the codeword length formula:
2. Using the bit rate formula:
πΏ = 256
π
= π = 8 . 8000 = 64,000 πππ ππ 64 ππππ
π = log2 (256) = 8 πππ‘π /π πππππ
Problem 2
A low-pass signal with a bandwidth of 15ππ»π§ is to be converted to PCM. The sampling rate is set to 20% above the Nyquist
rate. If each sample is encoded into an 11 − πππ‘ πππππ€πππ:
1. What is the sampling frequency (ππ )?
2. What is the minimum bandwidth (π΅ππΆπ) required to transmit this signal using rectangular pulses?
Solution
•Part 1 (ππ ≥ 2ππ ):
Nyquist rate = 2 × 15 ππ»π§ = 30 ππ»π§.
ππ = 30ππ»π§ × 1.20 = 36ππ»π§.
•Part 2 (B_PCM = π × π_π ):
π΅ππΆπ = 11 × 36π = 396ππ»π§.
Problem 3
A PCM system uses 256 quantization levels. Due to poor weather, the channel bit
error rate (ππ ) increases to 10−4. Calculate the average output Signal-to-Noise Ratio
(SNR).
Solution:
L=256 and ππ =0.0001
π³π
ππππ
πΊπ΅πΉ =
=
≈ π, πππ. ππ
π + π(π³π − π)ππ
π + π ππππ − π 0.0001
Problem 4
A 4-bit PCM system (π = 4) is used to transmit data over a noisy channel. The channel has a bit error rate
(ππ ) of 0.01 (or 10−2). Calculate the output SNR and compare it to the ideal SNR (where ππ = 0).
Solution
•
Determine L:
πΏ = 2π = 24 = 16.
•
Actual SNR with Channel Noise:
πππ
πππ
ππ’π‘ = π+π πππ −π 0.01
•Ideal SNR (ππ = 0):
πππ
= 22.86
π+π πππ 0.01
πππ
πππππ = πΏ2 = 162 = 256
πππ
ππ’π‘ =
In dB= 10 log10 256 = 24.082ππ΅
In dB= 10 log10 22.86 = 13.590ππ΅
Problem 5
A high-fidelity audio system uses 12 bits per sample to encode a signal. The transmission channel is slightly noisy, with a bit
error rate (ππ ) of 10−6 (0.000001).
1.Calculate the Peak SNR in dB.
2.Calculate the Average SNR in dB.
3.Determine the "Peak-to-Average" ratio (the difference between the two) and explain what this tells a designer about the
system's headroom.
Solution:
n = 12 bit
L = = 212 = 4096
ππ³π
π(ππππ)π
=
= 739,000
π+π(π³π −π)ππ
π+π πππππ −π 0.000001
In dB: 10 log10 (739,000) ≈ 58.7 ππ΅
π³π
πππππ
=
= 246,333
π+π(π³π −π)ππ π+π πππππ −π 0.000001
In dB: 10 log10 (246,333) = 53.9ππ΅
Difference: 58.7 -- 53.9 = 4.8 dB
Problem 6
A compact disc (CD) records audio signals digitally by using PCM assume the audio signal bandwidth to be 15kHz
• What is the Nyquist rate?
• If the Nyquist samples are quantized int L=65,536 levels and then binary coded, determine the number of binary digits
required to encode a sample
• Determine the number of binary digits per second required to encode the audio signal.
Solution:
Part 1:
Bandwidth (W): 15 kHz
Nyquist Rate (ππ΅ ): 2 × π = 2 × 15 ππ»π§ = 30 ππ»π§
Part 2:
πΏ = 65,536 → 2π = 65,536 → log 2 65,536 = 16 πππ‘
Part 3:
π
= ππ × π → 30,000 × 16 = 480,000πππ‘π /π ππ 480πππ
Problem 7
A television signal has a bandwidth of 4.5MHz, this signal is samples, quantized, and binary coded to obtain a PCM signal.
•
Determine the sampling rate if the signal is to be sampled at a rate 20% above the Nyquist rate.
•
If the samples are quantized into 1024 levels, determine the numbers of binary pulses required to encode each sample.
Solution:
Part 1:
Bandwidth (W): 4.5MHz
Nyquist Rate (ππ΅ ): 2 × π = 2 × 4.5ππ»π§ = 9 ππ»π§
ππ = 9ππ»π§ × 1 + 0.20 → 9ππ»π§ + 1.2 = 10.8ππ»π§
Part 2:
πΏ = 1024 → 2π = 1024 → log 2 1024 = 10 πππ‘
Part 3:
π
= ππ × π → 10.8ππ»π§ × 10 = 108ππ»π§
Problem 8
A digital communications system is to carry a single voice signal using linearly quantized PCM. What
PCM bit rate will be required if an ideal anti-aliasing filter with a cut-off frequency of 3.4 kHz is used
at the transmitter and the SNqR is to be kept above 50 dB?
Solution:
SNqR = 4.8 + 6n − πΌππ΅ . For voice signals α = 10 dB, i.e.:
π =
50 + 10 − 4.8
= 9.2
6
fs = 2.2 × 3.4 kHz = 7.48 kHz.
We used 2.2 instead 2.0 Because is a practical multiplier that includes a for non-ideal filter performance and to prevent
aliasing in real physical components.
The PCM bit rate (or more strictly binary baud rate) is therefore:
π
π = ππ × π → 7.48 × 103 × 10
πππ‘
= 74.8 ππππ‘/π
π
Problem 9
Find the overall SNR for the reconstructed analogue voice signal in Example 8 if receiver noise
induces an error rate, on average, of one in every 106 PCM bits.
Solution:
ππππ
4.8 + 6π + πΌππ΅ → 4.8 + 6 × 10 − 10
1 + 4 ππππ
ππ
= 54.8 ππ΅ ππ 3.020 × 105
πππ
ππ’π‘ =
πππ
ππ’π‘ =
3.020 × 105
= 1.368 × 105 = 51.4 ππ΅
1 + 4(3.020 × 105 )(1 × 10−6 )
References
•For Example, 3 & 5: Refer to Proakis & Salehi, Chapter on "Digital Representation of Memoryless Sources," where they derive
the effects of channel noise on PCM performance. (Inspired)
•For Example, 1 & 2: Refer to B.P. Lathi, Chapter 6 (Sampling and Pulse Code Modulation), which provides many practical
problems on bit rate and bandwidth. (Inspired)
•For Example, 4: Refer to Bernard Sklar, Section 2.8, which discusses the trade-offs between bandwidth, bits per sample, and
quantization levels. (Inspired)
•For Example, 6 & 7: taken from Modern Digital and Analog Communication Systems, Book by B. P Lathi. Chapter 6, Page 291
in the book.
•For Example, 8 & 9: Digital Communications 3rd Edition Ian Glover. Chapter 5, Page 187 in the book, Example 5.3, 5.4