) Resolution:: Solution: A.) Sampling Period: T
) Resolution:: Solution: A.) Sampling Period: T
1 1
a.) SAMPLING PERIOD: T s= = =1ms
Fs 1000
x max−x min 1
b.) resolution: ∆= m
= =0.0625
2 24
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
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