Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: DACs 102: Delta-Sigma DACs

  1. #1
    Member Sponsor [Technical Expert] DonH50's Avatar
    Join Date
    Jun 2010
    Location
    Monument, CO
    Posts
    3,517

    DACs 102: Delta-Sigma DACs

    The previous thread (DACs 101) provided an overview of conventional (Nyquist) DACs. This thread will introduce oversampling and the delta-sigma architecture that dominates the DACs used in consumer audio gear today.

    A few definitions:

    Nyquist = fs/2 = 1/2 the sampling frequency. This is the highest frequency that a sampled system can correctly capture and reproduce. Any higher, and the frequency information is lost. Note that Nyquist applies to the highest frequency in the signal, so an audio system can reproduce a 20 kHz sine wave ( a single tone) but not a 20 kHz square wave (which has many higher harmonics). A system sampling at frequency fs, e.g. 40,000 cycles per second (40 kHz), can acquire up to (but not including) 20 kHz signals.

    Oversampling refers to how much "extra" bandwidth, or sampling rate, we have relative to the Nyquist rate. For the example above, if we sampled at 80 kHz instead of 40 kHz and kept our desired bandwidth the same (20 kHz), we would be oversampling by two.

    SNR = signal-to-noise ratio. The ratio from the signal level, typically at full-scale output, to the total noise level. The noise level is the "sum" (actually, the root-sum-squared, or RSS, value) of all the energy except the signal. While still widely iused, SINAD, signal-to-noise-and distortion, is the parameter of choice now. The problem with SNR is that some people included distrotion terms in the SNR, and some did not, leading to confusion. SINAD includes everything but signal in the "noise" measurement.

    "Order" refers to the mathematical order of a system, or system of equations. Without going deeper, a single-pole filter with 6 dB/octave roll-off is a first-order system. A second-order filter has two poles and rolls off at 12 dB/octave. For equations, y = mx is first order in x; y = x^2 is second-order.

    <Let me know if more should be added here; I don't want to clutter this too much.>

    On to the article...

    Recall that a 16-bit Nyquist DAC running at 44.1 kS/s and delivering a 1 kHz signal provided 98 dB signal-to-noise-and-distortion ratio (SINAD; identical to SNR for this ideal DAC since there is no other distortion) and 128 dB spurious-free dynamic range (SFDR, from signal peak to noise floor). These numbers are determined by quantization noise only (all other noise sources are assumed negligible). Now, if we double the sampling rate, the performance (SINAD and SFDR) stays the same (see Figure 1) although the Nyquist bandwidth (0 to Fs/2) has clearly doubled (note the x-axis now extends to 44.1 kHz instead of 22.05 kHz). This is because quantization noise is (theoretically) related only to resolution, not to sampling rate or signal frequency.

    Name:  DS DAC Fig1..JPG
Views: 2058
Size:  50.5 KB
    Figure 1. Ideal 16-bit DAC, 88.2 kS/s, 1 kHz output.

    This represents an oversampling ratio of two, i.e. twice the rate needed to produce a 22 kHz maximum output signal. This has some interesting properties worth noting.

    1. The SFDR and SINAD are the same as for Nyquist rate (sometimes referred to as “1x oversampling”). However, the quantization noise is now spread over twice the bandwidth.
    2. Since we don’t need the extra bandwidth, we can filter out the noise over 22 kHz, and still provide the same 22 kHz output bandwidth we had before (with the Nyquist-rate DAC).
    3. Since noise energy goes as the square root of bandwidth, we’ll gain sqrt(2) improvement in SNR, or 3 dB (1/2-bit, recalling we gain 6 dB in SNR for each extra bit).
    4. Alternatively, we could reduce the resolution of the DAC by 1/2-bit and keep the same SNR we had before.


    Thinking about that last point, if we oversampled by 4, we’d gain 6 dB in SNR and could reduce the resolution by a full bit, getting away with a 15-bit DAC instead of 16 bits for the same noise floor. We could continue to speed up the DAC, reducing its resolution by one bit each time we quadruple the sampling rate. Unfortunately, we don’t save power as doubling the rate also roughly doubles the power while halving the complexity, so power is a wash.

    What was needed was a new DAC architecture, one that reduces the number of bits required by more efficiently getting rid of the out-of-band noise. Ideally, this new DAC would also work with modern processing trends that favor digital, not analog, circuits (if you can’t beat them, join them). The architecture that has won (for now, anyway) is based upon delta-sigma modulators, a concept originally developed in the 1930’s for analog communications. Figure 2 shows a simplified first-order delta-sigma (DS) modulator block diagram. An initial difference (delta) cell is followed by a summer (sigma) block and the result applied to a 1-bit DAC. The DAC’s output is fed back to the input. The feedback loop effectively passes the signal while suppressing quantization noise.

    Name:  DS DAC Fig2..JPG
