Using ADC Module of PIC Microcontroller - Hi Tech C
Hi-Tech C Code #include #include #define _XTAL_FREQ 8000000 void ADC_Init() { ADCON0 = 0x41; //ADC Module Turned ON and Clock is selected ADCON1 = 0xC0; //All pins as Analog Input //With reference voltages VDD and ......