Você está na página 1de 47

Chapter 10

Applications in Communications
School of Information Science and
Engineering, SDU.

School of IS&E, SDU. Copyright Reserved

1/ 47

Introduction

Some methods for digitizing analog


waveforms:

Pulse-code modulation (PCM)


Differential PCM (DPCM)
Adaptive differential PCM (ADPCM)
Delta modulation (DM)
Adaptive delta modulation (ADM)
Linear predictive coding (LDC)
School of IS&E, SDU. Copyright Reserved

2/ 47

Pulse-Code Modulation (PCM)

PCM is used for

quantizing an analog signal to transmit


storing the signal in digital form
Speech transmission
Telemetry systems

School of IS&E, SDU. Copyright Reserved

3/ 47

- law compressor

A logarithmic compressor employed in U.S.


and Canadian telecommunications systems
y=

ln (1 + s )
ln (1 + )

sgn ( s ) ;

s 1, y 1

s : the mormalized input;


y : the normalized output;
sgn() : the sign funciton;
: a parameter that is selected to give
the desired compression characteristic.
School of IS&E, SDU. Copyright Reserved

4/ 47

A law compressor

The logarithmic compressor standard used in


European telecommunication systems:
1 + ln ( A s )
1
sgn ( s ) ,
s 1

1 + ln A
A
y=
1
As
0 s
1 + ln A sgn ( s ) ,
A

where A is chosen as 87.56.

School of IS&E, SDU. Copyright Reserved

5/ 47

Figure 10.1 Comparison of -law and


A-law nonlinearities

School of IS&E, SDU. Copyright Reserved

6/ 47

Project 10.1: PCM

Purpose of this project:


To gain an understanding of
PCM comprssion (linear-to-logarithmic)
PCM expansion (logaithmic-to-linear).

School of IS&E, SDU. Copyright Reserved

7/ 47

Three Matlab functions are needed:

A -law compressor function


A quantizer function

-law expander funciton

School of IS&E, SDU. Copyright Reserved

8/ 47

Figure 10.2 PCM project

School of IS&E, SDU. Copyright Reserved

9/ 47

The signal-to-quantization noise ratio


(SQNR) in dB is:
N

2
s (n)

SQNR = 10 log10 N n =1
2

( s ( n ) sq ( n ) )
n =1

School of IS&E, SDU. Copyright Reserved

10/ 47

Differential PCM (DPCM)



s ( n ) = a (i ) s ( n i )
p

i =1

s(n): the current sample of speech



s ( n ) : the predicted value of s(n)
a(i): the predictor coefficients

School of IS&E, SDU. Copyright Reserved

11/ 47

The error function is the sum of squared errors,


so we select the a(i) to minimize: 2
p

2
p = e ( n ) = s ( n ) a ( i ) s ( n i )
n =1
n =1
n =1

= rss ( 0 ) 2 a ( i ) rss ( i ) + a ( i ) a ( j) rss ( i j)


n =1

i =1 j=1

where rss(m) is the autocorrlation function of s(n)


N

rss ( m ) = s ( i ) s ( i + m )
i =1

School of IS&E, SDU. Copyright Reserved

12/ 47

Figure 10.3
Block diagram of a DPCM transcoder

School of IS&E, SDU. Copyright Reserved

13/ 47

The output of the predictor is


 p
s = a ( i ) s ( n i )
i =1

The difference


e ( n ) = s ( n ) s ( n )

is the input to the quantizer.


School of IS&E, SDU. Copyright Reserved

14/ 47

The estimate value s ( n ) of s(n) is


obtained by taking a linear combination
of past values s ( n k ) , k=1,2,,p.
The estimate of s(n) is
p
p

s ( n ) = a ( i ) s ( n i ) + b ( i ) e ( n i )
i =1

i =1

School of IS&E, SDU. Copyright Reserved

15/ 47

Project 10.2: DPCM

Generate correlated random sequences


using a pole-zero signal model of the form:
s ( n ) = a (1) s ( n 1) + b0 x ( n ) + b1x ( n 1)

where x(n) is a zero-mean unit variance


Gaussian sequence.
filter function
School of IS&E, SDU. Copyright Reserved

16/ 47

Some modules for this project:


A model predictor function
A DPCM encoder function
A DPCM decoder function

School of IS&E, SDU. Copyright Reserved

17/ 47

Figure 10.4 DPCM modified by the linearly


filtered error sequence

School of IS&E, SDU. Copyright Reserved

18/ 47

Adaptive PCM (ADPCM) and DPCM

Adaptive quantizer:
feedforward adaptive quantizer

Adjust its step size for each signal sample

feedback adaptive quantizer

Employ the output of the quantizer in the


adjustment of the step size.

School of IS&E, SDU. Copyright Reserved

19/ 47

Figure 10.5 Example of a quantizer with


an adaptive step size

School of IS&E, SDU. Copyright Reserved

20/ 47

Table 10.1 Multiplication factors for


adaptive step size adjustment

School of IS&E, SDU. Copyright Reserved

21/ 47

Figure 10.6
ADPCM block diagram (Encoder part)

