![](http://datasheet.mmic.net.cn/380000/-PD784214Y_datasheet_16744924/-PD784214Y_417.png)
417
CHAPTER 23 INTERRUPT FUNCTIONS
23.6 Non-maskable Interrupt Acknowledgment Operation
Non-maskable interrupts are acknowledged even in the interrupt disabled state. Non-maskable interrupts can be
acknowledged at all times except during execution of the service program for an identical non-maskable interrupt or a non-
maskable interrupt of higher priority.
The relative priorities of non-maskable interrupts are set by the WDT4 bit of the watchdog timer mode register (WDM)
(see
23.3.5 Watchdog Timer Mode register (WDM)
).
Except in the cases described in
23.9 WHEN INTERRUPT REQUESTS AND MACRO SERVICE ARE TEMPORARILY
HELD PENDING
, a non-maskable interrupt request is acknowledged immediately. When a non-maskable interrupt request
is acknowledged, the program status word (PSW) and program counter (PC) are saved in that order to the stack, the IE
flag is cleared (0), the in-service priority register (ISPR) bit corresponding to the acknowledged non-maskable interrupt is
set (1), the vector table contents are loaded into the PC, and a branch is performed. The ISPR bit that is set (1) is the
NMIS bit in the case of a non-maskable interrupt due to edge input to the NMI pin, and the WDTS bit in the case of watchdog
timer overflow.
When the non-maskable interrupt service program is executed, non-maskable interrupt requests of the same priority
as the non-maskable interrupt currently being executed and non-maskable interrupts of lower priority than the non-maskable
interrupt currently being executed are held pending. A pending non-maskable interrupt is acknowledge after completion
of the non-maskable interrupt service program currently being executed (after execution of the RETI instruction). However,
even if the same non-maskable interrupt request is generated more than once during execution of the non-maskable interrupt
service program, only one non-maskable interrupt is acknowledged after completion of the non-maskable interrupt service
program.