Converters

David Johns and Ken Martin University of Toronto ([email protected]) ([email protected])

University of Toronto slide 1 of 57

© D.A. Johns, K. Martin, 1997

Motivation • Popular approach for medium-to-low speed A/D and D/A applications requiring high resolution Easier Analog • reduced matching tolerances • relaxed anti- specs • relaxed filters More Digital Processing • Needs to perform strict anti-aliasing or smoothing filtering • Also removes shaped quantization and decimation (or interpolation)

University of Toronto slide 2 of 57

© D.A. Johns, K. Martin, 1997 Quantization Noise

en() xn() yn() xn() yn()

en()= yn()– xn()

Quantizer Model • Above model is exact — approx made when assumptions made about en() • Often assume en() is white, uniformily distributed number between ±∆ ⁄ 2 •∆ is difference between two quantization levels

University of Toronto slide 3 of 57

© D.A. Johns, K. Martin, 1997

Quantization Noise T ∆

time

assumption reasonable when: — fine quantization levels — signal crosses through many levels between samples — sampling rate not synchronized to signal frequency • Sample lands somewhere in quantization interval leading to random error of ±∆ ⁄ 2

University of Toronto slide 4 of 57

© D.A. Johns, K. Martin, 1997 Quantization Noise

• Quantization noise power shown to be ∆2 ⁄ 12 and is independent of sampling frequency

• If white, then of noise, Se()f , is constant.

S f e() ∆ 1 Height k = ------x f 12 s

f f f s 0 s –------2 2

University of Toronto slide 5 of 57

© D.A. Johns, K. Martin, 1997

Oversampling Advantage • Oversampling occurs when signal of interest is bandlimited to f0 but we sample higher than 2f0 • Define oversampling-rate

OSR = fs ⁄ ()2f0 (1) • After quantizing input signal, pass it through a brickwall with passband up to f0 y ()n 1 un() Hf() y2()n

N-bit quantizer Hf() 1

f f fs –f 0 f s –---- 0 0 ---- 2 2

University of Toronto slide 6 of 57

© D.A. Johns, K. Martin, 1997 Oversampling Advantage • Output quantization noise after filtering is: 2 f 2 f s ⁄ 2 2 0 2 ∆ 1 Pe ===∫ Se()f Hf() df ∫ kx df ------(2) –fs ⁄ 2 –f0 12OSR • Doubling OSR reduces quantation noise power by 3dB (i.e. 0.5 bits/octave) • Assuming peak input is a sinusoidal wave with a peak value of 2N()∆ ⁄ 2 leading to N 2 Ps = ()()∆2 ⁄ ()22 • Can also find peak SNR as:

Ps 3 2N SNR ==10 log----- 10 log---2 + 10 log()OSR (3) max   Pe 2

University of Toronto slide 7 of 57

© D.A. Johns, K. Martin, 1997

Oversampling Advantage Example • A dc signal with 1V is combined with a noise signal uniformily distributed between ± 3 giving 0 dB SNR. — {0.94, –0.52, –0.73, 2.15, 1.91, 1.33, –0.31, 2.33}. • Average of 8 samples results in 0.8875 • Signal adds linearly while noise values add in a square-root fashion — noise filtered out. Example • 1-bit A/D gives 6dB SNR. • To obtain 96dB SNR requires 30 octaves of oversampling ( (96-6)/3 dB/octave ) 30 • If f0 = 25 kHz , fs ==2 × f0 54, 000 GHz !

University of Toronto slide 8 of 57

© D.A. Johns, K. Martin, 1997 Advantage of 1-bit D/A Converters • Oversampling improves SNR but not linearity • To acheive 16-bit linear converter using a 12-bit converter, 12-bit converter must be linear to 16 bits — i.e. integral nonlinearity better than 12⁄ 4 LSB • A 1-bit D/A is inherently linear — 1-bit D/A has only 2 output points — 2 points always lie on a straight line • Can acheive better than 20 bits linearity without trimming (will likely have gain and offset error) • Second-order effects (such as D/A memory or signal- dependent reference voltages) will limit linearity.

University of Toronto slide 9 of 57

