QuickBasic Program to Send a Break through COM1 Port (43746)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q43746 SUMMARY
Below is a Microsoft QuickBasic program that sends a Break through
COM1 using the OUT statement. To cause a Break condition to be output
on the communications line, the Line-Control Register must be read in,
the Break bit set (bit number 6), and the register rewritten to the
port. The Line-Control Register is an 8250 register at I/O port
address 3FB hex. More information concerning the Line-Control Register
and other 8250 registers can be found on Pages 177-181 in "8088
Assembler Language Programming: The IBM PC," 2nd edition, by David C.
Willen and Jeffrey I. Krantz (published by SAMS, 1988).
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | KB43746 |
---|
|