In electronics, an analogtodigital converter (ADC, A/D, or AtoD) is a system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a digital signal. An ADC may also provide an isolated measurement such as an electronic device that converts an input analog voltage or current to a digital number representing the magnitude of the voltage or current. Typically the digital output is a two's complement binary number that is proportional to the input, but there are other possibilities.
There are several ADC architectures. Due to the complexity and the need for precisely matched components, all but the most specialized ADCs are implemented as integrated circuits (ICs).
A digitaltoanalog converter (DAC) performs the reverse function; it converts a digital signal into an analog signal.
YouTube Encyclopedic

1/5Views:98 535234 4936 44160 65833 974

Analog to Digital Conversion Basics

Analog to Digital Converters (ADC) Part 1 www.embeddedteacher.com

Fundamentals of Audio Production: Analog to Digital Conversion

Analog to Digital converter  Counter type

ANALOG TO DIGITAL CONVERTER(हिन्दी )!LEARN AND GROW
Transcription
>> Good day. This is Jim Pytel from Columbia Gorge Community College. This is digital electronics. This lecture is entitled Analog to Digital Conversion Basics. If you remember from our previous lecture on digital signal processing basics, I introduced this block diagram right here. And what we're going to kind of talk about in this brief lecture is this section of the block diagram. And in actuality, we actually will kind of discuss a little bit of digital to analog conversion also. What this block diagram is, if we refresh our memories here, a filter that's going to remove unwanted input frequencies. So why are we're going to go ahead and input noise if we don't want it? So we just go ahead and get rid of it. More potentially, some high frequency components that we don't need. [Inaudible] sample, okay. What is this sample and hold portion in the block diagram [inaudible]? Well, basically a sample. It converts the analog signal into a series of impulses representing the amplitude of the signal at a given instant. So basically, it's just looking at it every second and every halfsecond, whatever the frequency you're looking at, and it's saying okay, at that time is it such and such value. This sampling rate occurs if its rate sufficient enough to find the input waveform. So remember, Nyquist Sampling Theorem discussion, you got to go ahead at a very minimum, sample it at twice the frequency of the highest frequency you wish to capture, okay. What does the hold do? Well, for it to quantize the data, it should probably help out if it wasn't changing, okay. So you sample it and in the process of quantization, just hold it at that constant level. Don't vary it. That's all the hold does. And what is quantization? Basically, you're assigning the binary code to that sample data, that sampled and held data. And one of the concepts that is not often mentioned in some of these introduction to analogical digital conversion is this concept of range and granular. Your digital multimeter is a classic example of range. There's an expected maximum. Think about a milliamp meter versus and ammeter versus and ammeter that's rated for 40 amps or 160 amps, there's certain ranges, you know. If you're using your ammeter on 160amp range, you're trying to measure for milliamps, it's not going to do a good job. The same thing goes for something that you're going to go ahead and let's say you've got a 20 milliamps maximum range and you're trying to measure 160 amps. You're darn right that ammeter is not going to work out very well, because it's probably going to start on fire. This concept of range, you have to have previously defined the range with which you're going to quantize. For example, you know, a voltage waveform is going from zero volts to 160, back down to zero, down to, excuse me, 170, back down to negative 170, so on and so forth. That's your range. That's your expected range. Let's say you maximum out at 170 volts. What I would do is I would assign the quantized value, the maximum quantized value. Let's say I'm using a fourbit system, quadruple one. I would probably assign the maximum for that range, 170 being equal to four ones. Does that make sense? Whereas if I was to use this in a different application, let's say I'm going down to 100 millivolts is my expected maximum. If I was to sample this 100millivolt waveform maximum, I would assign my range where my quantized value quadruple one is also equal to four ones and the maximum of my range. You can't use quantization for You can't use the same transfer function. You'll learn about transfer functions in industrial controls. But what is a transfer function in its basic form? It's a sensor, you know. It's a certain amount. Let's say you're trying to take the analog data of pressure for a certain amount of deflection of that pressure plate. There is a corresponding voltage or current signal that if you've got a maximum of 200 psi versus a maximum of 50 psi, that range might be different to set up a proper DSP. You need to be aware of the ranges of those quantized values. Does that make sense? Granularly, granularly is potentially a little bit more difficult to discuss without the use of diagrams, in which I'm going to go to in a second here. But granularity, think about it. The more granular a beach is, probably there it is easier to walk on. For example, a beach with a bunch of boulders on it is not the smoothest type of beach versus a beach with a bunch or rocks on it versus a beach with a bunch of pebbles on it versus a beach with a bunch sand on it. That's where people like to hang out because it's nice and smooth. Think about that in term of bits. If you're defining, for example, a pressure transducer, you know, it transduces to create a range versus a pressure switch. What's a pressure switch? On or off. On or off. There is no value it's trying to produce, whereas a transducer is trying to produce a value, okay. Pressure transducer is saying okay it's 160 psi and now it's 170 psi. Now it's dropped down to 150 psi, okay. So the granularity, with which I try to represent that analog data, it's directly correspondent to the number of bits. The more bits you've got, the smaller you can break those chunks into, the smaller the sand on your beach is, the smoother it is. So let's go ahead and look at some examples here of basic analog to digital conversion, okay. We're going to go into some specifics about analog to digital conversion methods. But right now, we're just keeping at the basics, okay. So here's a twobit quantization of an analog waveform. So our analog waveform is in the upper lefthand corner here and it's smoothly varying over time. And what we've done here, in the upper righthand corner, is we've sampled it at a certain interval. We've taken a zero sample right there, one sample, two. We're assigning the amplitude at that instant. And we're holding that and bringing it down to our quantization. So this is a twobit quantization. And if you could think about it, here was what we're doing is we are putting it in four levels. If there is a value that occurs above here but below here, assign it the value zero, zero. If there's a value that is above this line but below this line, assign it the value zero, one, so on and so forth with one zero and one one. And as we can see, our twobit quantization only has four levels. And it gives us a very poor rendition of our original analog waveform. So how are we going to do that? Okay, what we're going to do is we're going to increase the granularity. How are we going to do that? Increase the number of bits. What we'll do is do a threebit quantization. And now we're worried about range for this. It's the same analog signal. Let's say, for example, this is maxing out at like eight volts. Eight volt maximum is represented by one, one, whereas this could also be an 80 volt maximum, where 80 volts is represented as one, one. It's still kind of the same shape of waveform and it's still doing the same sampling and it's still doing the same quantization, but realize one, one represents 80 volts, whereas our previous example, one, one represents eight volts. So that concept of range in granularity when you're setting up these things. Your expected values know what to expect. I mean, the things that I harp about, basic electronic stuff. Every single time you guys grabbed a DMM, what was the mantra that I had you guys repeat? Function leads range. What do you expect? So let's move on to a threebit quantization of the same waveform. Upper left. Same waveform. Upper right. It's the same sampling. At those particular instance, it's looked at. What is the value at that instant, okay? Now things get different here. In this here, in this lower left hand here, what I've defined is eight different levels. Why is it eight different levels? Because now I'm using three bits. See how that granularity is allowing us to represent the waveform in a slightly more accurate representation compared to our previous one. A threebit quantization leads to a lot more accurate representation of our original waveform. We can kind of see it now. It kind of looks the same. Previously, we were missing even that dip right there. Now we can kind if see that. It's a little bit more accurate representation. What have we also gained with this? We've gained some complexity and some storage there, you know, whereas previously, we were storing at the two bits. Now we got three bits. You know, go ahead and extend this out to four bits. What are we going to do here is we are just going to go ahead and increase the levels of granularity. We're adding another bit. Now I can define between incredibly, incredibly small levels here and get this quantized value. The sampling and holding is the same thing, except the fact that I've quantized it into 16 different levels now. And look how closely, how much more accurate our digitized version of this analog waveform looks like it, okay. It looks a lot more accurate. And basically, the summation of this whole thing is, is here. Here's our original waveform. On the left, we've got our twobit quantized digital representation, our threebit, and our fourbit. And you can clearly see the fourbit is a much better representation of our original analog waveform. If we were to extend this out to five bits, six bits, 32 bits I mean, just think about what I drew right here. That's a digitized representation of my analog hand movements on this tablet. So the more bits you get, the more closer it looks to that original analog waveform. Additionally, the more times I sample this, or say for example I'm increasing the frequency at which I sample this thing, the better and more accurate the representation of this waveform will be up to a certain limit here. Again, that is the basics of analog to digital conversion. We'll go into some of the methods. Like I said, there is a little bit of digital to analog conversion here. All you got to do it just kind of point the arrows the other direction. So let's say I have stored this waveform, this fourbit waveform, in digital. All I would do is go ahead and put it into some sort of smoothing filter and potentially come out with something, as opposed to that stair step, have a very smooth looking analog signal coming out, which I could Let's say, for example, it's music or human speech, I could feed to a speaker and it would produce a reasonably accurate representation of that human speech or music. So this concludes the portion of the analog to digital conversion basics lecture. We're going to go ahead and move on to some specific methods for analog to digital conversion in the next lecture.
Contents
Explanation
An ADC converts a continuoustime and continuousamplitude analog signal to a discretetime and discreteamplitude digital signal. The conversion involves quantization of the input, so it necessarily introduces a small amount of error or noise. Furthermore, instead of continuously performing the conversion, an ADC does the conversion periodically, sampling the input, limiting the allowable bandwidth of the input signal.
The performance of an ADC is primarily characterized by its bandwidth and signaltonoise ratio (SNR). The bandwidth of an ADC is characterized primarily by its sampling rate. The SNR of an ADC is influenced by many factors, including the resolution, linearity and accuracy (how well the quantization levels match the true analog signal), aliasing and jitter. The SNR of an ADC is often summarized in terms of its effective number of bits (ENOB), the number of bits of each measure it returns that are on average not noise. An ideal ADC has an ENOB equal to its resolution. ADCs are chosen to match the bandwidth and required SNR of the signal to be digitized. If an ADC operates at a sampling rate greater than twice the bandwidth of the signal, then per the Nyquist–Shannon sampling theorem, perfect reconstruction is possible. The presence of quantization error limits the SNR of even an ideal ADC. However, if the SNR of the ADC exceeds that of the input signal, its effects may be neglected resulting in an essentially perfect digital representation of the analog input signal.
Resolution
The resolution of the converter indicates the number of discrete values it can produce over the range of analog values. The resolution determines the magnitude of the quantization error and therefore determines the maximum possible average signaltonoise ratio for an ideal ADC without the use of oversampling. The values are usually stored electronically in binary form, so the resolution is usually expressed as the audio bit depth. In consequence, the number of discrete values available is assumed to be a power of two. For example, an ADC with a resolution of 8 bits can encode an analog input to one in 256 different levels (2^{8} = 256). The values can represent the ranges from 0 to 255 (i.e. unsigned integer) or from −128 to 127 (i.e. signed integer), depending on the application.
Resolution can also be defined electrically, and expressed in volts. The change in voltage required to guarantee a change in the output code level is called the least significant bit (LSB) voltage. The resolution Q of the ADC is equal to the LSB voltage. The voltage resolution of an ADC is equal to its overall voltage measurement range divided by the number of intervals:
where M is the ADC's resolution in bits and E_{FSR} is the full scale voltage range (also called 'span'). E_{FSR} is given by
where V_{RefHi} and V_{RefLow} are the upper and lower extremes, respectively, of the voltages that can be coded.
Normally, the number of voltage intervals is given by
where M is the ADC's resolution in bits.^{[1]}
That is, one voltage interval is assigned in between two consecutive code levels.
Example:
 Coding scheme as in figure 1
 Full scale measurement range = 0 to 1 volt
 ADC resolution is 3 bits: 2^{3} = 8 quantization levels (codes)
 ADC voltage resolution, Q = 1 V / 8 = 0.125 V.
