Article View: comp.sys.intel
Article #9438259 PIC programming questions
From: Aaron Dailey
Date: Wed, 11 Nov 1992 19:06
Date: Wed, 11 Nov 1992 19:06
25 lines
1827 bytes
1827 bytes
I'm programming what is essentially a PC with several peripherals connected via 8259 programmable interrupt controller to a 386SX running in protected mode. There two 8259s, in the normal AT cascaded arrangement. In the interrupt handler for these devices, I send a non specific end of interrupt (0x20) to the interrupt controller as the last thing I do. I've looked at some source code, which sends a specific end of interrupt command to the PIC before exiting the ISR. Other code I've seen uses nonspecific EOIs. I've looked at the IBM Tech Ref for the AT, which documents that the BIOS initiailizes the 8259 to not special fully nested mode, which indicates to me that I should send it a specific EOI command. Which do I need? Also, I've looked at some source code which, while handling IRQ9, on the slave PIC, only sends an EOI to the master. The Intel data sheets for the 8259 clearly state that EOIs must be sent to the master and slave PICs for an interrupt on a slave PIC. What's the deal? I understand that IRQ9 was IRQ2 on the master PIC on PC (8088) class machines, but doesn't the slave PIC need to be given an EOI? -- Aaron Dailey Internet: Aaron_Dailey@stortek.com StorageTek Corporation Voice: (303) 673-4989, FAX: (303) 673-2570 Mail: MS0242, 2270 South 88th Street, Louisville, C0 80028
Technical Details
Message-ID:
<AAROND.92Nov11120640@xibm.StorTek.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!yuma!csn!stortek!stortek!aarondShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.intel,comp.sys.ibm.pc.hardware Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!yuma!csn!stortek!stortek!aarond From: aarond@xibm.StorTek.com (Aaron Dailey) Subject: 8259 PIC programming questions Message-ID: <AAROND.92Nov11120640@xibm.StorTek.com> Sender: usenet@stortek.com Nntp-Posting-Host: xibm.stortek.com Organization: StorageTek Date: Wed, 11 Nov 1992 19:06:40 GMT Lines: 26