+ All Categories
Home > Documents > Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal...

Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal...

Date post: 29-Aug-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
13
1 ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531 Spring 2019 - Khanna Lecture Outline ! Data Converters " Anti-aliasing " ADC " Quantization " Practical DAC ! Noise Shaping 2 Penn ESE 531 Spring 2019 - Khanna ADC Analog to Digital Converter Penn ESE 531 Spring 2019 - Khanna 3 Anti-Aliasing Filter with ADC 4 Penn ESE 531 Spring 2019 - Khanna Aliasing ! If Ω N >Ω s /2, x r (t) an aliased version of x c (t) 5 Penn ESE 531 Spring 2019 - Khanna Anti-Aliasing Filter with ADC 6 Penn ESE 531 Spring 2019 - Khanna 1 -ΩN ΩN X C ( jΩ) X LP ( jΩ) ΩN ΩS/2 X S ( jΩ) 1/T 1 -ΩN ΩN X C ( jΩ) ΩS/2 ΩN ΩS/2 X S ( jΩ) 1/T
Transcript
Page 1: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

1

ESE 531: Digital Signal Processing

Lec 12: February 26, 2019 Data Converters, Noise Shaping

Penn ESE 531 Spring 2019 - Khanna

Lecture Outline

!  Data Converters "  Anti-aliasing "  ADC

"  Quantization

"  Practical DAC

!  Noise Shaping

2 Penn ESE 531 Spring 2019 - Khanna

ADC

Analog to Digital Converter

Penn ESE 531 Spring 2019 - Khanna 3

Anti-Aliasing Filter with ADC

4 Penn ESE 531 Spring 2019 - Khanna

Aliasing

!  If ΩN>Ωs/2, xr(t) an aliased version of xc(t)

5 Penn ESE 531 Spring 2019 - Khanna

Anti-Aliasing Filter with ADC

6 Penn ESE 531 Spring 2019 - Khanna

1

-ΩN ΩN

XC ( jΩ)X LP ( jΩ)

ΩN

ΩS/2

XS ( jΩ)1/T

1

-ΩN ΩN

XC ( jΩ)

ΩS/2

ΩN

ΩS/2

XS ( jΩ)1/T

Page 2: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

2

Non-Ideal Anti-Aliasing Filter

7 Penn ESE 531 Spring 2019 - Khanna

Non-Ideal Anti-Aliasing Filter

8 Penn ESE 531 Spring 2019 - Khanna

Non-Ideal Anti-Aliasing Filter

9 Penn ESE 531 Spring 2019 - Khanna

!  Problem: Hard to implement sharp analog filter !  Consequence: Crop part of the signal and suffer

from noise and interference

Oversampled ADC

10 Penn ESE 531 Spring 2019 - Khanna

Oversampled ADC – Simple filter

11 Penn ESE 531 Spring 2019 - Khanna

Oversampled ADC – M=2

12 Penn ESE 531 Spring 2019 - Khanna

Page 3: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

3

Oversampled ADC

13 Penn ESE 531 Spring 2019 - Khanna

Oversampled ADC – Sharp digital filter/Downsample

14 Penn ESE 531 Spring 2019 - Khanna

Oversampled ADC

15 Penn ESE 531 Spring 2019 - Khanna

Oversampled ADC – Sharp digital filter/Downsample

16 Penn ESE 531 Spring 2019 - Khanna

Oversampled ADC

17 Penn ESE 531 Spring 2019 - Khanna

Sampling and Quantization

18 Penn ESE 531 Spring 2019 - Khanna

FSR

Page 4: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

4

Sampling and Quantization

19 Penn ESE 531 Spring 2019 - Khanna

FSR

Δ =FSR2B

!  For an input signal with Vpp=FSR with B bits

Ideal Quantizer

20 Penn ESE 568 Fall 2018 - Khanna

!  Quantization step Δ

Ideal Quantizer

21 Penn ESE 568 Fall 2018 - Khanna

!  Quantization step Δ !  Quantization error has

sawtooth shape "  Bounded by –Δ/2, +Δ/2

Ideal Quantizer

