EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12....

61
EELE445-14 Lecture 11 Filter example, Bandwidth definitions and BPSK example

Transcript of EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12....

Page 1: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

EELE445-14

Lecture 11Filter example,

Bandwidth definitions and BPSK example

Page 2: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Example: White noise through filter

Sn(f)

• Find Sn(f) in Watts/Hz•The equivalent noise bandwidth of the filter•The output PSD, Sy(f)•The total output noise power in dBm and in Watts•The output rms noise voltage.•The output Vp-p (assume 6σ noise)•What would the filter BW have to be to reduce the noise

power by 12 dB?

RC LPFfc = 10 MHz0

Page 3: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Bandlimited Signals

Page 4: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Bandwidth Definitions1. Absolute bandwidth: B=f2-f1, when the spectrum is zero outside the interval

f1<f <f2 along the positive frequency axis. Example, white noise through an ideal bandpass filter

2. 3-dB bandwidth (or half-power bandwidth) is B=f2-f1 , where for frequencies insde the band f1<f <f2 , the power spectra, |S(f)|, fall now lower than ½ the maximum value of |S(f)|, and the maximum value occurs at a frequency inside the band.

212

max

2123

,21

)(

)(fffffor

fS

fS

ffB

≤≤∀≥

−=:bandwidth) power-half (or bandwidth dB-3

Page 5: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Bandwidth Definitions

Page 6: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Bandwidth Definitions

Page 7: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Bandwidth Definitions

Page 8: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Bandwidth Definitions

Page 9: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

BPSK Signal

Page 10: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

BPSK Signal

Page 11: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 2–23 Spectrum of a BPSK signal.

Page 12: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

BPSK Signal

Page 13: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

BPSK Signal

Page 14: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

BPSK Signal

Page 15: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

BPSK Signal

Page 16: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Example 2–22 (continued)

Page 17: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

BPSK SignalFigure 2–24 FCC-allowed envelope for B = 30 MHz.

Page 18: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms
Page 19: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

SamplingPAM- Pulse Amplitude

ModulationPCM- Pulse Code Modulation

EELE445-14Lecture 12

Page 20: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

EELE445-14

Lecture 12

Sampling

Page 21: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Sampling – The Cardinal SeriesSampling Theorem: Any physical waveform may be represented over the interval byt ∞≤≤∞−

where fs is a parameter assigned some convenient valuegreater than zero

Page 22: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Sampling – The Cardinal Series

( ) Bfs 2min = Nyquist Frequency

Page 23: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Sampling – The Cardinal Series

Page 24: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Sampling – The Cardinal SeriesFigure 2–17 Sampling theorem.

The voltage at t=nTs is only dueto the voltage at sample nTs and isnot dependent on any other sample.(Orthogonal in time!)

Page 25: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 2–18 Impulse sampling.

Page 26: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Impulse Sampling

sT2

( )

( ) [ ]L++++=

====

++⇒−= ∑∑∞

=

−∞=

)3cos(2)2cos(2)cos(211

2120

)cos()(

0

10

tttT

t

TD

TD

T

tnDDnTtt

ssss

T

sn

sssn

nnsn

nsT

s

s

ωωωδ

πωϕ

ϕωδδ

Page 27: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Impulse Sampling

( ) )(∑∞

−∞=

−=n

sT nTtts

δδ

)(tws

( ) [ ]

[ ] )(1)()(

)3cos(2)2cos(2)cos(21)()()(

∑∞

−∞=

−==

++++==

ns

sss

ssss

Ts

nffWT

twFfW

tttT

twttwtws

Lωωωδ

Page 28: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Impulse Sampling- text

∑∑

−∞=

−∞=

−∞=

−∞=

−=

=

−−=

−=

n ss

s

tjnn

ss

n ss

n ss

nffWT

fW

eT

twtw

eqnTtnTw

nTttwtw

s

)(1)(

1)()(

1712)()(

)()()(

ω

δ

δ

Page 29: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Impulse SamplingThe spectrum of the impuse sampled signal is the spectrum of the unsampled signal that is repeated every fs Hz, where fs is the sampling frequency or rate (samples/sec). This is one of the basic principles of digital signal processing, DSP.

Note:This technique of impulse sampling is often used to

translate the spectrum of a signal to another frequency band that is centered on a harmonic of the sampling frequency, fs.

If fs>=2B, (see fig 2-18), the replicated spectra around each harmonic of fs do not overlap, and the original spectrum can be regenerated with an ideal LPF with a cutoff of fs/2.

Page 30: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Figure 2–18 Impulse sampling.

Page 31: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Impulse SamplingFigure 2–19 Undersampling and aliasing.

Page 32: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Natural SamplingGeneration of PAM with natural sampling (gating).

Page 33: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Natural Sampling

Duty cycle =1/3

Page 34: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Natural Sampling

ss f

df 3= at Null

Page 35: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–4 Demodulation of a PAM signal (naturally sampled).

nth Nyquist region recovery

Page 36: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–5 PAM signal with flat-top sampling.Impulse sample and hold

Page 37: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–6 Spectrum of a PAM waveform with flat-top sampling.

Page 38: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–7 PCM trasmission system.

Page 39: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–8 Illustration of waveforms in a PCM system.

Page 40: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–8 Illustration of waveforms in a PCM system.

Page 41: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–8 Illustration of waveforms in a PCM system.

Page 42: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–9 Compression characteristics (first quadrant shown).

Page 43: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–9 Compression characteristics (first quadrant shown).

Page 44: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–9 Continued

Page 45: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–10 Output SNR of 8-bit PCM systems with and without companding.

Page 46: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

48

Quantization Noise,Analog to Digital Converter-A/D

EELE445Lecture 13

Page 47: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Couch, Digital and Analog Communication Systems, Seventh Edition ©2007 Pearson Education, Inc. All rights reserved. 0-13-142492-0

Figure 3–7 PCM trasmission system.

q(x)

Page 48: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Quantization

xmax

-xmax

Δx(t)

Q(x)

1maxmax

22

−==Δ nx xN

Page 49: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Quantization – Results in a Loss of Informationx(t)

Q(x)

Lost Information

After sampling, x(t)=xi

R∈ix

After Quantization:

R∈= x,x̂Q(x)

1maxmax

22

−==Δ nx xN

Page 50: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Quantization Noise

Quantization function:

Define the mean square distortion:

2)(

~))(()( 22

Δ≤−

=−=

xQx

andxxQxxq

Page 51: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Quantization

( ) noiseonquantizatithePN

x

dqqq

nq==

Δ=

Δ= ∫

Δ

Δ−

2

2max

2

2

2

22

3

12

1

where N=2n and xmax is ½ the A/D input range

Page 52: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Quantization Noise

So we can define the mean squared error distortion as:

The pdf of the error is uniformly distributed )(~ XQXX −=

)~(xf

−2Δ

Δ1

x~

Page 53: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

SQNR – Signal to Quantization Noise Ratio

Page 54: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

SQNR – Signal to Quantization Noise Ratio

Example of SQNR for full scale sinewave done on board

Page 55: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

SQNR – Signal to Quantization Noise Ratio

Px may be found using:

Page 56: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

SQNR – Signal to Quantization Noise Ratio

The distortion, or “noise”, is therefore:

Where Px is the power of the input signal

Page 57: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

SQNR – Linear Quantization

[ ]12

max

2max

2

<

xP

xXE

x

The SQNR decreases asThe input dynamic rangeincreases

Page 58: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

U-Law Nonuniform PCMused to increase SQNR for given Px , xmax, and n

U=255 U.S

Page 59: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

a-Law Nonuniform PCM

a=87.56 U.S

Page 60: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

u-Law v.s. Linear Quantization

8 bitPx is signal powerRelative to full scale

Px

Page 61: EELE445-14 - Montana State · PDF file · 2015-12-17EELE445-14 Lecture 12. EELE445-14 Lecture 12 Sampling. ... (gating). Natural Sampling ... Figure 3–8 Illustration of waveforms

Pulse Code Modulation, PCM, Advantagecompared with analog systems

• b is the number of bits

• γ is (S/N)basebandRelative to full scale

• PPM is pulse position modulation