Quote Originally Posted by gtrplaya101 View Post
Thanks for the link.
Is there not just a short command that I can place into the code that will change all of PortA pins to digital input?
That's what AllDigital does ...
Code:
INCLUDE "ALLDIGITAL.pbp"
Would this work?
Code:
CMCON = 7
ADCON1 = 7
Yes, that will work on a 16F877A.
And is exactly what AllDigital would do.

But when you go to use a different chip, those registers will probably not work anymore and you'll have to search the datasheets to see which ones are needed for that chip.

AllDigital will still work no matter which chip you are using.
<br>