22 Penn ESE 568 Fall 2018 - Khanna

!  Quantization step Δ !  Quantization error has

sawtooth shape "  Bounded by –Δ/2, +Δ/2

!  Ideally infinite input range and infinite number of quantization levels

Ideal B-bit Quantizer

23 Penn ESE 568 Fall 2018 - Khanna

!  Practical quantizers have a limited input range and a finite set of output codes

!  E.g. a 3-bit quantizer can map onto 23=8 distinct output codes

Ideal B-bit Quantizer

24 Penn ESE 568 Fall 2018 - Khanna

!  Practical quantizers have a limited input range and a finite set of output codes

!  E.g. a 3-bit quantizer can map onto 23=8 distinct output codes

!  Quantization error grows out of bounds beyond code boundaries

!  We define the full scale range (FSR) as the maximum input range that satisfies |eq|≤Δ/2 "  Implies that FSR = 2B· Δ

Page 5: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

5

Effect of Quantization Error on Signal

!  Quantization error is a deterministic function of the signal "  Consequently, the effect of quantization strongly depends on the

signal itself !  Unless, we consider fairly trivial signals, a

deterministic analysis is usually impractical "  More common to look at errors from a statistical perspective  "  "Quantization noise”

!  Two aspects "  How much noise power (variance) does quantization add to our

samples? "  How is this noise distributed in frequency?

25 Penn ESE 531 Spring 2019 - Khanna

Quantization Error

!  Model quantization error as noise:

26 Penn ESE 531 Spring 2019 - Khanna

Quantization Error

!  Model quantization error as noise:

!  In that case:

27 Penn ESE 531 Spring 2019 - Khanna

Quantization Error Statistics

!  Crude assumption: eq(x) has uniform probability density

!  This approximation holds reasonably well in practice when "  Signal spans large number of quantization steps "  Signal is "sufficiently active” "  Quantizer does not overload

28 Penn ESE 531 Spring 2019 - Khanna

Reality Check

29

!  Shown is a histogram of eq in an 8-bit quantizer "  Input sequence consists of 1000 samples with Gaussian distribution,

4σ=FSR

Penn ESE 531 Spring 2019 - Khanna

Reality Check

30

!  Same as before, but now using a sinusoidal input signal with fsig/fs=101/1000

Penn ESE 531 Spring 2019 - Khanna

Page 6: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

6

Reality Check

31

!  Same as before, but now using a sinusoidal input signal with fsig/fs=100/1000

!  What went wrong?

Penn ESE 531 Spring 2019 - Khanna

Analysis

!  Signal repeats every m samples, where m is the smallest integer that satisfies

32

m ⋅fsigfS= integer

m ⋅ 1011000

= integer⇒m=1000

m ⋅ 1001000

= integer⇒m=10

vsig (n) = cos 2π ⋅fsigfS⋅n

⎝⎜

⎠⎟

Penn ESE 531 Spring 2019 - Khanna

Analysis

!  Signal repeats every m samples, where m is the smallest integer that satisfies

!  This means that in the last case eq(n) consists at best of 10 different values, even though we took 1000 samples

33

m ⋅fsigfS= integer

m ⋅ 1011000

= integer⇒m=1000

m ⋅ 1001000

= integer⇒m=10

vsig (n) = cos 2π ⋅fsigfS⋅n

⎝⎜

⎠⎟

Penn ESE 531 Spring 2019 - Khanna

Noise Model for Quantization Error

!  Assumptions: "  Model e[n] as a sample sequence of a stationary random

process "  e[n] is not correlated with x[n] "  e[n] not correlated with e[m] where m≠n (white noise) "  e[n] ~ U[-Δ/2, Δ/2] (uniform pdf)

!  Result: !  Variance is: !  Assumptions work well for signals that change

rapidly, are not clipped, and for small Δ

34 Penn ESE 531 Spring 2019 - Khanna

Quantization Noise

!  Figure 4.57 Example of quantization noise. (a) Unquantized samples of the signal x[n] = 0.99cos(n/10).

35 Penn ESE 531 Spring 2019 - Khanna