Views: 2007
Size:  13.2 KB
    Figure 2. First-order delta-sigma modulator block diagram.

    Figure 3 below shows the linearized signal and noise magnitude transfer functions for various delta-sigma loops. The first-order (1o) curves represent the modulator above. At low frequencies, the signal (solid red line) is unity-gain, while the DAC’s quantization noise (dashed red line) is essentially zero. This means the signal goes through the modulator unchanged, but quantization noise is suppressed (approximately zero) at the output. As frequency rises, the signal falls to zero and the noise increases to unity. Higher-order loops provide steeper curves (as evidenced by the other curves -- solid for signal, dashed for noise) that cross higher in frequency, allowing lower oversampling ratios (or wider signal bandwidth for a given sampling rate). Modern DS DACs may use 4th – 6th order modulators.

    Name:  DS DAC Fig3..JPG
Views: 2143
Size:  55.4 KB
    Figure 3. Delta-sigma modulator signal and noise transfer functions.

    Figure 4 shows the same plot but with amplitude on a log (dB) scale. This better shows the SNR improvement obtained with higher-order loops. While the scale is normalized (and thus does not relate directly to a particular oversampling ratio, OSR), this graph highlights some of the key requirements for high performance. For example, to achieve about 16-bit performance requires a fourth-order modulator operating at ~100x the signal bandwidth (where f = 1 represents the sampling rate -- this is not an exact ratio, but serves to illustrate the point that very high oversampling ratios are needed).

    Name:  DS DAC Fig4..JPG
Views: 2054
Size:  52.6 KB
    Figure 4. Delta-sigma modulator signal and noise transfer functions (dB).

    Note that an ideal summer (integrator) has infinite gain at d.c., falling as frequency rises. Delving briefly into equations, if the forward loop gain is A then it is easy to show that the signal and noise transfer functions for the first-order modulator are:

    Signal = A/(A+1) --> 1 when A is large

    Noise = 1/(A+1) --> 0 when A is large

    This accomplishes the desired transfer function, shaping and concentrating the noise into the higher frequencies while keeping the signal gain unity at lower frequencies. And, this performance is achieved with only a single-bit DAC! As a single bit is inherently matched to itself, theoretically perfect linearity is possible. Adding more bits will increase the SNR by 6 dB for each additional bit, but requires precision matching of levels. For example, using a four-bit DAC adds (3 extra bits * 6 dB/bit) = 18 dB additional SNR, but the levels within the 4-bit DAC must be accurate to 16 bits if we desire a 16-bit result. Trimming and digital compensation are used in commercial multi-bit DS DACs to provide the required precision.

    For given bandwidth and an L-order modulator, the SNR improves by (6L+3) dB for every doubling of the sampling rate, providing (L+0.5) extra bits resolution. A first-order modulator (L = 1) requires an OSR of about 2048 to achieve 16-bit performance (98 dB SNR), or about 90 MS/s. That is very high for an audio system! A 2nd-order modulator requires about 128x OSR (5.65 MS/s), a much more reasonable value though still high. A 4th-order modulator requires only about 16x OSR, 705.6 kS/s. Clearly, increasing the modulator order substantially reduces the required sampling rate. However, high-order loops are intrinsically unstable, requiring compensation loops that reduce their performance from ideal. In practice higher rates are required due to various non-ideal circuit effects, and multi-bit DACs are often used to provide greater performance (after compensation) without exorbitant sampling rates.

    Figure 5 shows the simulated output from a second-order one-bit DS DAC running at 5.65 MS/s with a 1 kHz output. Unlike the linearized curves from the simpler model above, this is for a (model of a) "real" sampled-data system with a 16-bit (ideal) input signal such as your CD player might provide. Note that, while the SFDR is about 100 dB at 20 kHz, the SNR in the audio baseband is only 81 dB. The spurs at very low frequencies are artifacts of the simulation; more points would help reduce those somewhat. However, finite-length digital filters can also introduce low-frequency tones. These arise in part because, without infinite length, some of the digital values repeat periodically, leading to spurs in the frequency domain. However, this simulation clearly shows how a low in-band noise floor can be obtained with very low-resolution DACs by using a delta-sigma modulator to shape the quantization noise into the high-frequency region (out of the audio band). The (one, anyway) trade is a much higher sampling rate.

    Name:  DS DAC Fig5..JPG
