setup: ;skip transmission of data, there is none anyway #NO_DATA ;increase frequency to that of receiver ;M16 frequency requires a 19200 PC baud rate SETFREQ M16 ;blink LED to alert that the program is beginning HIGH C.2 PAUSE 1000 LOW C.2 PAUSE 1000 GOTO main main: ;wait for the launch button to be pressed GOSUB input_button ;signal the RF receiver three times for redundancy (in case the RF link is not 100%) HIGH C.1 SEROUT C.1, N600_4, ("UUUUUUUUUUUUU") PAUSE 5 HIGH C.2 SEROUT C.1, N600_4, ($AA, $BB, $CC, 49) PAUSE 50 LOW C.2 PAUSE 500 HIGH C.2 SEROUT C.1, N600_4, ($AA, $BB, $CC, 49) PAUSE 50 LOW C.2 PAUSE 500 HIGH C.2 SEROUT C.1, N600_4, ($AA, $BB, $CC, 49) PAUSE 50 LOW C.1, C.2 ;wait for the button to be pressed again for next launch PAUSE 1000 goto main ;====================| MAIN TEXT SUBROUTINES |==================== input_button: IF pinC.6 = 1 THEN b0 = 10 RETURN END IF GOTO input_button