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
Содержание NMIY-0031
Страница 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 ...
Страница 2: ...2 2 6 2 0 0 2 2 0 6 P M 2 ...
Страница 6: ...2 2 6 2 0 0 2 2 0 6 P M 6 ...
Страница 8: ...2 2 6 2 0 0 2 2 0 6 P M 8 ...
Страница 14: ...2 2 6 2 0 0 2 2 0 6 P M 1 4 ...
Страница 30: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 0 ...
Страница 32: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 3 2 ...
Страница 50: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 0 ...
Страница 52: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 2 ...
Страница 54: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 4 ...
Страница 56: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 6 ...
Страница 58: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 5 8 ...
Страница 60: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 0 ...
Страница 62: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 2 ...
Страница 68: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 6 8 ...
Страница 70: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 0 ...
Страница 72: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 2 ...
Страница 76: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 7 6 ...
Страница 82: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 2 ...
Страница 84: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 4 ...
Страница 86: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 6 ...
Страница 88: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 8 8 ...
Страница 90: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 9 0 ...
Страница 102: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 2 ...
Страница 108: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 0 8 ...
Страница 110: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 0 ...
Страница 114: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 4 ...
Страница 118: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 1 8 ...
Страница 126: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 6 ...
Страница 128: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 2 8 ...
Страница 134: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 3 4 ...
Страница 148: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 4 8 ...
Страница 150: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 0 ...
Страница 152: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 2 ...
Страница 154: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 4 ...
Страница 156: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 5 6 ...
Страница 168: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 6 8 ...
Страница 170: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 0 ...
Страница 172: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 2 ...
Страница 174: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 4 ...
Страница 178: ...2 2 6 2 0 0 2 2 0 6 P M 2 2 6 2 0 0 2 1 7 8 ...