Has anyone successfuly manipulated the ADC hardware directly? It appears that the C compiler function “SetChanADC()” doesn’t work correctly. I have tried to set the channel manually but can’t seem to get it to work correctly.
The PIC (and IFI) defines show the channel # shifted left three bits, but the 18F8520 data sheet shows them shifted only 2 bits. SetChanADC() doesn’t shift the bits at all.
OpenADC() does the right thing with the channel, but I don’t want the overhead…