Hi, Sayzer
I do not want to use sims ... lol
BTW :
...
IF PORTB.0=0 then
HIGH PORTB.4
WHILE PORTB.0=0 : Wend : pause 50
ENDIF
IF PORTB.0=0 then
LOW PORTB.4
WHILE PORTB.0=0 : Wend : pause 50
ENDIF
...
This kind of structure can't work properly ... as the second part never can be reached !!! ( or toggling button in less than 1µs ... )
Button state AND its corresponding output state must be tested at the same time ... to take the appropriate action.
Alain
Last edited by Acetronics2; - 29th August 2009 at 11:09.
************************************************** ***********************
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