Analog To Digital Converter Article Index for
Analog
 

Information About

Analog To Digital Converter




Typically, an ADC is an Electronic device that converts a Voltage to a binary Digital number. However, some non-electronic devices, such as Shaft Encoder s, can be considered as ADCs.


RESOLUTION

The Resolution of the converter indicates the number of discrete values it can produce. It is usually expressed in Bit s. For example, an ADC that encodes an analog input to one of 256 discrete values (0..255) has a resolution of eight bits, since
:28 = 256.

Resolution can also be defined electrically, and expressed in Volt s. The voltage resolution of an ADC is equal to its overall voltage measurement range divided by the number of discrete values. Some examples may help:

  • Example 1

  • --- Full Scale measurement range = 0 to 10 volts

  • ---ADC resolution is 12 bits: 212 = 4096 quantization levels

  • ---ADC voltage resolution is: (10-0)/4096 = 0.00244 volts = 2.44 mV


  • Example 2

  • --- Full Scale measurement range = -10 to +10 volts

  • ---ADC resolution is 14 bits: 214 = 16384 quantization levels

  • ---ADC voltage resolution is: (10-(-10))/16384 = 20/16384 = 0.00122 volts = 1.22 mV


In practice, the resolution of the converter is limited by the Signal-to-noise Ratio of the signal in question. If there is too much noise present in the analog input, it will be impossible to accurately resolve beyond a certain number of bits of resolution, the "effective number of bits" (ENOB). While the ADC will produce a result, the result is not accurate, since its lower bits are simply measuring noise. The S/N ratio should be around 6 dB per bit of resolution required.


RESPONSE TYPE



Linear ADCs

Most ADCs are of a type known as Linear , although analog-to-digital conversion is an inherently non-linear process (since the mapping of a continuous space to a discrete space is a non-invertible and therefore non-linear operation). The term ''linear'' as used here means that the range of the input values that map to each output value has a linear relationship with the output value, i.e., that the output value ''k'' is used for the range of input values from

m


to

m


where ''m'' and ''b'' are some constants. Here ''b'' is typically 0 or −0.5. When ''b'' = 0, the ADC is referred to as ''mid-rise'', and when ''b'' = −0.5 it is referred to as ''mid-tread''.


Non-linear ADCs

If the Probability Density Function of a signal being digitized is Uniform , then the signal-to-noise ratio relative to the quantization noise is the best possible. Because of this, it's usual to pass the signal through its CDF before the quantization. This is good because the regions that are more important get quantized with a better resolution. In the dequantization process, the inverse CDF is needed.

This is the same principle behind the Compander s used in some tape-recorders and other communication systems, and is related to Entropy maximization. (Never confuse Compander s with Compressors !)

For example, a voice signal has a Laplacian Distribution . This means that the region around 0 carries more information than the regions with higher amplitudes. Because of this, logarithmic ADCs are very common in Voiced Communication System s to increase the dynamic range of the representable values while retaining fine-granular fidelity in the low-amplitude region.

An 8 bit A-law or the μ-law logarithmic ADC covers the wide Dynamic Range and has a high resolution in the critical low-amplitude region, that would otherwise require a 12 bit linear ADC.


ACCURACY

An ADC has several sources of errors. Quantization error and (assuming the ADC is intended to be linear) non- Linearity is intrinsic to any analog-to-digital conversion. There is also a so-called ''aperture error'' which is due to a clock Jitter and reveals when digitizing a signal (not a single value).

These errors are measured in a unit called the ''LSB'', which is an abbreviation for Least Significant Bit . In the above example of an eight-bit ADC, an error of one LSB is 1/256 of the full signal range, or about 0.4%.


Quantization error


Quantization error is due to the finite resolution of the ADC, and is an unavoidable imperfection in all types of ADC. The Magnitude of the quantization error at the sampling instant is between zero and half of one LSB.

