Quote Originally Posted by aratti View Post
Code:
'declare inputs and outputs appropriately
PortA = 0
PortB = 0
TRISA = %00111100 ' a.5 is INPUT only
TRISB = %11100100
Try to set portA and B to zero before Tris
What value is your pulldown resistor?

Al.
the pulldown resistor is 1000 ohms.

I won't have the opportunity to try new code for a while, but I will try that when I get a chance.