EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data...

30
EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 1 EE247 Lecture 25 Higher order Σ∆ modulators – Last lecture Cascaded Σ∆ modulators (MASH) – This lecture Forward path multi-order filter Example: 5 th order Σ∆ – Modeling – Noise shaping – Effect of various nonidealities on the Σ∆ performance EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 2 Higher Order Σ∆ Modulators Forward Path Multi-Order Filter Zeros of NTF (poles of H(z)) can be positioned to flatten baseband noise spectrum Main issue Ensuring stability for 3 rd and higher orders () 1 () () () 1 () 1 () Hz Yz Xz Ez Hz Hz = Σ E(z) X(z) Y(z) () Hz Σ Y(z) 1 NTF E( z ) 1 H(z) = =

Transcript of EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data...

Page 1: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 1

EE247Lecture 25

• Higher order Σ∆ modulators– Last lectureà Cascaded Σ∆ modulators

(MASH)– This lecture à Forward path multi-order

filter • Example: 5th order Σ∆

– Modeling– Noise shaping– Effect of various nonidealities on the Σ∆

performance

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 2

Higher Order Σ∆ ModulatorsForward Path Multi-Order Filter

• Zeros of NTF (poles of H(z)) can be positioned to flatten baseband noise spectrum• Main issue à Ensuring stability for 3rd and higher orders

( ) 1( ) ( ) ( )

1 ( ) 1 ( )H z

Y z X z E zH z H z

= ++ +

Σ

E(z)

X(z) Y(z)( )H z Σ

Y( z ) 1NTF

E( z ) 1 H( z )= =

+

Page 2: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 3

Overview

• Building behavioral models in stages

• A 5th-order, 1-Bit Σ∆ modulator– Noise shaping – Complex loop filters– Stability– Voltage scaling– Effect of component nonidealities

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 4

Building Models in Stages• When modeling a complex system like a 5th-order Σ∆ modulator, model

development proceeds in stages– Each stage builds on its predecessor

• Design goal à detect and eliminate problems at the highest possible level of abstraction– Each successive stage consumes progressively more engineering time

• Our Σ∆ model development proceeds in stages:– Stage 0 gets to the starting line: Collect references, talk to veterans– Stage 1 develops a practical system built with ideal subcircuits– Stage 2 models key subcircuit nonidealities and translates the results into real-

world subcircuit performance specifications – Real-world model development includes a critical stage 3: Adding elements to

earlier stages to model significant surprises found in silicon

Page 3: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 5

Stage 1• In stage 1, we’ll study a model for a practical Σ∆

modulator topology built with ideal blocks

• Stage 1 model focus– Signal amplitudes– Stability

• Worst-case inputs• Unstable systems can’t graduate to stage 2

– Quantization noise shaping • Verify performance and functionality for all regions of

operation, find and test worst-case inputs• Determine appropriate performance metrics and build

up (software) infrastructure

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 6

Σ∆ Modulator Filter Design

• Procedure– Establish requirements– Design noise-transfer function, NTF– Determine loop-filter, H– Synthesize filter– Evaluate performance, stability

Ref: R. W. Adams and R. Schreier, “Stability Theory for ∆Σ Modulators,” in Delta-Sigma Data Converters, S. Norsworthy et al. (eds), IEEE Press, 1997, pp. 141-164.

Page 4: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 7

Example: Modulator Specification

• Example: Audio ADC– Dynamic range DR 16 Bits– Signal bandwidth B 20 kHz– Nyquist frequency fN 44.1 kHz– Modulator order L 5– Oversampling ratio M = fs/fN 64– Sampling frequency fs 2.822 MHz

• The order L and oversampling ratio M are chosen based on– SQNR > 120dB (20dB below thermal noise)

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 8

Modulator Block Diagram

( ) ( )STF

( ) 1 ( )( ) 1

NTF( ) 1 ( )

Y z H zX z H zY zE z H z

= =+

= =+

Approach:Design NTF and solve for H(z)

Loop FilterH(z)

Σx(kT) y(kT)Comparator

Page 5: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 9

Noise Transfer Function, NTF(z)% stop-band attenuation Rstop ...

Rstop = 80; [b,a] = cheby2(L, Rstop, 1/M, 'high');

% normalize b = b/b(1); NTF = filt(b, a, 1/fs);

10 4 106-100

-80

-60

-40

-20

0

20

Frequency [Hz]

NT

F [

dB]

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 10

Loop-Filter, H(z)

( ) 1NTF

( ) 1 ( )1

( ) 1

Y zE z H z

H zNFT

= =+

→ = −

104

106-20

0

20

40

60

80

100

