Hello Everyone and thank you for all the help.

I have benefited greatly form searching many other posts and using the information, this is however my first post. I am a new user to the PIC microcontroller, but have used basic stamps for some time now.

I am about to try using an analog input for the first time. I will be using a pic16F819 to read a potentiometer for speed adjustment. Until now, I have been using the POT and RCTIME commands, but I am tired of the weird performance curve near the low end of the potentiometer. In the past I have used a pic16F648A and when using portA ports I have used the CMCON=$07 command to turn all the portA pins to digital IO.

Is it possible to selectively turn some pins digital while leaving other pins as analog inputs?

Best Regards,

Kurt A. Kroh
“Goodbye and thanks for all the fish”