
7.4 Hardware Interrupt
MB90580 Series
Chapter 7: Interrupt
85
updates the ILM of PS to a level value of the received interrupt, sets the S flag, then performs branch
processing. As a result, the interrupt processing program defined by the user is executed next.
Figure 7.4.3a illustrates the flow from the occurrence of a hardware interrupt until there is no interrupt
request in the interrupt processing program. Figure 7.4.3b is a diagram of the hardware interrupt operation
flow.
Figure 7.4.3a Occurrence and release of hardware interrupt
x
An interrupt cause occurs in a peripheral.
y
The interrupt enable bit in the peripheral is referenced. If interrupts are enabled, the peripheral issues
an interrupt request to the interrupt controller.
z
Upon reception of the interrupt request, the interrupt controller determines the priority levels of simul-
taneously requested interrupts. Then, the interrupt controller transfers the interrupt level of the corre-
sponding interrupt to the CPU.
{
The CPU compares the interrupt level requested by the interrupt controller with the ILM bit of the proc-
essor status register.
|
If the comparison shows that the requested level is higher than the current interrupt processing level,
the I flag value of the same processor status register is checked.
}
If the check in step
|
shows that the I flag indicates interrupt enable status, the requested level is
written to the ILM bit. Interrupt processing is performed as soon as the currently executing instruction is
completed, then control is transferred to the interrupt processing routine.
~
When the interrupt cause of step
x
is cleared by software in the user interrupt processing routine, the
interrupt request is completed.
c
IR
PS
I
ILM
AND
F
2
M C - 1 6 L
C P U
F
2
M
Register file
Microcode
Check
Comparator
Peripheral
Enable FF
Cause FF
L
I
Interrupt
controller
PS
I
ILM
IR
:
:
:
:
Processor status
Interrupt enable flag
Interrupt level mask register
Instruction register