I am using cygnal microcontroller C8051F000. can anyone please suggest how to program for ADC. it has inbuilt ADC.
Enable_ADC(); ADC_Start_Conversion(); while(!DataReady); data = ADC_GetData();
or....read the data sheet for you micro and learn!