Toggling RTS Handshaking Line (Pin 4) with OUT Statement (79957)
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 for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
This article was previously published under Q79957 SUMMARY
The communications port Request to Send (RTS) line (pin 4) can be
toggled with a Basic OUT statement. The OUT statement should access
the modem control register I/O port in the Universal Asychronous
Receiver Transmitter (UART). The modem control register is a byte that
indicates the status of the UART Loopback test mode, OUT2 signal, OUT1
signal, RTS output, and Data Terminal Ready (DTR) output.
This information applies to Microsoft QuickBasic versions 4.0, 4.0b,
and 4.5; Microsoft Basic Compiler versions 6.0 and 6.0b for MS-DOS;
and Microsoft Basic Professional Development System (PDS) versions 7.0
and 7.1 for MS-DOS.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB79957 |
---|
|