Low-bit Conversion ■ Preface & ■ Shaping Noise Shaping ■ Mathematical basis ■ Tricks for improving performance ■ Use of noise shaping ■ Application in D/A conversion ■ Application in A/D conversion

&<+(,('HSW+.3RO\8 2

Preface Noise shaping

■ Expensive A/D and D/A converters, labor- ■ Noise shaping can be achieved with sigma- intensive calibration procedures during delta modulation. manufacture, and sophisticated circuit ■ As its name implies, noise shaping shifts design required to achieve the performance noise away from the audio band (0 to 20 and maintain it over the life of the kHz) thus lowering audio band noise. converter.

&<+(,('HSW+.3RO\8 3 &<+(,('HSW+.3RO\8 4 = 0

= 0

&<+(,('HSW+.3RO\8 5 &<+(,('HSW+.3RO\8 6

QRLVHIORRUZLWKQRLVHVKDSLQJ QRLVHIORRUZLWKRXW Mathematical basis of 1st-order QRLVHVKDSLQJ noise shaping

7KHQRLVH LQDXGLR EDQGLV JUHDWO\ UHGXFHG

Audio band IDLVWKHVDPSOLQJ IUHTXHQF\ 7D

&<+(,('HSW+.3RO\8 7 &<+(,('HSW+.3RO\8 8 7KHKLJKHUWKHRYHUVDPSOLQJ ,WGRXEOHVWKHTXDQWL]HG UDWHWKHPRUHWKHTXDQWL]DWLRQ QRLVHSRZHUDQGDWWKH 7KHKLJKHUWKHRYHUVDPSOLQJUDWHWKHPRUHWKH QRLVHFDQEHUHPRYHGIURPWKH VDPHWLPHVKLIWVWKHQRLVH TXDQWL]DWLRQQRLVHFDQEHUHPRYHGIURPWKHDXGLR DXGLREDQG WRKLJKIUHTXHQFLHV EDQG

Audio band

Audio band

&<+(,('HSW+.3RO\8 9 &<+(,('HSW+.3RO\8 10

■ Example: principle of operation of a 1st- ■ The (1-1/z) factor doubles the quantized order noise shaper $VHTXHQFHRI noise power and at the same time shifts the IL[HGRXWSXW noise to high frequencies. 7KHORFDO SDWWHUQLV DYHUDJHRI JHQHUDWHGIRU ■ The higher the rate, the more WKHRXWSXW DFRQVWDQWLQSXW the quantization noise can be removed from HTXDOVWR the audio band. WKHLQSXW

&<+(,('HSW+.3RO\8 11 &<+(,('HSW+.3RO\8 12 7KHKLJKHUWKHRUGHURIWKHQRLVHVKDSHUWKH PRUHWKHTXDQWL]DWLRQQRLVHFDQEHUHPRYHG IURPWKHDXGLREDQG

■ Nth-order noise shaping could employ cascaded sections as in this 3rd-order noise shaper.

Audio band

&<+(,('HSW+.3RO\8 13 &<+(,('HSW+.3RO\8 14

Tricks for improving the performance ■ A successful noise shaping circuit thus ■ The low-level linearity of low-order noise seeks to balance a high oversampling rate shaping circuits can be degraded by 2 with noise shaping order to reduce in-band problems known as idle patterns and noise and shift it away from audible range. thresholding. ■ A zero or very low level input may result in a regular 1010 pattern. If the period of the repetition of such patterns is long enough, they may be audible as a deterministic or oscillatory tone, rather than as noise.

&<+(,('HSW+.3RO\8 15 &<+(,('HSW+.3RO\8 16 7KHWRWDOQRLVHSRZHULV %XWLWFKDQJHVWKHQDWXUH LQFUHDVHGDVDGGLWLRQDO RIWKHTXDQWL]DWLRQHUURU QRLVHLVDGGHG LQWRDZKLWHQRLVHZKLFK PDNHVLWPRUHLQDXGLEOH WRKXPDQ ■ To remove signal , a noise shaping circuit must employ dithering. ■ can be added to the input data so the circuit always operates with a changing signal even when the audio signal is zero or DC.

&<+(,('HSW+.3RO\8 17 &<+(,('HSW+.3RO\8 18

7KHRULJLQDOLQSXWLVDQN+]VLQXVRLGDOVLJQDO ZKLFKJHQHUDWHVDUHJXODUQRLVHSDWWHUQ Use of noise shaping 7KHQRLVHLVDXGLEOHDVWRQHV

■ 7KHUHJXODU Noise shaping is advantageous because a QRLVHSDWWHUQ simple shaper can remove quantization LVUHPRYHG 7KHQRLVH noise from the audio band. ZLWKGLWKHULQJ LVDOPRVW ■ These algorithms are more effective at high ZKLWH DQGLVQ·W 7KHWRWDOQRLVH sampling rates so there is more spectral DXGLEOH SRZHULVLQFUHDVHG space between the highest audio frequency DVGLWKHULQJ and the Nyquist frequency. LQWURGXFHVH[WUD QRLVH

&<+(,('HSW+.3RO\8 19 &<+(,('HSW+.3RO\8 20 ■ Another possible objective of noise shaping ■ With any 1-bit system, because of the noise is reduction in the number of bits required shaping employed, it is difficult to quote a to represent the signal. meaningful figure for signal-to-noise ratio 7KLVLPSOLHVTXDQWL]DWLRQ because the noise level varies with respect to frequency. 1RLVHVKDSLQJLVJRRGIRUTXDQWL]DWLRQ ■ However, in general, a 1-bit system can DQGKHQFHFDQEHXVHGIRUVXFKDSXUSRVH provide an audio-band lower than that encountered in 16- or 18-bit 7KHVRFDOOHGELWVWUHDPWHFKQRORJ\XVHG LQFXUUHQW&'SOD\HUVLVEDVHGRQWKLVWHFKQLTXH conversion. &<+(,('HSW+.3RO\8 21 &<+(,('HSW+.3RO\8 22

Revisit conventional system

Di gital input f =Sampling Freq. Application of Noise Shaping in s A k bit +HUHZHDVVXPHWKH k=No. of bits/sample fs f HIIHFWRIWKH6+f D/A s Digital-to-Analog Conversion Converter FLUFXLWWRWKHVLJQDO VSHFWUXPLVQHJOLJLEOH Transfer A function Analog Filter f A

Analo g output f fs SIGNAL OPERATION SPECTRUM Summary of spectral characteristics of a conventional D/A convertion system

&<+(,('HSW+.3RO\8 24 Amplitude ginal ori Oversampling D/A system sample interpolated sample ■ time Several manufacturers have developed D/A After interpolation,gher hi bit-resolution is conversion methods which employ third- required to represent an interpolated value. order noise shaping. 16-bit 24-bit 11-level 1-bit ■ Their design details differ somewhat, 1X 8X 32X 768X 8x 3rd-order Digital D/A converter Analog oversampling Noise input (PWM+ LPF) output particularly in the noise shaping algorithms digital filter shaping and the low-bit output signal. ■ The MASH system codeveloped by NTT Block diagram of a MASH circuit and Matsushita is a multistage third-order noise shaping method.

&<+(,('HSW+.3RO\8 25 &<+(,('HSW+.3RO\8 26

■ One implementation of this design accepts ■ Digital-to-analog conversion is 16-bit words at a nominal sampling accomplished via PWM (pulse width frequency, and a digital filter stage performs modulation), outputting 1-bit data at a 768- 8-times oversampling and outputs 24-bit times oversampling rate. words. ■ Conversion is then performed by simply ■ Noise shaping circuits output data as an 11- passing the 1-bit stream through a low-pass value signal, at a 32-times oversampling filter. rate.

&<+(,('HSW+.3RO\8 27 &<+(,('HSW+.3RO\8 28  2YHUDOO < ; ] 1 VWVWDJH VWRUGHU16FLUFXLW 8x O/S Noise PWM+  < ; ] 1 filter shaping LPF

■ Generally, if cascaded noise shaping 7ZRVWDJH FRQILJXUDWLRQ circuits exceed second order they can be LVXVHGWR prone to oscillation. DYRLG < <  ] < ■ RVFLOODWLRQ   MASH system avoids this through its QGVWDJH multistage configuration. QGRUGHU 16FLUFXLW  < 1 ] 1

&<+(,('HSW+.3RO\8 29 &<+(,('HSW+.3RO\8 30

8x O/S Noise PWM+ filter shaping LPF

■ The outputs of each stage: ■ The final element in the system is D/A − conversion. Y = X + (1− z 1)N 1 1 ■ The eleven-value signal is converted into = − + − −1 2 Y2 N1 (1 z ) N2 pulses, each with a width corresponding to one value. ■ Resultant transfer function: ■ This can be accomplished by applying the = + − −1 = + − −1 3 Y Y1 (1 z )Y2 X (1 z ) N2 4-bit output of the DSP to a ROM to map 11 amplitude values into 22 time values with constant amplitude.

&<+(,('HSW+.3RO\8 31 &<+(,('HSW+.3RO\8 32 %HFDXVHJUHDWWLPLQJDFFXUDF\FDQEHDFKLHYHG WKURXJKFU\VWDORVFLOODWRUVWKHZLGWKVDUHYHU\ DFFXUDWHDQGKHQFHWKHHUURURIWKHVLJQDOLVORZ

■ Because the signal is represented by a pulse width modulation waveform, conversion is performed by simply passing the signal through a low-pass filter. ■ Because great timing accuracy can be achieved through crystal oscillators, the widths are very accurate, and hence the error of the signal is low.

&<+(,('HSW+.3RO\8 33 &<+(,('HSW+.3RO\8 34

A

f Summary fs R x fs

Digital input fs=Sampling Freq. k=No. of bits/sample A ■ Such a method achieves 20-bit resolution, Transfer R=Oversampling rate function Digital f A oversampling fs but greater resolution is possible. LPF f A R x fs Quantization f A noise added Noise R x fs shaper f A R x fs f D/A R x fs Converter Summary of spectral Transfer characteristics A Analog function of a LPF f A oversampling D/A convertion f system with fs Analog output noise shaping OPERATION SIGNAL SPECTRUM &<+(,('HSW+.3RO\8 35 &<+(,('HSW+.3RO\8 36 Revisit conventional system

Analog input f =Sampling Freq. s Transfer A Application of Noise Shaping in k=No. of bits/sample function for Signal f A Analog LPF Analog-to-digital Conversion f

Transfer A function for Quantization Signal noise added f

A A A/D Converter f f f A s k bit f Digital outputs f f s

OPERATION SIGNAL SPECTRUM Summary of spectral characteristics of a conventional A/D convertion system

&<+(,('HSW+.3RO\8 38

Oversampling A/D system Analog Sigma-delta Digital LPF Modulation LPF Decimation

■ An oversampling A/D converter is simple: ■ The input signal is first passed through a simple analog anti-aliasing filter, and the

g domaingital domain Di Analo input signal is sampled at a very fast rate of

Analog gital Di R to extend the Nyquist frequency. output input Analog Sigma-delta Digital LPF Modulation LPF Decimation ■ The analog low-pass filter at the input is to

1-bit k-bit k-bit remove the frequency components which f =Rxf f =Rxf f s N s N N cannot be removed by the digital filter, but, because the preliminary sampling rate is Oversam pling A/D conversion high, the analog low-pass filter is low order.

&<+(,('HSW+.3RO\8 39 &<+(,('HSW+.3RO\8 40 Analog Sigma-delta Digital LPF Modulation LPF Decimation

■ In any case, noise performance hinges on the oversampling rate and order of noise shaping employed. ■ The higher the order of the sigma-delta modulator we use, the lower the oversampling rate is required to achieve a given S/N performance.

&<+(,('HSW+.3RO\8 41 &<+(,('HSW+.3RO\8 42

,WFDXVHVOHVVKDUP HYHQWKRXJKDOLDVLQJ Analog Sigma-delta Digital LPF Modulation LPF Decimation GRHVRFFXU ■ The decimation process low-pass filters the ■ The decimation filter can be designed so signal and noise in the 1-bit code, that its frequencies of maximum attenuation bandlimiting the 1-bit code prior to sample will coincide with the potentially aliasing rate reduction to remove alias components. frequencies. ■ The decimation process also replaces the 1- ■ A comb filter is an expedient choice bit coding with 16-bit coding, for example, because its design does not require a provides a lower sampling rate, and multiplier. generates a PCM output.

&<+(,('HSW+.3RO\8 43 &<+(,('HSW+.3RO\8 44 ■ In recursive form, the transfer function of a comb filter can be written as 1RPXOWLSOLFDWLRQ −R 1− z LVLQYROYHG $JRRGEDODQFH H (z) = LVUHTXLUHG 1− z −1 XQLW\FRHIILFLHQWV ■ Filtering is generally performed with decimation simultaneously.

&<+(,('HSW+.3RO\8 45 &<+(,('HSW+.3RO\8 46

A

f Summary fs R x fs

fs=Sampling Freq, e.g. 44.1 kHz Analog input ■ k=Number of bits/sample, e.g. 16 Transfer A Advantages of oversampling noise shaping R=Oversampling rate function A Analog LPF f A/D converter over conventional A/D Transfer f function for Quantization A A signal A noise added converters: Sigma-Delta f Modulation f f R x f R x f  s s A It eliminates brick-wall analog filters. 1 bit x fs R A Digital LDF f  R x fs It achieves increased resolution compared to f R x f s R x f A SAR methods by extending the spectrum of the Summary of Subsampling k bit s spectral A f Decimation R x fs quantization error between analog input and characteristics of f a oversampling R x fs fs A digital output far outside the audio band. A/D convertion k bit system with f f noise shaping Digital output s

OPERATION SIGNAL SPECTRUM &<+(,('HSW+.3RO\8 47 &<+(,('HSW+.3RO\8 48