Quantization Noise

36 Penn ESE 531 Spring 2019 - Khanna

Page 7: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

7

Quantization Noise

37 Penn ESE 531 Spring 2019 - Khanna

Quantization Noise

38 Penn ESE 531 Spring 2019 - Khanna

Signal-to-Quantization-Noise Ratio

!  For uniform B bits quantizer

39 Penn ESE 531 Spring 2019 - Khanna

Signal-to-Quantization-Noise Ratio

!  For uniform B bits quantizer

40 Penn ESE 531 Spring 2019 - Khanna

FSR2

FSR

Signal-to-Quantization-Noise Ratio

!  Improvement of 6dB with every bit !  The range of the quantization must be adapted to

the rms amplitude of the signal "  Tradeoff between clipping and noise! "  Often use pre-amp "  Sometimes use analog auto gain controller (AGC)

41 Penn ESE 531 Spring 2019 - Khanna

FSR

Signal-to-Quantization-Noise Ratio

42

!  Assuming full-scale sinusoidal input, we have

Penn ESE 531 Spring 2019 - Khanna

Page 8: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

8

Quantization Noise Spectrum

43

!  If the quantization error is "sufficiently random", it also follows that the noise power is uniformly distributed in frequency

!  References "  W. R. Bennett, "Spectra of quantized signals," Bell Syst. Tech. J., pp.

446-72, July 1988. "  B. Widrow, "A study of rough amplitude quantization by means of

Nyquist sampling theory," IRE Trans. Circuit Theory, vol. CT-3, pp. 266-76, 1956.

Penn ESE 531 Spring 2019 - Khanna

Non-Ideal Anti-Aliasing Filter

44 Penn ESE 531 Spring 2019 - Khanna

!  Problem: Hard to implement sharp analog filter !  Consequence: Crop part of the signal and suffer

from noise and interference

Quantization Noise with Oversampling

45 Penn ESE 531 Spring 2019 - Khanna

Quantization Noise with Oversampling

!  Energy of xd[n] equals energy of x[n] "  No filtering of signal!

!  Noise variance is reduced by factor of M

!  For doubling of M we get 3dB improvement, which is the same as 1/2 a bit of accuracy "  With oversampling of 16 with 8bit ADC we get the same

quantization noise as 10bit ADC!

46 Penn ESE 531 Spring 2019 - Khanna

FSR

Practical DAC

Penn ESE 531 Spring 2019 - Khanna

Practical DAC

!  Scaled train of sinc pulses !  Difficult to generate sinc # Too long!

48 Penn ESE 531 Spring 2019 - Khanna

Page 9: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

9

Practical DAC

!  h0(t) is finite length pulse # easy to implement !  For example: zero-order hold

49 Penn ESE 531 Spring 2019 - Khanna

Practical DAC

50 Penn ESE 531 Spring 2019 - Khanna

Practical DAC

51 Penn ESE 531 Spring 2019 - Khanna

Practical DAC

!  Output of the reconstruction filter

52 Penn ESE 531 Spring 2019 - Khanna

Practical DAC

!  Output of the reconstruction filter

53 Penn ESE 531 Spring 2019 - Khanna

Practical DAC

54 Penn ESE 531 Spring 2019 - Khanna

Page 10: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

10

Practical DAC

55 Penn ESE 531 Spring 2019 - Khanna

Practical DAC

56 Penn ESE 531 Spring 2019 - Khanna

Practical DAC with Upsampling

57 Penn ESE 531 Spring 2019 - Khanna

Noise Shaping

Quantization Noise with Oversampling

59 Penn ESE 531 Spring 2019 - Khanna

Quantization Noise with Oversampling

!  Energy of xd[n] equals energy of x[n] "  No filtering of signal!

!  Noise variance is reduced by factor of M

!  For doubling of M we get 3dB improvement, which is the same as 1/2 a bit of accuracy "  With oversampling of 16 with 8bit ADC we get the same

quantization noise as 10bit ADC!

60 Penn ESE 531 Spring 2019 - Khanna

Page 11: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

11

