Analog to digital converter

An analog to digital converter (ADC) converts an analog signal to a digital signal. The first digit of the digital output is a one if the analog voltage is at least half of the reference voltage. The second digit is a one if the remaining voltage is larger than 1/4 of the reference voltage, and so on.