First,THANKS ALL FOR HELP!!!
THIS IS CODE i WILL TRY TO MODIFIED,
ButtonPressCounter var byte
SWITCHLOOP:
IF PORTA.2 = 0 THEN
IF ButtonPressCounter = 3 THEN ButtonPressCounter = 0
ButtonPressCounter = ButtonPressCounter + 1
IF ButtonPressCounter = 1 THEN GOSUB Program1
IF ButtonPressCounter = 2 THEN GOSUB Program2
IF ButtonPressCounter = 3 THEN GOSUB Program3
ENDIF
GOTO SWITCHLOOP:
Program1:
high portb.1
PAUSE 500
LOW PORTB.1
PAUSE 500
RETURN
Program2:
high portb.2
PAUSE 500
LOW PORTB.2
PAUSE 500
RETURN
Program3:
high portb.3
PAUSE 500
LOW PORTB.3
PAUSE 500
RETURN
This code work good,but,I need just when I press my button,then,
still working on some on this may program,
program1,program2,program3!!!
I do not how I make some changes,that will be working!
Bookmarks