home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / ibm / pc / hardware / 24375 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.4 KB

  1. Xref: sparky comp.sys.ibm.pc.hardware:24375 comp.sys.ibm.pc.programmer:426
  2. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!sol.ctr.columbia.edu!sal.wisc.edu!rat!zeus!kwang
  3. From: kwang@zeus.calpoly.edu (Kevin Wang aka The Scarecrow)
  4. Newsgroups: comp.sys.ibm.pc.hardware,comp.sys.ibm.pc.programmer
  5. Subject: 8259 PIC / Interrupt redirection
  6. Message-ID: <1992Sep15.193315.126553@zeus.calpoly.edu>
  7. Date: 15 Sep 92 19:33:15 GMT
  8. Organization: The Outland Riders
  9. Lines: 21
  10.  
  11. I am attempting to modify some serial i/o code so that I could access IRQ2
  12. (actualy 9, but they're supposed to be mapped)
  13.  
  14. The code itself works just fine, I can put in the numbers for any normal
  15. IRQ, 3-7.  I have apparently set the 8259 correctly, since the inportb and
  16. outportb to port 0xa0+1 (the second 8259 mask) show changes to the 
  17. interrupt mask.
  18.  
  19. However, when I use the _dos_setvect(), (I think I redirected to 0x71)
  20. and then run the code, interrupts are never generated.  I know I can
  21. tiggle the UART bits, but I cannot get an interrupt generated when data
  22. comes in, and I can't cause interrupt to send out characters.  Any
  23. ideas/pointers to books/help?
  24.  
  25.    - Kevin Wang
  26. ...And now, for your local station identification, on the hour, every hour...
  27. kwang@hermes.calpoly.edu or kwang@gauss.elee.calpoly.edu
  28. ---
  29.                             MURPHY'S LAWS ON SEX
  30.    3. No matter how many times you've had it, if it's offered take it, 
  31.    because it'll never be quite the same again.
  32.