In practice, the useful resolution of a converter is limited by the best signaltonoise ratio (SNR) that can be achieved for a digitized signal. An ADC can resolve a signal to only a certain number of bits of resolution, called the effective number of bits (ENOB). One effective bit of resolution changes the signaltonoise ratio of the digitized signal by 6 dB, if the resolution is limited by the ADC. If a preamplifier has been used prior to A/D conversion, the noise introduced by the amplifier can be an important contributing factor towards the overall SNR.
Quantization error
Quantization error is the noise introduced by quantization in an ideal ADC. It is a rounding error between the analog input voltage to the ADC and the output digitized value. The noise is nonlinear and signaldependent. In an ideal analogtodigital converter, where the quantization error is uniformly distributed between −1/2 LSB and +1/2 LSB, and the signal has a uniform distribution covering all quantization levels, the Signaltoquantizationnoise ratio (SQNR) can be calculated from
 ^{[2]}
Where Q is the number of quantization bits. For example, a 16bit ADC has a maximum signaltonoise ratio of 6.02 × 16 = 96.3 dB, and therefore the quantization error is 96.3 dB below the maximum level. Quantization error is distributed from DC to the Nyquist frequency, consequently if part of the ADC's bandwidth is not used (as in oversampling), some of the quantization error will fall out of band, effectively improving the SQNR. In an oversampled system, noise shaping can be used to further increase SQNR by forcing more quantization error out of the band.
Dither
In ADCs, performance can usually be improved using dither. This is a very small amount of random noise (white noise), which is added to the input before conversion. 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 ADC 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 (with respect to the bit depth of the ADC) sampled without dither sounds extremely distorted and unpleasant. Without dither the low level may cause the least significant bit to "stick" at 0 or 1. With dithering, the true level of the audio may be calculated by averaging the actual quantized sample with a series of other samples [the dither] that are recorded over 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 meters. Since the values are added together, the dithering produces results that are more exact than the LSB of the analogtodigital converter. Note that dither can only increase the resolution of a sampler, it cannot improve the linearity, and thus accuracy does not necessarily improve.
Accuracy
An ADC has several sources of errors. Quantization error and (assuming the ADC is intended to be linear) nonlinearity are intrinsic to any analogtodigital conversion. These errors are measured in a unit called the least significant bit (LSB). In the above example of an eightbit ADC, an error of one LSB is 1/256 of the full signal range, or about 0.4%.
Nonlinearity
All ADCs suffer from nonlinearity 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 nonlinear ADC) of their input. These errors can sometimes be mitigated by calibration, or prevented by testing. Important parameters for linearity are integral nonlinearity (INL) and differential nonlinearity (DNL). These nonlinearities reduce the dynamic range of the signals that can be digitized by the ADC, also reducing the effective resolution of the ADC.
Jitter
When digitizing a sine wave , the use of a nonideal sampling clock will result in some uncertainty in when samples are recorded. Provided that the actual sampling time uncertainty due to the clock jitter is , the error caused by this phenomenon can be estimated as . This will result in additional recorded noise that will reduce the effective number of bits (ENOB) below that predicted by quantization error alone. The error is zero for DC, small at low frequencies, but significant when high frequencies have high amplitudes. This effect can be ignored if it is drowned out by the quantizing error. Jitter requirements can be calculated using the following formula: , where q is the number of ADC bits.
Output size (bits) 
Signal Frequency  