Frequency [Hz]

Loop

filte

r H

[dB

]

Page 6: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11

Modulator TopologySimulation Model

Q

I_5I_4I_3I_2I_1

Y

b2b1

a5a4a3a2a1

k5z -1

1-z -1

I5

k4z -1

1-z -1

I4

k3z -1

1-z -1

I3

k2z -1

1-z -1

I2

k1z -1

1-z -1

I1

gDAC Gain Comparator

X

Filter

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 12

Rounded Filter Coefficients

a1=1;a2=1/2;a3=1/4;a4=1/8;a5=1/8;

k1=1;k2=1;k3=1/2;k4=1/4;k5=1/8;

b1=1/1024;b2=1/16-1/64;

g =1;

Ref: Nav Sooch, Don Kerth, Eric Swanson, and Tetsuro Sugimoto, “PhaseEqualization System for a Digital-to-Analog Converter Using Separate Digital and Analog Sections”, U.S. Patent 5061925, 1990, figure 3 and table 1.

Page 7: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 13

5th Order Noise Shaping

• Mostly quantization noise, except at low frequencies

• Let’s zoom into the baseband portion…

0 0.1 0.2 0.3 0.4 0.5-160

-140

-120

-100

-80

-60

-40

-20

0

20

40

Frequency [f/fs]

Out

put S

pect

rum

[dB

WN

]/ In

t. N

oise

[dB

FS

]

Output SpectrumIntegrated Noise (20 averages)

Signal

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 14

5th Order Noise Shaping

0 0.2 0.4 0.6 0.8 1-160

-140

-120

-100

-80

-60

-40

-20

0

20

40

Frequency [f/fN]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [d

BFS

] Output SpectrumIntegrated Noise (20 averages)

sigma_delta_L5.m

Quantization noise -130dBFS at band edge!

Page 8: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 15

5th Order Noise Shaping

sigma_delta_L5.m

0 0.2 0.4 0.6 0.8 1-160

-140

-120

-100

-80

-60

-40

-20

0

20

40

Frequency [f/fN]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [d

BFS

] Output SpectrumIntegrated Noise (20 averages)

Digital decimation filter removes out-of-band quantization noise

• SQNR > 120dB

• Sigma-delta modulators are usually designed for negligible quantization noise

• Other error sources dominate, e.g. thermal noise

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 16

0 0.2 0.4 0.6 0.8 140

60

80

100

120

140

Mag

nitu

de [

dB]

Loop Filter H for 5th Order Modulator

0 0.2 0.4 0.6 0.8 1-100

0

100

200

300

400

Freqency [f/fN]

Pha

se [

degr

ees]

In-Band Noise Shaping

• Lot’s of gain in the pass-band

• Remember that• NTF ~ 1/H•STF=H/(1+H)

0 0.2 0.4 0.6 0.8 1-160

-120

-80

-40

0

40

Frequency [f/fN]

Out

put S

pect

rum

[dB

WN

] / In

t. N

oise

[dB

FS]

Output SpectrumIntegrated Noise (20 averages)

|H(z)| maxima align up with noise minima

Page 9: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 17

Stability Analysis

• Approach: linearize quantizer and use linear system theory!• Effective quantizer gain

• Obtain Geff from simulation

222

yGeff q

=

H(z)Σ Σ

Quantizer Model

QuantizationError e(kT)

x(kT) y(kT)Geffq(kT)

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 18

Modulator Root-Locus

• As Geff increases, poles of STF move from

• poles of H(z) (Geff = 0) to • zeros of H(z) (Geff = 8 )

• Pole-locations inside unit-circle correspond to stable STF and NTF

• Geff > 0.45 for stability

Geff = 0.45

z-plane

0.6 0.7 0.8 0.9 1 1.1

-0.4

-0.3

-0.2

-0.1

0

0.1

0.2

0.3

0.4

Root Locus

Increasing Geff

Unit Circle

Page 10: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 19

Effective Quantizer Gain, Geff

• Large inputs à comparator input grows• Output is fixed (±1)

à Geff dropsà modulator unstable for large

inputs

• Solution:• Limit input amplitude• Detect instability (long sequence

of +1 or -1) and reset integrators• Beware of “worst-case inputs”

(e.g. square waves near high-Q poles – attenuate with anti-aliasing filter)

• Note that signals grow slowly for nearly stable systems à use long simulations

Geff

-40 -35 -30 -25 -20 -15 -10 -5 0 50

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8

2

Input [dBV]

Effe

ctiv

e Q

uant

izer

Gai

n

stable unstable

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 20

Loop Voltages

-40 -35 -30 -25 -20 -15 -10 -5 0

