Steps In The Interrupt Operation - Fujitsu F2MC-8L F202RA Hardware Manual

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

3.4.2

Steps in the Interrupt Operation

When an interrupt request is generated in a peripheral function, the interrupt controller
notifies the CPU of its interrupt level. If the CPU can accept an interrupt, the CPU
temporarily stops the program that is handling and starts the interrupt processing
routine.
Steps in the Interrupt Operation
The steps for processing an interrupt are: occurrence of a source of an interrupt in a peripheral function,
designation of the interrupt request flag bit (request F/F), check on the interrupt request enable bit (enable
F/F), check on the interrupt level (ILR1, 2, 3, or 4, and CCR: IL1 and IL0), check on another request with
the same level, and check on the interrupt enable flag (CCR: I).
Figure 3.4-2 shows the steps in the interrupt operation.
Operation
Enable
F/F
Source
F/F
Peripheral
After a reset, all interrupt requests are prohibited.
Initialize the peripheral functions that generate interrupts using a initialization program for peripheral
functions, specify interrupt levels in the interrupt level setting registers (ILR1 to ILR4) concerned, then
start up the peripheral functions.
Interrupt levels 1, 2, and 3 can be specified. Level 1 is the highest level, and level 2 is the second
highest level. Level 3 prohibits interrupts from the peripheral functions to which it is assigned.
Run the main program. (For a multiple-interrupt, run the interrupt processing routine.)
When a peripheral function generates a source of an interrupt, the interrupt request flag bit for
peripheral function (request F/F) is set to "1". If the interrupt request enable bit for a peripheral function
is turned on (enable F/F = 1) at that time, an interrupt request is output to the interrupt controller.
Figure 3.4-2 Steps in the Interrupt Operation
PS
I
Unit
Check
MB89202 CPU
RAM
. .
.
AND
Main
program
IL
Cancellation
of a reset
Com-
parator
Initial setting
for interrupt
Execution
of main
Interrupt
program
controller
PC and PS
restored
CHAPTER 3 CPU
Interrupt
processing
routine
Update of IL
PC and
Request
PS saved
cleared
Level
Interrupt
check
processing
PC and PS
restored
Occur-
RETI
rence of
interrupt
37

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents