Content deleted Content added
Em3rgent0rdr (talk | contribs) →Inaccuracies in non-ideal analog circuits: add about how SAR is commonly used in microcontrollers but suffer from inaccuracies in microcontroller. |
Em3rgent0rdr (talk | contribs) →Examples: pretty sure Example 1 animation is just 9-bit, not 10-bit, conversion. Going from x-axis label 1 to x-axis notch 2 is determining the MSB. See talk. |
||
Line 27:
===Examples===
'''Example 1:''' The
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
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.
Line 36:
# Initialize register with MSB set to 1 and all other values set to zero.
# In the n
{{Multiple image|
|