Compaq COM-2(PC)F Computer Hardware User Manual


 
Appendix
COM-2(PC)F 47
Sample Program 3
This GW-BASIC sample program demonstrates the transmit-data
capability of COM-2(PC)F in Compatible mode. Using this
[OPEN "COM1 : 9600, N, 8, 2, DS" AS #1] command opens the
RS-232C communication file (COM1). It then writes the data
input from the keyboard to COM1 through CN1.
None Key
In Key
Set
Communication File
Data Transmission
START
A$=INKEY$
Figure 6.5. Flowchart of Sample Program 3