Your main loop is this:
According to this lines, it should send the commands, wait 10sec and then ... END! Meaning the PIC enters an endless loop for ever. So, it realy does what you wanted to do!Code:MAIN: COM=$A6:GOSUB SEND_COMMAND '$A6=NORMAL MODE;$A7=INVERSE MODE 'PAUSE 100 COM=$2E:GOSUB SEND_COMMAND COM=$27:GOSUB SEND_COMMAND COM=$00:GOSUB SEND_COMMAND COM=$03:GOSUB SEND_COMMAND COM=$04:GOSUB SEND_COMMAND COM=$06:GOSUB SEND_COMMAND COM=$00:GOSUB SEND_COMMAND COM=$FF:GOSUB SEND_COMMAND COM=$2F:GOSUB SEND_COMMAND PAUSE 10000 End GOTO MAIN
Maybe you wanted to do the above of MAIN series of GOSUB's?
Ioannis.




Bookmarks