
Originally Posted by
Melanie
Never trust the state of any I/O on Power-Up - regardless of what the Datasheet says.
Always preset your I/O's within your program to what you want them to be as one of the first things you do when initialising the PIC.
Hi, Mel
You do know the only one I trust in, is you, Mel ... ( Violins [ON] , Crooner [ON], Rose Petals drop [ON], Champagne [ON] ... )
I just think you missed my two I/O Config lines ... ( Was late, eh ...)
I must tell it ALSO affects GPIO.4 ... so, I have to try adding a little PAUSE after those CONFIG Lines, I smell a Power on little issue ... That make BUTTON read a low level when power up ...
OR May be a " HIGH GPIO.0 " Command before the first BUTTON Command to ensure the High Level ...
Testing a HIGH level for Button1 pressed is to also an idea ( some capacitive effects on GPIO.0 ??? ... despite it has no load but a Pullup resistor !) ...
But, that's not something " normal " ...
Alain
Last edited by Acetronics2; - 4th September 2009 at 08:40.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks