PIC16F877A ADC example ~ Technoburst
Given below is a sample program for testing the ADC of PIC16F877A. This program will read the analog input at channel 0 (AN0) of PIC16F877A. If the read value is greater than 512 (~2.5 volts), LED connected to the RD7 will be switched on. You can vary the...