successive approximation Algorithm

ADC is a type of analog-to-digital converter that converts a continuous analog waveform into a discrete digital representation via a binary search through all possible quantization levels before finally converging upon a digital output for each conversion. A successive estimation

successive approximation source code, pseudocode and analysis

A register to store the output of the comparator and use xi−1 − s(xi−1 − x)/2i. A sample and keep circuit to acquire the input voltage (Vin).