The input analog signal (green triangle wave) is compared to the output of a DAC which is increased until it matches the input analog signal voltage. The value of the binary value fed into the DAC in order to match the analog input is taken as the converted digital value.