Docsity

Análise de Processos Aleatórios em Comunicações Análogas e Digitais, Provas de Engenharia Elétrica

Toggle sidebar
bg1
Analog and Digital Communication 3-1
Sistema de Comunicacao
Primeiro Trimestre / 2002
Professor: Carlos Aurelio Faria da Rocha
Review
6XPPDU\RI5DQGRP
3URFHVVHV
● A
random process
is a random function of time.
◆ Or conversely, an indexed set of random variables.
● A particular realization of a random process is
called a
sample function
.
),(1
Etx
),(2
Etx
),(3
Etx
t
t
t
●Furthermore, a Random
Process evaluated at a
particular point in time is a
Random Variable.
●A random process is
ergodic
in the mean
if the
time average of every
sample function is the same
as the expected value of the
random process at any time.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Pré-visualização parcial do texto

Baixe Análise de Processos Aleatórios em Comunicações Análogas e Digitais e outras Provas em PDF para Engenharia Elétrica, somente na Docsity!

Sistema de Comunicacao

Primeiro Trimestre / 200 2

Professor: Carlos Aurelio Faria da Rocha

Review

6XPPDU\RI5DQGRP

3URFHVVHV

l A random process is a random function of time.

u Or conversely, an indexed set of random variables.

l A particular realization of a random process is

called a sample function.

( , )

1

xtE

( , )

2

xtE

( , )

3

xtE

t

t

t

lFurthermore, a Random

Process evaluated at a

particular point in time is a

Random Variable.

lA random process is

ergodic in the mean if the

time average of every

sample function is the same

as the expected value of the

random process at any time.

Review

(UJRGLFLW\

l A random process is said to be “ergodic” if it is

ergodic in the mean and ergodic in correlation:

u Ergodic in the mean:

u Ergodic in the correlation:

l In order for a random process to be ergodic, it

must first be Wide Sense Stationary.

l If a R.P. is ergodic, then we can compute power

three different ways:

u From any sample function:

u From the autocorrelation:

u From the Power Spectral Density:

m E { x ( t )} x ( t )

x

R ( τ) = E { x ( t ) x ( t +τ)} = x ( t ) x ( t +τ)

x

2

P | x ( t ) |

x

( 0 )

x x

P = R

∞

− ∞

P = P f df

x x

( )

Review

6WDWLRQDULW\

l Wide Sense Stationarity is a weaker form of

stationarity than Strict Sense Stationarity.

u A SSS process is always WSS.

u However, a WSS process is not necessarily SSS.

u A WSS Gaussian random processes is SSS.

Ü a WSS Gaussian R.P. is completely specified by its

mean and autocorrelation function.

l If a random process is WSS, then its power

spectral density can be found by taking the

Fourier transform of its autocorrelation function.

Ü The Wiener Khintchine theorem

x x

P f FR

ADC

$QDORJWR'LJLWDO&RQYHUVLRQ

l Analog-to-digital conversion is

(basically) a two step process:

u Sampling

Ü Convert from analog to

discrete-time.

u Quantization

Ü Convert from discrete-time to

digital.

l Sampling does not introduce

distortion provided that the Nyquist

theorem is satisfied.

l Quantization does however

introduce distortion.

ADC

Sample

Quantize

Analog

Input

Signal

Digital Output

Signal

Quantization

4XDQWL]DWLRQ

l The output of a sampler is still continuous in

amplitude.

u Each sample can take on any value

u e.g. 3.752, 0.001, etc.

u The number of possible values is infinite.

l To transmit as a digital signal we must restrict

the number of possible values.

l Quantization is the process of “rounding off” a

sample according to some rule.

u E.g. suppose we must round to the nearest tenth,

then:

3.752 --> 3.

0.001 --> 0

Quantization

4XDQWL]DWLRQ5HVROXWLRQ

l The number of bits used to represent each

sample is the resolution of the quantizer.

u The number of levels M does not necessarily have to

be a power of two.

l The more bits we use the better the fidelity.

u However, the bit rate is higher and more bandwidth is

required.

l Examples:

u Telephone systems typically use 8 bits of resolution.

Ü 64 kbps

u CD players use 16 bits of resolution per channel.

Ü 705.6 kbps (mono)

n M

2

=log

Quantization

8QLIRUP4XDQWL]DWLRQ

l Most ADC’s use

uniform quantizers.

l The quantization

levels of a uniform

quantizer are equally

spaced apart.

l Uniform quantizers

are optimal when the

input distribution is

uniform.

u i.e. when all values

within the range are

equally likely.

2 4 6 8

2

4

6

Input signal

x(t)

Output signal

x

q

(t)

-8 -6 -4 -

Example Uniform 3 bit quantizer

Quantization

&RPSDQGLQJ

l Nonuniform quantizers are difficult to make and

expensive.

l An alternative is to first pass the speech signal

through a nonlinearity before quantizing with a

uniform quantizer.

