
CHAPTER 5 INTERRUPT/EXCEPTION PROCESSING FUNCTION
User’s Manual U12768EJ4V1UD
113
5.2.3
NP flag
The NP flag is a status flag that indicates that non-maskable interrupt (NMI) servicing is under execution. This flag
is set when an NMI interrupt request has been acknowledged, and masks all interrupt requests to prohibit multiple
interrupts from being acknowledged.
Figure 5-4. NP Flag (NP)
After reset: 00000020H
Symbol
31
8
7
6
5
4
3
2
1
0
PSW
0
NP EP
ID SAT CY OV
S
Z
NP
NMI Servicing State
0
No NMI interrupt servicing
1
NMI interrupt currently being serviced
5.2.4
Noise elimination of external interrupt request input pin
(1) Noise elimination of NMI and INTP0 to INTP3 pins
The noise of the NMI pin and INTP0 to INTP3 pins is eliminated by the noise eliminator using analog delay.
Therefore, signals input to the NMI and INTP0 to INTP3 pins are not detected as an edge, unless they maintain
their input level for a certain period. The edge is detected after a certain period has elapsed.
The NMI and INTP0 to INTP3 pins can be used for releasing the software STOP mode. In the software STOP
mode, the system clock is not used for noise elimination because the internal system clock is stopped.
(2) Noise elimination of INTP4 to INTP6 pins
The INTP4 to INTP6 pins incorporate a digital noise eliminator. If the input level of the INTP pin is detected by
the sampling clock (fXX) and the same level is not detected three successive times, the input pulse is eliminated
as a noise. In the software STOP mode, the INTP4 to INTP6 pins cannot be used for releasing the software
STOP mode because the internal system clock is stopped. Note the following.
If the input pulse width is between 2 and 3 clocks, whether the input pulse is detected as a valid edge or
eliminated as noise is undefined. To securely detect the level as a valid edge, the same level input of 3 clocks
or more is required.
When noise is generated in synchronization with the sampling clock, this may not be recognized as noise. In
this case, eliminate the noise by adding a filter to the input pin.