GP3 is always an input pin no matter what you do.
Also, when you set a pin as an output pin, like you frequently do in your code, the weak pull-up register won't work the next time the same pin is set to be an input pin.
If you assign a pin as an input pin AFTER you set it to an output pin previously, then you need to register to weak pull-up register again.
----------------------------
Last edited by sayzer; - 22nd April 2007 at 10:45.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks