Interrupt Control; Fig. 2.5.2 Interrupt Control Logic - Renesas 7200 Series User Manual

Mitsubishi 8-bit single-chip microcomputer
Table of Contents

Advertisement

2.5.2 Interrupt control

Each interrupt can be controlled with the interrupt request bit, the interrupt control bit, and the interrupt
disable flag.
Interrupt request bit
Interrupt enable bit
Interrupt disable flag (I)

Fig. 2.5.2 Interrupt control logic

(1) Interrupt request bit
When an interrupt request occurs, the corresponding bit of the interrupt request register is set to "1."
The interrupt request is held active until an interrupt is accepted or "0" is written to the relevant bit
by software. The bit is automatically cleared to "0" simultaneously when the interrupt is accepted.
Interrupt request bits are cleared to "0" (to clear the interrupt request) by software but are not set
to "1" (to generate the interrupt request) by software.
Each interrupt request bit is assigned to interrupt request registers 1 and 2 (addresses 00FC
00FD
).
16
(2) Interrupt enable bit
Interrupt enable bits control the acceptance of each interrupt.
When the interrupt enable bit is cleared to "0" (to disable an interrupt), the interrupt cannot be
accepted. Conversely, when the interrupt enable bit is set to "1" (to enable an interrupt), the interrupt
is accepted. However, if the interrupt disable flag is set to "1," the interrupt cannot be accepted even
when the interrupt enable bit is set to "1."
Each interrupt enable bit is assigned to interrupt control registers 1 and 2 (addresses 00FE
00FF
).
16
(3) Interrupt disable flag (I)
The interrupt disable flag (I) is assigned to bit 2 of the processor status register. When the interrupt
disable flag is set to "1," all interrupts except the BRK instruction interrupt are disabled; when the
flag is cleared to "0," interrupts are enabled. However, if the interrupt disable flag is cleared to "0,"
the interrupt cannot be accepted even when the interrupt enable bit is "0."
FUNCTIONAL DESCRIPTION
Reset
BRK instruction
7220 Group User's Manual
2.5 Interrupts
Start of
interrupt
process
16
16
2-29
and
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

7220

Table of Contents