hi,
I think it is "not so good" to change osc settings WHILE you touch the button ( debounce issue guaranteed !!! ...PORTD can show anything but truth !!! )
good reason for #2 to work better ... ONLY better.
I ( it's me ...) Would look for button state CHANGES instead of simply the button state ...
Alain
Last edited by Acetronics2; - 7th December 2008 at 14:23.
************************************************** ***********************
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