Views: 1895
Size:  52.1 KB
    Figure 5. Second-order DS DAC, 1 kHz input, 5.65 MS/s.

    With sampling rates up in the MHz (millions of cycles per second) region, several decades above the audio band, much lower-order (and thus better-behaved) filters can be used at the output of DS DACs (or, input of DS ADCs). Higher-order modulators in particular have lower noise floor through and past the audio band, and though they rise more rapidly at higher frequencies, the filter corner can be moved to well above the audio band. This minimizes filter issues (phase shift, ringing, amplitude variation, etc.) within the audio band.

    I have not yet delved into various error sources and other non-ideal effects, but hopefully this article provides a foundation for understanding how a basic delta-sigma DAC operates and why it is useful.

    For further reading (bibliography):

    1241-2000: IEEE Standard for Terminology and Test Methods for Analog-To-Digital Converters, IEEE Press, 2001.

    J. C. Candy and G. C. Temes, Oversampling Delta-Sigma Data Converters, IEEE Press, 1992.
    Last edited by DonH50; 01-12-2011 at 07:51 PM. Reason: Added definitions, expanded pix descriptions
    Don Herman
    "After silence, that which best expresses the inexpressible, is music" - Aldous Huxley
    Don's Technical Articles on WBF

  2. #2
    [WBF Founding Member] Addicted to Best! JackD201's Avatar
    Join Date
    Apr 2010
    Location
    Manila, Philippines
    Posts
    10,824
    Hi Don,

    Could you teach us how to interpret Figs 3,4 and 5?

    TIA

    Jack

  3. #3
    [WBF Founding Member] Moderator RBFC's Avatar
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    5,107
    Don,

    As you get going in your explanation, you are beginning to take for granted that everyone understands certain terms (which we don't) that are common language for engineers. It would be helpful if you'd back up and explain some terms more thoroughly, even if the overall DAC lesson goes more slowly.

    Thanks,

    Lee
    Lee Aldridge

    I post my own opinions except when posting as a moderator in green.

  4. #4
    Member Sponsor [Technical Expert] DonH50's Avatar
    Join Date
    Jun 2010
    Location
    Monument, CO
    Posts
    3,517
    @Jack -- Sure, but it will probably be tomorrow (work followed by orchestra rehearsal tonight).

    @Lee -- There is a thread here on units and terms ( http://www.whatsbestforum.com/showth...nd-Terms-Oh-My! ), and I assumed people have read the previous threads on sampling and such so have been exposed to them all before. However, that's probably not true in many (if not most) cases, and it's easy for me to blow past things I have been using daily for decades, so point taken. Rather than wading through it all, how about you tell me what you want defined and I'll do it? I am thinking I may just add a post of definitions, or maybe post them at the top or bottom of the article.
    Don Herman
    "After silence, that which best expresses the inexpressible, is music" - Aldous Huxley
    Don's Technical Articles on WBF

  5. #5
    Site Founder And Administrator Steve Williams's Avatar
    Join Date
    Mar 2010
    Location
    Coto De Caza, California on the 13th fairway of the south golf course
    Posts
    26,492
    a post of definitions at the top would be well received I am sure
    Steve Williams
    aka oneobgyn
    There's ALWAYS another Steve Williams BUT there's only "oneobgyn"
    USA Dealer of Center Stage Feet and owner of PitchPerfect Sound (www.pitchperfectsound.com)
    Dealer Lamm Electronics
    My System

  6. #6
    [WBF Founding Member] Moderator RBFC's Avatar
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    5,107
    Quote Originally Posted by DonH50 View Post
    I am thinking I may just add a post of definitions, or maybe post them at the top or bottom of the article.
    This sounds great. I appreciate your efforts, Don!

    Lee
    Lee Aldridge

    I post my own opinions except when posting as a moderator in green.

  7. #7
    [WBF Founding Member] Addicted to Best! JackD201's Avatar
    Join Date
    Apr 2010
    Location
    Manila, Philippines
    Posts
    10,824
    Yes Don, thank you very much.

  8. #8
    [WBF Founding Member] Gregadd's Avatar
    Join Date
    Apr 2010
    Location
    Metro DC
    Posts
    6,305
    Or maybe just a link to the previous thread. We can dour own homework.
    http://www.whatsbestforum.com/showth...?2458-DACs-101
    Be civil to all, sociable to many, familiar with few, friendly to one, and enemy to none.
    Benjamin Franklin

  9. #9
    I can't remember where I originally saw a reference to this sigma-delta tutorial (PDF, 6MB) - may have been in this forum - but I did find it informative and well-explained.

  10. #10
    Member Sponsor [Technical Expert] DonH50's Avatar
    Join Date
    Jun 2010
    Location
    Monument, CO
    Posts
    3,517
    You're saying I'm not? Actually, that has equations and I was told to use as few as possible. More seriously, I think that AES article is copyrighted, so I'm not sure whomever posted it is legal. Good article, though I admit I have not read it all recently (it's a couple of years old).
    Don Herman
    "After silence, that which best expresses the inexpressible, is music" - Aldous Huxley
    Don's Technical Articles on WBF

Page 1 of 2 12 LastLast

Similar Threads

  1. What music do you use to evaluate DACs?
    By amirm in forum The Pro-Audiophile By Bruce Brown
    Replies: 57
    Last Post: 11-07-2012, 08:46 PM
  2. Reflections and DACs
    By DonH50 in forum Audio, Video And Computer Technology Expert Forum
    Replies: 47
    Last Post: 11-28-2011, 04:51 PM
  3. Any experince with Audio Note DACs?
    By ulf in forum Digital Audio Forum: DAC, Transports, Digital Processing
    Replies: 27
    Last Post: 08-29-2011, 05:10 PM
  4. DACs 101
    By DonH50 in forum Audio, Video And Computer Technology Expert Forum
    Replies: 5
    Last Post: 01-10-2011, 12:09 PM
  5. Bel Canto DACs
    By Nicholas Bedworth in forum Digital Audio Forum: DAC, Transports, Digital Processing
    Replies: 20
    Last Post: 12-19-2010, 11:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •