home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!ames!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
- From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
- Newsgroups: comp.lang.pascal
- Subject: Re: RS232 ports and Modems
- Message-ID: <exuptr.546.716425053@exu.ericsson.se>
- Date: 13 Sep 92 22:57:33 GMT
- References: <BuJ69H.9on@mentor.cc.purdue.edu>
- Sender: news@exu.ericsson.se
- Organization: Ericsson Network Systems, Inc.
- Lines: 34
- Nntp-Posting-Host: pc254167.exu.ericsson.se
-
- In article <BuJ69H.9on@mentor.cc.purdue.edu> kilgore@sage.cc.purdue.edu (Michael Kilgore) writes:
- >From: kilgore@sage.cc.purdue.edu (Michael Kilgore)
- >Subject: RS232 ports and Modems
- >Date: 13 Sep 92 19:03:17 GMT
-
- >Being that this maybe a FAQ, but since I haven't seen a FAQ for this newsgroup,
- >I am going to ask anyways. I have written some functions that write,
- >initialize, and get the status of RS232 ports or a modem using registers and
- >calling the bios interrupt $14. My problem is: I can't figure out how to read
- >from the port. I tried using the same method as I did with the other functions,
- >Is there someway I can read from these ports or am I out of luck? Also, is
- >there an easier way to read and write to these ports?
-
- >Any help would be appreciated.
-
- >PS: BTW, I am using Microsoft's QuickPascal which I think is supposed to be
- >compatible with Turbo Pascal.
-
-
- TP accesses ports as an array port[<port number>]. You can do the following
- things:
-
- port[comm1] := $3e;
- testval := port[comm1];
- write(port[comm1]); { silly thing to do, but... }
-
- I don't know if this works in QuickPascal or not.
- ----------------------------------------------------------------------------
- "This must be Thursday. I never could get the hang of Thursdays"
- - Douglas Adams
- - Patrick Taylor (Arthur Dent)
- Ericsson Network Systems
- exuptr@exu.ericsson.se "Don't let the .se fool you"
- or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
-