0% found this document useful (0 votes)
45 views5 pages

) Resolution:: Solution: A.) Sampling Period: T

1. The document describes quantizing and compressing sample voltages for audio signals using PCM coding. 2. Key steps include quantizing the sample voltages into bins based on a resolution, encoding the quantized values into binary PCM codes, segmenting the codes, and compressing the segments into shorter codes. 3. Examples are provided to quantize and encode sample voltages of -6.582V and +12.692V into 12-bit and 8-bit codes, then decoding and comparing to the original values. The quantization error is calculated for each example.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views5 pages

) Resolution:: Solution: A.) Sampling Period: T

1. The document describes quantizing and compressing sample voltages for audio signals using PCM coding. 2. Key steps include quantizing the sample voltages into bins based on a resolution, encoding the quantized values into binary PCM codes, segmenting the codes, and compressing the segments into shorter codes. 3. Examples are provided to quantize and encode sample voltages of -6.582V and +12.692V into 12-bit and 8-bit codes, then decoding and comparing to the original values. The quantization error is calculated for each example.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SOLUTION:

1 1
a.) SAMPLING PERIOD: T s= = =1ms
Fs 1000
x max−x min 1
b.) resolution: ∆= m
= =0.0625
2 24

c.) xq=x min +i ∆=0.4375

( x−x min ) ( 0.4375−0 )


d.) i=round

=round
0.0625
=7=0111
x max 1 1
a.) ∆= n
2 −1
= 3
2 −1
=
7

0.4375 3
xq= =+3.0625 ≈+3 ∆=
b.¿ 1 7
7
0.4375
i= =+3.0625 ≈+3=1011
c.) 1
7

d.) i ∆ ± =¿
2
0.3571 to 0.5
FOR SAMPLE VOLTAGE: -6.582V
−6.582
=−411.375 ≈−411
0.016
encoded voltage :−411 ( 0.016 )=−6.576 V

Quantization error:
-6.582-(-6.576)= -0.006v
12-bit linear PCM code:
−411=¿ 000110011011
SEGMENT S 0 0 1 A B C D X X X X
5
12-bit 0 0 0 1 1 0 0 1 1 0 1 1
linear
PCM
code

SEGMENT 5 s 1 0 1 A B C D
8-bit 0 1 0 1 1 0 0 1
compressed
code

SEGMENT S 0 0 1 A B C D 1 0 0 0
5
12-bit 0 0 0 1 1 0 0 1 1 0 0 0
decoded
code

Decoded voltage: -408*0.016 = -6.528


Compressed voltage:−6.576 V − (−6.528 )=−0.048

FOR SAMPLE VOLTAGE: +12.692


+ 12.692
=+ 793.25≈+ 793
0.016
encoded voltage :+793 ( 0.016 )=+12.688 V

Quantization error:
12.692-(12.688)= 0.004v
12-bit linear PCM code:
+793=¿ 101100011001

SEGMENT s 0 1 A B C D X X X X X
6
12-bit 1 0 1 1 0 0 0 1 1 0 0 1
linear
PCM
code

SEGMENT 6 s 1 1 0 A B C D
8-bit 1 1 1 0 1 0 0 0
compressed
code

SEGMENT s 0 1 A B C D 1 0 0 0 0
6
12-bit 1 0 1 1 0 0 0 1 0 0 0 0
decoded
code

Decoded voltage: +784*0.016 =+12.544


Compressed voltage:+12.688−( +12.544 )=0.144

You might also like