That's what AllDigital does ...Code:INCLUDE "ALLDIGITAL.pbp"Yes, that will work on a 16F877A.Would this work?
Code:CMCON = 7 ADCON1 = 7
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>





Bookmarks