Successive approximation ADC
   HOME

TheInfoList



OR:

A successive-approximation ADC (or SAR ADC) is a type of
analog-to-digital converter In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) 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 (signal processing), digi ...
(ADC) that digitizes each sample from a continuous
analog waveform An analog signal (American English) or analogue signal (British and Commonwealth English) is any continuous-time signal representing some other quantity, i.e., ''analogous'' to another quantity. For example, in an analog audio signal, the inst ...
using a
binary search In computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the m ...
through all possible quantization levels.


History

The SAR ADC was first used for experimental
pulse-code modulation Pulse-code modulation (PCM) is a method used to digitally represent analog signals. It is the standard form of digital audio in computers, compact discs, digital telephony and other digital audio applications. In a PCM stream, the amplitud ...
(PCM) by
Bell Labs Nokia Bell Labs, commonly referred to as ''Bell Labs'', is an American industrial research and development company owned by Finnish technology company Nokia. With headquarters located in Murray Hill, New Jersey, Murray Hill, New Jersey, the compa ...
in the 1940s. In 1954, Bernard Gordon introduced the first commercial
vacuum tube A vacuum tube, electron tube, thermionic valve (British usage), or tube (North America) is a device that controls electric current flow in a high vacuum between electrodes to which an electric voltage, potential difference has been applied. It ...
SAR ADC, converting 50,000 11-bit samples per second.


Algorithm

The successive-approximation
analog-to-digital converter In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) 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 (signal processing), digi ...
circuit typically contains four chief subcircuits: # A sample-and-hold circuit that acquires the input
voltage Voltage, also known as (electrical) potential difference, electric pressure, or electric tension, is the difference in electric potential between two points. In a Electrostatics, static electric field, it corresponds to the Work (electrical), ...
. # An analog voltage comparator that compares to the output of a
digital-to-analog converter In electronics, a digital-to-analog converter (DAC, D/A, D2A, or D-to-A) is a system that converts a digital signal into an analog signal. An analog-to-digital converter (ADC) performs the reverse function. DACs are commonly used in musi ...
(DAC). # A successive-approximation
register Register or registration may refer to: Arts, entertainment, and media Music * Register (music), the relative "height" or range of a note, melody, part, instrument, etc. * ''Register'', a 2017 album by Travis Miller * Registration (organ), ...
that is updated by results of the comparator to provide the DAC with a digital code whose accuracy increases each successive iteration. # A DAC that supplies the
comparator In electronics, a comparator is a device that compares two voltages or currents and outputs a digital signal indicating which is larger. It has two analog input terminals V_+ and V_- and one binary digital output V_\text. The output is ideally ...
with an analog voltage relative to the reference voltage (which corresponds to the full-scale range of the ADC) and proportional to the digital code of the SAR. The successive-approximation register is initialized with 1 in the
most significant bit In computing, bit numbering is the convention used to identify the bit positions in a binary numeral system, binary number. Bit significance and indexing In computing, the least significant bit (LSb) is the bit position in a Binary numeral sy ...
(MSB) and zeroes in the lower bits. The register's code is fed into the DAC, which provides an analog equivalent of its digital code (initially ) to the comparator for comparison with the sampled input voltage. If this analog voltage exceeds , then the comparator causes the SAR to reset this bit; otherwise, the bit is left as 1. Then the next bit is set to 1 and the same test is done, continuing this
binary search In computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the m ...
until every bit in the SAR has been tested. The resulting code is the digital approximated output of the sampled input voltage. The algorithm's objective for the iteration is to approximately digitize the input voltage to an accuracy of relative to the reference voltage. To show this mathematically, the normalized input voltage is represented as in by letting . The algorithm starts with an initial approximation of and during each iteration produces the following approximation:
approximation:
where the binary
signum function In mathematics, the sign function or signum function (from '' signum'', Latin for "sign") is a function that has the value , or according to whether the sign of a given real number is positive or negative, or the given number is itself zer ...
mathematically represents the comparison of the previous iteration's approximation with the normalized input voltage : sgn(x_ - x) = \begin +1 & \text x_ \geq x, \\ -1 & \text x_ < x. \endIt follows using mathematical induction that the approximation of the iteration theoretically has a bounded accuracy of: .


Inaccuracies in non-ideal analog circuits