-20

-15

-10

-5

0

5

10

i1i2i3i4i5q

Input [dBV]

Loop

filte

r pea

k vo

ltage

s [

V]

• Internal signal amplitudes are weak function of input level (except near overload)

• Exceed supply voltage

• Solutions:• Reduce Vref ??• Scaling

Page 11: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 21

Loop Voltage Scaling• If we scale k1 by 0.1,

– All state variables and Q scale by 0.1– But since the comparator output is fixed and input is

decreased by 10, G increases 10X

• The change in k1 doesn’t change the shape of the root locus, either– The effective gain for each root position is increased 10X– G > 4 is now required for stability

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 22

5th Order Modulator – ScalingOnly the sign of Q matters,so we can make k1 whatever we wantwithout changing the 1-Bit data at all

Q

I_5I_4I_3I_2I_1

Y

b2b1

a5a4a3a2a1

k5z -1

1-z -1

I5

k4z -1

1-z -1

I4

k3z -1

1-z -1

I3

k2z -1

1-z -1

I2

k1z-1

1-z -1

I1

gDAC Gain Comparator

X

Page 12: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 23

Loop Voltage Scaling (cont.)

• Note that ∫3, ∫4, and ∫5 have substantially larger swings than ∫1 and ∫2

• Just about any filter topology allows node scaling which change internal state variable amplitudes without changing the filter output– The next slide shows an example

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 24

Node Scaling Example:3rd Integrator Output Voltage Scaled by α

sigma_delta_L5_sim.mdl

K3 * α, b1 /α, a3 / α, K4 / α, b2 * α

Q

I_5I_4I_3I_2I_1

Y

b2b1

a5a4a3a2a1

k5z -1

1-z -1

I5

k4z -1

1-z -1

I4

k3z -1

1-z -1

I3

k2z -1

1-z -1

I2

k1z -1

1-z -1

I1

gDAC Gain Comparator

X

Vnew=Vold* α

Page 13: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 25

Voltage Scaling

-40 -35 -30 -25 -20 -15 -10 -5 0-1.5

-1

-0.5

0

0.5

1

1.5

Input [dBV]

Loop

filte

r pe

ak v

olta

ges

[V]

k1=1/10;k2=1;k3=1/4;k4=1/4;k5=1/8;a1= 1; a2=1/2;a3=1/2; a4=1/4;a5=1/4;b1=1/512;b2=1/16-1/64;g =1;

• Integrator output range is fine now• But: maximum input signal limited to -5dB (-7dB with safety) – fix?

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 26

Input Range Scaling

Increasing the DAC levels by g reduces the analog to digital conversion gain:

Increasing vIN & g by the same factor leaves 1-Bit data unchanged

gzgHzH

zVzD

IN

