This application note describes two low-cost ADC techniques that utilize the analog comparator in the AT89C1051 and AT89C2051 microcontrollers.