In the general case, the original signal is much larger than one LSB. When this happens, the Quantization Error is not correlated with the signal, and has a Uniform Distribution . Its RMS value is the Standard Deviation of this distribution, given by {1 \over {\sqrt{12}}} \mathrm{LSB} \approx 0.289 \ \mathrm{LSB}. In the eight-bit ADC example, this represents 0.113 % of the full signal range.


Non-linearity


All ADCs suffer from non-linearity errors caused by their physical imperfections, causing their output to deviate from a linear function (or some other function, in the case of a deliberately non-linear ADC) of their input. These errors can sometimes be mitigated by Calibration , or prevented by testing.

Important parameters for linearity are integral non-linearity (INL) and '''differential non-linearity''' (DNL).


Aperture error






This table shows, for example, that it doesn't worth using a precise 24-bit ADC for sound recording if we don't have an ''ultra low jitter'' clock. One should consider taking this phenomenon into account before choosing an ADC.


SAMPLING RATE

The analog signal is Continuous in Time and it is necessary to convert this to a flow of digital values. It is therefore required to define the rate at which new digital values are sampled from the analog signal. The rate of new values is called the ''sampling rate'' or '' Sampling Frequency '' of the converter.

A continuously varying bandlimited signal can be sampled (that is, the signal values at intervals of time T, the sampling time, are measured and stored) and then the original signal can be ''exactly'' reproduced from the discrete-time values by an Interpolation formula. The accuracy is however limited by quantization error. However, this faithful reproduction is only possible if the sampling rate is higher than twice the highest frequency of the signal. This is essentially what is embodied in the Shannon-Nyquist Sampling Theorem .

Since a practical ADC cannot make an instantaneous conversion, the input value must necessarily be held constant during the time that the converter performs a conversion (called the ''conversion time''). An input circuit called a Sample And Hold performs this task—in most cases by using a Capacitor to store the analogue voltage at the input, and using an electronic switch or gate to disconnect the capacitor from the input. Many ADC Integrated Circuit s include the sample and hold subsystem internally.


ALIASING

All ADCs work by sampling their input at discrete intervals of time. Their output is therefore an incomplete picture of the behaviour of the input. There is no way of knowing, by looking at the output, what the input was doing between one sampling instant and the next. If the input is known to be changing slowly compared to the sampling rate, then it can be assumed that the value of the signal between two sample instants was somewhere between the two sampled values. If, however, the input signal is changing fast compared to the sample rate, then this assumption is not valid.

If the digital values produced by the ADC are, at some later stage in the system, converted back to analog values by a Digital To Analog Converter or DAC , it is desirable that the output of the DAC be a faithful representation of the original signal. If the input signal is changing much faster than the sample rate, then this will not be the case, and spurious signals called ''aliases'' will be produced at the output of the DAC. The frequency of the aliased signal is the difference between the signal frequency and the sampling rate. For example, a 2 kHz sinewave being sampled at 1.5 kHz would be reconstructed as a 500 Hz sinewave. This problem is called '' Aliasing ''.

To avoid aliasing, the input to an ADC must be low-pass Filter ed to remove frequencies above half the sampling rate. This filter is called an '' Anti-aliasing '' filter, and is essential for a practical ADC system.

Although aliasing in most systems is unwanted, it should also be noted that it can be exploited to provide simultaneous down-mixing of a band-limited high frequency signal (see Frequency-mixer ).


DITHER

In A to D converters, performance can be improved using Dither . This is a very small amount of random noise ( White Noise ) which is added to the input before conversion. Its amplitude is set to be about half of the least significant bit. Its effect is to cause the state of the LSB to randomly oscillate between 0 and 1 in the presence of very low levels of input, rather than sticking at a fixed value. Rather than the signal simply getting cut off altogether at this low level (which is only being quantized to a resolution of 1 bit), it extends the effective range of signals that the A to D converter can convert, at the expense of a slight increase in noise - effectively the quantization error is diffused across a series of noise values which is far less objectionable than a hard cutoff. The result is an accurate representation of the signal over time. A suitable filter at the output of the system can thus recover this small signal variation.

