Successive-approximation ADC: Difference between revisions

Content deleted Content added
m {{math}} and list formatting
m convert special characters found by Wikipedia:Typo Team/moss (via WP:JWB)
 
(45 intermediate revisions by 12 users not shown)
Line 1:
{{Short description|Type of analog-to-digital converter}}
{{dablink|For behaviorist psychologist B. F. Skinner's method of guiding learned behavior, see [[Shaping (psychology)]]. For successive approximation in general, see [[Successive approximation (disambiguation)|Successive approximation]].}}
 
{{No footnotes|date=March 2020}}
[[File:SA ADC block diagram.png|thumb|300px320x320px|Successive-approximation ADC block diagram showing digital-to-analog converter (DAC), end of conversion indicator (EOC), successive -approximation register (SAR), sample and hold circuit (S/H), input voltage ({{math|''V''<sub>in</sub>}}) and reference voltage ({{math|''V''<sub>ref</sub>}})]]
 
A '''successive-approximation ADC''' (or '''SAR ADC''') is a type of [[analog-to-digital converter]] (ADC) that converts[[Digitization|digitizes]] a continuouseach [[analogSampling waveform(signal processing)|sample]] intofrom a discretecontinuous [[Digitalanalog data|digitalwaveform]] representation using a [[binary search]] through all possible [[Quantization (signal processing)|quantization]] levels. before finally converging upon a digital output for each conversion.
[[File:SA ADC block diagram.png|thumb|300px|Successive-approximation ADC block diagram showing digital-to-analog converter (DAC), end of conversion indicator (EOC), successive approximation register (SAR), sample and hold circuit (S/H), input voltage ({{math|''V''<sub>in</sub>}}) and reference voltage ({{math|''V''<sub>ref</sub>}})]]
 
== History ==
A '''successive-approximation ADC''' is a type of [[analog-to-digital converter]] that converts a continuous [[analog waveform]] into a discrete [[Digital data|digital]] representation using a [[binary search]] through all possible [[Quantization (signal processing)|quantization]] levels before finally converging upon a digital output for each conversion.
The SAR ADC was first used for experimental [[pulse-code modulation]] (PCM) by [[Bell Labs]] in the 1940s. In 1954, [[Bernard Marshall Gordon|Bernard Gordon]] introduced the first commercial [[vacuum tube]] SAR ADC, converting 50,000 11-bit [[samples per second]].<ref>{{Cite web |last=Kester |first=Walt |date=June 2005 |title=Which ADC Architecture Is Right for Your Application? |url=https://www.analog.com/en/resources/analog-dialogue/articles/the-right-adc-architecture.html |url-status=live |archive-url=https://web.archive.org/web/20250109032609/https://www.analog.com/en/resources/analog-dialogue/articles/the-right-adc-architecture.html |archive-date=2025-01-09 |access-date=2025-05-30 |website=[[Analog Dialogue]]}}</ref>
 
== Algorithm ==
The successive-approximation [[analog-to-digital converter]] circuit typically consists ofcontains four chief subcircuits:
# A [[sample-and-hold]] circuit tothat acquireacquires the input [[voltage]] {{math|''V''<sub>in</sub>}}.
# An analog [[voltage comparator]] that compares {{math|''V''<sub>in</sub>}} to the output of the internala [[Digitaldigital-to-analog converter|DAC]] and outputs the result of the comparison to the successive-approximation [[Processor register|register]] (SARDAC).
# A successive-approximation [[Processor register|register]] subcircuitthat designedis updated by results of the comparator to supplyprovide anthe approximateDAC with a digital code ofwhose {{math|''V''<sub>in</sub>}}accuracy toincreases theeach internalsuccessive DACiteration.
# An internal referenceA DAC that, forsupplies comparisonthe [[comparator]] with an analog voltage relative to the reference voltage {{math|1=''V''<sub>ref</sub>}}, supplies(which corresponds to the [[comparator]]full-scale withrange anof analogthe voltageADC) equaland proportional to the digital code output of the {{math|SAR<sub>in</sub>}}.
 
[[File:4-bit Successive Approximation DAC.gif|thumb|right|Animation of a 4-bit successive-approximation ADC with {{math|1=''V''<sub>ref</sub> = 5 [[volt|V]]}}|320x320px]]
The successive -approximation register is initialized sowith that1 in the [[most significant bit]] (MSB) isand equalzeroes toin athe [[Digitallower data|digital]] 1bits. ThisThe register's code is fed into the DAC, which thenprovides supplies thean analog equivalent of thisits digital code (initially {{math|(1={{sfrac|1|2}}''V''<sub>ref</sub>/2)}}) intoto the comparator circuit for comparison with the sampled input voltage. If this analog voltage exceeds {{math|''V''<sub>in</sub>}}, 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 algorithm|binary search]] until every bit in the SAR has been tested. The resulting code is the digital approximationapproximated output of the sampled input voltage and is finally output by the SAR at the end of the conversion (EOC).
 
The algorithm's objective for the {{math|''n''<sup>th</sup>}} iteration is to approximately digitize the input voltage to an accuracy of {{frac|1|2<sup>''n''</sup>}} relative to the reference voltage. To show this mathematically, the normalized input voltage is represented as {{math|''x''}} in {{math|[−1,&nbsp;1]}} by letting {{math|1=''V''<sub>in</sub> = ''xV''<sub>ref</sub>}}. The algorithm starts with an initial approximation of {{math|1=''x''<sub>0</sub> = 0}} and during each iteration {{math|''i''}} produces the following approximation:<blockquote>{{math|''i''<sup>th</sup>}} approximation: {{math|1=''x''<sub>''i''</sub> = ''x''<sub>''i''−1</sub> − {{sfrac|''sgn''(''x''<sub>''i''−1</sub> − ''x'')|2<sup>''i''</sup>}}}}</blockquote>where the binary [[signum function]] {{math|''sgn''}} mathematically represents the comparison of the previous iteration's approximation {{math|1=''x''<sub>i-1</sub>}} with the normalized input voltage {{math|''x''}}:<math display="block"> sgn(x_{i-1} - x) = \begin{cases}
Mathematically, let {{math|1=''V''<sub>in</sub> = ''xV''<sub>ref</sub>}}, so {{math|''x''}} in {{math|[−1,&nbsp;1]}} is the normalized input voltage. The objective is to approximately digitize {{math|''x''}} to an accuracy of {{frac|1|2<sup>''n''</sup>}}. The algorithm proceeds as follows:
+1 & \text{if } x_{i-1} \geq x, \\
# Initial approximation {{math|1=''x''<sub>0</sub> = 0}}.
#-1 & \text{if } x_{math|''i''<sup>th</sup>}-1} approximation {{math|1=''x''<sub>''i''</sub> = ''x''<sub>''i''−1</sub>. − ''s''(''x''<sub>''i''−1\end{cases}</submath>It follows ''x'')/2<sup>''i''</sup>}},using where,mathematical {{math|''s''(''x'')}}induction isthat the [[signumapproximation function]]of ({{math|1=sgn(''x'') = +1}} forthe {{math|''xn'' ≥ 0<sup>th</sup>}}, {{math|−1}}iteration fortheoretically {{math|''x''has <a 0}}).bounded Itaccuracy follows using mathematical induction thatof: {{math|{{!}}''x''<sub>''n''</sub> − ''x''{{!}} ≤ {{sfrac|1/|2<sup>''n''</sup>}}}}.
 
=== UseInaccuracies within non-ideal analog circuits ===
As shown in the above algorithm, a SAR ADC requires:
When implemented as a real analog circuit, circuit inaccuracies and [[Noise (electronics)|noise]] may cause the binary search algorithm to incorrectly remove values it believes {{math|''V''<sub>in</sub>}} cannot be, so a successive-approximation ADC might not output the closest value. It is very important for the DAC to accurately produce all {{math|2<sup>''n''</sup>}} analog values for comparison against the unknown {{math|''V''<sub>in</sub>}} 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 {{math|2<sup>''n''</sup>}} becomes large. Manufacturers may characterize the accuracy using an [[effective number of bits]] (ENOB) smaller than the actual number of output bits.
# An input voltage source {{math|''V''<sub>in</sub>}}.
# A reference voltage source {{math|''V''<sub>ref</sub>}} to normalize the input.
# A DAC to convert the {{math|''i''<sup>th</sup>}} approximation {{math|''x''<sub>''i''</sub>}} to a voltage.
# A comparator to perform the function {{math|''s''(''x''<sub>''i''</sub> − ''x'')}} by comparing the DAC's voltage with the input voltage.
# A register to store the output of the comparator and apply {{math|''x''<sub>''i''−1</sub> − ''s''(''x''<sub>''i''−1</sub> − ''x'')/2<sup>''i''</sup>}}.
 
{{As of|2001}}, the component-matching limitations of the DAC generally limited the linearity to about 12&nbsp;bits in practical designs and mandated some form of trimming or calibration to achieve the necessary linearity for more than 12&nbsp;bits.<ref>{{Cite web |date=2001-10-02 |title=Understanding SAR ADCs: Their Architecture and Comparison with Other ADCs |url=https://www.analog.com/en/resources/technical-articles/successive-approximation-registers-sar-and-flash-adcs.html |url-status=live |archive-url=https://web.archive.org/web/20241118075147/https://www.analog.com/en/resources/technical-articles/successive-approximation-registers-sar-and-flash-adcs.html |archive-date=2024-11-18 |access-date=2025-01-03 |website=[[Analog Devices]]}}</ref> And since [[Johnson–Nyquist noise#Thermal noise on capacitors|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.<ref>{{Cite journal |last=Keerthy Kumar |first=Shashank |date=2023 |title=Design of a 13-Bit SAR ADC with kT/C noise cancellation technique |url=http://lup.lub.lu.se/student-papers/record/9142088 |journal=Master's Thesis published in [[Lund University]] Student Papers}}</ref> For comparison, for a {{math|1=''V''<sub>ref</sub>}} of 5&nbsp;V, the least significant bit of a 16-bit converter corresponds to 76&nbsp;μV, which is around the 64&nbsp;μ[[Root mean square voltage|Vrms]] noise of a 1&nbsp;[[Picofarad|pF]] (large for on-chip) capacitor at [[room temperature]]. {{As of|2012}}, SAR ADCs are limited to 18&nbsp;bits, while [[delta-sigma]] ADCs (which can be 24&nbsp;bits) are better suited if more than 16&nbsp;bits are needed.<ref>{{Cite web |date=2012-05-07 |title=Understanding Noise, ENOB, and Effective Resolution in Analog-to-Digital Converters |url=https://www.analog.com/en/resources/technical-articles/noise-enob-and-effective-resoluition-in-analog-to-digital-converter-circuits--maxim-integrated.html |url-status=live |archive-url=https://web.archive.org/web/20240422221715/https://www.analog.com/en/resources/technical-articles/noise-enob-and-effective-resoluition-in-analog-to-digital-converter-circuits--maxim-integrated.html |archive-date=2024-04-22 |access-date=2024-12-28 |website=[[Analog Devices]]}}</ref> SAR ADCs are commonly found on [[microcontrollers]] because they are easy to integrate into a [[mixed-signal]] process, but suffer from inaccuracies from the internal reference voltage [[resistor ladder]] and [[Clock signal|clock]] and [[signal noise]] from the rest of the microcontroller, so external ADC chips may provide better accuracy.<ref>{{Cite web |last=Giovino |first=Bill |date=2018-11-21 |title=IoT Microcontrollers Have ADCs, but Know When to Choose and Apply an External ADC |url=https://www.digikey.com/en/articles/iot-microcontrollers-have-adcs-know-when-apply-an-external-adc |url-status=live |archive-url=https://web.archive.org/web/20240624010637/https://www.digikey.com/en/articles/iot-microcontrollers-have-adcs-know-when-apply-an-external-adc |archive-date=2024-06-24 |access-date=2025-01-03 |website=[[DigiKey]]}}</ref>
[[File:ADC animation 20.gif|thumb|alt=Successive approximation animation|Operation of successive-approximation ADC as input voltage falls from 5 to 0&nbsp;V. Iterations on the ''x'' axis. Approximation value on the ''y'' axis.|right]]
'''Example:''' The ten steps to converting an analog input to 10 bit digital, using successive approximation, are shown here for all voltages from 5&nbsp;V to 0&nbsp;V in 0.1&nbsp;V iterations. Since the reference voltage is 5&nbsp;V, when the input voltage is also 5&nbsp;V, all bits are set. As the voltage is decreased to 4.9&nbsp;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&nbsp;V.
 
[[File:ADC animation 20.gif|thumb|alt=Successive approximation animation|Operation of successive-approximation ADC as input voltage falls from 5 to 0&nbsp;V. Iterations on the ''x'' axis., Approximationstarting with the initial state at notch 1. valueVoltages on the ''y'' axis.|right]]
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, 0.0048828125. All of these add up to 4.9951171875, meaning binary 1111111111, or one LSB less than 5.
 
===Examples===
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&nbsp;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 end result, a binary number representing the analog input, is found.
'''Example 1:''' The ten steps to converting an analog input to 10 9-bit digital, using successive -approximation, are shown here for all voltages from 5&nbsp;V to 0&nbsp;V in 0.1&nbsp;V iterations. Since the reference voltage is 5&nbsp;V, when the input voltage is also 5&nbsp;V, all bits are set. As the voltage is decreased to 4.9&nbsp;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&nbsp;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, 0.0048828125. All of these add up to 4.9951171875990234375, meaning binary 1111111111111111111, 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&nbsp;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 end 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 {{math|1=2<sup>''n''</sup>}} 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{{Sup|th}} clock cycle, if voltage is higher than digital equivalent voltage of the number in register, the (n+1){{Sup|th}} digit from the left is set to 1. If the voltage were lower than digital equivalent voltage, then n{{Sup|th}} 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.
 
{{Multiple image|
<!-- Layout parameters -->
| align = center
| direction = horizontal
 
<!-- Header -->
| header_align = center
| header = Working of successive approximation ADC
 
<!--image 1-->
| image1 = Successive-approximation ADC example Setup.svg
| width1 = 330
| caption1 = Setup where output values of the ADC are arranged in a grid, vertical axis corresponding to voltage. It is a 4-bit ADC that measures input voltages from 0V to 15V.
<!--image 2-->
| image2 = Successive-approximation ADC example working value 1.svg
| width2 = 290
| caption2 = Previously established setup where an input voltage of 10.4V is provided.
<!--image 3-->
| image3 = Successive-approximation ADC example working value 2.svg
| width3 = 290
| caption3 = Previously established setup where an input voltage of 9.4V is provided.
}}
 
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 {{math|±{{frac|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 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==
[[File:ChargeScalingDAC.png|right|thumb|300px320x320px|Charge-scalingSwitched capacitor array acting as the DAC for an {{math|''N''}}-bit charge-redistribution SAR ADC, fed into a ground-referenced comparator.]]
One of the most common SAR ADC implementations uses a charge-scaling [[Digital-to-analog converter|DAC]] consisting of an array of individually-switched [[capacitors]] sized in [[powers of two]] and an additional duplicate of the smallest capacitor, for a total of {{math|''N''+1}} capacitors for {{math|''N''}} bits. Thus if the largest capacitance is {{math|''C''}}, then the array's total capacitance is {{math|2''C''}}. The switched capacitor array acts as both the sample-and-hold element and the DAC. Redistributing their [[Electric charge|charge]] 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:<ref>{{Cite web |last=Kugelstadt |first=Thomas |date=2000 |title=The operation of the SAR-ADC based on charge redistribution |url=https://www.ti.com.cn/cn/lit/an/slyt176/slyt176.pdf |url-status=live |archive-url=https://web.archive.org/web/20241227083825/https://www.ti.com.cn/cn/lit/an/slyt176/slyt176.pdf |archive-date=2024-12-27 |access-date=2024-12-28 |website=[[Texas Instruments]]}}</ref><ref>{{Cite web |date=2020 |title=Operation of a SAR-ADC Based on Charge Redistribution |url=https://www.renesas.com/en/document/apn/r14an0001-operation-sar-adc-based-charge-redistribution-rev100 |url-status=live |archive-url=https://web.archive.org/web/20241015132842/https://www.renesas.com/en/document/apn/r14an0001-operation-sar-adc-based-charge-redistribution-rev100 |archive-date=2024-10-15 |access-date=2024-12-28 |website=[[Renesas Electronics]]}}</ref>
One of the most common implementations of the successive-approximation ADC, the ''charge-redistribution'' successive-approximation ADC, uses a charge-scaling [[Digital-to-analog converter|DAC]]. The charge-scaling DAC simply consists of an array of individually switched binary-weighted capacitors. The amount of charge upon each capacitor in the array is used to perform the aforementioned binary search in conjunction with a comparator internal to the DAC and the successive-approximation register.
 
[[File:CAPadc.png|thumb|3 bits simulation of a capacitive ADC]]
# The capacitor array is completely discharged to the offset voltage of the comparator, {{math|''V''<sub>OS</sub>}}. This step provides automatic offset cancellation (i.e. the offset voltage represents nothing but dead charge, which can't be juggled by the capacitors).
# All of the capacitors within the array are switched to the input signal {{math|''V''<sub>in</sub>}}. The capacitors now have a charge equal to their respective capacitance times the input voltage minus the offset voltage upon each of them.
# The capacitors are then switched so that this charge is applied across the comparator input, creating a comparator input voltage equal to {{math|−''V''<sub>in</sub>}}.
# The actual conversion process proceeds. First, the MSB capacitor is switched to {{math|''V''<sub>ref</sub>}}, which corresponds to the full-scale range of the ADC. Due to the binary-weighting of the array, the MSB capacitor forms a 1:1 charge divider with the rest of the array. Thus, the input voltage to the comparator is now {{math|−''V''<sub>in</sub> + {{frac|''V''<sub>ref</sub>|2}} }}. Subsequently, if {{math|''V''<sub>in</sub>}} is greater than {{frac|''V''<sub>ref</sub>|2}}, then the comparator outputs a digital 1 as the MSB, otherwise it outputs a digital 0 as the MSB. Each capacitor is tested in the same manner until the comparator input voltage converges to the offset voltage, or at least as close as possible given the resolution of the DAC.
 
[[File:CAPadc.png|thumb|3 bit capacitive ADC, using {{math|1=''V''<sub>ref</sub> = 5V}}. The bottom left transient simulation uses {{math|''V''<sub>in</sub> ≅ 3.5V}} or about {{math|.7}} of {{math|''V''<sub>ref</sub>}}, resulting in an answer of {{math|{{frac|5|8}}}} (101 in binary), representing {{math|3.125V}} or {{math|0.625}} of {{math|''V''<sub>ref</sub>}}. "PESE" is the voltage on the array, and its remaining final voltage is the conversion's residual error.|320x320px]]
=== Use with non-ideal analog circuits ===
# Discharge: The capacitors are discharged. (Note, discharging to comparator's offset voltage will automatically provide offset cancellation.)
When implemented as an analog circuit – where the value of each successive bit is not perfectly {{math|2<sup>''N''</sup>}} (e.g. 1.1, 2.12, 4.05, 8.01, etc.) – a successive-approximation approach might not output the ideal value because the binary search algorithm incorrectly removes what it believes to be half of the values the unknown input cannot be. Depending on the difference between actual and ideal performance, the maximal error can easily exceed several LSBs, especially as the error between the actual and ideal {{math|2<sup>''N''</sup>}} becomes large for one or more bits. Since the actual input is unknown, it is therefore very important that accuracy of the analog circuit used to implement a SAR ADC be very close to the ideal {{math|2<sup>''N''</sup>}} values; otherwise, it cannot guarantee a best match search.
# AllSampling: of theThe capacitors within the array are switched to the input signal {{math|''V''<sub>in</sub>}}. TheAfter a brief sampling period, the capacitors nowwill havehold a charge equal to their respective capacitance times the{{math|''V''<sub>in</sub>}} input voltage(and minus the offset voltage upon each of them), so the array holds a total charge of {{math|2''C''·''V''<sub>in</sub>}}.
# Hold: The capacitors are then switched soto thatground. thisThis charge is applied acrossprovides the comparator's negative input, creatingwith a comparator input voltage equal toof {{math|−''V''<sub>in</sub>}}.
# 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 {{math|''V''<sub>ref</sub>}}. 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 {{math|1:1}}, so the comparator's negative input becomes {{math|−''V''<sub>in</sub> + {{frac|''V''<sub>ref</sub>|2}}}}. On the {{math|''i''<sup>th</sup>}} iteration, the ratio will be {{math|1:2<sup>''i''−1</sup>}}, so the {{math|''i''<sup>th</sup>}} iteration of this redistribution step effectively adds {{math|{{frac|''V''<sub>ref</sub>|2<sup>''i''</sup>}}}} to the voltage.
## Comparison: The comparator's output determines the bit's value for to the current test capacitor. In the first iteration, if {{math|''V''<sub>in</sub>}} is greater than {{frac|''V''<sub>ref</sub>|2}}, 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 {{math|''V''<sub>ref</sub>}} for subsequent iterations, while a digital 1 result will switch the capacitor back to ground. Thus, each {{math|''i''<sup>th</sup>}} iteration may or may not add {{math|{{frac|''V''<sub>ref</sub>|2<sup>''i''</sup>}}}} to the comparator's negative input voltage. For instance, the voltage at the end of the first iteration will be {{math|−''V''<sub>in</sub> + MSB·{{frac|''V''<sub>ref</sub>|2}}}}.
# 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 ==
Line 69 ⟶ 100:
 
{{DEFAULTSORT:Successive Approximation Adc}}
[[Category:Electronic circuits]]
[[Category:Digital signal processing]]
[[Category:Analog circuits]]