NEW 1 D=1 2 E=1 10 A=KEY 11 IF A=0 20 12 B=27 13 IF A=B 0 20 A=1 21 LOOP 50 22 C=A 23 CHECKSW A 24 IF A=B 33 25 LED=1 26 PRINT "S" 27 PRINT C 28 PRINT "=" 29 PRINT A 30 PRINT 13 31 PRINT 10 32 LED=0 33 A=C 34 A=A+1 35 ENDLOOP 40 IF INT=0 45 41 A=1 43 GOTO 46 45 A=0 46 B=D 47 D=A 48 IF A=B 60 49 LED=1 50 PRINT "I" 51 PRINT "N" 52 PRINT "T" 53 PRINT "=" 54 PRINT A 55 PRINT 13 56 PRINT 10 57 LED=0 60 IF SW1=0 65 61 A=1 63 GOTO 66 65 A=0 66 B=E 67 E=A 68 IF A=B 80 69 LED=1 70 PRINT "S" 71 PRINT "W" 72 PRINT "1" 73 PRINT "=" 74 PRINT A 75 PRINT 13 76 PRINT 10 77 LED=0 80 GOTO 10 this line and the lines below are comments and can be removed with a text editor or the errors caused by trying to upload them can be ignored ------------------------------- chgiobin.tmb for the SI5150 Display any changes on the switch inputs 1-50, the interrupt input INT, and the pushbutton switch SW1 to the serial port. Flashes the LED during transmit. Exits program if Escape character received. Instruction CHECKSW returns the new status of the switch input tested in A and the previous status in B. If A and B are not the same, the input has changed states since the last time that input was tested using CHECKSW.