Professional Documents
Culture Documents
Telecommunications Switching Systems 11
Telecommunications Switching Systems 11
L-11
The compression process is logarithmic. The compression increases as the sample signals increase. In other words, the larger sample signals are compressed more than the smaller sample signals. This causes the quantization noise to increase as the sample signal increases. A logarithmic increase in quantization noise throughout the dynamic range of an input sample signal keeps the SNR constant throughout this dynamic range.
Both are linear approximations of logarithmic input/output relationship. Both are implemented using eight-bit code words (256 levels, one for each quantization interval). Eight-bit code words allow for a bit rate of 64 kilobits per second (kbps).
Both break a dynamic range into a total of 16 segments: 1. Eight positive and eight negative segments. 2. Each segment is twice the length of the preceding one. 3. Uniform quantization is used within each segment. Both use a similar approach to coding the eight-bit word: 1. First (MSB) identifies polarity. 2. Bits two, three, and four identify segment. 3. Final four bits quantize the segment.
Different linear approximations lead to different lengths and slopes. A-law provides a greater dynamic range than -law . -law (15-segment) provides better signal/distortion performance for low level signals than A-law (13-segment). An international connection needs to use A-law, to A conversion is the responsibility of the -law country.
15-segment - law
13-segment A - law
Discrete
With digital companding the analog sample is first sampled, coded and then digitally compressed. For example: 12-bit to 8-bit compression
Encoded PCM Segment 12-bit linear code 8-bit compressed code s000ABCD s001ABCD s010ABCD s011ABCD s100ABCD s101ABCD s110ABCD s111ABCD
0 1 2 3 4 5 6 7
Decoded PCM 8-bit compressed code s000ABCD s001ABCD s010ABCD s011ABCD s100ABCD s101ABCD s110ABCD s111ABCD 12-bit recovered linear code s0000000ABCD s0000001ABCD s000001ABCD1 s00001ABCD10 s0001ABCD100 s001ABCD1000 s01ABCD10000 s1ABCD100000 Segment
0 1 2 3 4 5 6 7
% error =
12bit encoded voltage - 12bit decoded voltage 100 12bit decoded voltage
31 ) = 31.6dB 2
Thus a general calculation of quantizing noise power involves finding the expected value of the power of the quantization errors.
where, pi = probability of a sample in ith segment qi = quantization size for segment i, = 2i+1 for segmented 255 coding SQR for a full range sinusoid, SQR (A = 8159) = 39.3 dB The SQR for a maximum amplitude sine wave in the last segment of 255 codec is
8159 ) = 48.4dB 31
In summary, an 8-bit 255 PCM codec provides a theoretical SQR greater than 30 dB across a dynamic range of 48 dB
No. of bits reqd. by a uniform encoder for equivalent performance?