home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.ibm.pc.hardware
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!starkey
- From: starkey@netcom.com (Sean Starkey)
- Subject: Cascading 8259 PICs
- Message-ID: <_=6m+pd.starkey@netcom.com>
- Date: Fri, 14 Aug 92 03:56:03 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Keywords: 8259, PIC
- Lines: 49
-
- I am working with a four port serial card with a STD bus computer. This
- serial card has it's own 8259 PIC. The four UARTS on the serial board are
- connected to this PIC.
-
- Now, it is possible to cascade this PIC to the PIC on the CPU board. (I have
- done this sucessfully.) The master PIC sets the slave's PIC IRQ (IRQ 2) to
- "cascaded" with the ICW3. The slave PIC sets the correct interrupt vector
- with ICW2. etc. This all seems to work OK.
-
- This is the configuration for the PICs:
- Master PIC:
- IRQ 1 Keyboard
- IRQ 2 -- Slave PIC -- (STD Bus INTRQ)
- IRQ 3 COM 2 (on CPU card)
- IRQ 4 COM 1 (on CPU card)
- IRQ 5 ...
- IRQ 6 Disk Drive
- IRQ 7 Clock
-
- Slave PIC:
- IRQ 0 None
- IRQ 1 None
- IRQ 2 None
- IRQ 3 COM 4 (serial card)
- IRQ 4 COM 3 (serial card)
- IRQ 5 COM 6 (serial card)
- IRQ 6 COM 5 (serial card)
- IRQ 7 None
-
- My problem is that the serial card works for a short time, then the INTs
- get hung on the slave PIC. The master PIC still works fine (COM 1 and 2 still
- function OK), but the slave PIC doesn't work. I can tell that they are hung
- that the Interrupt Identify Register on the COM ports is stuck at 0x04
- (character in receive buffer). I believe that the interrupt handlers for
- the COM ports do not EOI the PIC correctly -- I am not sure.
-
- If it helps, I'm using a Ziatech ZT8901 for the CPU card and a ZT88CT41 for the
- serial card.
-
- If any one has had any experience with this kind of work, any pointers would
- be appreciated. Thanks!
-
-
- Sean Starkey starkey@netcom.com
- Home: 444 Saratoga Ave. Work: Process & Cryogenic Services, Inc.
- Apt. 19K 2220 Martin Ave.
- Santa Clara, CA 95050 Santa Clara, CA 95050
- (408) 985-1454 (408) 727-3700
-
-