Comm 2
Comm 2
Comm 2
+
|
.
|
\
|
+
=
1 ln
1 ln
max
max
V
V
x V
V
in
out
A V
V
A
V V A
V V
in in
out
1
0
ln 1
max
max
max
s s
+
=
1
1
ln 1
) ln( 1
max
max
max
s s
+
+
=
V
V
A A
V V A
V V
in in
out
slightly flatter SQR than -law but -law is
better in terms of small signal quality (idle
channel noise)
Example
For a compressor with = 255, determine
(a) The voltage gain for the following relative values of
V
in
: V
max
, 0.75V
max
, 0.5V
max
, 0.25V
max
(b) The compressed output voltage for a maximum input
voltage of 4V
(c) Input and output dynamic ranges and compression
Calculate the output voltage of an A-law compressor
given A = 125, V
max
= 8 V and V
in
= 25 mV.
o Involves compression at the transmit end
after the input sample has been converted to
a linear PCM code and expansion at the
receive end prior to PCM decoding
Sign bit
1=(+)
0=(-)
3-bit Segment identifier
000-111
4-bit quantization interval
0000-1111
ABCD
8-bit 255 compressed code format
255 encoding/decoding table
Segment 12-bit linear code
8-bit compressed
code
8-bit compressed
code
12-bit recovered
code
Segment
0 S0000000ABCD S000ABCD S000ABCD S0000000ABCD 0
1 S0000001ABCD S001ABCD S001ABCD S0000001ABCD 1
2 S000001ABCDx S010ABCD S010ABCD S000001ABCD1 2
3 S00001ABCDxx S011ABCD S011ABCD S00001ABCD10 3
4 S0001ABCDxxx S100ABCD S100ABCD S0001ABCD100 4
5 S001ABCDxxxx S101ABCD S101ABCD S001ABCD1000 5
6 S01ABCDxxxxx S110ABCD S110ABCD S01ABCD10000 6
7 S1ABCDxxxxxx S111ABCD S111ABCD S1ABCD100000 7
100
) (
) ( ) (
% x
voltage Rx
voltage Rx voltage Tx
error
=
Example
Determine the 12-bit linear code, the eight bit
compressed code, the decoded 12-bit code, the
quantization error, (c) the compression error and (d)
percent error for a resolution of 0.01V and analog
sample voltages of (a) +0.053V (b) -0.318 V, and (c)
+10.234V
100
) (
) ( ) (
% x
voltage Rx
voltage Rx voltage Tx
error
=
Example
Determine the 12-bit linear code, the eight bit
compressed code, the decoded 12-bit code, the
quantization error, (c) the compression error and (d)
percent error for a resolution of 0.01V and analog
sample voltages of (a) +0.053V (b) -0.318 V, and (c)
+10.234V
o Used when digitizing speech signals only
o Used primarily in limited bandwidth
applications
o Generally used for recorded information
such as wrong number messages,
encrypted voice for transmission over
analog telephone circuits, computer output
signals and educational games
o Channel vocoders
o The first channel vocoder was developed by Homer
Dudley in 1928. Dudleys vocoder compressed
conventional speech waveforms into an analog
signal with a total bandwidth of approximately 300
Hz.
o Used bandpass filters to separate the speech
waveform into narrower subbands. Each sub-band is
full-wave rectified, filtered, then digitally encoded.
o Operate at 2400 bps
o Formant vocoders
o Simply determines the location of the formants
and encodes and transmit only the information
with the most significant short-term components.
o Formants three or more peak frequencies at
which the spectral power of most speech energy
concentrate
o Operate at less than 100 bps
o Linear predictive vocoders
o Extracts the most significant portions of speech
information directly from the time waveform
rather than from the frequency spectrum as with
the channel and formant vocoders
o Typically transmit and encode speech at between
1.2 and 2.4 kbps
PCM Line Speed
o simply the data rate at which serial PCM bits are clocked out of the
PCM encoder into the Transmission line
o dependent on the sample rate and the number of bits in the
compressed PCM coded
sample
bits
x
second
samples
speed line =
Where:
o line speed transmission rate in bps
o samples/second sample rate (fs)
o bits/sample number of bits in the compressed PCM code
Example
For a single-channel PCM system with a sample rate f
s
= 6000 samples
per second and a seven-bit compressed PCM code, determine the line
speed.
o Uses a single-bit PCM code to achieve
digital transmission of analog signals
o If the current sample is smaller than the
previous sample, a logic 0 is transmitted
o If the current sample is larger than the
previous sample, a logic 1 is transmitted
Slope overload noise
occurs when the step size
is too small for the
accumulator output to
follow quick changes in
the input waveform.
Original Signal
Reconstructed
Signal
Granular Noise
Analog
input
DAC
output
Slope overload
distortion
Granular noise occurs for any step size,
but is smaller for a small step size.
If is decreased, the granular noise will
decrease, however the slope overload noise
will increase.
Thus there should be an optimum value
for the step size .
o Adaptive delta modulation is a delta
modulation system where the step size of the
DAC is automatically varied, depending on
the amplitude characteristics of the analog
input signal.
o A simple algorithm when the output is a
string of consecutive 1s or 0s, the step size
is increased (for string of 1s) or decreased
(for string of 0s).