🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #773

Re: Accessing COM3 and COM4

#773
From: david nugent
Date: Mon, 18 Jun 1990 05:30
29 lines
1471 bytes
In <10595@spool.cs.wisc.edu> so@brownie.cs.wisc.edu (Bryan So) writes:

>Somebody must have posted this before, but I am relatively new to 
>this newsgroup, so... can somebody show me the general method to
>speak to COM3 and COM4?  Can I simply service IRQ3 & IRQ4 as if
>they are COM1 and COM2?

In general, yes.

>If so, how can I distinguish whether the
>interrupt is raised by COM1 or COM3 (take IRQ3 for example)?

Test each UART's EID register.  Bit 0 will be low if there's an
interrupt active.  The rest of the bits in this register identify
the interrupt type(s).

Most cards with 4 ports don't support sharing of interrupts between 
ports correctly (unless they explicitly state that they do), but if
they do you can look at both to determine which it was.  Depending
on the speed of the links, you may have to service received characters
on both ports before moving on and servicing other less urgent
things.


david

-- 
         * Unique Computing Pty Ltd, Melbourne, Australia. *
       david@csource.oz.au  3:632/348@fidonet  28:4100/1@signet
Technical Details
Message-ID: <535@csource.OZ.AU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!csource!david
References: <10595@spool.cs.wisc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!csource!david
From: david@csource.OZ.AU (david nugent)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Accessing COM3 and COM4
Message-ID: <535@csource.OZ.AU>
Date: 18 Jun 90 05:30:27 GMT
References: <10595@spool.cs.wisc.edu>
Organization: Unique Computing Pty Ltd, Melb, Aust.
Lines: 29