Nah... it have to work. To me it's because you don't have any pull-down resistor attached to your PORTB.5 pin... right?
in worst case you could still use the internal PULL-UP... wich never turned me on... but usefull when you feel lazy 
Code:
OPTION_REG.7 = 0 ' Active les pull-up de tapette ;o)
And then, you just need to change the IF PORTB.5=1 to = 0
Last edited by mister_e; - 11th February 2007 at 14:16.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks