You want to write directly to ADCON1 so you have at least Fosc/8 for 4MHz.
ADCIN doesn't do this for you - so your AD conversion clock is way too fast with ADCON1 = 0 by default.
You want to write directly to ADCON1 so you have at least Fosc/8 for 4MHz.
ADCIN doesn't do this for you - so your AD conversion clock is way too fast with ADCON1 = 0 by default.
Bookmarks