An audio signal of very low level (w.r.t. the bit depth of the ADC) sampled without dither sounds extremely distorted and unpleasant. Without dither the low level always yields a '1' from the A to D. With dithering, the true level of the audio is still recorded as a series of values over time, rather than a series of separate bits at one instant in time.

A virtually identical process, also called dither or Dithering , is often used when quantizing photographic images to a fewer number of bits per pixel - the image becomes noisier but to the eye looks far more realistic than the quantized image, which otherwise becomes banded. This analogous process may help to visualize the effect of dither on an analogue audio signal that is converted to digital.

Dithering is also used in integrating systems such as Electricity Meter s. Since the values are added together, the dithering produces results that are more exact than the LSB of the analog-to-digital converter.


OVERSAMPLING

Usually, signals are sampled at the minimum rate required, for economy, with the result that the quantization noise introduced is White Noise spread over the whole pass band of the converter. If a signal is sampled at a rate much higher than the Nyquist Frequency and then digitally filtered to limit it to the signal bandwidth, the Signal-to-noise Ratio due to quantization noise will be lower than if the whole available band had been used. With this technique, it is possible to obtain an effective resolution larger than that provided by the converter alone.


ADC STRUCTURES

These are the most common ways of implementing an electronic ADC:






Nonelectronic ADCs usually use some scheme similar to one of the above.




Commercial analog-to-digital converters

These are usually Integrated Circuit s.

Most converters sample with 6 to 24 Bit s of resolution, and produce fewer than 1 megasample per second. Mega- and gigasample converters are available, though (Feb 2002). Megasample converters are required in digital Video Camera s, Video Capture Card s, and TV Tuner Card s to convert full-speed analog video to MPEG digital video files.
Commercial converters usually have ±0.5 to ±1.5 LSB error in their output.

The most expensive part of an integrated circuit is the pins, because they make the package larger, and each pin has to be connected to the integrated circuit's silicon. To save pins, it's common for slow ADCs to send their data one bit at a time over a Serial interface to the computer, with the next bit coming out when a clock signal changes state, say from zero to 5V. This saves quite a few pins on the ADC package, and in many cases, does not make the overall design any more complex. (Even Microprocessor s which use Memory-mapped IO only need a few bits of a port to implement a Serial Bus to an ADC.)

Commercial ADCs often have several inputs that feed the same converter, usually through an analog Multiplexer . Different models of ADC may include Sample And Hold circuits, instrumentation Amplifier s or Differential inputs, where the quantity measured is the difference between two voltages.


APPLICATION TO MUSIC RECORDING


ADCs are integral to much current music reproduction technology, since much music production is done on computers; even when analog recording is used, an ADC is still needed to create the PCM data stream that goes onto a Compact Disc .

The current crop of AD converters utilized in music can sample at rates up to 192 Kilohertz . Many people in the business consider this an overkill and pure marketing hype, due to the Nyquist-Shannon Sampling Theorem . Simply put, they say the analog waveform does not have enough information in it to necessitate such high sampling rates, and typical recording techniques for high-fidelity audio are usually sampled at either 44.1 kHz (the standard for CD) or 48 kHz (more typical for computer use). However, this kind of bandwidth headroom allows the use of cheaper or faster Anti-aliasing filters.

AD converters for musical purposes come in a variety of price ranges - from under $100 to over $10,000 for 2 channels or inputs.


OTHER APPLICATIONS

AD converters are used virtually everywhere where an analog signal has to be processed, stored, or transported in digital form. Fast video ADCs are used, for example, in TV Tuner Card s. Slow on-chip 8, 10, 12, or 16 bit ADCs are common in Microcontroller s. Very fast ADCs are needed in Digital Oscilloscopes , and are crucial for new applications like Software Defined Radio .


SEE ALSO



EXTERNAL LINKS AND BOOK REFERENCES