Article View: comp.os.msdos.programmer
Article #4260Re: Need help... 8259 interrupts
From: Randy Spurlock
Date: Tue, 15 Jan 1991 16:16
Date: Tue, 15 Jan 1991 16:16
45 lines
2197 bytes
2197 bytes
in article <1991Jan15.210250.2703@waikato.ac.nz>, butting@waikato.ac.nz says:
>
> ***** Problem description deleted *****
By the way, the 8259 is the interrupt controller chip and the
8250 is the serial communications chip.
>
> init port bioscom(0, initval, 0);
> vector the COM1 interrupt setvect(0xc, handler);
> to the handler
> wake up the 8259's 'int on outportb(0x3f9, 1)
> data ready' /* or even ',0x1f' to be sure ;) */
> enable the 8259 ints outportb(0x21, inportb(0x21) | 0x08);
This last statement *Disables* the IRQ 3 interrupt, backwards from
what I think you want, I think the statement should read:
outportb(0x21, inportb(0x21) & 0xEF);
This statement will enable IRQ 4, the default interrupt for COM1.
> ***** Reset of problem description deleted *****
>
> Thanks in advance... butting
One big huge disclaimer.....I am NOT a C programmer so there may
be other problems with the code, oh heck even the statement I give
you could be incorrect...hope this helps though!
> --
> B.S. Utting, ()Z
> butting@waikato.ac.nz ObMS-DOS hack: building awk functions out of EDLIN and
> University of Waikato, pipes :)
> Hamilton, New Zealand
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Randy Spurlock - | Compaq Computer Corporation
---------------------------------------------------------------------------
These opinions are mine...all mine... | He fired his hyper-jets and...
just ask anyone who's heard them! | blasted into the 5th dimension!
--------------------------------------|
UUCP: ...!uunet!cpqhou!randys | Space Man Spiff
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<1991Jan15.161659.7677@cpqhou.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cpqhou!randysReferences:
<1991Jan15.210250.2703@waikato.ac.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cpqhou!randys From: randys@cpqhou.uucp (Randy Spurlock) Newsgroups: comp.os.msdos.programmer Subject: Re: Need help... 8259 interrupts Message-ID: <1991Jan15.161659.7677@cpqhou.uucp> Date: 15 Jan 91 16:16:59 GMT References: <1991Jan15.210250.2703@waikato.ac.nz> Organization: Compaq Computer Corporation Lines: 45