l The nonlinearity causes the signal amplitude to

be compressed.

u The input to the quantizer will have a more uniform

distribution.

l At the receiver, the signal is expanded by an

inverse to the nonlinearity.

l The process of compressing and expanding is

called companding.

μ /DZ&RPSDQGLQJ

l The most popular form of

companding in the U.S.

is μ-law, which is

defined by:

u where:

Ü μ = 255 and |x(t)| < 1

ln( 1 )

ln( 1 | ( ) |)

| () |

+μ

  • μ

=

x t

y t

0 1

1

Input |x(t)|

Output |x(t)|

Quantization

6FDODUYHUVXV9HFWRU

4XDQWL]DWLRQ

l Many signals exhibit strong correlation from one

sample to the next.

u i.e. R

X

(t) ≈ R

X

(t + T s

u For example in speech the correlation between

adjacent samples is 0.

l By quantizing two or more samples at a time

this correlation can be exploited.

l A vector quantizer works on groups of several

samples at a time.

u A scalar quantizer works on just one sample at a

time.

l Even if the samples are independent the vector

quantizer can provide shaping gain.

Quantization

'LIIHUHQWLDO3&

l Given several past samples of a speech signal it

is possible to predict the next sample to a high

degree of accuracy by using a linear prediction

filter.

l The error of the prediction filter is much smaller

than the actual signal itself.

l In differential pulse-code modulation (DPCM),

the error at the output of a prediction filter is

quantized, rather than the voice signal itself.

l DPCM can produce “toll-quality” speech at half

the normal bit rate (i.e. 32 kbps).

Voice Coding

7UDGHRII9RLFH4XDOLW\YHUVXV

%LW5DWH

l The bit rate produced

by the voice coder

can be reduced at a

price.

u Increased hardware

complexity.

u Reduced perceived

speech quality.

1.2 2.4 4.

16 24 32 64

Unsatisfactory (1)

Poor (2)

Fair (3)

Good (4)

Excellent (5)

Bit Rate (kbps)

Perceived

Speech

Quality

Toll quality

Communications

quality

Vocoders Waveform coders

Voice Coding

:DYHIRUP&RGLQJDQG

9RFRGLQJ

l For high bit rates (16-64 kbps) it is sufficient to

just sample and quantize the time domain voice

waveform.

u This is called waveform coding.

u DPCM is a type of waveform coding.

l For low bit rate voice encoding it is necessary to

mathematically model the voice and transmit

the parameters associated with the model.

u Process of analysis and synthesis.

u Called vocoding.

u Most vocoding techniques are based on linear

predictive coding (LPC).

Voice Coding

/LQHDU3UHGLFWLYH&RGLQJ

l Linear predictive coding is similar to DPCM with

the following exceptions:

u The prediction filter is more complex

Ü more taps in the FIR filter.

u The filter coefficients are transmitted more frequently

Ü once every 20 milliseconds.

u The error signal is not transmitted directly

Ü The error signal can be though of a type of noise.

Ü Instead the statistics of the “noise” are transmitted

  • Power level
  • Whether voiced (vowels) or unvoiced (consonants)

Ü This is where the big savings (in terms of bit rate)

comes from.

Voice Coding

9RFRGHUVWDQGDUGV

l RPE-LTP

u Regular Pulse Excited Long Term Prediction.

u Used in GSM (European Digital Cellular)

u 13 kbps.

l VSELP

u Vector Sum Excited Linear Predictive Coder.

u Used in USDC, IS-136 (US Digital Cellular).

u 8 kbps.

l QCELP

u Qualcomm Code Excited Linear Predictive Coder.

u Used in IS-95. (US Spread Spectrum Cellular)

u Variable bit rate (full, half, quarter, eighth)

u Original full rate was 9.6 kbps.

u Revised standard (QCELP13) uses 14.4 kbps.

ADC

7KH¥G%SHUELWμUXOH

l It can be shown that the SNR of an M level

uniform quantizer with uniform input distribution

is:

l Since M=

n

l Or in decibels:

l For uniform quantizers with nonuniform inputs:

2

SNR = M

n

SNR

2

( ) 6 dB

20 log( 2 )

10 log( 2 )

2

SNR n

SNR n

SNR

dB

dB

n

dB

( SNR ) ≈ 6 n +α dB

dB

Encoding

(QFRGLQJ

l The output of the quantizer is one of M possible

signal levels.

u If we want to use a binary transmission system, then

we need to map each quantized sample into an n bit

binary word.

l Encoding is the process of representing each

of the M outputs of the quantizer by an n bit

code word.

u The mapping is one-to-one so there is no distortion

introduced by encoding.

u Some mappings are better than others.

Ü A Gray code gives the best end-to-end performance.

Ü The weakness of Gray codes is poor performance when

the sign bit (MSB) is received in error.

Encoding

*UD\&RGHV

l With gray codes adjacent samples differ only in

one bit position.

l Example (3 bit quantization):

X Q

PCM word Gray Code

+7 000 110

+5 001 111

+3 010 101

+1 011 100

-1 100 000

-3 101 001

-5 110 011

-7 111 010

l With this gray code, a single bit error will result in

an amplitude error of 2.

Encoding

3DULW\%LWV

l Each PCM word can have a parity bit appended to it to

allow the detection of a single error.

u The parity bit is selected so that the number of bits in the

word is even (or odd).

u If the number of bits received is not even (or odd) then we

know there was a bit error.

X Q

Gray Code with Parity

+7 110 1100

+5 111 1111

+3 101 1010

+1 100 1001

-1 000 0000

-3 001 0011

-5 011 0110

-7 010 0101

Line Codes

/LQH&RGHU

l The input to the line encoder is a sequence of

values a

n

that is a function of the data bit or

output of the A/D converter.

l The output of the line encoder is a waveform:

l Where f(t) is the pulse shape and T

b

is the bit

period (T

b

=T

s

/n for n bit quantizer).

l The details of this operation are set by the

particular type of line code that is being used.

line coder

n

a

s ( t )

∞

= −∞

n

n b

s ( t ) a f ( t nT )

Line Codes

8QLSRODU15=/LQH&RGH

l The unipolar nonreturn-to-zero line code is

defined by the unipolar mapping:

u where X

n

is the n

th

data bit.

u In addition, the pulse shape for unipolar NRZ is:

u Where T

b

is the bit period.

=

  • =

=

when 0

when 1

0

n

n

n

X

A X

a

b

T

t

f ( t )

1 1 1 1

0 0

b

T

b

2 T

b

3 T

b

4 T

b

5 T

A

NRZ pulse shape

Line Codes

8QLSRODU5=/LQH&RGH

l The unipolar return-to-zero line code has the

same symbol mapping but a different pulse

shape than unipolar NRZ:

=

=

=

when 0

when 1

0

n

n

n

X

X A

a

b

T

t

f t

1 0 1 1 1 0

b

T

b

2 T

b

3 T

b

4 T

b

5 T

A

RZ pulse shape

Line Codes

3RODU/LQH&RGHV

l Polar line codes use the antipodal mapping:

u Polar NRZ uses NRZ pulse shape.

u Polar RZ uses RZ pulse shape.

=

=

−

=

when 0

when 1

n

n

n

X

X

A

A

a

1 0 1 1 1 0

A

− A

A

Polar NRZ

Polar RZ

Line Codes

&RPSDULVRQRI/LQH&RGHV

l Self-synchronization:

u Manchester codes have built in timing information

because they always have a zero crossing in the

center of the pulse.

u Polar RZ codes tend to be good because the signal

level always goes to zero for the second half of the

pulse.

u NRZ signals are not good for self-synchronization.

l Error probability:

u Polar codes perform better (are more energy efficient)

than Unipolar or Bipolar codes.

l Channel characteristics:

u We need to find the PSD of the line codes to answer

this ...

Review

/LQH&RGHV

l Each line code is described by a symbol

mapping function a

n

and a pulse shape f(t):

l Categories of line codes:

u Symbol mapping functions.

Ü Unipolar

Ü Polar

Ü Bipolar (a.k.a. alternate mark inversion, pseudoternary)

u Pulse shapes.

Ü NRZ (Nonreturn-to-zero)

Ü RZ (Return to Zero)

Ü Manchester (split phase)

∞

= −∞

n

n b

s ( t ) af ( t nT )

PSD of Line Codes

3RZHU6SHFWUDO'HQVLW\RID

/LQH&RGH

l “Brute-force” method

u Model s(t) as a WSS random process

u Find the autocorrelation function of s(t)

Ü this step can be tricky!

u Apply Wiener-Khintchine theorem to get PSD.

l Example: Polar NRZ

∞

= −∞

 − −

= Π

n b

b d

n

T

t nT T

s ( t ) a

Where: P[a

n

=A] = P[a

n

= -A]

a

n

’s are independent

T

d

is uniform on [0,T

b

)

τ = Λ

b

s

T

t

R A

2

[ ]

2 2

s b b

P f = AT Sa π fT

PSD of Line Codes

6KRUWFXW0HWKRGIRU)LQGLQJWKH

36'RID/LQH&RGH

l Polar line codes with data symbols that are

equiprobable and independent have PSD:

u Where F(f) is the F.T. of the pulse shape.

l Unipolar line codes with data symbols that are

equiprobable and independent have PSD:

l Bipolar line codes with data symbols that are

equiprobable and independent have PSD:

2

2

( ) F ( f )

T

A

P f

b

s

=

= + δ −

∑

∞

b bn = −∞ b

s

T

n

f

T

F f

T

A

P f

1

( ) 1

4

( )

2

2

( ) ( ) sin( )

2

2

2

b

b

s

F f fT

T

A

P f = π