Digital-to-analog converter
Information about Digital-to-analog converter
8-channel digital-to-analog converter Cirrus Logic CS4382 placed on Sound Blaster X-Fi Fatal1ty
An analog-to-digital converter (ADC) performs the reverse operation.
A DAC usually only deals with pulse-code modulation (PCM)-encoded signals. The job of converting various compressed forms of signals into PCM is left to codecs.
Basic ideal operation
The DAC fundamentally converts finite-precision numbers (usually fixed-point binary numbers) into a physical quantity, usually an electrical voltage. Normally the output voltage is a linear function of the input number. Usually these numbers are updated at uniform sampling intervals and can be thought of as numbers obtained from a sampling process. These numbers are written to the DAC, sometimes along with a clock signal that causes each number to be latched in sequence, at which time the DAC output voltage changes rapidly from the previous value to the value represented by the currently latched number. The effect of this is that the output voltage is held in time at the current value until the next input number is latched resulting in a piecewise constant output. This is equivalently a zero-order hold operation and has an effect on the frequency response of the reconstructed signal.
The fact that practical DACs do not output a sequence of dirac impulses (that, if ideally low-pass filtered, result in the original signal before sampling) but instead output a sequence of piecewise constant values or rectangular pulses, means that there is an inherent effect of the zero-order hold on the effective frequency response of the DAC resulting in a mild roll-off of gain at the higher frequencies (a 3.9224 dB loss at the Nyquist frequency). This zero-order hold effect is a consequence of the hold action of the DAC and is not due to the sample and hold that might precede a conventional analog to digital converter as is often misunderstood.
Applications
Audio
Most modern audio signals are stored in digital form (for example MP3s and CDs) and in order to be heard through speakers they must be converted into an analog signal. DACs are therefore found in CD players, digital music players, and PC sound cards.
Specialist stand-alone DACs can also be found in high-end hi-fi systems. These normally take the digital output of a CD player (or dedicated transport) and convert the signal into a line-level output that can then be fed into a pre-amplifier stage. Some of these can also be made to interface with computers using a USB interface.
Video
Video signals from a digital source, such as a computer, must be converted to analog form if they are to be displayed on an analog monitor. As of 2007, analog inputs are more commonly used than digital, but this may change as flat panel displays with DVI and/or HDMI connections become more widespread. A video DAC is, however, incorporated in any Digital Video Player with analog outputs. The DAC is usually integrated with some memory (RAM), which contains conversion tables for gamma correction, contrast and brightness, to make a device called a RAMDAC.A device that is distantly related to the DAC is the digitally controlled potentiometer, used to control an analog signal digitally.
DAC types
The most common types of electronic DACs are:- the Pulse Width Modulator, the simplest DAC type. A stable current or voltage is switched into a low pass analog filter with a duration determined by the digital input code. This technique is often used for electric motor speed control, and is now becoming common in high-fidelity audio.
- Oversampling DACs such as the Delta-Sigma DAC, use a pulse density conversion technique. The oversampling technique allows for the use of a lower resolution DAC internally. A simple 1-bit DAC is often chosen because the oversampled result is inherently linear. The DAC is driven with a pulse density modulated signal, created with the use of a low-pass filter, step nonlinearity (the actual 1-bit DAC), and negative feedback loop, in a technique called delta-sigma modulation. This results in an effective high-pass filter acting on the quantization (signal processing) noise, thus steering this noise out of the low frequencies of interest into the high frequencies of little interest, which is called noise shaping (very high frequencies because of the oversampling). The quantization noise at these high frequencies are removed or greatly attenuated by use of an analog low-pass filter at the output (sometimes a simple RC low-pass circuit is sufficient). Most very high resolution DACs (greater than 16 bits) are of this type due to its high linearity and low cost. Higher oversampling rates can either relax the specifications of the output low-pass filter and enable further suppression of quantization noise. Speeds of greater than 100 thousand samples per second (for example, 192kHz) and resolutions of 24 bits are attainable with Delta-Sigma DACs. A short comparison with pulse width modulation shows that an 1-bit DAC with a simple first-order integrator would have to run at 3 THz (which is physically unrealizable) to archive 24 meaningful bits of resolution, requiring a higher order low-pass filter in the noise-shaping loop. A single integrator is a low pass filter with a frequency response inversely proportional to frequency and using one such integrator in the noise-shaping loop is a first order delta-sigma modulator. Multiple higher order topologies (such as MASH) are used to achieve higher degrees of noise-shaping with a stable topology.
- the Binary Weighted DAC, which contains one resistor or current source for each bit of the DAC connected to a summing point. These precise voltages or currents sum to the correct output value. This is one of the fastest conversion methods but suffers from poor accuracy because of the high precision required for each individual voltage or current. Such high-precision resistors and current-sources are expensive, so this type of converter is usually limited to 8-bit resolution or less.
- the R-2R Ladder DAC, which is a binary weighted DAC that uses a repeating cascaded structure of resistor values R and 2R. This improves the precision due to the relative ease of producing equal valued matched resistors (or current sources). However, wide converters perform slowly due to increasingly large RC-constants for each added R-2R link.
- the Thermometer coded DAC, which contains an equal resistor or current source segment for each possible value of DAC output. An 8-bit thermometer DAC would have 255 segments, and a 16-bit thermometer DAC would have 65,535 segments. This is perhaps the fastest and highest precision DAC architecture but at the expense of high cost. Conversion speeds of >1 billion samples per second have been reached with this type of DAC.
- the Segmented DAC, which combines the thermometer coded principle for the most significant bits and the binary weighted principle for the least significant bits. In this way, a compromise is obtained between precision (by the use of the thermometer coded principle) and number of resistors or current sources (by the use of the binary weighted principle). The full binary weighted design means 0% segmentation, the full thermometer coded design means 100% segmentation.
- Hybrid DACs, which use a combination of the above techniques in a single converter. Most DAC integrated circuits are of this type due to the difficulty of getting low cost, high speed and high precision in one device.
DAC performance
DACs are at the beginning of the analog signal chain, which makes them very important to system performance. The most important characteristics of these devices are:- Resolution: This is the number of possible output levels the DAC is designed to reproduce. This is usually stated as the number of bits it uses, which is the base two logarithm of the number of levels. For instance a 1 bit DAC is designed to reproduce 2 (
) levels while an 8 bit DAC is designed for 256 (
) levels. Resolution is related to the Effective Number of Bits (ENOB) which is a measurement of the actual resolution attained by the DAC.
- Maximum sampling frequency: This is a measurement of the maximum speed at which the DACs circuitry can operate and still produce the correct output. As stated in the Shannon-Nyquist sampling theorem, a signal must be sampled at over twice the freqency of the desired signal. For instance, to reproduce signals in all the audible spectrum, which includes frequencies of up to 20 kHz, it is necessary to use DACs that operate at over 40 kHz. The CD standard samples audio at 44.1 kHz, thus DACs of this frequency are often used. A common frequency in cheap computer sound cards is 48 kHz - many work at only this frequency, offering the use of other sample rates only through (often poor) internal resampling.
- monotonicity: This refers to the ability of DACs analog output to increase with an increase in digital code or the converse. This characteristic is very important for DACs used as a low frequency signal source or as a digitally programmable trim element.
- THD+N: This is a measurement of the distortion and noise introduced to the signal by the DAC. It is expressed as a percentage of the total power of unwanted harmonic distortion and noise that accompany the desired signal. This is a very important DAC characteristic for dynamic and small signal DAC applications.
- Dynamic range: This is a measurement of the difference between the largest and smallest signals the DAC can reproduce expressed in Decibels. This is usually related to DAC resolution and noise floor.
DAC figures of merit
- Static performance:
- DNL (Differential Non-Linearity) shows how much two adjacent code analog values deviate from the ideal 1LSB step [1]
- INL (Integrated Non-Linearity) shows how much the DAC transfer characteristic deviates from an ideal one. That is, the ideal characteristic is usually a straight line; INL shows how much the actual voltage at a given code value differs from that line, in LSBs (1LSB steps).
- Gain
- Offset
- Noise is ultimately limited by the thermal noise generated by passive components such as resistors. For audio applications and in room temperatures, such noise is usually a little less than 1 μV (microVolt) of white noise. This limits performance to less than 20~21 bits even in 24-bit DACs, and cannot be corrected unless one resorts to extremely low temperatures to create superconductivity: clearly an impractical proposition.
- Frequency domain performance
- SFDR (Spurious Free Dynamic Range) indicates in dB the ratio between the powers of the converted main signal and the greatest undesired spur
- SNDR (Signal to Noise and Distortion Ratio) indicates in dB the ratio between the powers of the converted main signal and the sum of the noise and the generated harmonic spurs
- HDi (i-th Harmonic Distortion) indicates the power of the i-th harmonic of the converted main signal
- THD (Total harmonic distortion) is the sum of the powers of all HDi
- if the maximum DNL error is lessthan 1 LSB,then D/A converter is guaranteed to be monotonic.
- Time domain performance
- Glitch Energy
- Response Uncertainty
- TNL (Time Non-Linearity)
See also
References
Links and books
- Audio Hi-Fi DAC build See a high quality audio DAC being built.
- R-2R Ladder DAC explained with circuit diagrams.
- Resistor/PWM Hybride DAC for hi-fi audio from cheap microcontrollers.
- INL/DNL Measurements for High-Speed ADCs explains how INL and DNL are calculated.
- How to build a Digital to Analog converter A cheap, simple, yet reliable home-made solution!
- Dynamic Evaluation of High-Speed, High Resolution D/A Converters Outlines HD, IMD and NPR measurements, also includes a derivation of quantization noise
- ADC and DAC Glossary
- S. Norsworthy, Richard Schreier, Gabor C. Temes, Delta-Sigma Data Converters. ISBN 0-7803-1045-4.
- Mingliang Liu, Demystifying Switched-Capacitor Circuits. ISBN 0-7506-7907-7.
- Behzad Razavi, Principles of Data Conversion System Design. ISBN 0-7803-1093-4.
- Phillip E. Allen, Douglas R. Holberg, CMOS Analog Circuit Design. ISBN 0-19-511644-5.
Electronics is the study of the flow of charge through various materials and devices such as, semiconductors, resistors, inductors, capacitors, nano-structures, and vacuum tubes. All applications of electronics involve the transmission of power and possibly information.
..... Click the link for more information.
..... Click the link for more information.
An analog or analogue signal is any time continuous signal where some time varying feature of the signal is a representation of some other time varying quantity. It differs from a digital signal in that small fluctuations in the signal are meaningful.
..... Click the link for more information.
..... Click the link for more information.
Electric current is the flow (movement) of electric charge. The SI unit of electric current is the ampere (A), which is equal to a flow of one coulomb of charge per second.
..... Click the link for more information.
Definition
The amount of electric current (measured in amperes) through some surface, e.g...... Click the link for more information.
Voltage (sometimes also called electric potential difference or electrical tension) is the potential similarity of electrical potential between two points of an electrical or electronic circuit, expressed in volts.
..... Click the link for more information.
..... Click the link for more information.
Flavour in particle physics
..... Click the link for more information.
..... Click the link for more information.
analog-to-digital converter (abbreviated ADC, A/D or A to D) is an electronic integrated circuit, which converts continuous signals to discrete digital numbers. The reverse operation is performed by a digital-to-analog converter (DAC).
..... Click the link for more information.
..... Click the link for more information.
Pulse-code modulation (PCM) is a digital representation of an analog signal where the magnitude of the signal is sampled regularly at uniform intervals, then quantized to a series of symbols in a digital (usually binary) code.
..... Click the link for more information.
..... Click the link for more information.
- codec, see Codec (disambiguation).
A codec is a device or program capable of performing encoding and decoding on a digital data stream or signal. The word codec may be a combination of any of the following: 'Compressor-Dec
..... Click the link for more information.
"Fixed point" has many meanings in science, most of them mathematical.
..... Click the link for more information.
- Fixed point (mathematics)
- Fixed point combinator
- Fixed-point arithmetic, a manner of doing arithmetic on computers
- For fixed points in physics, see Renormalization group
..... Click the link for more information.
binary numeral system, or base-2 number system, is a numeral system that represents numeric values using two symbols, usually 0 and 1. More specifically, the usual base-2 system is a positional notation with a radix of 2.
..... Click the link for more information.
..... Click the link for more information.
In mathematics, the term linear function can refer to either of two different but related concepts.
..... Click the link for more information.
Usage in elementary mathematics
In elementary algebra and analytic geometry, the term linear function..... Click the link for more information.
The sampling rate, sample rate, or sampling frequency defines the number of samples per second (or per other unit) taken from a continuous signal to make a discrete signal. For time-domain signals, it can be measured in hertz (Hz).
..... Click the link for more information.
..... Click the link for more information.
In signal processing, sampling is the reduction of a continuous signal to a discrete signal. A common example is the conversion of a sound wave (a continuous-time signal) to a sequence of samples (a discrete-time signal).
..... Click the link for more information.
..... Click the link for more information.
clock signal is a signal used to coordinate the actions of two or more circuits. A clock signal oscillates between a high and a low state, normally with a 50% duty cycle, and is usually in the form of a square wave.
..... Click the link for more information.
..... Click the link for more information.
In electronics, a latch, is a kind of bistable multivibrator, an electronic circuit which has two stable states and thereby can store one bit of information. Today the word is mainly used for simple transparent storage elements, while slightly more advanced
..... Click the link for more information.
..... Click the link for more information.
step function if it can be written as a finite linear combination of indicator functions of half-open intervals. Informally speaking, a step function is a piecewise constant function having only finitely many pieces.
..... Click the link for more information.
..... Click the link for more information.
The zero-order hold (ZOH) is a mathematical model of the practical signal reconstruction done by a conventional digital-to-analog converter (DAC). That is, it describes the effect of converting a discrete-time signal to a continuous-time signal by holding each sample value for one
..... Click the link for more information.
..... Click the link for more information.
Dirac delta or Dirac's delta, often referred to as the unit impulse function and introduced by the British theoretical physicist Paul Dirac, can usually be informally thought of as a function δ(x) that has the value of infinity for x
..... Click the link for more information.
..... Click the link for more information.
The rectangular function (also known as the rectangle function, rect function, unit pulse, or the normalized boxcar function) is defined as:
..... Click the link for more information.
..... Click the link for more information.
The zero-order hold (ZOH) is a mathematical model of the practical signal reconstruction done by a conventional digital-to-analog converter (DAC). That is, it describes the effect of converting a discrete-time signal to a continuous-time signal by holding each sample value for one
..... Click the link for more information.
..... Click the link for more information.
Not to be confused with Nyquist rate.
The Nyquist frequency, named after the Swedish-American engineer Harry Nyquist or the Nyquist–Shannon sampling theorem, is half the sampling frequency of a discrete signal processing system...... Click the link for more information.
In electronics, a sample and hold circuit is used to interface real-world, changing analogue signals to a subsequent system such as an analog-to-digital converter. The purpose of this circuit is to hold the analogue value steady for a short time while the converter or other
..... Click the link for more information.
..... Click the link for more information.
analog-to-digital converter (abbreviated ADC, A/D or A to D) is an electronic integrated circuit, which converts continuous signals to discrete digital numbers. The reverse operation is performed by a digital-to-analog converter (DAC).
..... Click the link for more information.
..... Click the link for more information.
MPEG-1 Audio Layer 3
File extension:
MIME type:
Type of format: Audio MPEG-1 Audio Layer 3, more commonly referred to as MP3, is an audio encoding format.
..... Click the link for more information.
File extension:
.mp3MIME type:
audio/mpegType of format: Audio MPEG-1 Audio Layer 3, more commonly referred to as MP3, is an audio encoding format.
..... Click the link for more information.
Compact Disc
The closely spaced tracks on the readable surface of a Compact Disc cause light to diffract into a full visible colour spectrum
Media type: Optical disc
Encoding: Various
Capacity: Typically up to 700 MB
..... Click the link for more information.
The closely spaced tracks on the readable surface of a Compact Disc cause light to diffract into a full visible colour spectrum
Media type: Optical disc
Encoding: Various
Capacity: Typically up to 700 MB
..... Click the link for more information.
A Compact Disc player (often written as compact disc player), or CD player, is an electronic device which plays audio Compact Discs. CD players are often installed into home stereo systems, car audio systems, and personal computers.
..... Click the link for more information.
..... Click the link for more information.
MP3 player, a digital audio player or "DAP" is a portable, handheld digital music player that stores, organizes and plays MP3 and often other audio files. Most DAPs are powered by rechargeable batteries, some of which are not user replaceable.
..... Click the link for more information.
..... Click the link for more information.
Sound Card
A Sound Blaster Live! Value card, a typical present-day PCI sound card
Connects to:
..... Click the link for more information.
A Sound Blaster Live! Value card, a typical present-day PCI sound card
Connects to:
- Motherboard via one of
..... Click the link for more information.
- High fidelity, or hi-fi, is a term which generally refers to high audio quality.
- High Fidelity (magazine), a U.S.
..... Click the link for more information.
A Compact Disc player (often written as compact disc player), or CD player, is an electronic device which plays audio Compact Discs. CD players are often installed into home stereo systems, car audio systems, and personal computers.
..... Click the link for more information.
..... Click the link for more information.
This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
