Quote Originally Posted by mikey11 View Post
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.
I agree with Al, set port latches low before the tris register and make sure RBPU is disabled OPTION_REG.7 = 1