
688
Chapter 17
Interrupt/Exception Processing Function
User’s Manual U16702EE3V2UD00
17.2 Non-Maskable
Interrupts
A non-maskable interrupt request is acknowledged unconditionally, even when interrupts are in the
interrupt disabled (DI) status. An NMI is not subject to priority control and takes precedence over all the
other interrupts.
This product has the following two non-maskable interrupts.
•
NMI pin input (NMI)
•
Non-maskable interrupt request generated by overflow of watchdog timer (INTWDT2)
The valid edge of the NMI pin can be selected from three types: “rising edge”, “falling edge”, and “both
edges”.
The non-maskable interrupt generated by overflow of the watchdog timer (INTWDT2) functions when
the WDM21 and WDM20 bits of the watchdog timer mode register 2 (WDTM2) are set to “01”.
If two or more non-maskable interrupts occur at the same time, the interrupt with the higher priority is
serviced, as follows (the interrupt with the lower priority is ignored).
NMI > INTWDT2
If a new NMI or INTWDT2 request is issued while a NMI is being serviced, it is serviced as follows.
(1)
If new NMI request is issued while NMI is being serviced
The new NMI request is (strike through: held pending) serviced, regardless of the value of the NP
bit of the program status word (PSW) in the CPU. The pending NMI interrupt is acknowledged
after the NMI currently under execution has been serviced. The new NMI interrupts the current
NMI routine.
A system reset has to be executed in this typical case of nested NMI interrupt.
(2)
If INTWDT2 request is issued while NMI is being serviced
The INTWDT2 request is held pending. if the NP bit of the PSW remains set (1) while the NMI
whatever the NP bit is while the NMI, which has an higher priority, is being serviced. The pending
INTWDT2 request is acknowledged after the NMI currently under execution has been serviced.
Caution:
If a non-maskable interrupt request is generated, the values of the PC and PSW are
saved to the NMI status save registers (FEPC and FEPSW). Therefore, reset the sys-
tem after the interrupt has been serviced.
Figure 17-1:
Non-Maskable Interrupt Request Acknowledgement Operation (1/2)
(a) NMI and INTWDT2 requests generated at the same time
Main routine
System reset
NMI and INTWDT2 requests
(generated simultaneously)
NMI servicing
electronic components distributor
Содержание V850E/RS1
Страница 6: ...6 User s Manual U16702EE3V2UD00 Downloaded from Elcodis com electronic components distributor...
Страница 206: ...206 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 232: ...232 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 366: ...366 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 402: ...402 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 684: ...684 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 766: ...766 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 798: ...798 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 832: ...832 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 834: ...834 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 848: ...848 User s Manual U16702EE3V2UD00 Downloaded from Elcodis com electronic components distributor...
Страница 852: ...Downloaded from Elcodis com electronic components distributor...