🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4392

Re: problems with com3 & com4

#4392
From: Steve Resnick
Date: Mon, 28 Jan 1991 18:35
38 lines
2217 bytes
In article <1991Jan27.034726.15865@meadow.uucp> py@meadow.UUCP (Peter Yeung) writes:
>In article <1991Jan25.054228.157@frey.newcsatle.edu.au> kaos@frey.newcsatle.edu.au (Iain `Kaos' Holmes) writes:
>>
>>	cause i can write to the ports and they react but i think the interupts
>>
>>	are screwy...
>>
>
>Which interrupt are you using? Since the original PC does not have provision
>for com3/4, the interrupt to be used is implementation dependent.
>Most implementations chose to share the interrupts with those being used
>by com1/2. Also, typically, those async cards supporting com3/4 also allow
>the user to choose the interrupt/port address etc. So, make sure you are
>catching the interrupt same as the one setup on the card!
>

COM3 & COM4 have defined, standard addresses and IRQ settings. 
	COM3 Uses a base address for the UART at 3E8 and IRQ 4
	COM4 Uses a base address for the UART at 2E8 and IRQ 3

The interesting thing is that if you are using interrupt driven communications
on, say, COM1 and COM3, you will need to determine the source of the interrupt
based on the IID register on both UARTS. I don't know what happens if 
interrupts happen simultaneously.

Hope this helps,
Steve



-- 
-------------------------------------------------------------------------------
resnicks@netcom.com, apple!camphq!105!steve.resnick, IFNA:	1:143/105.0, 
USNail: 530 Lawrence Expressway, Suite 374 
        Sunnyvale, Ca 94086
- In real life: Steve Resnick. Flames, grammar and spelling errors >/dev/null
0x2b |~ 0x2b, THAT is the question.
-------------------------------------------------------------------------------
Technical Details
Message-ID: <22167@netcom.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!usc!elroy.jpl.nasa.gov!ames!amdahl!netcom!resnicks
References: <1991Jan25.054228.157@frey.newcsatle.edu.au> <1991Jan27.034726.15865@meadow.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!usc!elroy.jpl.nasa.gov!ames!amdahl!netcom!resnicks
From: resnicks@netcom.UUCP (Steve Resnick)
Newsgroups: comp.os.msdos.programmer
Subject: Re: problems with com3 & com4
Keywords: com3 com4
Message-ID: <22167@netcom.UUCP>
Date: 28 Jan 91 18:35:30 GMT
References: <1991Jan25.054228.157@frey.newcsatle.edu.au> <1991Jan27.034726.15865@meadow.uucp>
Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest}
Lines: 38