Article View: comp.os.msdos.programmer
Article #4625Re: COM4 in TP5.5 or QC2.0
From: Dave The DM
Date: Mon, 11 Feb 1991 01:56
Date: Mon, 11 Feb 1991 01:56
30 lines
1738 bytes
1738 bytes
In article <BLK.91Feb5162321@vanity.mitre.org> blk@mitre.org (Brian L. Kahn) writes:
>
>I want to do some simple serial comm over COM4, but my compilers
>(TP5.5 and QC2.0) seem to think there are only two comm ports.
>Haven't there been 4 since the AT? Is there a way to use COM4 from
>TP5.5?
>
>--
>B< Brian Kahn blk@security.mitre.org "may the farce be with you"
Well, problem #1 arises from the fact that DOS only (normally)
supports two COM ports...COM1 and COM2.
Now you can get around this, by various ways. I knew one person
who managed, via "stacking" interrupts and other devious and arcane
mechanisms, managed to squeeze 16 or so ports into a poor PC.
If you want to use COM3 and higher, I think you'll essentially have
to write your own device driver (either as a .SYS file or as part of
your application). The driver will have to know the base I/O addresses
of the port and talk to the 8253 UART directly.
Either that, or you'll have to fool DOS a bit. I'm sure that's
possible, but I've never bothered with it (all my applications limit
themselves to "standard" stuff so as to increase portability) so you'll
have to ask someone else.
Dave the DM
bank@lea.csc.ncsu.edu
Technical Details
Message-ID:
<1991Feb11.015647.4062@ncsuvx.ncsu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!gatech!ncsuvx!newsReferences:
<1991Feb4.205024.24159@aucs.AcadiaU.ca> <BLK.91Feb5162321@vanity.mitre.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!gatech!ncsuvx!news From: bank@lea.ncsu.edu (Dave The DM) Newsgroups: comp.os.msdos.programmer Subject: Re: COM4 in TP5.5 or QC2.0 Message-ID: <1991Feb11.015647.4062@ncsuvx.ncsu.edu> Date: 11 Feb 91 01:56:47 GMT References: <1991Feb4.205024.24159@aucs.AcadiaU.ca> <BLK.91Feb5162321@vanity.mitre.org> Organization: /etc/organization Lines: 30