CHAPTER 9: External Interrupt and NMI Control Sections
442 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
3.2 Operations of NMI Control Section
This section shows the operations of the NMI control section.
Overview of NMI Control Section
The NMI control section outputs an NMI interrupt request (NMIIRQ) to the CPU if the edge or level is
detected from the signal input to the NMI input pin (NMIX).
The following edge or level is detected.
− Run mode: Falling edge
− Sleep mode: Falling edge
− Timer mode: L level
− RTC mode: L level
− Stop mode: L level
− Deep standby mode: NMI request is not available in this mode.
Note:
− NMI request is not available for to return from Deep standby mode. However, NMIX input pin and
WKUP input pin is shared to same input pin. Therefore, it is available for to return by WKUP input
pin. For details, see 5.Operations in Deep Standby Modes in CHAPTER 6: Low Power
Consumption Mode.
Canceling an NMI Request
To cancel an NMI request, clear the request register in the same way as for an external interrupt request.
Execute the following steps to cancel an NMI interrupt request.
1. Read the NMI Factor Register (NMIRR), and check the interrupt factor.
2. Write 0 to the corresponding bit in the NMI Factor Clear Register (NMICL) to clear it.
3. Read the NMI Factor Register (NMIRR), and check that the interrupt factor is cleared.
Figure 3-4 Canceling an NMI Request