I think this is all you need to set for this PIC. I have not used one for awhile...
Code:Define ADC_BITS 8 ' Set number of bits in result Define ADC_CLOCK 3 ' Set clock source (3=rc) Define ADC_SAMPLEUS 50 ' Set sampling time in uS TRISA.0=1 ANSEL.0=1
Bookmarks