101
APPENDIX D: Sample Programs
10
REM ***
Keyboard Controller Program for the 488 Controller
20
REM ***
Running under IBM BASIC.
30
REM ***
This program allows direct interaction between the IBM PC and bus
40
REM ***
device(s) with the 488 Controller.
50
REM ***
The 488 Controller must be configured as the System Controller.
60
REM ***
70
REM ***
80
REM ***
90
REM ***
100
CLS
110
' Open the serial communications port and set parameters
120
OPEN "COM1: 9600, n, 8, 2, cs, ds" AS 1
130
' Display any characters received from the COM1 port
140
IF LOC (1) THEN PRINT INPUT$ (LOC (1), 1);
150
' Transmit key presses from keyboard to the COM1
160
K$ = INKEY$
170
PRINT #1,K$; : PRINT K$;
180
GOTO 140 ' Do it again
Appendix D: Sample Programs
Содержание 488 Controller
Страница 94: ...488 CONTROLLER 92 9 2 Board Layout Figure 9 1 The 488 Controller s motherboard...
Страница 95: ...93 CHAPTER 9 Theory of Operation Board Layout Figure 9 2 The interface converter s serial I O board...
Страница 102: ...488 CONTROLLER 100 How To Read the Chart Hexadecimal Decimal Equivalent Equivalent ASCII Character Address or Command...