Just a question Menta, why did you set the ports as analogue if you are using them for a switch???
They aren't...
PortA is set for analog...
PortB is set for digital (ANSELH = 0). The comment behind the line in the code a few posts back is technically correct, but slightly misleading.
Bookmarks