MSP430 Microcontroller Basics

Successive-approximation converters have been the general-purpose ADCs for many years. Their resolution is typically 10-12 bits and the speed can reach megasamples per second (Msps) although those in the MSP430 are not that fast. For some reason the name is expanded into "successive-approximation register" so that it can be contracted to SAR.
SARs work by homing in on the result using binary chopping, which is a standard way of finding solutions to equations of the form f(x) = 0. The sequence of operations for an input voltage of V in = 0.4 V FS to a 4-bit SAR ADC is illustrated in Figure 9.13. Here are the steps:
The input voltage V in is compared with the midpoint V FS of the full range.
In this case V in < V FS so the most significant bit (msb) = 0.
We now know that the input lies between 0 and V FS. The input is next compared with the midpoint of this range, V FS.
We find V in > V FS so the next bit is 1.
Now we know that the input lies between V FS and V FS. The input is next compared with the midpoint of this range, ? V FS.
We find V in > ? V FS so this bit is 1 again.
Now we know...