11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

automatically when they are serviced, they must be cleared by other means to preventmultiple interrupts. Edge-sensitive interrupts are latched as pending on the high-to-Iowtransition <strong>of</strong> the interrupt input and are automatically cleared when the interrupt is serviced.When either the IROA or IROB pin is disabled in the interrupt priority register, the interruptrequest coming in on the pin will be ignored, regardless <strong>of</strong> whether the input wasdefined as level sensitive or edge sensitive. If the interrupt input is defined as edge sensitive,its edge-detection latch will remain in the reset state for as long as the'interrupt pinis disabled. If the interrupt is defined as level-sensitive, its edge-detection latch will stayin the reset state. If the level-sensitive interrupt is disabled while it is pending it will becancelled. However, if the interrupt has been fetched, it normally will not be cancelled.The processor begins interrupt service by fetching the instruction word in the first vectorlocation. The interrupt is considered finished when the processor fetches the instructionword in the second vector location.In an edge-triggered interrupt, the internal latch is automatically cleared when the secondvector location is fetched. The fetch <strong>of</strong> the first vector location does not guarantee thatthe second location will be fetched. Figure 7-3 illustrates the one case where the secondvector location is not fetched. The SWI instruction in the figure discards the fetch <strong>of</strong> thefirst interrupt vector to ensure that the SWI vectors will be fetched. Instruction n4 isdecoded as an SWI while ii1 is being fetched. Execution <strong>of</strong> the SWI requires that ii1 bediscarded and the two SWI vectors (ii3 and ii4) be fetched instead.CAUTIONOn all level-sensitive interrupts, the interrupt must be externally released beforeinterrupts are internally re-enabled. Otherwise, the processor will be interruptedrepeatedly until the release <strong>of</strong> the level-sensitive interrupt occurs.The edge sensitive NMI is a priority 3 interrupt and cannot be masked. Only RESET andillegal instruction have higher priority than NMI.s<strong>of</strong>tware interrupt (SWI) and illegal instruc­7.3.3.2 S<strong>of</strong>tware Interrupt SourcesThere are two s<strong>of</strong>tware interrupt sources -tion interrupt (III).SWI is a nonmaskable interrupt (IPL 3), which is serviced immediately following the SWIinstruction execution, usually using a long interrupt service routine. The differencebetween an SWI and a JSR instruction is that the SWI sets the interrupt mask to preventinterrupts below IPL 3 from being serviced. The SWI's ability to mask out lower level

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

Saved successfully!

Ooh no, something went wrong!