home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.bbs.waffle
- Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!kona.cs.ucla.edu!wales
- From: wales@kona.cs.ucla.edu (Rich Wales)
- Subject: Re: "other" interrupts with BNU
- Message-ID: <1992Nov22.080747.17851@cs.ucla.edu>
- Sender: usenet@cs.ucla.edu (Mr Usenet)
- Nntp-Posting-Host: kona.cs.ucla.edu
- Reply-To: wales@CS.UCLA.EDU (Rich Wales)
- Organization: UCLA, Computer Science Department
- References: <J9VkuB1w165w@arts.com> <7L1LuB8w165w@jybox.jyu.fi>
- Date: Sun, 22 Nov 92 08:07:47 GMT
- Lines: 40
-
- Mike Witt asked how to specify the interrupt "mask" and "vector" values
- in the BNUPORT utility.
-
- Otto J. Makela replied:
-
- The vector is what the CPU interrupt number generated by
- the actual hardware interrupt is -- in the case of IRQ7
- it is 0Fh or 15 in decimal.
-
- Right. IRQ 0-7 correspond to interrupt vectors 08h - 0Fh, respectively.
-
- The mask is the bitmask which you give the 8259A interrupt
- controller chip to enable this particular interrupt -- for
- IRQ7 the mask is 01111111b=7Fh or 127 in decimal.
-
- Actually, it appears that the "mask" one specifies in BNUPORT is the
- inverse of the above, with a single 1-bit corresponding to the IRQ.
- For instance, IRQ7 requires a BNUPORT "mask" value of 80H.
-
- Are you sure the BNU manual doesn't explain this?
-
- It doesn't appear to.
-
- By the way, are you aware that IRQ7 is also used by the
- parallel port hardware?
-
- It may be the case that Mike has interrupts disabled on his parallel
- port. As I understand, certain early IBM parallel interfaces didn't
- interrupt reliably, and much (maybe even most) printer software there-
- fore ignores interrupts altogether in favor of polling. I've run my
- (non-IBM) parallel card with interrupts disabled, and it has worked
- fine, even in Windows.
-
- If Mike has not explicitly disabled interrupts on his parallel port,
- though, he would probably be better off not configuring one of his
- serial ports to use IRQ7.
-
- --
- Rich Wales <wales@CS.UCLA.EDU> // UCLA Computer Science Department
- 3531 Boelter Hall // Los Angeles, CA 90024-1596 // +1 (310) 825-5683
-