Introduction - If you have any usage issues, please Google them yourself
ADC0809 with AT89C51 and then compile a program: ADC0809, respectively, to the two input ports, respectively, 0 ~ 5V input voltage, and in four C51 output port corresponding to the output high and low.