hello guys.. i have a project intending to control the brightness of an LED light using PWM in PIC microncontroller.. i also used LDR as a sensor. I find some difficulty regarding the program of PWM as well as the program for the sensor that there is no need for ADC.. can you help me regarding this matter that can make me understand the concept of the program? or can you provide me a sample program for this.. thank you guys..