For PCM coding determine the 12bit linear code the 8bit comp
For PCM coding, determine the 12-bit linear code, the 8-bit compressed code, the decoded 12-bit code, the quantization error, and the compression error for a resolution of 0.01 V and analog sample voltage of +0.053 V, -0.318 V, 10.234 V. Suppose the leading bit is 1 for a positive number.
Solution
a)to determine 12 bit linear code,divide voltage resolution ,round off coefficient and converi result in to 12 bit sign magnitude code
+0.053/+0.01=+5.3
Qe=0.3(0.01)=0.003v
12 bit code=1 00000000101
8 bit compressed coe 1 0000000 0101
determine 12 bit covered code=1 000 0101
1 000 0101
=1 000000000101=+5
=+0.05
b,
12 bit code=-.318/0.01=-31.8
linear code=0 00000100000
8 bit compressed code 00000 0000
12 bit recovered code=0 0000010000=-33
decoded voltage=-0.33v
c,
12 bit code=-10.234/0.01=+10234
12 BIT LINEAR CODE 011111111
8 BIT COMPRESEED CODE
01111111adding twice to get 12 bit
1011111100
decoded voltage=+1008(0.01)
=+10.08V
