RB1 is also AN10.
You need to disable the analog functions on the pins you want to use as digital.
ANSEL and ANSELH
<br>
RB1 is also AN10.
You need to disable the analog functions on the pins you want to use as digital.
ANSEL and ANSELH
<br>
DT
Thanks for the reply I will give that a try tomorrow. I am still confused as to why it works in the main program loop that calls that sub show above with out having those set. I will let you know if it works.
well what do you know...it works now. Many thanks. I guess I kinda missed the part about that changing when enabling A/D....oops
If only Microchip would leave all that stuff turned OFF on power-up, things would be a lot easier.
And this forum would have a couple thousand fewer threads.
Glad you got it working.
DT
Bookmarks