I Flag; Ir Bit; Ilvl2 To Ilvl0 Bits And Ipl - Renesas M16C/26A Series Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6

9.3.1 I Flag

The I flag enables or disables the maskable interrupt. Setting the I flag to "1" (= enabled) enables the
maskable interrupt. Setting the I flag to "0" (= disabled) disables all maskable interrupts.

9.3.2 IR Bit

The IR bit is set to "1" (= interrupt requested) when an interrupt request is generated. Then, when the
interrupt request is accepted and the CPU branches to the corresponding interrupt vector, the IR bit is
cleared to "0" (= interrupt not requested).
The IR bit can be cleared to "0" in a program. Note that do not write "1" to this bit.

9.3.3 ILVL2 to ILVL0 Bits and IPL

Interrupt priority levels can be set using the ILVL2 to ILVL0 bits.
Table 9.3.3.1 shows the settings of interrupt priority levels and Table 9.3.3.2 shows the interrupt priority
levels enabled by the IPL.
The following are conditions under which an interrupt is accepted:
· I flag is set to "1"
· IR bit is set to "1"
· interrupt priority level > IPL
The I flag, IR bit, ILVL2 to ILVL0 bits and IPL are independent of each other. In no case do they affect one
another.
Table 9.3.3.1. Settings of Interrupt Priority
Levels
ILVL2 to ILVL0 bits
000
Level 0 (interrupt disabled)
2
001
Level 1
2
010
Level 2
2
011
Level 3
2
100
Level 4
2
101
Level 5
2
110
Level 6
2
111
Level 7
2
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
Interrupt priority
Priority
level
order
High
page 69
f o
3
2
9
C
2 /
6
) T
Table 9.3.3.2. Interrupt Priority Levels
IPL
000
001
Low
010
011
100
101
110
111
Enabled by IPL
Enabled interrupt priority levels
2
Interrupt levels 1 and above are enabled
2
Interrupt levels 2 and above are enabled
2
Interrupt levels 3 and above are enabled
2
Interrupt levels 4 and above are enabled
2
Interrupt levels 5 and above are enabled
2
Interrupt levels 6 and above are enabled
2
Interrupt levels 7 and above are enabled
2
All maskable interrupts are disabled
9. Interrupt

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents