home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / bbs / waffle / 4382 < prev    next >
Encoding:
Text File  |  1992-11-21  |  2.0 KB  |  54 lines

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