2 / 2 6 / 2 0 0 2 2 : 0 6 P M 2 / 2 6 / 2 0 0 2
7 9
N M I L - 5 0 0 0 A C I A S E R I A L C O M M U N I C A T I O N
B A S I C S A M P L E P R O G R A M
REM Report receiver interrupt request disable
20400 CMMANDN = CMMAND .AND. 02H
20410 IF(CMMANDN)THEN PRINT " Int. Requests Disabled ": GOTO 20490
20420 PRINT " Int. Requests Enabled "
20490 RETURN
REM Report DTR Status
20500 CMMANDN = CMMAND .AND. 1H
20510 IF(CMMANDN)THEN PRINT" Data terminal ready (DTR' low)":GOTO 20590
20520 PRINT " Data terminal NOT ready (DTR' high)"
20590 RETURN
REM Report Command register
20600 CMMAND = XBY(0FFE2H)
20610 GOSUB 20200
:REM Report parity type
20620 GOSUB 20300
:REM Report RTS setting
20630 GOSUB 20400
:REM Report receiver interrupt request disable setting
20640 GOSUB 20500
:REM Report DTR Status
20690 RETURN
REM Report stop bits
20700 CNTROL = XBY(0FFE3H) .AND. 0E0H
20702 IF ((CNTROL .AND. 060H) = 0H) THEN PRINT " 8 bits ",
20704 IF ((CNTROL .AND. 060H) = 020H) THEN PRINT " 7 bits ",
20706 IF ((CNTROL .AND. 060H) = 040H) THEN PRINT " 6 bits ",
20708 IF ((CNTROL .AND. 060H) = 060H) THEN PRINT " 5 bits ",
20710 IF (CNTROL < 080H) THEN PRINT " 1 stop bit " : GOTO 20790
REM Get Receiver Echo Mode
20720 CMMAND = XBY(0FFE2H).AND.020H
REM Get WL1 and WL0
20730 CNTROL = CNTROL.AND.60H
20740 IF((CNTROL=0).AND.(CMMAND=20H))THEN?" 1 stop bit ":GOTO 20790
20750 IF((CNTROL <> 60H).OR.(CMMAND <> 0))THEN GOTO 20770
20760 PRINT " 1.5 stop bits " : GOTO 20790
20770 PRINT " 2 stop bits "
20790 RETURN
REM Report Control Register
20800 GOSUB 20700
:REM Report stop bits
20810 CNTROL = XBY(0FFE3H).AND.1FH
20820 IF ((CNTROL.AND.10H)=0) THEN PRINT " external clock ": GOTO 20890
20830 CNTROL = CNTROL .AND. 0FH
20840 PRINT BAADS( 1), " baud "
20890 RETURN
REM Report all registers
20900 GOSUB 20600
:REM Report command register
20910 GOSUB 20800
:REM Report control register
20920 GOSUB 20100
:REM Report status register
20929 RETURN
Summary of Contents for NMIY-0031
Page 1: ...2 2 6 2 0 0 2 2 0 6 P M 1 NMIY 0031 Single Board Computer Covers NMIY 0031 V1 0 4 22 96 ...
Page 2: ...2 2 6 2 0 0 2 2 0 6 P M 2 ...
Page 6: ...2 2 6 2 0 0 2 2 0 6 P M 6 ...
Page 8: ...2 2 6 2 0 0 2 2 0 6 P M 8 ...
Page 14: ...2 2 6 2 0 0 2 2 0 6 P M 1 4 ...
Page 30: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 0 ...
Page 32: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 2 ...
Page 50: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 0 ...
Page 52: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 2 ...
Page 54: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 4 ...
Page 56: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 6 ...
Page 58: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 8 ...
Page 60: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 0 ...
Page 62: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 2 ...
Page 68: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 8 ...
Page 70: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 0 ...
Page 72: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 2 ...
Page 76: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 6 ...
Page 82: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 2 ...
Page 84: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 4 ...
Page 86: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 6 ...
Page 88: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 8 ...
Page 90: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 9 0 ...
Page 102: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 2 ...
Page 108: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 8 ...
Page 110: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 0 ...
Page 114: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 4 ...
Page 118: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 8 ...
Page 126: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 6 ...
Page 128: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 8 ...
Page 134: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 3 4 ...
Page 148: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 4 8 ...
Page 150: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 0 ...
Page 152: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 2 ...
Page 154: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 4 ...
Page 156: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 6 ...
Page 168: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 6 8 ...
Page 170: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 0 ...
Page 172: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 2 ...
Page 174: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 4 ...
Page 178: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 8 ...