Occurrence And Release Of Hardware Interrupt - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

3.5.2

Occurrence and Release of Hardware Interrupt

Figure 3.5-1 shows the processing flow from occurrence of a hardware interrupt to
release of the interrupt request in an interrupt processing program.
Occurrence and Release of Hardware Interrupt
1. An interrupt cause occurs in a peripheral.
2. The interrupt enable bit in the peripheral is referred. If interrupts are enabled, the peripheral issues an
interrupt request to the interrupt controller.
3. Upon reception of the interrupt request, the interrupt controller determines the priority levels of
simultaneously requested interrupts. Then, the interrupt controller transfers the interrupt level of the
corresponding interrupt to the CPU.
4. The CPU compares the interrupt level requested by the interrupt controller with the ILM bit of the
processor status register.
5. 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.
6. If the check in step 5. 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.
7. When the interrupt cause of step 1. is cleared by software in the user interrupt processing routine, the
interrupt request is completed.
Figure 3.5-1 Occurrence and Release of Hardware Interrupt
Register file
Micro code
IR
2
F
MC-16LX CPU
Peripheral
Enable FF
AND
Factor FF
PS
I
PS
I
ILM
ILM
IR
Check
Comparator
Interrupt
controller
CHAPTER 3 INTERRUPTS
: Processor status
: Interrupt enable flag
: Interrupt level mask register
: Instruction register
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90360 series

Table of Contents