I switched from a 16F887a to 18F4610. I have everything running including a serial output controlling a dual pot.

My problem is always those darn adc ports. I need to set up and read analog on porta 0 -7. I get strange readings or nothing at all. I had it working fine on the 877A, but can't make the transition on the 4610.

A little sample code would be great. I admit I don't grasp the adcon settings, any simplified explanation would help, with examples. Maybe I can get my mind around these adcon settings.

Thanks,

Geezer