
Originally Posted by
ngeronikolos
Code:
-----------------------------------------------------------------MAIN: IF PORTB.6 = 1 THEN STATIC
WHILE PORTA.3 = 1 AND PORTA.4 = 1 <--it does not work when I it receives
GOTO MENU
wend
DYNAMIC: IF RCIF = 1 THEN
HSERIN 300,MAIN,[WAIT(X),STR SERDATA\17] ;X = header - address
GOSUB OUT
gosub SERTALLY
ENDIF
GOTO MAIN
-----------------------------------------------------------------
what do MENU, OUT and SERTALLY do?
and...
you are using a While...Wend loop that is jumped out of as soon as the condition in the While statement is met.
That doesn't make much sense, better would be something like:
Code:
IF PORTA.3 = 1 AND PORTA.4 = 1 THEN GOTO MENU
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Bookmarks