School of IS&E, SDU. Copyright Reserved

22/ 47

Figure 10.6
ADPCM block diagram (Decoder part)

School of IS&E, SDU. Copyright Reserved

23/ 47

Project 10.3: ADPCM

Figure 10.7 ADPCM interface to PCM system


School of IS&E, SDU. Copyright Reserved

24/ 47

Delta Modulation (DM)

DM may be viewed as asimplified form


of DPCM in which a two-level (1-bit)
quantizer is used in conjunction with a
fixed first-order predictor.

School of IS&E, SDU. Copyright Reserved

25/ 47

We note that


s ( n ) = s ( n 1) = s ( n 1) + e ( n 1)

Since

It follows that


q ( n ) = e ( n ) e ( n ) = e ( n ) s ( n ) s ( n )


s ( n ) = s ( n 1) + q ( n 1)
School of IS&E, SDU. Copyright Reserved

26/ 47

Figure 10.8 Block diagram of a delta


modulation system

School of IS&E, SDU. Copyright Reserved

27/ 47

Figure 10.9 An equivalent realization of a


delta modulation system

School of IS&E, SDU. Copyright Reserved

28/ 47

Adaptive Delta Modulation (ADM)

Figure 10.10 Two types of distortion in the DM encoder


School of IS&E, SDU. Copyright Reserved

29/ 47

Figure 10.11 An example of a delta


modulation system with adaptive step size

Encoder part
School of IS&E, SDU. Copyright Reserved

30/ 47

Decoder part
School of IS&E, SDU. Copyright Reserved

31/ 47

Project 10.4: DM and ADM

A Hanning filter that has the impulse


response
1
2n
h ( n ) = 1 cos
, 0 n N 1
2
N 1

may be used, where the length N may


be selected in the range 5 N 15 .

School of IS&E, SDU. Copyright Reserved

32/ 47

Linear Predictive Coding (LPC) of Speech

The LPC method is based on modeling the vocal tract


as a linear all-pole filter.
The system function:

H (z) =

G
p

1+ ap (k) z

k =1

p : the number of poles;


G : the filter gain;
{ap(k)}: parameters that determine the poles.
School of IS&E, SDU. Copyright Reserved

33/ 47

Figure 10.12 Block diagram model for the


generation of a speech signal

School of IS&E, SDU. Copyright Reserved

34/ 47

Figure 10.13 Encoder and decoder for LPC

School of IS&E, SDU. Copyright Reserved

35/ 47

Project 10.5: LPC

The encoder divides speech signals into


short-time segments, and process each
segment, separately.
The decoder that performs the synthesis is
an all-pole lattice filter.
The output is a synthetic speech signal.

School of IS&E, SDU. Copyright Reserved

36/ 47

Dual-Tone Multi-frequency (DTMF)


Signals

DTMF is the generic name for push-button


telephone signaling.
DTMF also finds widespread use in
electronic mail systems and telephone
banking systems.
A combination of a high-frequency tone
and low-frequency tone represent a
specific digit or the characters * and #.
School of IS&E, SDU. Copyright Reserved

37/ 47

Figure 10.14 DTMF digits

School of IS&E, SDU. Copyright Reserved

38/ 47

The Goertzel Algorithm

The Goertzel algorithm exploits thek


periodicity of the phase factors WN and
allows us to express the computation of the
DFT as a linear filtering operation.
Since WN kN = 1, we can multiply the DFT by
this factor.
Thus
N 1
X ( k ) = WN kN X ( k ) = x ( m ) WN

k( Nm)

m =0

School of IS&E, SDU. Copyright Reserved

39/ 47

Figure 10.15 Realization of two-pole


resonator for computing the DFT

School of IS&E, SDU. Copyright Reserved

40/ 47

Project 10.6: DTMF Signaling

Design the following Matlab modules:


A tone generation function
A dial-tone generator
A decoding funciton

School of IS&E, SDU. Copyright Reserved

41/ 47

Binary Digital Communications

A binary digital communications system


employs two signal waveforms:

s1(t)=s(t)
s2(t)=-s(t)

To measure the performance, we


normally use the average probability of
error, which is often called the bit error
rate (BER).
School of IS&E, SDU. Copyright Reserved

42/ 47

Project 10.7:
Binary Data Communications System

Five Matlab functions are required:


A binary data generator module
A modulator module
A noise generator
A demodulator module
A detector and error-counting module
School of IS&E, SDU. Copyright Reserved

43/ 47

Figure 10.16 Model of binary data


communications system

School of IS&E, SDU. Copyright Reserved

44/ 47

Spread-Spectrum Communications

Figure 10.17
Basic spread spectrum digital communications system
School of IS&E, SDU. Copyright Reserved

45/ 47

Project 10.8:
Binary Spread-Spectrum Communications

Figure 10.18 Block diagram of binary PN spread-spectrum


system for simulation experiment
School of IS&E, SDU. Copyright Reserved

46/ 47

Thats all!

School of IS&E, SDU. Copyright Reserved

47/ 47

Você também pode gostar