Noise Shaping

!  Idea: "Somehow" build an ADC that has most of its quantization noise at high frequencies

!  Key: Feedback

61 Penn ESE 531 Spring 2019 - Khanna

Noise Shaping Using Feedback

62 Penn ESE 531 Spring 2019 - Khanna

Noise Shaping Using Feedback

63 Penn ESE 531 Spring 2019 - Khanna

Noise Shaping Using Feedback

!  Objective "  Want to make STF unity in the signal frequency band "  Want to make NTF "small" in the signal frequency band

!  If the frequency band of interest is around DC (0...fB) we achieve this by making |A(z)|>>1 at low frequencies "  Means that NTF << 1 "  Means that STF ≅ 1

64 Penn ESE 531 Spring 2019 - Khanna

Discrete Time Integrator

!  "Infinite gain" at DC (ω=0, z=1)

65 Penn ESE 531 Spring 2019 - Khanna

First Order Sigma-Delta Modulator

!  Output is equal to delayed input plus filtered quantization noise

66 Penn ESE 531 Spring 2019 - Khanna

Page 12: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

12

NTF Frequency Domain Analysis

!  "First order noise Shaping" "  Quantization noise is attenuated at low frequencies,

amplified at high frequencies

67 Penn ESE 531 Spring 2019 - Khanna

In-Band Quantization Noise

!  Question: If we had an ideal digital lowpass, what is the achieved SQNR as a function of oversampling ratio?

!  Can integrate shaped quantization noise spectrum up to fB and compare to full-scale signal

68 Penn ESE 531 Spring 2019 - Khanna

In-Band Quantization Noise

!  Assuming a full-scale sinusoidal signal, we have

!  Each 2x increase in M results in 8x SQNR improvement "  Also added ½ bit resolution

69 Penn ESE 531 Spring 2019 - Khanna

Digital Noise Filter

!  Increasing M by 2x, means 3-dB reduction in quantization noise power, and thus 1/2 bit increase in resolution "  "1/2 bit per octave"

!  Is this useful? !  Reality check

"  Want 16-bit ADC, fB=1MHz "  Use oversampled 8-bit ADC with digital lowpass filter "  8-bit increase in resolution necessitates oversampling by 16 octaves

70 Penn ESE 531 Spring 2019 - Khanna

SQNR Improvement

!  Example Revisited "  Want 16-bit ADC, fB=1MHz "  Use oversampled 8-bit ADC, first order noise shaping and (ideal)

digital lowpass filter "  SQNR improvement compared to case without oversampling is

-5.2dB+30log(M)

"  8-bit increase in resolution (48 dB SQNR improvement) would necessitate M≅60 #fS=120MHz

!  Not all that bad!

71 Penn ESE 531 Spring 2019 - Khanna

Higher Order Noise Shaping

!  Lth order noise transfer function

72 Penn ESE 531 Spring 2019 - Khanna

Page 13: Lecture Outline ESE 531: Digital Signal Processingese531/spring2019/... · ESE 531: Digital Signal Processing Lec 12: February 26, 2019 Data Converters, Noise Shaping Penn ESE 531

13

Big Ideas

!  Quantizers "  Introduces quantization noise

!  Data Converters "  Oversampling to reduce interference and quantization

noise # increase ENOB (effective number of bits) "  Practical DACs use practical interpolation and

reconstruction filters with oversampling

!  Noise Shaping "  Use feedback to reduce oversampling factor

73 Penn ESE 531 Spring 2019 - Khanna

Admin

!  HW 5 due Sunday

74 Penn ESE 531 Spring 2019 - Khanna

Admin

!  HW 5 due Sunday !  Midterm after spring break 3/12

"  During class "  Starts at exactly 4:30pm, ends at exactly 5:50pm (80 minutes)

"  Location DRLB A2 "  Old exam posted on previous year’s website

"  Disclaimer: old exams covered more material

"  Covers Lec 1- 13 "  Closed book, one page cheat sheet allowed "  Calculators allowed, no smart phones

75 Penn ESE 531 Spring 2019 - Khanna


Recommended