Registers; Fig. 2-5-2 Interrupt Control Register (Gnicr); Table 2-5-1 Relationship Between Mask Levels And Interrupt Levels That Can Be Accepted - Panasonic MN103001G/F01K User Manual

Panax series microcomputer
Table of Contents

Advertisement

2.5.2

Registers

[Flags in the PSW] (CPU)
Interrupt-related flags in the processor status word (PSW) include interrupt enable and interrupt mask level.
IE (Interrupt Enable) R/W
• This flag allows all interrupts to be accepted except for non-maskable interrupts and reset interrupts.
Interrupts are allowed when IE = 1. IE = 0 when the system is reset.
• When an interrupt is accepted, IE is cleared (interrupt prohibited). Set IE when accepting nested
interrupts within the interrupt handler.
IM2 to IM0 (Interrupt Mask Level) R/W
• This holds the current interrupt mask level. When IE = 1, CPU accepts interrupts with levels higher
than IM2 to IM0. Level 0 (000) when the system is reset.
• The following table shows the relationship between mask levels and acceptable interrupt levels.

Table 2-5-1 Relationship between Mask Levels and Interrupt Levels that Can Be Accepted

Interrupt mask level
IM2
IM1
0
0
0
0
1
1
1
1
[Interrupt Control Registers (GnICR)] R/W halfword/byte access
Interrupt control registers (GnICR: n = 0, 2 to 19) combine interrupt priority level, interrupt enable, interrupt
request and interrupt detect fields into a single register in order to control CPU external peripheral interrupts. There
are 19 interrupt control registers, one for each group, and they are located in the internal I/O space from x'34000100
to x'3400014C. Register G0ICR is dedicated for non-maskable interrupts, and G0ICR is called NMICR (from the
least significant bit: external pin non-maskable interrupt, watchdog timer overflow interrupt, system error interrupt).
Fig. 2-5-2 shows the interrupt control register (GnICR) configuration, and each field is described in detail as
follows.
G0ICR (NMICR)
GnICR (n = 2 to 19)
Acceptable interrupt level
IM0
0
0
Interrupt prohibited (only non-maskable interrupts accepted)
0
1
0
1
0
0-1
1
1
0-2
0
0
0-3
0
1
0-4
1
0
0-5
1
1
0-6
15
14 13 12 11 10
0
0
0
0
0
15
14 13 12 11 10
0
LV

Fig. 2-5-2 Interrupt Control Register (GnICR)

9
8
7
6
5
4
0
0
0
0
0
0
0
9
8
7
6
5
4
IE
IR
3
2
1
0
ID
3
2
1
0
ID
CPU
2-15

Advertisement

Table of Contents
loading

Table of Contents