5-3
6000 Series user’s manual
Serial ports
Method 1
The system display will not appear over COM1 while the BIOS boots.
1. Run SETUP to disable the “COM1 as console” option.
2. Use QuickBASIC’s OPEN/CLOSE/PRINT/INPUT commands to access
COM1. The following is an example program using these commands:
OPEN "COM1:9600,N,8,1,BIN" FOR RANDOM AS #1
CRLF$=CHR$(13)+CHR$(10)
PRINT #1, "INPUT A STRING" + CRLF$
INPUT #1, A$
PRINT #1, CRLF$ + A$
CLOSE #1
Note
All PRINT/PRINT USING/INPUT . . . commands must use the COMx
device number, where x represents the COM port used.
Method 2
1. Run SETUP to enable the “COM1 as console” option.
2. Use QuickBASIC’s OPEN/CLOSE/PRINT/INPUT commands to access
COM1. After closing the device, manually restore the serial param-
eters. The following example assumes 9600, N, 8, and 1 parameters:
OPEN"COM1:9600,N,8,1,BIN" FOR RANDOM AS #1
CRLF$ = CHR$(13) + CHR$(10)
PRINT #1, "INPUT A STRING" + CRLF$
INPUT #1, A$
PRINT #1, CRLF$ + A$
CLOSE #1
Note
All PRINT/PRINT USING/INPUT . . . commands must use the COM1
device number.
3. Restore the serial parameters by using a batch file specifying your
program’s name as the first line of the file and COM1CON as the last
line of the file.
For example, TEST.BAT may include the following to execute a user
application named USECOM1:
USECOM1
COM1CON
Execute TEST.BAT.
COM1 will be used as a communication port by USECOM1, then COM1
is restored to a console port by COM1CON.
Note
COM1CON is located on the PC Microcontroller utility disk.
Summary of Contents for 6000 Series
Page 7: ...Notice to user PC 500 user s manual ...
Page 9: ...About this manual 6000 Series user s manual ...
Page 37: ...2 20 Quick start 6000 Series user s manual ...
Page 65: ...5 16 Serial ports 6000 Series user s manual ...
Page 87: ...6 22 EZ I O 6000 Series user s manual ...
Page 103: ...8 8 Analog I O 6000 Series user s manual ...
Page 119: ...14 2 PC 104 expansion 6000 Series user s manual ...
Page 133: ...16 4 Watchdog timer reset and remote reset 6000 Series user s manual ...
Page 139: ...17 6 Serial EEPROM 6000 Series user s manual ...
Page 157: ...21 2 Software utilities 6000 Series user s manual ...
Page 161: ...22 4 Troubleshooting 6000 Series user s manual ...
Page 177: ...A 16 6010 technical data 6000 Series user s manual ...
Page 215: ...D 16 6040 technical data 6000 Series user s manual ...
Page 229: ...F 2 Miscellaneous 6000 Series user s manual ...