OOPS i am really sorry about that.... i really don't know where my head was when i wrote it. Thanks Dwayne for correcting me!
here's a little example
Code:
SetButton VAR PORTA.0
InitialValue VAR BYTE
Read 0,InitialValue
start:
While NOT SetButton
PORTB=InitialValue
pause 1000
PORTB=0
PAUSE 1000
Wend
InitialValue=InitialValue-1
write 0,Initialvalue
While setbutton
wend
pause 50 ;cheap way to debounce pushbutton
goto start
Last edited by mister_e; - 1st November 2004 at 19:19.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks