Panasonic MN103001G/F01K User Manual page 195

Panax series microcomputer
Table of Contents

Advertisement

Non-maskable interrupt control register
Register symbol: G0ICR (NMICR)
Address:
x'34000100
Purpose:
This register determines whether a non-maskable interrupt has been generated.
Bit No.
15
14
Bit
-
-
name
Reset
0
0
Access
R
R
Bit No.
Bit name
0
NMIF
1
WDIF
2
SYSEF
The method of clearing flag differs according to the interrupt request flags.
1. External non-maskable interrupt request flag (NMIF) and Watchdog timer overflow interrupt request flag (WDIF)
After a non-maskable interrupt is accepted, these flags can be cleared by writing to the non-maskable interrupt
control register (NMICR).
When a flag is set to "1", write a "1" to the flag to clear it.
The relationship between the flag status, the data written to the flag, and the new flag status after the data is
written is shown in the table below.
Flag status
0
0
1
1
Note: A non-maskable interrupt cannot be generated through software.
2. System error interrupt request flag (SYSEF)
This flag cannot be cleared by writing to the non-maskable interrupt control register (NMICR).
This flag can be cleared by generating a reset interrupt by setting the RST pin to "L" level or by the self-reset,
which is generated by writing to the reset control register (RSTCTR) of the watchdog timer.
Note*:
Normally, the serial debugger uses non-maskable interrupts. The following points should be observed when
performing user application processing using non-maskable interrupts, and when using the serial debugger:
• The non-maskable interrupt processing program should be written so that interrupt factors are checked
within the non-maskable interrupt processing program, and control branches to the debugger program for
all factors other than those that should be processed.
• The program should be written so that if the stack pointer (SP) is changed before branching to the debugger
program, control should branch after the stack pointer is set to the value when the interrupt was accepted.
*For details, refer to the" MN1030 Series C Source Code Debugger User's Manual".
13
12
11
10
-
-
-
-
0
0
0
0
R
R
R
R
Description
External non-maskable interrupt request flag
0: No interrupt request
Watchdog timer overflow interrupt request flag
0: No interrupt request
System error interrupt request flag
0: No interrupt request
Write data
0
1
0
1
9
8
7
6
-
-
-
-
0
0
0
0
R
R
R
R
1: Interrupt detected
1: Interrupt detected
1: Interrupt detected
Flag status after write
0
0
1
0
_______
Interrupt Controller
5
4
3
2
-
-
-
SYSEF
SYSE WDIF NMIF
0
0
0
0
R
R
R
R/W R/W R/W
Flag change
No change.
No change.
No change.
Flag is cleared.
1
0
0
0
9-7

Advertisement

Table of Contents
loading

Table of Contents