2 / 2 6 / 2 0 0 2 2 : 0 6 P M 2 / 2 6 / 2 0 0 2
7 7
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
NEW
REM
REM This program demonstrates the use of the NMIL-5000 ACIA board
REM with the NMIY-0031 processor card as controller.
REM
REM The user is presented with a menu of various ACIA modes. The
REM selection made is executed. Some of the modes may be interrupted
REM through use of cntrl-C on the remote terminal. When the cntrl-C
REM is entered, the PC terminal program will reprint the menu.
REM
REM
10 DIM BAADS(16)
11 BAADS(1) = 0
12 BAADS(2) = 100
13 BAADS(3) = 150
14 BAADS(4) = 220
15 BAADS(5) = 269
16 BAADS(6) = 300
17 BAADS(7) = 600
18 BAADS(8) = 1200
19 BAADS(9) = 2400
20 BAADS(10) = 3600
21 BAADS(11) = 4800
22 BAADS(12) = 7200
23 BAADS(13) = 9600
24 BAADS(14) = 14400
25 BAADS(15) = 19200
26 BAADS(16) = 38400
REM Initialize NMIL-5000
110 CMMAND = 0CBH
120 CNTROL = 01CH
130 GOSUB 10000
:REM Initialize registers
REM Main control loop menu
1000 ?:?:?:?
1010 ?"0 Report status register"
1020 ?"1 Report command register"
1030 ?"2 Report control register"
1040 ?"3 Send a test pattern to remote"
1050 ?"4 Receive test1"
1060 ?"5 Receive test w/ RTS handshaking for RS232"
1070 ?"6 Test full duplex"
1080 ?"7 Receive test with no RTS handshaking":?:?
1090 INPUT "Please enter the number of your choice:"CHOICE
1100 IF (CHOICE = 0) THEN GOSUB 20100
1110 IF (CHOICE = 1) THEN GOSUB 20600
1120 IF (CHOICE = 2) THEN GOSUB 20800
1130 IF (CHOICE = 3) THEN GOSUB 30000
1140 IF (CHOICE = 4) THEN GOSUB 30100
1150 IF (CHOICE = 5) THEN GOSUB 30200
1160 IF (CHOICE = 6) THEN GOSUB 30300
1170 IF (CHOICE = 7) THEN GOSUB 30400
1200 GOTO 1000
:REM Loop forever
REM Initialize setup registers
9999 CMMAND = 0CBH : CNTROL = 01CH
REM default settings for serial
10000 XBY(0FFE1H) = 0
REM data 8-N-1 at 9600 baud
10010 XBY(0FFE2H) = CMMAND
10020 XBY(0FFE3H) = CNTROL
10090 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 ...