Context needed !!!
Hi,
The problem could be ... at first, once you release you button ... value comes back to the default.
you ,may be, have to memorize the last button press action ...
Now ... dependinding on your PIC ( BTW ... Which one do you use ??? ) PortB.6 and 7 can be shared with ADC, ( ADCON1 <> 7 !!! ) , clock ... or sthg else.
Osc settings are also necessary to understand how your circuit is REALLY working ...
Your scheme could be useful, in the end, to see if any pulldown on your inputs ...
Alain
************************************************** ***********************
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