1 Hz  1 kHz  10 kHz  1 MHz  10 MHz  100 MHz  1 GHz  
8  1,243 µs  1.24 µs  124 ns  1.24 ns  124 ps  12.4 ps  1.24 ps 
10  311 µs  311 ns  31.1 ns  311 ps  31.1 ps  3.11 ps  0.31 ps 
12  77.7 µs  77.7 ns  7.77 ns  77.7 ps  7.77 ps  0.78 ps  0.08 ps ("77.7fs") 
14  19.4 µs  19.4 ns  1.94 ns  19.4 ps  1.94 ps  0.19 ps  0.02 ps ("19.4fs") 
16  4.86 µs  4.86 ns  486 ps  4.86 ps  0.49 ps  0.05 ps ("48.5 fs")  – 
18  1.21 µs  1.21 ns  121 ps  1.21 ps  0.12 ps  –  – 
20  304 ns  304 ps  30.4 ps  0.30 ps ("303.56 fs")  0.03 ps ("30.3 fs")  –  – 
24  18.9 ns  18.9 ps  1.89 ps  0.019 ps ("18.9 fs")    –  – 
Clock jitter is caused by phase noise.^{[3]}^{[4]} The resolution of ADCs with a digitization bandwidth between 1 MHz and 1 GHz is limited by jitter.^{[5]} When sampling audio signals at 44.1 kHz, the antialiasing filter should have eliminated all frequencies above 22 kHz. The input frequency (in this case, < 22 kHz), not the ADC clock frequency, is the determining factor with respect to jitter performance.^{[6]}
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 discretetime values by an interpolation formula. The accuracy is 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 ShannonNyquist 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 analog voltage at the input, and using an electronic switch or gate to disconnect the capacitor from the input. Many ADC integrated circuits include the sample and hold subsystem internally.
Aliasing
An ADC works by sampling the value of the input at discrete intervals in time. Provided that the input is sampled above the Nyquist rate, defined as twice the highest frequency of interest, then all frequencies in the signal can be reconstructed. If frequencies above half the Nyquist rate are sampled, they are incorrectly detected as lower frequencies, a process referred to as aliasing. Aliasing occurs because instantaneously sampling a function at two or fewer times per cycle results in missed cycles, and therefore the appearance of an incorrectly lower frequency. For example, a 2 kHz sine wave being sampled at 1.5 kHz would be reconstructed as a 500 Hz sine wave.
To avoid aliasing, the input to an ADC must be lowpass filtered to remove frequencies above half the sampling rate. This filter is called an antialiasing filter, and is essential for a practical ADC system that is applied to analog signals with higher frequency content. In applications where protection against aliasing is essential, oversampling may be used to greatly reduce or even eliminate it. Although aliasing in most systems is unwanted, it should also be noted that it can be exploited to provide simultaneous downmixing of a bandlimited high frequency signal (see undersampling and frequency mixer). The alias is effectively the lower heterodyne of the signal frequency and sampling frequency.^{[7]}
Oversampling
Signals are often 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 rate and then digitally filtered to limit it to the signal bandwidth there are the following advantages:
 digital filters can have better properties (sharper rolloff, phase) than analogue filters, so a sharper antialiasing filter can be realised and then the signal can be downsampled giving a better result
 a 20bit ADC can be made to act as a 24bit ADC with 256× oversampling
 the signaltonoise ratio due to quantization noise will be higher 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
 The improvement in SNR is 3 dB (equivalent to 0.5 bits) per octave of oversampling which is not sufficient for many applications. Therefore, oversampling is usually coupled with noise shaping (see sigmadelta modulators). With noise shaping, the improvement is 6L+3 dB per octave where L is the order of loop filter used for noise shaping. e.g. – a 2nd order loop filter will provide an improvement of 15 dB/octave.
