Serial Ports – 39
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 includes the following to execute a
QuickBASIC V4.5 (or other language) application named
USECOM1:
USECOM1
COM1CON
Then execute TEST.BAT.
M
ETHOD
3
1.
Leave the video jumper W3[1–2] on.
2.
Use the PRINTS, PRINTSL, KEYHIT$, INKEY2$ commands
as found in the DEMO.BAS and DSQBTEST.BAS programs
(included on the utility diskette). Unformatted string output
and string input must be done manually.
NOTE: Programs written in this manner will also work with a
video card present and therefore systems can be “debugged” on
your PC.
M
ETHOD
4
1.
Use an off–the–shelf communications library.
2.
This may require restoring the COM1 parameters similar to
method 2, if the console video is expected after the
QuickBASIC program terminates.
StockCheck.com
Содержание 4010
Страница 20: ...Overview 10 This page intentionally left blank S t o c k C h e c k c o m ...
Страница 52: ...Watchdog Timer 42 This page intentionally left blank S t o c k C h e c k c o m ...
Страница 56: ...Serial EEPROM 46 This page intentionally left blank S t o c k C h e c k c o m ...
Страница 68: ...PC 104 58 This page intentionally left blank S t o c k C h e c k c o m ...
Страница 76: ...Troubleshooting 66 This page intentionally left blank S t o c k C h e c k c o m ...