Multiple Interrupts - Mitsubishi M16C/60 Series Software Manual

Mitsubishi 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

Chapter 5
Interrupt

5.6 Multiple Interrupts

The following shows the internal bit states when control has branched to an interrupt routine:
• The interrupt enable flag (I flag) is cleared to 0 (interrupts disabled).
• The interrupt request bit for the acknowledged interrupt is cleared to 0.
• The processor interrupt priority level (IPL) equals the interrupt priority level of the acknowledged interrupt.
By setting the interrupt enable flag (I flag) (= 1) in the interrupt routine, you can reenable interrupts so that an
interrupt request can be acknowledged that has higher priority than the processor interrupt priority level
(IPL). Figure 5.6.1 shows how multiple interrupts are handled.
The interrupt requests that have not been acknowledged for their low interrupt priority level are kept pend-
ing. When the IPL is restored by an REIT instruction and interrupt priority is resolved against it, the pending
interrupt request is acknowledged if the following condition is met:
Interrupt priority level of
pending interrupt request
>
Restored processor interrupt
priority level (IPL)
260
5.6 Multiple interrupts

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/20 series

Table of Contents