When implemented as a real analog circuit, circuit inaccuracies and
noise Noise is sound, chiefly unwanted, unintentional, or harmful sound considered unpleasant, loud, or disruptive to mental or hearing faculties. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrat ...
may cause the binary search algorithm to incorrectly remove values it believes cannot be, so a successive-approximation ADC might not output the closest value. It is very important for the DAC to accurately produce all analog values for comparison against the unknown in order to produce a best match estimate. The maximal error can easily exceed several LSBs, especially as the error between the actual and ideal becomes large. Manufacturers may characterize the accuracy using an
effective number of bits Effective number of bits (ENOB) is a measure of the real dynamic range of an analog-to-digital converter (ADC), digital-to-analog converter (DAC), or associated circuitry. Although the resolution of a converter may be specified by the number of b ...
(ENOB) smaller than the actual number of output bits. , the component-matching limitations of the DAC generally limited the linearity to about 12 bits in practical designs and mandated some form of trimming or calibration to achieve the necessary linearity for more than 12 bits. And since kT/C noise is inversely proportional to capacitance, low noise demands a large input capacitance (which costs chip area and requires a more powerful drive buffer), which has motivated proposals around noise cancellation. For comparison, for a of 5 V, the least significant bit of a 16-bit converter corresponds to 76 µV, which is around the 64 µ Vrms noise of a 1  pF (large for on-chip) capacitor at
room temperature Room temperature, colloquially, denotes the range of air temperatures most people find comfortable indoors while dressed in typical clothing. Comfortable temperatures can be extended beyond this range depending on humidity, air circulation, and ...
. , SAR ADCs are limited to 18 bits, while delta-sigma ADCs (which can be 24 bits) are better suited if more than 16 bits are needed. SAR ADCs are commonly found on
microcontrollers A microcontroller (MC, uC, or μC) or microcontroller unit (MCU) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Pro ...
because they are easy to integrate into a
mixed-signal A mixed-signal integrated circuit is any integrated circuit that has both analog circuits and digital circuits on a single semiconductor die.resistor ladder A resistor ladder is an electrical circuit made from repeating units of resistors, in specific configurations. An R–2R ladder configuration is a simple and inexpensive way to perform Digital-to-analog converter, digital-to-analog conversion (DAC ...
and
clock A clock or chronometer is a device that measures and displays time. The clock is one of the oldest Invention, human inventions, meeting the need to measure intervals of time shorter than the natural units such as the day, the lunar month, a ...
and
signal noise In electronics, noise is an unwanted disturbance in an electrical signal. Noise generated by electronic devices varies greatly as it is produced by several different effects. In particular, noise is inherent in physics and central to thermod ...
from the rest of the microcontroller, so external ADC chips may provide better accuracy.


Examples

Example 1: The steps to converting an analog input to 9-bit digital, using successive-approximation, are shown here for all voltages from 5 V to 0 V in 0.1 V iterations. Since the reference voltage is 5 V, when the input voltage is also 5 V, all bits are set. As the voltage is decreased to 4.9 V, only some of the least significant bits are cleared. The MSB will remain set until the input is one half the reference voltage, 2.5 V. The binary weights assigned to each bit, starting with the MSB, are 2.5, 1.25, 0.625, 0.3125, 0.15625, 0.078125, 0.0390625, 0.01953125, 0.009765625. All of these add up to 4.990234375, meaning binary 111111111, or one LSB less than 5. When the analog input is being compared to the internal DAC output, it effectively is being compared to each of these binary weights, starting with the 2.5 V and either keeping it or clearing it as a result. Then by adding the next weight to the previous result, comparing again, and repeating until all the bits and their weights have been compared to the input, the result, a binary number representing the analog input, is found. Example 2: The working of a 4-bit successive-approximation ADC is illustrated below. The MSB is initially set to 1 whereas the remaining digits are set to zero. If the input voltage is lower than the value stored in the register, on the next clock cycle, the register changes its value to that illustrated in the figure by following the green line. If the input voltage is higher, then on the next clock cycle, the register changes its value to that illustrated in the figure by following the red line. The simplified structure of this type of ADC that acts on volts range can be expressed as an algorithm: # Initialize register with MSB set to 1 and all other values set to zero. # In the n clock cycle, if voltage is higher than digital equivalent voltage of the number in register, the (n+1) digit from the left is set to 1. If the voltage were lower than digital equivalent voltage, then n digit from left is set to zero and the next digit is set to 1. To perform a conversion, an N-bit ADC requires N such clock cycles excluding the initial state. The successive-approximation ADC can be alternatively explained by first uniformly assigning each digital output to corresponding ranges as shown. It can be seen that the algorithm essentially divides the voltage range into two regions and checks which of the two regions the input voltage belongs to. Successive steps involve taking the identified region from before and further dividing the region into two and continuing identification. This occurs until all possible choices of digital representations are exhausted, leaving behind an identified region that corresponds to only one of the digital representations.


Variants

* ''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 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 up-down 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 the 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.


Charge-redistribution successive-approximation ADC

One of the most common SAR ADC implementations uses a charge-scaling DAC consisting of an array of individually-switched
capacitors In electrical engineering, a capacitor is a device that stores electrical energy by accumulating electric charges on two closely spaced surfaces that are insulated from each other. The capacitor was originally known as the condenser, a term st ...
sized in
powers of two A power of two is a number of the form where is an integer, that is, the result of exponentiation with number two as the base and integer  as the exponent. In the fast-growing hierarchy, is exactly equal to f_1^n(1). In the Hardy hi ...
and an additional duplicate of the smallest capacitor, for a total of capacitors for bits. Thus if the largest capacitance is , then the array's total capacitance is . The switched capacitor array acts as both the sample-and-hold element and the DAC. Redistributing their
charge Charge or charged may refer to: Arts, entertainment, and media Films * ''Charge, Zero Emissions/Maximum Speed'', a 2011 documentary Music * ''Charge'' (David Ford album) * ''Charge'' (Machel Montano album) * '' Charge!!'', an album by The Aqu ...
will adjust their net voltage, which is fed into the negative input of a comparator (whose positive input is always grounded) to perform the binary search using the following steps: # Discharge: The capacitors are discharged. (Note, discharging to comparator's offset voltage will automatically provide offset cancellation.) # Sampling: The capacitors are switched to the input signal . After a brief sampling period, the capacitors will hold a charge equal to their respective capacitance times (and minus the offset voltage upon each of them), so the array holds a total charge of . # Hold: The capacitors are then switched to ground. This provides the comparator's negative input with a voltage of . # Conversion: the actual conversion process proceeds with the following steps in each iteration, starting with the largest capacitor as the test capacitor for the MSB, and then testing each next smaller capacitor in order for each bit of lower significance: ## Redistribution: The current test capacitor is switched to . The test capacitor forms a charge divider with the remainder of the array whose ratio depends on the capacitor's relative size. In the first iteration, the ratio is , so the comparator's negative input becomes . On the iteration, the ratio will be , so the iteration of this redistribution step effectively adds to the voltage. ## Comparison: The comparator's output determines the bit's value for to the current test capacitor. In the first iteration, if is greater than , then the comparator will output a digital 1 and otherwise output a digital 0. ## Update Switch: A digital 0 result will leave the current test capacitor connected to for subsequent iterations, while a digital 1 result will switch the capacitor back to ground. Thus, each iteration may or may not add to the comparator's negative input voltage. For instance, the voltage at the end of the first iteration will be . # End Of Conversion: After all capacitors are tested in the same manner, the comparator's negative input voltage will have converged as close as possible (given the resolution of the DAC) to the comparator's offset voltage.


See also

*
Quantization noise Quantization, in mathematics and digital signal processing, is the process of mapping input values from a large set (often a continuous set) to output values in a (countable) smaller set, often with a finite number of elements. Rounding and t ...
*
Digital-to-analog converter In electronics, a digital-to-analog converter (DAC, D/A, D2A, or D-to-A) is a system that converts a digital signal into an analog signal. An analog-to-digital converter (ADC) performs the reverse function. DACs are commonly used in musi ...


References


Further reading

* ''CMOS Circuit Design, Layout, and Simulation, 3rd Edition''; R. J. Baker; Wiley-IEEE; 1208 pages; 2010; * ''Data Conversion Handbook''; Analog Devices; Newnes; 976 pages; 2004;


External links


Understanding SAR ADCs: Their Architecture and Comparison with Other ADCs
- Maxim
Choose the right A/D converter for your application
- TI {{DEFAULTSORT:Successive Approximation Adc Digital signal processing Analog circuits Approximations