NEW 10 LED=1 11 A=1 12 LOOP 16 13 C=A 14 CHECKSW A 15 PRINT A 16 A=C 17 A=A+1 18 ENDLOOP 19 LED=0 20 PRINT " " 21 IF DI1=0 25 22 PRINT "1" 23 GOTO 30 25 PRINT "0" 30 IF DI2=0 35 31 PRINT "1" 33 GOTO 40 35 PRINT "0" 40 IF DI3=0 45 41 PRINT "1" 43 GOTO 50 45 PRINT "0" 50 IF INT=0 55 51 PRINT "1" 53 GOTO 60 55 PRINT "0" 60 IF SW1=0 65 61 PRINT "1" 63 GOTO 67 65 PRINT "0" 67 PRINT " " 70 A=INT 71 PRINT A 72 PRINT 13 73 PRINT 10 75 A=KEY 76 IF A<>0 0 77 DELAY 5 78 GOTO 1 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 ------------------------------- si51io.tmb for the SI51 Test/display all I/O on the SI51. Display format is: Switch inputs S1-S16, digital inputs 1-3 status, interrupt input status, interrupt input count. LED is flashed.