Oversampling is typically used in audio frequency ADCs where the required sampling rate (typically 44.1 or 48 kHz) is very low compared to the clock speed of typical transistor circuits (>1 MHz). In this case, by using the extra bandwidth to distribute quantization error onto out of band frequencies, the accuracy of the ADC can be greatly increased at no cost. Furthermore, as any aliased signals are also typically out of band, aliasing can often be completely eliminated using very low cost filters.
Relative speed and precision
The speed of an ADC varies by type. The Wilkinson ADC is limited by the clock rate which is processable by current digital circuits. Currently,^{[when?]} frequencies up to 300 MHz are possible.^{[8]} For a successiveapproximation ADC, the conversion time scales with the logarithm of the resolution, e.g. the number of bits. Thus for high resolution, it is possible that the successiveapproximation ADC is faster than the Wilkinson. However, the time consuming steps in the Wilkinson are digital, while those in the successiveapproximation are analog. Since analog is inherently slower than digital^{[why?]}, as the resolution increases, the time required also increases. Thus there are competing processes at work. Flash ADCs are certainly the fastest type of the three. The conversion is basically performed in a single parallel step. For an 8bit unit, conversion takes place in a few tens of nanoseconds.
There is, as expected, somewhat of a tradeoff between speed and precision. Flash ADCs have drifts and uncertainties associated with the comparator levels. This results in poor linearity. For successiveapproximation ADCs, poor linearity is also present, but less so than for flash ADCs. Here, nonlinearity arises from accumulating errors from the subtraction processes. Wilkinson ADCs have the highest linearity of the three. These have the best differential nonlinearity. The other types require channel smoothing to achieve the level of the Wilkinson.^{[9]}^{[10]}
Sliding scale principle
The sliding scale or randomizing method can be employed to greatly improve the linearity of any type of ADC, but especially flash and successive approximation types. For any ADC the mapping from input voltage to digital output value is not exactly a floor or ceiling function as it should be. Under normal conditions, a pulse of a particular amplitude is always converted to a digital value. The problem lies in that the ranges of analog values for the digitized values are not all of the same width, and the differential linearity decreases proportionally with the divergence from the average width. The sliding scale principle uses an averaging effect to overcome this phenomenon. A random, but known analog voltage is added to the sampled input voltage. It is then converted to digital form, and the equivalent digital amount is subtracted, thus restoring it to its original value. The advantage is that the conversion has taken place at a random point. The statistical distribution of the final levels is decided by a weighted average over a region of the range of the ADC. This in turn desensitizes it to the width of any specific level.^{[11]}^{[12]}
Types
These are the most common ways of implementing an electronic ADC:
Directconversion
A directconversion ADC or flash ADC has a bank of comparators sampling the input signal in parallel, each firing for their decoded voltage range. The comparator bank feeds a logic circuit that generates a code for each voltage range. Direct conversion is very fast, capable of gigahertz sampling rates, but usually has only 8 bits of resolution or fewer, since the number of comparators needed, 2^{N} – 1, doubles with each additional bit, requiring a large, expensive circuit. ADCs of this type have a large die size, a high input capacitance, high power dissipation, and are prone to produce glitches at the output (by outputting an outofsequence code). Scaling to newer submicrometre technologies does not help as the device mismatch is the dominant design limitation. They are often used for video, wideband communications or other fast signals in optical storage.There are four different types of direct ADCs.
 Parallel comparator ADC
 This is the simplest ADC. It is at the same time the fastest and the most expensive technique. The circuit consists of a resistive divider network, a set of opamp comparators and a priority encoder. A small amount of hysteresis is built into the comparator to resolve any problems that might occur if both inputs were of equal voltage. At each node of the resistive divider, a comparison voltage is available. The purpose of the circuit is to compare the analog input voltage with each of the node voltages. The circuit has the advantage of high speed as the conversion takes place simultaneously rather than sequentially. Typical conversion time is 100 ns or less. Conversion time is limited only by the speed of the comparator and of the priority encoder. This type of ADC has the disadvantage that the number of comparators required almost doubles for each added bit. Also, the larger the value of n, the more complex is the priority encoder.
 Counter type ADC
 The D to A converter can be easily turned around to provide the inverse function A to D conversion. The principle is to adjust the DAC's input code until the DAC's output comes within ±^{1}⁄_{2} LSB to the analog input which is to be converted to binary digital form.
 Servo tracking ADC
 It is an improved version of a counting ADC. The circuit consists of an updown counter with the comparator controlling the direction of the count. The analog output of the DAC is compared with the analog input. If the input is greater than the DAC output signal, the output of the comparator goes high and the counter is caused to count up. The tracking ADC has an advantage of being simple. The disadvantage, however, is the time needed to stabilize as a new conversion value is directly proportional to the rate at which the analog signal changes.
