home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / ibm / pc / hardware / 21809 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.0 KB  |  60 lines

  1. Newsgroups: comp.sys.ibm.pc.hardware
  2. Path: sparky!uunet!decwrl!csus.edu!netcom.com!starkey
  3. From: starkey@netcom.com (Sean Starkey)
  4. Subject: Cascading 8259 PICs
  5. Message-ID: <_=6m+pd.starkey@netcom.com>
  6. Date: Fri, 14 Aug 92 03:56:03 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. Keywords: 8259, PIC
  9. Lines: 49
  10.  
  11. I am working with a four port serial card with a STD bus computer.  This 
  12. serial card has it's own 8259 PIC.  The four UARTS on the serial board are 
  13. connected to this PIC.
  14.  
  15. Now, it is possible to cascade this PIC to the PIC on the CPU board.  (I have
  16. done this sucessfully.)  The master PIC sets the slave's PIC IRQ (IRQ 2) to
  17. "cascaded" with the ICW3.  The slave PIC sets the correct interrupt vector
  18. with ICW2.  etc.  This all seems to work OK.
  19.  
  20. This is the configuration for the PICs:
  21. Master PIC:
  22. IRQ 1  Keyboard
  23. IRQ 2  -- Slave PIC --  (STD Bus INTRQ)
  24. IRQ 3  COM 2 (on CPU card)
  25. IRQ 4  COM 1 (on CPU card)
  26. IRQ 5  ...
  27. IRQ 6  Disk Drive
  28. IRQ 7  Clock
  29.  
  30. Slave PIC:
  31. IRQ 0  None
  32. IRQ 1  None
  33. IRQ 2  None
  34. IRQ 3  COM 4  (serial card)
  35. IRQ 4  COM 3  (serial card)
  36. IRQ 5  COM 6  (serial card)
  37. IRQ 6  COM 5  (serial card)
  38. IRQ 7  None
  39.  
  40. My problem is that the serial card works for a short time, then the INTs
  41. get hung on the slave PIC.  The master PIC still works fine (COM 1 and 2 still
  42. function OK), but the slave PIC doesn't work.  I can tell that they are hung
  43. that the Interrupt Identify Register on the COM ports is stuck at 0x04
  44. (character in receive buffer).  I believe that the interrupt handlers for 
  45. the COM ports do not EOI the PIC correctly -- I am not sure.
  46.  
  47. If it helps, I'm using a Ziatech ZT8901 for the CPU card and a ZT88CT41 for the
  48. serial card.
  49.  
  50. If any one has had any experience with this kind of work, any pointers would
  51. be appreciated.  Thanks!
  52.  
  53.  
  54.     Sean Starkey            starkey@netcom.com
  55. Home:    444 Saratoga Ave.    Work:    Process & Cryogenic Services, Inc.
  56.     Apt. 19K            2220 Martin Ave.
  57.     Santa Clara, CA 95050        Santa Clara, CA 95050
  58.     (408) 985-1454            (408) 727-3700
  59.  
  60.