03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INTERRUPT CONTROL UNIT<br />

8.3.9 Alternate Modes of Operation: The Poll Command<br />

Conventional polling requires that the CPU check each peripheral device to determine whether it<br />

needs servicing. Polling can also be accomplished with an 8259A module by using the Poll command.<br />

This method improves polling efficiency because the CPU needs to check only the 8259A<br />

module, not each of the devices connected to it.<br />

The Poll command is useful in various situations. For example, if more than 64 interrupt sources<br />

are required in a system (64 is the limit for cascaded 8259A modules) the interrupt capability can<br />

be expanded using polling. The number of interrupt request sources in a polled 8259A module<br />

system is limited only by the number of 8259A modules that can be addressed.<br />

The Poll command takes the place of a standard interrupt acknowledge sequence. The external<br />

maskable interrupt request of the CPU must be disabled either by disconnecting it from the 8259A<br />

module (when possible) or by clearing the Interrupt Enable Flag in the CPU (with a CLI instruction).<br />

Polling is covered in greater detail in “Special Mask Mode, Poll Mode and Register Reading:<br />

OCW3” on page 8-34.<br />

8.4 PROGRAMMING THE 8259A MODULE<br />

This section describes the programming of a single 8259A module. Programming requirements<br />

that are specific to the <strong>80C186EC</strong>/C188EC are covered in “Module Integration: The <strong>80C186EC</strong><br />

Interrupt Control Unit” on page 8-36.<br />

8.4.1 Initialization and Operation Command Words<br />

The command register set of the 8259A module is divided into two types of words: Initialization<br />

Command Words (ICWs) and Operation Command Words (OCWs). The Initialization Command<br />

Words are usually written only once during program execution (during system initialization).<br />

The Operation Command Words can be written at any time during program execution (after<br />

initialization is complete).<br />

The Initialization Command Words specify information that does not change during execution.<br />

For example, the base interrupt type for the module does not change and is specified by an Initialization<br />

Command Word. The Operation Command Words specify conditions that may change<br />

during execution. The Interrupt Mask Register, for example, is accessed through an Operation<br />

Command Word.<br />

8-20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!