Successive approximation
A successiveapproximation ADC uses a comparator to successively narrow a range that contains the input voltage. At each successive step, the converter compares the input voltage to the output of an internal digital to analog converter which might represent the midpoint of a selected voltage range. At each step in this process, the approximation is stored in a successive approximation register (SAR). For example, consider an input voltage of 6.3 V and the initial range is 0 to 16 V. For the first step, the input 6.3 V is compared to 8 V (the midpoint of the 0–16 V range). The comparator reports that the input voltage is less than 8 V, so the SAR is updated to narrow the range to 0–8 V. For the second step, the input voltage is compared to 4 V (midpoint of 0–8). The comparator reports the input voltage is above 4 V, so the SAR is updated to reflect the input voltage is in the range 4–8 V. For the third step, the input voltage is compared with 6 V (halfway between 4 V and 8 V); the comparator reports the input voltage is greater than 6 volts, and search range becomes 6–8 V. The steps are continued until the desired resolution is reached.
Rampcompare
A rampcompare ADC produces a sawtooth signal that ramps up or down then quickly returns to zero. When the ramp starts, a timer starts counting. When the ramp voltage matches the input, a comparator fires, and the timer's value is recorded. Timed ramp converters require the fewest transistors. The ramp time is sensitive to temperature because the circuit generating the ramp is often a simple oscillator. There are two solutions: use a clocked counter driving a DAC and then use the comparator to preserve the counter's value, or calibrate the timed ramp. A special advantage of the rampcompare system is that comparing a second signal just requires another comparator, and another register to store the voltage value. A very simple (nonlinear) rampconverter can be implemented with a microcontroller and one resistor and capacitor.^{[13]} Vice versa, a filled capacitor can be taken from an integrator, timetoamplitude converter, phase detector, sample and hold circuit, or peak and hold circuit and discharged. This has the advantage that a slow comparator cannot be disturbed by fast input changes.
Wilkinson
The Wilkinson ADC was designed by D. H. Wilkinson in 1950. The Wilkinson ADC is based on the comparison of an input voltage with that produced by a charging capacitor. The capacitor is allowed to charge until its voltage is equal to the amplitude of the input pulse (a comparator determines when this condition has been reached). Then, the capacitor is allowed to discharge linearly, which produces a ramp voltage. At the point when the capacitor begins to discharge, a gate pulse is initiated. The gate pulse remains on until the capacitor is completely discharged. Thus the duration of the gate pulse is directly proportional to the amplitude of the input pulse. This gate pulse operates a linear gate which receives pulses from a highfrequency oscillator clock. While the gate is open, a discrete number of clock pulses pass through the linear gate and are counted by the address register. The time the linear gate is open is proportional to the amplitude of the input pulse, thus the number of clock pulses recorded in the address register is proportional also. Alternatively, the charging of the capacitor could be monitored, rather than the discharge.^{[14]}^{[15]}
Integrating
An integrating ADC (also dualslope or multislope ADC) applies the unknown input voltage to the input of an integrator and allows the voltage to ramp for a fixed time period (the runup period). Then a known reference voltage of opposite polarity is applied to the integrator and is allowed to ramp until the integrator output returns to zero (the rundown period). The input voltage is computed as a function of the reference voltage, the constant runup time period, and the measured rundown time period. The rundown time measurement is usually made in units of the converter's clock, so longer integration times allow for higher resolutions. Likewise, the speed of the converter can be improved by sacrificing resolution. Converters of this type (or variations on the concept) are used in most digital voltmeters for their linearity and flexibility.
 Charge balancing ADC
 The principle of charge balancing ADC is to first convert the input signal to a frequency using a voltage to frequency converter.This frequency is then measured by a counter and converted to an output code proportional to the analog input.The main advantage of these converters is that it is possible to transmit frequency even in noisy environment or in isolated form.However, the limitation of this circuit is that the output of V/F converter depends upon an RC product whose value cannot be easily maintained with temperature and time.
 Dualslope ADC
 The analog part of the circuit consists of a high input impedance buffer,precision integrator and a voltage comparator.The converter first integrates the analog input signal for a fixed duration and then it integrates an internal reference voltage of opposite polarity until the integrator output is zero.The main disadvantage of this circuit is the long duration time.They are particularly suitable for accurate measurement of slowly varying signals such as thermocouples and weighing scales.