OUT 1)(1

)()()(

≅+

=

Loop FilterH(z)

ΣvINdOUT+1 or -1

Comparator

g

Page 14: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 27

Input Range Scaling

• Scaling the DAC output levels adjusts the modulator input range– If VIN and the DAC outputs are scaled up by the same factor

g, the 1-Bit data is completely unchanged– Of course, increasing the range also increases the

quantization noise … the dynamic range and peak SQNR stay the same!

– If the DAC output levels are increased and the analog full scale is held constant, the stability margin improves … at the expense of reduced SQNR

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 28

Scaled Stage 1 Model

-40 -35 -30 -25 -20 -15 -10 -5 0-1.5

-1

-0.5

0

0.5

1

1.5

Input [dBV]

Loop

filte

r pe

ak v

olta

ges

[V]

g = 2.5;

Page 15: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 29

Scaled Stage 1 Model

-40 -35 -30 -25 -20 -15 -10 -5 0 50

1

2

3

4

5

6

7

8

Input [dBV]

Effe

ctiv

e Q

uant

izer

Gai

n

2dB safety margin for stability

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 30

Summary

• Stage 1 model verified –stable and meets SQNR specification

• Stage 2 issues in 5th order Σ∆ modulator– DC inputs– Tones– Dither– kT/C noise

Page 16: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 31

7

Q

6

I_5

5

I_4

4

I_3

3

I_2

2

I_1

1

Y

b2

b2

b1

b1

a5a5

a4a4

a3a3

a2a2

a1a1

k5z -1

1-z -1

I5

k4z -1

1-z -1

I4

k3z -1

1-z -1

I3

k2z -1

1-z -1

I2

k1z -1

1-z -1

I1

Comparator

1

X

5th Order Modulator

±2.5VStable input range ~ ±1V

1/10 1 1/4 1/4 1/8

1/512 1/16-1/64

1 12 1/2 1/4 1/4

Stable input range~ ±1V

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 32

5th Order Noise Shaping

Input: 0.1V, sinusoid215 point DFT30 averages

0 5 10 15x 105

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [

dBV

]

Output SpectrumIntegrated Noise (30 averages)

Tones at fs/2-Nfin exceed input

Page 17: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 33

In-Band Noise

0 1 2 3 4 5x 104

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [

dBV

]Output SpectrumIntegrated Noise (30 averages)

In-Band quantization noise:–120dB !

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 34

5th Order Noise Shaping

Input: 0.1V, sinusoid215 point DFT30 averages

0 5 10 15x 105

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [

dBV

]

Output SpectrumIntegrated Noise (30 averages)

150dB stopband attenuation neededto attenuate unwanted fs/2-Nfin componentsdown to the in-band quantization noise level

Page 18: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 35

Out-of-Band vs In-Band Signals• A digital (low-pass) filter with suitable coefficient precision can

eliminate out-of-band quantization noise

• No filter can attenuate unwanted in-band components without attenuating the signal

• We’ll spend some time making sure the components at fs/2-Nfinwill not “mix” down to the signal band

• But first, let’s look at the modulator response to small DC inputs (or offset) …

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 36

Σ∆ Tones

5mV DC input(VDACà 2.5V)

Simulation technique:A random 1st sample randomizes the noise from DC input and enables averaging. Otherwise the small tones are not visible.

0 1 2 3 4 5x 104

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [d

BV

]

6kHz12kHz

Page 19: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 37

Limit Cycles• Representing a DC term with a –1/+1 pattern … e.g.

• Spectrum

++−+−+−+−+−→

444444444 3444444444 2144444444 344444444 21

321321321321321

111

0

54321

1 1 1 1 1 1 1 1 1 1 1111

K11

311

211

sss fff

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 38

Limit Cycles• Fundamental

• Tone velocity (useful for debugging)

DCs

DAC

Vf f

V5mV

3MHz2.5V

6kHz

δ =

=

=

s

DC DAC

DC

df f

dV V

df1.2kHz/mV

dV

δ

δ

=

=

Page 20: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 39

Σ∆ Tones

1.47 1.475 1.48 1.485 1.49 1.495 1.5x 106

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [

dBV

]

Output SpectrumIntegrated Noise (30 averages)

6kHz

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 40

Σ∆ Tones

• In-band tones look like signals

• Can be a big problem in some applications– E.g. audio à even tones with power below the quantization noise

floor can be audible

• Tones near fs/2 can be aliased down into the signal band– Since they are often strong, even a small alias can be a big

problem– We will look at mechanisms that alias tones later

• First let’s look at dither as a means to reduce or eliminate in-band tones

Page 21: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 41

Dither• DC inputs can of course be represented by many

possible bit patterns

• Including some that are random but still average to the DC input

• The spectrum of such a sequence has no tones

• How can we get a Σ∆ modulator to produce such “randomized” sequences?

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 42

Dither• The target DR for our audio Σ∆ is 16 Bits, or 98dB• Let’s choose the sampling capacitor such that it limits

the dynamic range:

( )

( )

212

2

2 12

1

9µV

FSFS

n

n FSDR

VDR V Vp

v

v V

= =

→ = =

Page 22: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 43

Dither

0 1 2 3 4 5x 104

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

]

No ditherWith dither

2mV DC input

• Tones disappear• Note: they are not

just buried• How can we tell?

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 44

Dither

1.47 1.475 1.48 1.485 1.49 1.495 1.5x 106

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

]

No ditherWith dither

Dither at an amplitude which buries the in-band tones has virtually no effect on tones near fs/2

Page 23: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 45

kT/C Noise

• So far we’ve looked at noise added to the input of the Σ∆ modulator, which is also the input of the first integrator

• Now let’s add noise also to the input of the second integrator

• Let’s assume a 1/12 sampling capacitor for the 2nd integrator wrt the 1st integrator– This gives 32µV rms noise

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 46

kT/C Noise

• 5mV DC input

• Noise from 2nd integrator • smaller than 1st

integrator noise• shaped

• Why?

0 1 2 3 4 5x 104

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [

dBV

]

No noise1st Integrator2nd Integrator

Page 24: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 47

kT/C Noise

• Noise from 1st integrator is added directly to the input• Noise from 2nd integrator is first-order noise shaped• Noise from subsequent integrators is attenuated even further

à Especially for high oversampling ratios, only the first 1 or 2 integrators add significant thermal noise. This is true also for other imperfections.

7

Q

6

I_5

5

I_4

4

I_3

3

I_2

2

I_1

1

Y

