
Originally Posted by
HenrikOlsson
Hi,
I'd suggest that you forget about the comparators for now, they COULD be used for what you want but the ADC will be easier for you.
To use the Analog to Digital Converter you use the ADCIN command. That command and all the others are decribed in the manual you shouldn've received when you bought PBP. If you have PBP3 then the manual even got installed as a.pdf on your system when you installed the compiler. If you have MicroCodeStudio a lot of information is available in the Help, the datasheet for your PIC is available from Microchips website and I'm sure that if you search the forum you'll find a LOT of info and examples showing how to use the ADC.
/Henrik.
Bookmarks