Deltaencoded
A deltaencoded ADC or counterramp has an updown counter that feeds a digital to analog converter (DAC). The input signal and the DAC both go to a comparator. The comparator controls the counter. The circuit uses negative feedback from the comparator to adjust the counter until the DAC's output is close enough to the input signal. The number is read from the counter. Delta converters have very wide ranges and high resolution, but the conversion time is dependent on the input signal level, though it will always have a guaranteed worstcase. Delta converters are often very good choices to read realworld signals. Most signals from physical systems do not change abruptly. Some converters combine the delta and successive approximation approaches; this works especially well when high frequencies are known to be small in magnitude.
Pipelined
A pipelined ADC (also called subranging quantizer) uses two or more steps of subranging. First, a coarse conversion is done. In a second step, the difference to the input signal is determined with a digital to analog converter (DAC). This difference is then converted finer, and the results are combined in a last step. This can be considered a refinement of the successiveapproximation ADC wherein the feedback reference signal consists of the interim conversion of a whole range of bits (for example, four bits) rather than just the nextmostsignificant bit. By combining the merits of the successive approximation and flash ADCs this type is fast, has a high resolution, and only requires a small die size.
Sigmadelta
A sigmadelta ADC (also known as a deltasigma ADC) oversamples the desired signal by a large factor and filters the desired signal band. Generally, a smaller number of bits than required are converted using a Flash ADC after the filter. The resulting signal, along with the error generated by the discrete levels of the Flash, is fed back and subtracted from the input to the filter. This negative feedback has the effect of noise shaping the error due to the Flash so that it does not appear in the desired signal frequencies. A digital filter (decimation filter) follows the ADC which reduces the sampling rate, filters off unwanted noise signal and increases the resolution of the output (sigmadelta modulation, also called deltasigma modulation).
Timeinterleaved
A timeinterleaved ADC uses M parallel ADCs where each ADC samples data every M:th cycle of the effective sample clock. The result is that the sample rate is increased M times compared to what each individual ADC can manage. In practice, the individual differences between the M ADCs degrade the overall performance reducing the spuriousfree dynamic range (SFDR).^{[16]} However, technologies exist to correct for these timeinterleaving mismatch errors.
Intermediate FM stage
An ADC with intermediate FM stage first uses a voltagetofrequency converter to convert the desired signal into an oscillating signal with a frequency proportional to the voltage of the desired signal, and then uses a frequency counter to convert that frequency into a digital count proportional to the desired signal voltage. Longer integration times allow for higher resolutions. Likewise, the speed of the converter can be improved by sacrificing resolution. The two parts of the ADC may be widely separated, with the frequency signal passed through an optoisolator or transmitted wirelessly. Some such ADCs use sine wave or square wave frequency modulation; others use pulsefrequency modulation. Such ADCs were once the most popular way to show a digital display of the status of a remote analog sensor.^{[17]}^{[18]}^{[19]}^{[20]}^{[21]}
Other types
There can be other ADCs that use a combination of electronics and other technologies. A timestretch analogtodigital converter (TSADC) digitizes a very wide bandwidth analog signal, that cannot be digitized by a conventional electronic ADC, by timestretching the signal prior to digitization. It commonly uses a photonic preprocessor frontend to timestretch the signal, which effectively slows the signal down in time and compresses its bandwidth. As a result, an electronic backend ADC, that would have been too slow to capture the original signal, can now capture this slowed down signal. For continuous capture of the signal, the frontend also divides the signal into multiple segments in addition to timestretching. Each segment is individually digitized by a separate electronic ADC. Finally, a digital signal processor rearranges the samples and removes any distortions added by the frontend to yield the binary data that is the digital representation of the original analog signal.
Commercial
Commercial ADCs are usually implemented as integrated circuits. Most converters sample with 6 to 24 bits of resolution, and produce fewer than 1 megasample per second. Thermal noise generated by passive components such as resistors masks the measurement when higher resolution is desired. For audio applications and in room temperatures, such noise is usually a little less than 1 μV (microvolt) of white noise. If the MSB corresponds to a standard 2 V of output signal, this translates to a noiselimited performance that is less than 20~21 bits, and obviates the need for any dithering. As of February 2002, Mega and gigasample per second converters are available. Megasample converters are required in digital video cameras, video capture cards, and TV tuner cards to convert fullspeed analog video to digital video files. Commercial converters usually have ±0.5 to ±1.5 LSB error in their output.
In many cases, 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 is 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 0 to 5 V. This saves quite a few pins on the ADC package, and in many cases, does not make the overall design any more complex (even microprocessors which use memorymapped I/O 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 amplifiers or differential inputs, where the quantity measured is the difference between two voltages.
Applications
Music recording
Analogtodigital converters are integral to 2000s era music reproduction technology and digital audio workstationbased sound recording. People often produce music on computers using an analog recording and therefore need analogtodigital converters to create the pulsecode modulation (PCM) data streams that go onto compact discs and digital music files. The current crop of analogtodigital converters utilized in music can sample at rates up to 192 kilohertz. Considerable literature exists on these matters, but commercial considerations often play a significant role. Many recording studios record in 24bit/96 kHz (or higher) pulsecode modulation (PCM) or Direct Stream Digital (DSD) formats, and then downsample or decimate the signal for Compact Disc Digital Audio production (44.1 kHz) or to 48 kHz for commonly used radio and television broadcast applications.
Digital signal processing
ADCs are required to process, store, or transport virtually any analog signal in digital form. TV tuner cards, for example, use fast video analogtodigital converters. Slow onchip 8, 10, 12, or 16 bit analogtodigital converters are common in microcontrollers. Digital storage oscilloscopes need very fast analogtodigital converters, also crucial for software defined radio and their new applications.
Scientific instruments
Digital imaging systems commonly use analogtodigital converters in digitizing pixels. Some radar systems commonly use analogtodigital converters to convert signal strength to digital values for subsequent signal processing. Many other in situ and remote sensing systems commonly use analogous technology. The number of binary bits in the resulting digitized numeric values reflects the resolution, the number of unique discrete levels of quantization (signal processing). The correspondence between the analog signal and the digital signal depends on the quantization error. The quantization process must occur at an adequate speed, a constraint that may limit the resolution of the digital signal. Many sensors in scientific instruments produce an analog signal; temperature, pressure, pH, light intensity etc. All these signals can be amplified and fed to an ADC to produce a digital number proportional to the input signal.
Rotary encoder
Some nonelectronic or only partially electronic devices, such as rotary encoders, can also be considered ADCs. Typically the digital output of an ADC will be a two's complement binary number that is proportional to the input. An encoder might output a Gray code.
Electrical symbol
Testing
Testing an Analog to Digital Converter requires an analog input source and hardware to send control signals and capture digital data output. Some ADCs also require an accurate source of reference signal.
The key parameters to test a SAR ADC are:
 DC offset error
 DC gain error
 Signal to noise ratio (SNR)
 Total harmonic distortion (THD)
 Integral non linearity (INL)
 Differential non linearity (DNL)
 Spurious free dynamic range
 Power dissipation
See also
 Adaptive predictive coding, a type of ADC in which the value of the signal is predicted by a linear function
 Audio codec
 Beta encoder
 Digitization
 Digital signal processing
 Integral linearity
 Modem
Notes
 ^ "Principles of Data Acquisition and Conversion" (PDF). Texas Instruments. April 2015. Retrieved 20161018.
 ^ Lathi, B.P. (1998). Modern Digital and Analog Communication Systems (3rd edition). Oxford University Press.
 ^ Maxim App 800: "Design a LowJitter Clock for HighSpeed Data Converters". maximic.com (July 17, 2002).
 ^ "Jitter effects on Analog to Digital and Digital to Analog Converters" (PDF). Retrieved 19 August 2012.
 ^ Löhning, Michael; Fettweis, Gerhard (2007). "The effects of aperture jitter and clock jitter in wideband ADCs". Computer Standards & Interfaces archive. 29 (1): 11–18. doi:10.1016/j.csi.2005.12.005.
 ^ Redmayne, Derek and Steer, Alison (8 December 2008) Understanding the effect of clock jitter on highspeed ADCs. eetimes.com
 ^ "RFSampling and GSPS ADCs  Breakthrough ADCs Revolutionize Radio Architectures" (PDF). Texas Instruments. Retrieved 4 November 2013.
 ^ 310 Msps ADC by Linear Technology, http://www.linear.com/product/LTC215814.
 ^ Knoll (1989, pp. 664–665)
 ^ Nicholson (1974, pp. 313–315)
 ^ Knoll (1989, pp. 665–666)
 ^ Nicholson (1974, pp. 315–316)
 ^ Atmel Application Note AVR400: Low Cost A/D Converter. atmel.com
 ^ Knoll (1989, pp. 663–664)
 ^ Nicholson (1974, pp. 309–310)
 ^ Vogel, Christian (2005). "The Impact of Combined Channel Mismatch Effects in Timeinterleaved ADCs" (PDF). IEEE Transactions on Instrumentation and Measurement. 55 (1): 415–427. doi:10.1109/TIM.2004.834046.
 ^ Analog Devices MT028 Tutorial: "VoltagetoFrequency Converters" by Walt Kester and James Bryant 2009, apparently adapted from Kester, Walter Allan (2005) Data conversion handbook, Newnes, p. 274, ISBN 0750678410.
 ^ Microchip AN795 "Voltage to Frequency / Frequency to Voltage Converter" p. 4: "13bit A/D converter"
 ^ Carr, Joseph J. (1996) Elements of electronic instrumentation and measurement, Prentice Hall, p. 402, ISBN 0133416860.
 ^ "VoltagetoFrequency AnalogtoDigital Converters". globalspec.com
 ^ Pease, Robert A. (1991) Troubleshooting Analog Circuits, Newnes, p. 130, ISBN 0750694998.
References
 Knoll, Glenn F. (1989). Radiation Detection and Measurement (2nd ed.). New York: John Wiley & Sons. ISBN 0471815047.
 Nicholson, P. W. (1974). Nuclear Electronics. New York: John Wiley & Sons. pp. 315–316. ISBN 0471636975.
Further reading
 Allen, Phillip E.; Holberg, Douglas R. CMOS Analog Circuit Design. ISBN 0195116445.
 Fraden, Jacob (2010). Handbook of Modern Sensors: Physics, Designs, and Applications. Springer. ISBN 9781441964656.
 Kester, Walt, ed. (2005). The Data Conversion Handbook. Elsevier: Newnes. ISBN 0750678410.
 Johns, David; Martin, Ken. Analog Integrated Circuit Design. ISBN 0471144487.
 Liu, Mingliang. Demystifying SwitchedCapacitor Circuits. ISBN 0750679077.
 Norsworthy, Steven R.; Schreier, Richard; Temes, Gabor C. (1997). DeltaSigma Data Converters. IEEE Press. ISBN 0780310454.
 Razavi, Behzad (1995). Principles of Data Conversion System Design. New York, NY: IEEE Press. ISBN 0780310934.
 Ndjountche, Tertulien. CMOS Analog Integrated Circuits: HighSpeed and PowerEfficient Design. Boca Raton, FL: CRC Press. ISBN 9781439854914.
 Staller, Len (February 24, 2005). "Understanding analog to digital converter specifications". Embedded Systems Design.
 Walden, R. H. (1999). "Analogtodigital converter survey and analysis". IEEE Journal on Selected Areas in Communications. 17 (4): 539–550. CiteSeerX 10.1.1.352.1881. doi:10.1109/49.761034.
External links
Wikibooks has a book on the topic of: Analog and Digital Conversion 
 An Introduction to Delta Sigma Converters A very nice overview of DeltaSigma converter theory.
 Digital Dynamic Analysis of A/D Conversion Systems through Evaluation Software based on FFT/DFT Analysis RF Expo East, 1987
 Which ADC Architecture Is Right for Your Application? article by Walt Kester
 ADC and DAC Glossary Defines commonly used technical terms.
 Introduction to ADC in AVR – Analog to digital conversion with Atmel microcontrollers
 Signal processing and system aspects of timeinterleaved ADCs.
 Explanation of analogdigital converters with interactive principles of operations.
 MATLAB Simulink model of a simple ramp ADC.