© D.A. Johns, K. Martin, 1997

Oversampling with • Place the quantizer in a feedback loop xn() yn() un() Hz() – Quantizer

Delta-Sigma Modulator

en() xn() yn() un() Hz() –

Linear model

University of Toronto slide 10 of 57

© D.A. Johns, K. Martin, 1997 Oversampling with Noise Shaping • Shapes quantization noise away from signal band of interest Signal and Noise Transfer-Functions Yz() Hz() S ()z ≡ ------= ------(4) TF Uz() 1 + Hz() Yz() 1 N ()z ≡ ------= ------(5) TF Ez() 1 + Hz()

Yz()= STF()z Uz()+ NTF()z Ez() (6)

• Choose Hz() to be large over 0 to f0 • Resulting quantization noise near 0 where Hz() large • Signal transfer-function near 1 where Hz() large

University of Toronto slide 11 of 57

© D.A. Johns, K. Martin, 1997

Oversampling with Noise Shaping • Input signal is limited to range of quantizer output when Hz() large • For 1-bit quantizers, input often limited to 1/4 quantizer outputs • Out-of-band can be larger when Hz() small • Stability of modulator can be an issue (particularily for higher-orders of Hz() • Stability defined as when input to quantizer becomes so large that quantization error greater than ±∆ ⁄ 2 — said to “overload the quantizer”

University of Toronto slide 12 of 57

© D.A. Johns, K. Martin, 1997 First-Order Noise Shaping • Choose Hz() to be a discrete-time integrator 1 Hz()= ------(7) z – 1

xn() –1 yn() un() z – Quantizer

• If stable, average input of integrator must be zero • Average value of un() must equal average of y()n

University of Toronto slide 13 of 57

© D.A. Johns, K. Martin, 1997

Example • The output sequence and state values when a dc input, un() , of 1⁄ 3 is applied to a 1’st order modulator with a two-level quantizer of ±1.0 . Initial state for xn() is 0.1. n x(n) x(n + 1) y(n) e(n) 0 –0.1000 –0.5667 –1.0 –0.9000 1 –0.5667 –0.7667 –1.0 –0.4333 2 –0.7667 –0.1000 –1.0 –0.2333 3 –0.1000 –0.5667 –1.0 –0.9000 4 –0.5667 –0.7667 –1.0 –0.4333 5 ………… • Average of y()n is 1⁄ 3 as expected • Periodic quantization noise in this case

University of Toronto slide 14 of 57

© D.A. Johns, K. Martin, 1997 Transfer-Functions Signal and Noise Transfer-Functions

Yz() 1 ⁄ ()z – 1 –1 S ()z ==------=z (8) TF Uz() 11+ ⁄ ()z – 1 Yz() 1 –1 N ()z ==------=() 1 – z (9) TF Ez() 11+ ⁄ ()z – 1 • Noise transfer-function is a discrete-time differentiator (i.e. a highpass filter)

jπff⁄ s –jπf ⁄ fs –2j πff⁄ s e – e –jπf ⁄ fs N ()f == 1– e ------× 2 je× TF 2j (10) πf –jπf ⁄ fs = sin----- × 2je×  fs

University of Toronto slide 15 of 57

© D.A. Johns, K. Martin, 1997

Signal to Noise Ratio Magnitude of noise transfer-function πf N ()f = 2sin----- (11) TF  fs Quantization noise power

2 2 f0 2 2 f0 ∆ 1 πf P ==S ()f N ()f df ------2 sin----- df (12) e ∫–f e TF ∫–f   0 0 12 fs fs

• Assuming f0 << fs (i.e., OSR >> 1 ) 2 2 3 2 2 3 ∆ π 2f0 ∆ π 1 P ≅ ----------- ------= ------------(13) e   12 3 fs 36 OSR

University of Toronto slide 16 of 57

© D.A. Johns, K. Martin, 1997 Max SNR • Assuming peak input is a sinusoidal wave with a peak value of 2N()∆ ⁄ 2 leading to N 2 Ps = ()()∆2 ⁄ ()22 • Can find peak SNR as: P SNR = 10 log-----s max  Pe 3 2N 3 3 = 10 log---2 + 10 log ----- ()OSR 2 2 π (14) or, equivalently,

SNRmax = 6.02N ++1.76–30 5.17 log()OSR (15) • Doubling OSR gives an SNR improvement 9 dB or,

University of Toronto slide 17 of 57

© D.A. Johns, K. Martin, 1997

equivalently, a benefit of 1.5 bits/octave

University of Toronto slide 18 of 57

© D.A. Johns, K. Martin, 1997 SC Implementation Quantizer –1 yn() un() z – Hz() 1-bit D/A Analog Digital

C φ C φ 1 2 Comparator Vin φ2 φ1 Vout

φ , ()φ 2 1 C Latch on φ falling Vref ⁄ 2 2 φ1, ()φ2 φ1,Vφ2 ↔ out high ()φφ1 ,V()2 ↔ out low

University of Toronto slide 19 of 57

© D.A. Johns, K. Martin, 1997

Second-Order Noise Shaping

–1 un() z yn() – –1 – z Quantizer

–1 STF()f = z (16) –1 2 NTF()f = () 1– z (17)

SNRmax = 6.02N ++1.76–50 12.9 log()OSR (18) • Doubling OSR improves SNR by 15 dB (i.e., a benefit of 2.5 bits/octave)

University of Toronto slide 20 of 57

© D.A. Johns, K. Martin, 1997 Noise Transfer-Function Curves Second-order

NTF()f First-order

No noise shaping

f

0 f f 0 fs s ---- 2

• Out-of-band noise increases for high-order modulators • Out-of-band noise peak controlled by poles of noise transfer-function • Can also spread zeros over band-of-interest

University of Toronto slide 21 of 57

© D.A. Johns, K. Martin, 1997

Example

• 90 dB SNR improvement from A/D with f0 = 25 kHz Oversampling with no noise shaping • From before, straight oversampling requires a sampling rate of 54,000 GHz. First-Order Noise Shaping • Lose 5 dB (see (15)), require 95 dB divided by 9 dB/ 10.56 octave, or 10.56 octaves — fs = 2 × 2f0 ≅ 75 MHz Second-Order Noise Shaping • Lose 13 dB, required 103 dB divided by 15 dB/ octave, fs = 5.8 MHz (does not account for reduced input range needed for stability).

University of Toronto slide 22 of 57

© D.A. Johns, K. Martin, 1997 Quantization Noise Power of 1-bit Modulators • If output of 1-bit mod is ±1 , total power of output signal, y()n , is normalized power of 1 watt. • Signal level often limited to well below ±1 level in higher-order modulators to maintain stability • For example, if maximum peak level is ±0.25 , max signal power is 62.5 mW. • Max signal is approx 12 dB below quantization noise (but most noise in different frequency region) • Quantization filter must have capable of handling full power of y()n at input. • Easy for A/D — digital filter • More difficult for D/A — analog filter

University of Toronto slide 23 of 57

© D.A. Johns, K. Martin, 1997

Zeros of NTF are poles of H(z) xn() un() Hz() yn()

– Quantizer

• Write Hz() as Nz() Hz()= ------(19) Dz() • NTF is given by: 1 Dz() NTF()z ==------(20) 1 + Hz() Dz()+ Nz() • If poles of Hz() are well-defined then so are zeros of NTF

University of Toronto slide 24 of 57

© D.A. Johns, K. Martin, 1997 Error-Feedback Structure • Alternate structure to interpolative

un() xn() yn()

Gz()– 1 en()

• Signal transfer-function equals unity while noise transfer-function equals Gz() • First element of Gz() equals 1 for no delay free loops • First-order system — Gz()– 1= –z–1 • More sensitive to coefficient mismatches

University of Toronto slide 25 of 57

© D.A. Johns, K. Martin, 1997

Architecture of Delta-Sigma A/D Converters x ()t x ()t x ()t x ()n x ()n x ()n in c sh dsm lp s Anti- Sample- ∆Σ Digital aliasing and- low-pass Mod OSR filter hold f f filter f s s s 2f 0 Decimation filter Analog Digital

x t () x ()t X ()f c sh c

t f f f 0 s X ()f sh f f f 0 s Time Frequency

University of Toronto slide 26 of 57

© D.A. Johns, K. Martin, 1997 Architecture of Delta-Sigma A/D Converters x ()n = ±1.000000 dsm … X ()ω dsm 3 n 12 4 … ω 2π 2πf0 ⁄ fs x ()n lp X lp()ω n 123 … ω 2π 2πf0 ⁄ fs x ()n s Xs()ω

2 3… n ω 1 π 2π 4π 6π 8π 10π 12π

Time Frequency

University of Toronto slide 27 of 57

© D.A. Johns, K. Martin, 1997

Architecture of Delta-Sigma A/D Converters • Relaxes analog anti-aliasing filter • Strict anti-aliasing done in digital domain • Must also remove quantization noise before downsampling (or aliasing occurs) • Commonly done with a multi-stage system • Linearity of D/A in modulator important — results in overall nonlinearity • Linearity of A/D in modulator unimportant (effects reduced by high gain in feedback of modulator)

University of Toronto slide 28 of 57

© D.A. Johns, K. Martin, 1997 Architecture of Delta-Sigma D/A Converters x ()n x ()n x ()n x ()n x ()t x ()t s s2 lp dsm da c Interpolation ∆Σ 1-bit Analog (low-pass) low-pass OSR Mod 2f D/A 0 f filter f f filter s s s f s Digital Analog OSR ≡ ------2f 0

x ()n x ()n X () s s2 s ω

()2 ()3 n ω 123…()1 π 2π 4π 6π 8π 10π 12π Xs2()ω

ω 2π ()2πf0 ⁄ fs

Time Frequency

University of Toronto slide 29 of 57

© D.A. Johns, K. Martin, 1997

Architecture of Delta-Sigma D/A Converters x ()n lp

X () n lp ω 123… ω ()2πf ⁄ f 2π x ()n 0 s dsm xda()t Xdsm()ω nt, ω 2π ()2πf0 ⁄ fs X ()f da x ()t c f f f 0 s t Xc()f

f f f Time 0 Frequency s

University of Toronto slide 30 of 57

© D.A. Johns, K. Martin, 1997 Architecture of Delta-Sigma D/A Converters • Relaxes analog smoothing filter (many multibit D/A converters are oversampled without noise shaping) • Smoothing filter of first few images done in digital (then often below quantization noise) • Order of lowpass filter should be at least one order higher than that of modulator • Results in noise dropping off (rather than flat) • Analog filter must attenuate quantization noise and should not modulate noise back to low freq — strong motivation to use multibit quantizers

University of Toronto slide 31 of 57

© D.A. Johns, K. Martin, 1997

Multi-Stage Digital Decimation Rate= f Rate= 8f Rate= 2f s 0 0 Lth-order ∆Σ T ()z T ()z modulator sinc IIR

L1+ IIR filter Sinc FIR filter

Rate= f s Rate= 8f Rate= 4f Rate= 2f Rate= 2f 0 0 0 0 Lth-order ∆Σ Tsinc()z H ()z H ()z H ()z modulator 1 2 3

L1+ Halfband FIR filters Sinc FIR filter Sinc compensation FIR filter

removes much of quantization noise • Following filter(s) — anti-aliasing filter and noise

University of Toronto slide 32 of 57

© D.A. Johns, K. Martin, 1997 Sinc Filter

•sincL+1 is a cascade of L+1 averaging filters Averaging filter M – 1 Yz() 1 –i T ()z ==------z (21) avg Uz() M ∑ i = 0

•M is integer ratio of fs ⁄ ()8f0 • It is a linear-phase filter (symmetric coefficients) • If M is power of 2, easy division (shift left) • Can not do all decimation filtering here since not sharp enough cutoff

University of Toronto slide 33 of 57

© D.A. Johns, K. Martin, 1997

Sinc Filter

• Consider xin()n = {} 11,,–111 1 ,,,– ,... applied to M = 4 averaging filters in cascade x ()n x ()n 1 2 x3()n T ()z T ()z T ()z xin()n avg avg avg

sinc3 filter

• x1(n )= {} 0.50.50.00.50.50.0,...,,,,,

• x2(n )= {} 0.38,,,,, 0.38 0.25 0.38 0.38 0.25, . . .

• x3(n )= {} 0.34,,,,, 0.34 0.31 0.34 0.34 0.31, . . . • Converging to sequence of all 1/3 as expected

University of Toronto slide 34 of 57

© D.A. Johns, K. Martin, 1997 Sinc Filter Response • Can rewrite averaging filter in recursive form as

Yz() 1 1 – z–M Tavg()z ==------------(22) Uz() M1 – z–1 and a cascade of L + 1 averaging filters results in L + 1 1 1 – z–M Tsinc()z = ------------(23) ML + 11 – z–1 • Use L + 1 cascade to roll off quantization noise faster than it rises in L ‘th order modulator

University of Toronto slide 35 of 57

© D.A. Johns, K. Martin, 1997

Sinc Filter

•Let ze= jω ωM sinc------jω 2 T ()e = ------(24) avg ω sinc---- 2 where sinc()x ≡ sin()x ⁄ x jω 1 Tavg()e

ω 0 π 2π

University of Toronto slide 36 of 57

© D.A. Johns, K. Martin, 1997 Sinc Implementation

1 L + 1 M L + 1 1 T ()z = ------()1 – z ------(25) sinc –1 L + 1 1 – z M In Out

–M –M f –1 –1 z – z – s z z ----- M (Integrators) (Differentiators)

In Out

f –1 –1 –1 –1 s z ––z z z ----- M f f ⁄ M f ⁄ M s fs s s (Operate at high clock rate) (Operate at low clock rate) • If 2’s complement arithmetic used, wrap-around okay since followed by differentiators

University of Toronto slide 37 of 57

© D.A. Johns, K. Martin, 1997

Higher-Order Modulators • An L’th order modulator improves SNR by 6L+3 dB/octave Interpolative Architecture un()

c c c 4 1 2 f c f 1 3 2 c5

∫ ∫ ∫ ∫ ∫

a a a a 1 2 a3 4 5

• Can spread zeros over freq of interest using resonators with f1 and f2 • Need to worry about stability (more later)

University of Toronto slide 38 of 57

© D.A. Johns, K. Martin, 1997 MASH Architecture • Multi-stAge noise SHaping - MASH • Use multiple lower order modulators and combine outputs to cancel noise of first stages –1 –1 –1 z z un + 1z e n un() 1 () ()– 1() e 1 –1 1-bit D/A z

e yn() e n 2 1() –1 z 2 –1 z 1-bit D/A –1 –1 Analog Digital z e1()n + ()1z– e2()n

University of Toronto slide 39 of 57

© D.A. Johns, K. Martin, 1997

MASH Architecture • Output found to be: –2 –1 2 Yz()= z Uz()– () 1– z E2()z (26) Multibit Output • Output is a 4-level signal though only single-bit D/A’s — if D/A application, then linear 4-level D/A needed — if A/D, slightly more complex decimation A/D Application • Mismatch between analog and digital can cause first- order noise, e1 , to leak through to output • Choose first stage as higher-order (say 2’nd order)

University of Toronto slide 40 of 57

© D.A. Johns, K. Martin, 1997 Bandpass Oversampling Converters

• Choose Hz() to have high gain near freq fc

• NTF shapes quantization noise to be small near fc • OSR is ratio of sampling-rate to twice bandwidth — not related to center frequency z-plane z-plane f ⁄ 4 = 1 MHz fs ⁄ 4 = 1 MHz s —zero —zero

dc dc f∆ 2fo

f ⁄ 2 fs ⁄ 2 s f = 4 MHz fs = 4 MHz s f = 10 kHz 0 f = 10 kHz f ∆ s fs OSR ==------2 0 0 OSR ==------200 Lowpass 2f Bandpass 0 2f∆

University of Toronto slide 41 of 57

© D.A. Johns, K. Martin, 1997

Bandpass Oversampling Converters Hz() –1 un() z yn() – – –1 z Quantizer

• Above Hz() has poles at ±j (which are zeros of NTF) — Hz() is a resonator with infinite gain at fs ⁄ 4 — Hz()= zz⁄ ()2 + 1 • Note one zero at +j and one zero at -j — similar to lowpass first-order modulator — only 9 dB/octave • For 15 dB/octave, need 4’th order BP modulator

University of Toronto slide 42 of 57

© D.A. Johns, K. Martin, 1997 Modulator Stability • Since feedback involved, stability is an issue • Considered stable if quantizer input does not overload quantizer • Non-trivial to analyze due to quantizer • There are rigorous tests to guarantee stability but they are too conservative • For a 1-bit quantizer, heuristic test is: jω NTF(e )≤ 1.5 for 0 ≤≤ωπ (27) • Peak of NTF should be less than 1.5 • Can be made more stable by placing poles of NTF closer to its zeros • Dynamic range suffers since less noise power pushed out-of-band

University of Toronto slide 43 of 57

© D.A. Johns, K. Martin, 1997

Modulator Stability

NTF less stable same area under two curves

more stable

ω 2π 2πf0 ⁄ fs Stability Detection • Might look at input to quantizer • Might look for long strings of 1s or 0s at comp output When instability detected ... • reset integrators • Damp some integrators to force more stable

University of Toronto slide 44 of 57

© D.A. Johns, K. Martin, 1997 Linearity of Two-Level Converters • For high-linearity, levels should NOT be a function of input signal — power supply variation might cause symptom • Also need to be memoryless — switched-capacitor circuits are inherently memoryless if enough settling-time allowed • Above linearity issues also applicable to multi-level • A nonreturn-to-zero is NOT memoryless • Return-to-zero is memoryless if enough settling time • Important for continuous-time D/A

University of Toronto slide 45 of 57

© D.A. Johns, K. Martin, 1997

Linearity of Two-Level Converters Typical Ideal V2

V 1 1 111–1 –1 –1 Binary A + δ A A +Aδ A +Aδ A + δ + δ Area for 1 1 1 0 2 0 1 1 0 2 1 1 symbol Nonreturn-to-zero (NRZ)

Typical Ideal V2

V1

1 111–1 –1 –1 Binary A A A A A A A Area for 1 1 0 0 1 0 1 symbol Return-to-zero (RTZ)

University of Toronto slide 46 of 57

© D.A. Johns, K. Martin, 1997 Idle Tones • 1/3 into 1’st order modulator results in output y()n = {} 11,,–111 1 ,,,– ,, 1 1,... (28)

• Fortunately, tone is out-of-band at fs ⁄ 3

•()13⁄ + 124⁄ = 38⁄ into modulator has tone at fs ⁄ 16 • Similar examples can cause tones in band-of-interest and are not filtered out — say fs ⁄ 256 • Also true for higher-order modulators • Human hearing can detect tones below • Tones might not lie at single frequency but be short term periodic patterns. — could be a tone varying between 900 and 1100 Hz varying in a random-like pattern

University of Toronto slide 47 of 57

© D.A. Johns, K. Martin, 1997

Dithering signal

un() Hz() yn() – Quantizer

• Add pseudo-random signal into modulator to break up idle tones (not just mask them) • If added before quantizer, it is noise shaped and large dither can be added. — A/D: few bit D/A converter needed — D/A: a few bit adder needed • Might affect modulator stability

University of Toronto slide 48 of 57

© D.A. Johns, K. Martin, 1997 Opamp Gain • Finite opamp gain, A , moves pole at z = 1 left by 1 ⁄ A

z-plane —zero NTF

low opamp gain 1 ⁄ A A → ∞ ω 2πf0 ⁄ fs 2π • Flattens out noise at low frequency — only 3 dB/octave for high OSR • Typically, require A > OSR ⁄ π (29)

University of Toronto slide 49 of 57

© D.A. Johns, K. Martin, 1997

Multi-bit Oversampled Converters • A multi-bit DAC has many advantages — more stable - higher peak NTF — higher input range — less quantization noise introduced — less idle tones (perhaps no dithering needed) • Need highly linear multi-bit D/A converters Example • A 4-bit DAC has 18 dB less quantization noise, up to 12 dB higher input range — perhaps 30 dB improved SNR over 1-bit Large Advantage in DAC Application • Less quantization noise — easier analog lowpass filter

University of Toronto slide 50 of 57

© D.A. Johns, K. Martin, 1997 Multi-bit Oversampled Converters C

C b 1 C b 2 C Analog b output 3 C

Eight-line randomizer Eight-line C

Thermometer-type decoder C

C • Randomize thermometer code • Can also “shape” nonlinearities

University of Toronto slide 51 of 57

© D.A. Johns, K. Martin, 1997

Third-Order A/D Design Example • All NTF zeros at z = 1 ()z – 1 3 NTF() z = ------(30) Dz() • Find Dz() such that NTF( ejω )< 1.4 • Use Matlab to find a Butterworth highpass filter with peak gain near 1.4

• If passband edge at fs ⁄ 20 then peak gain = 1.37 ()z – 1 3 NTF() z = ------(31) z3 –2.3741z2 + 1.9294z – 0.5321

University of Toronto slide 52 of 57

© D.A. Johns, K. Martin, 1997 Third-Order A/D Design Example

ωπ= ⁄ 2 z-plane j Three zeros atω = 0 –1

1 ωπ= Butterworth poles –j

• Find Hz() as 1 – NTF() z Hz()= ------(32) NTF() z 0.6259z2 –1.0706z + 0.4679 Hz()= ------(33) ()z – 1 3

University of Toronto slide 53 of 57

© D.A. Johns, K. Martin, 1997

Third-Order A/D Design Example • Choosing a cascade of integrator structure α α α Quantizer 1 V 2 V 3 V 1 2 –1 3 yn( ) z un() – –1 –––1 z z β β β 1 2 3 1-bit D/A

Analog Digital

•αi coefficients included for dynamic-range scaling — initially α2 ==α3 1 — last term, α1 , initially set to β1 so input is stable for a reasonable input range

• Initial βi found by deriving from 1-bit D/A output to V3 and equating to –Hz()

University of Toronto slide 54 of 57

© D.A. Johns, K. Martin, 1997 Third-Order A/D Design Example 2 z ()β1 ++β2 β3 – z()β2 + 2β3 + β3 Hz()= ------(34) ()z – 1 3 • Equating (33) and (34) results in

α1 =,0.0232 α2 =,1.0 α3 = 1.0 (35) β1 =,0.0232 β2 =,0.1348 β3 = 0.4679

University of Toronto slide 55 of 57

© D.A. Johns, K. Martin, 1997

Third-Order A/D Design Example Dynamic Range Scaling • Apply sinusoidal input signal with peak value of 0.7 and frequency π ⁄ 256 rad/sample

• Simulation shows max values at nodes V1,,V2 V3 of 0.1256, 0.5108, and 1.004

• Can scale node V1 by k1 by multiplying α1 and β1 by k1 and dividing α2 by k1

• Can scale node V2 by k2 by multiplying α2 ⁄βk1 and 2 by k2 and dividing α3 by k2

α′1 =,0.1847 α′2 =,0.2459 α′3 = 0.5108 (36) β′1 =,0.1847 β′2 =,0.2639 β′3 = 0.4679

University of Toronto slide 56 of 57

© D.A. Johns, K. Martin, 1997 Third-Order A/D Design Example

+V –VDAC DAC

φ1 φ1 φ1

φ2 φ2 φ2 β′1 β′2 β′3 C = 1 C = 1 A CA = 1 A φ φ φ φ2 α′1 2a φ2 α′2 2a φ2 α′3 1a + + V φ φ φ φ in φ1 1a φ1 1a 1 2a V 3

– φ φ φ – φ2 φ2 2a φ2 1a α′1 2a α′2 α′3

CA = 1 C = 1 CA = 1 A

β′1 φ2 φ β′2 β′ 2 φ2 3

φ1 φ 1 φ1 +V DAC –VDAC

V + ref +V – DAC

–VDAC

V + 3–

φ1

University of Toronto slide 57 of 57

© D.A. Johns, K. Martin, 1997