8051 ADC initialization

Hello everyone,
Could someone tell me how to initialize an ADC(0808) with AT89c52.
Is there any example code i can follow.

I want to read the value from a potentiometer and display its equivalent ADC count on an LCD.
I am using proteus to simulate the voltage.

Many thanks:)
Arun

More questions in this forum