An Interrupt Is An Event Which Informs The CPU That Its Service (Action) Is Needed. - Sources of Interrupts
An Interrupt Is An Event Which Informs The CPU That Its Service (Action) Is Needed. - Sources of Interrupts
An Interrupt Is An Event Which Informs The CPU That Its Service (Action) Is Needed. - Sources of Interrupts
2. Operation Command Words (OCWs): These are the command words which
command the 8259A to operate in various interrupt modes. These modes are:
a. Fully nested mode
b. Rotating priority mode
c. Special mask mode
d. Polled mode
The OCWs can be written into the 8259A anytime after initialization.
Command words of 8259A
INITIALIZATION COMMAND WORDS(ICWS):
Whenever a command is issued with A0 = 0 and D4 = 1, this is
interpreted as Initialization Command Word 1 (ICW1). ICW1 starts the
initialization sequence during which the following automatically occur.
a.The edge sense circuit is reset, which means that following initialization, an
interrupt request (IR) input must make a low-to-high transistion to generate an
interrupt.
b.The Interrupt Mask Register is cleared.
c.IR7 input is assigned priority 7.
d.The slave mode address is set to 7.
e.Special Mask Mode is cleared and Status Read is set to IRR.
f.If IC4 = 0, then all functions selected in ICW4 are set to zero. (Non-Buffered
mode*, no Auto EOI, MCS-80, 85 system).
OPERATION
• PIC is to be initialized and programmed to control
its operation.
• The operation in simple words:
– when an interrupt occurs , the PIC determines the
highest priority, activates the processor via its INTR
input, and sends the type number onto the data bus
when the processor acknowledges the interrupt.
• Priority:
What is used in PC is fully nested mode. That is the lowest
numbered IRQ input has highest priority. Lower priority
interrupts will not be forwarded to the processor until the
higher priority interrupts have been serviced.
Modes
• Fully Nested mode
• Special Fully Nested mode
• Nonspecific Rotating
• Specific Rotating
• Special Mask
• Polling
FIGURE 9-11 8259A initialization control word format. (Courtesy of Intel Corporation.)
FIGURE 9-12 8259A initialization sequence. (Courtesy of Intel Corporation.)
FIGURE 9-13 8259A operation control word format. (Courtesy of Intel Corporation.)
John Uffenbeck
Copyright ©2002 by Pearson Education, Inc.
The 80x86 Family: Design, Programming,
Upper Saddle River, New Jersey 07458
and Interfacing, 3e All rights reserved.