Fig. 2.7 Interrupt-Processing Flowchart - Fujitsu F2MC-8L Family series Hardware Manual

Table of Contents

Advertisement

CPU
HARDWARE CONFIGURATION
(4) Description of operation
The functions of interrupt controllers are described below.
(a) Interrupt functions
The MB89950 series of microcontrollers have 7 inputs for interrupt requests
from the peripherals. The interrupt level is set by 2-bit registers
corresponding to each input. When an interrupt is requested from a
peripheral, the interrupt controller receives it and transfers the contents of
the corresponding level register to the CPU. The interrupt to the device is
processed as follows:
(1) An interrupt source is generated inside a peripheral.
(2) If an interrupt is enabled after referring to the interrupt-enable bit
inside the peripheral, an interrupt request is output from the
peripheral to the interrupt controller.
(3) After receiving this interrupt request, the interrupt controller
determines the priority of simultaneously-requested interrupts and
then transfers the interrupt level for the applicable interrupt to the
CPU.
(4) The CPU compares the interrupt level requested from the interrupt
controller with the IL bit in the processor status register.
(5) As a result of the comparison, if the interrupt level has priority over
the current interrupt processing level, the contents of the I-flag in the
same processor status register are checked.
(6) As a result of the check in step (5), if the I-flag is enabled for an
interrupt, the contents of the IL bit are set to the required level. As
soon as the currently-executing instruction is terminated, the CPU
performs the interrupt processing and transfers control to the
interrupt-processing routine.
(7) When an interrupt source is cleared by software in the user's interrupt
processing routine, the CPU terminates the interrupt processing.
Fig. 2.7 outlines the interrupt operation for the MB89950 series of
microcontrollers.
Internal bus
Enable FF
Source FF
(7)

Fig. 2.7 Interrupt-processing Flowchart

2– 17
Register file
PS
IPLA
IR
(6)
CPU
Peripheral
AND
(2)
(1)
Peripheral
I
IL
Check
Comparator
(5)
(4)
(3)
Level
comparator
Interrupt controller

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 series

Table of Contents