hii folks...i am using a PIC16F876A micro..it doesnt have ne inbuilt DAC...How to check its ADC is properly working or not...I followed the approach below
i gave a reference of 2V inside the code...varied the input to the micro..in the code i gave a condition that if the input voltage was more than 2 then it would generate pulses of certain fixed frequency(set in code)....and it is showing the result...Is it the correct approach???
simply put result of the ADC on a port and use LED to see the result. why you have complicated the situation? furthermore your approach does not guarantee that the ADC works properly.
there many ways to check the adc is working proper or not but the steps you follow in above blog will give you surety that you configured the adc well correct and its is working fine.
That chip has 2 comparator modules as well as a fairly flexible reference source module (or you can use your own external reference pin) - why use the ADC at all if all you want to do is see if an input is above or below your reference.
Susan