Interrupt Request Pending - NEC 78K0S/KB1+ User Manual

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KB1+:
Table of Contents

Advertisement

Example 3. A priority is controlled by the multiple interrupts
The vector interrupt enable state is set for INTP0, INTP1, and INTTMH1.
(Interrupt priority INTP0 > INTP1 > INTTMH1 (refer to Table13-1))
Main processing
INTTMH1
In the interrupt INTTMH1 servicing, servicing is performed such that the INTP1 interrupt is given priority, since the
INTP0 interrupt was first masked.
Afterwards, once the interrupt mask for INTP0 is released, INTP0 processing through multiple interrupts is
performed.
IE = 0: Interrupt request acknowledgment disabled

13.4.3 Interrupt request pending

Some instructions may keep pending the acknowledgment of an instruction request until the completion of the
execution of the next instruction even if the interrupt request (maskable interrupt and external interrupt) is generated
during the execution. The following shows such instructions (interrupt request pending instruction).
• Manipulation instruction for interrupt request flag registers 0, 1 (IF0, IF1)
• Manipulation instruction for interrupt mask flag registers 0, 1 (MK0, MK1)
234
CHAPTER 13 INTERRUPT FUNCTIONS
Figure 13-10. Example of Multiple Interrupts (2/2)
INTTNH1 servicing
EI
IE = 0
INTP0
INTP1
User's Manual U17446EJ3V1UD
PMK0 = 1
IE = 0
EI
PMK0 = 0
IE = 0
RETI
INTP1 servicing
RETI
INTP0 servicing
RETI

Advertisement

Table of Contents
loading

Table of Contents