b2

b2

b1

b1

a5a5

a4a4

a3a3

a2a2

a1a1

k5z -1

1-z -1

I5

k4z -1

1-z -1

I4

k3z -1

1-z -1

I3

k2z -1

1-z -1

I2

k1z -1

1-z -1

I1

Comparator

2

vn2

1

X

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 48

Dither

No practical amount of dither eliminates the tones near fs/2

1.47 1.475 1.48 1.485 1.49 1.495 1.5x 106

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [d

BV

]

No noise1st Integrator2nd Integrator

Page 25: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 49

Full-Scale Inputs

• With practical levels of thermal noise added, let’s try a 5kHz sinusoidal input near full-scale

• No distortion is visible in the spectrum– 1-Bit modulators are intrinsically linear– But tones exist at high frequenciesà to the oversampled modulator, a sinusoidal

input looks like two “slowly” alternating DCs …hence giving rise to limit cycles

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 50

0 0.5 1 1.5-150

-100

-50

0

50

Frequency [MHz]

Out

put S

pect

rum

[dB

WN

]

Output SpectrumIntegrated Noise (30 averages)

Full-Scale Inputs

0 10 20 30 40 50-150

-100

-50

0

50

Frequency [kHz]

Out

put S

pect

rum

[dB

WN

]

Page 26: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 51

Vref Interference

• Dither successfully removes in-band tones that would corrupt the signal

• The high-frequency tones in the quantization noise spectrum will be removed by the digital filter following the modulator

• What if some of these strong tones are demodulated to the base-band before digital filtering?

• Why would this happen?

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 52

AM Modulationx2(t)

x1(t) y(t)

( ) ( )( ) ( )

( ) ( ) ( ) ( )[ ]ttttXX

txtx

tXtxtXtx

212121

21

222

111

coscos2

coscos

ωωωω

ωω

−++=×

==

Page 27: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 53

AM Modulation in DAC

DACy(t) v(t)

Vref

( )

( ) ( )

out

ref s

ref

y t D 1

V 2.5V 1mV f /2 square wave

v t y t V

= = ±

= +

= ×

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 54

AM Modulation in DAC

0 fs/2 fs

DOUT spectrum

Vref spectruminterferer

convolution yields sum of red and green,mirrored tones and noise appear in band

Page 28: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 55

Vref Interference

0 1 2 3 4 5x 104

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] 0V1e-006V0.001V

60dB (1 dB/dB)

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 56

Vref Interference

Symmetry of the spectra at fs/2 and DC confirm that this is AM modulation

1.47 1.48 1.49 1.5

x 10 6

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

]

0V1e-006V0.001V

0 1 2 3 4 5x 104

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] 0V1e-006V0.001V

Page 29: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 57

0 1 2 3 4 5x 104

-150

-100

-50

0

50

Frequency [Hz]

Out

put S

pect

rum

[dB

WN

] 0.006V0.012V

Vref Tone Velocity

0.6kHz/mV

Vin = 6mV / 12mV DCVref = 2.5V DC

+ 1mV fs/2 square wave

40dB shift for readability

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 58

Vref Interference

• Simulations are for specified amounts of fs/2 interference in the DAC reference

• Interference demodulates the high-frequency tones

• Since the high frequency tones are strong, a small amount (1µV) of interference suffices to create huge base-band tones

• Stronger interference (1mV) raises the noise floor also

• Amplitude of demodulated tones is proportional to interference

• The velocity of AM demodulated tones is half that of the native tone

• Such differences help debugging of real silicon

• How clean does the reference have to be?

Page 30: EE247 Lecture 25ee247/fa04/fa04/lectures/L25_f04.pdf · EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 11 Modulator Topology Simulation Model Q I_1 I_2 I_3 I_4

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 59

0 10 20 30 40 50-150

-100

-50

0

50

Frequency [kHz]

Out

put S

pect

rum

[dB

WN

] /

Int.

Noi

se [d

BV

]

Output Spectrum (1µV interference on Vref)Integrated Noise (30 averages)

Vref Interference

Tone dominates noise floorw/o thermal noise

EECS 247 Lecture 25: Oversampling Data Converters © 2004 H. K. Page 60

Summary• Our stage 2 model can drive almost all capacitor sizing decisions

– Gain scaling– kT/C noise– Dither

• Dither removes effectively in-band tones– Actual tonality determined by demodulation of limit cycles near fs/2

• Extremely high clock-to-Vref isolation is required for digital audio applications

• Next we will add relevant component imperfections, e.g. – Real capacitors aren’t perfect– Real opamps aren’t ideal

à Effect of component nonlinearities on Σ∆ performance