Module 15 Comp An Ding Wit
Module 15 Comp An Ding Wit
COMPANDING
1. Telephone System
2. Digital Audio Recording
3. CD Laser disks
4. Voice mail
5. Digital Video
ANALOG
1. Signal-to-Noise Ratio
2. Data Rate
3. Bandwidth
An increase in data rate increases bit error rate
An increase in SNR decreases bit error rate
An increase in bandwidth allows an increase in data rate
PULSE CODE MODULATION
SAMPLING
SAMPLING QUANTIZING
QUANTIZING ENCODING
ENCODING
QUANTIZATION
M = 2n
where:
M = # of levels, symbols or codewords
n = # of PCM bits used (sign bit excluded)
= # of bits per sample
PCM PARAMETERS
BW = nfs = fb
where:
fs = sampling rate in Hz
fb = bit rate in bps
PCM PARAMETERS
3. Dynamic Range
Vmax
DR = 2n - 1 DR =
Vmin
where:
Vmax = maximum input voltage
Vmin = minimum input voltage
DYNAMIC RANGE OF ANALOG
SIGNAL
EXAMPLE
4. Resolution
Resolution = VLSB
where:
VLSB = voltage of the least significant bit
EXAMPLE
5. Coding Efficiency (η )
β min
η = X 100
β max
where:
β min = Min # of bits (including the sign bit)
β max= Actual # of bits (including the sign bit)
PCM PARAMETERS
6. Quantization Error
VMIN Resolution
Qe = Qe =
2 2
PCM PARAMETERS
V
SQR = 10.79 dB + 20 logS
q
PCM PARAMETERS
S = 3M2 S 3 2n
= (2 )
N N 2
b. In dB
S MOST
= 6.02n + 1.76 USED...
N dB
EXAMPLE
1. Analog Companding
a. µ - Law
b. A - Law
2. Digital Companding
PCM SYSTEM WITH ANALOG
COMPANDING
2 TYPES OF COMPANDING
A - Law µ - Law
Where:
Vmax = maximum uncompressed analog input amplitude (volts)
Vin = amplitude of the input signal at particular instant of time (volts)
µ = parameter used to define the amount of compression(unitless)
Vout = compressed output amplitude (volts)
µ-LAW CHARACTERISTIC
EXAMPLE
Where:
V = Output Voltage
Vr = Reference Voltage
c = Chord Number
s = Step Number
A-LAW COMPANDING
1. Retain the sign bit as the first bit of the 8-bit code.
2. Count the number of zeros until the occurrence of the first 1 bit.
Subtract the zero count from 7. This is the segment number.
3. The first occurrence of 1 is assumed during the expanding
process, so it is set aside during compression.
4. Copy the next four bits (ABCD) into the 8-bit compressed code.
EXAMPLE
(a) + 0.053 V
(b) -0.318 V
(c) +10.234 V
PROCESS OF DIGITAL EXPANSION
The magnitude of the compression error is not the same for all samples.
However, the maximum percentage is the same in each segment (other than
segments 0 and 1, where there is no compression error)
a. 100011110010
b. 000001000000
c. 000111111000
d. 111111110010
e. 000000100000
SEATWORK
a. 11001010
b. 00010010
c. 10101010
d. 01010101
e. 11110000
f. 11011011
SEATWORK