English
Language : 

UPD78F9234MC-5A4-A Datasheet, PDF (239/419 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
CHAPTER 13 INTERRUPT FUNCTIONS
Figure 13-10. Example of Multiple Interrupts (2/2)
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
INTTNH1 servicing
EI
IE = 0
INTTMH1
PMK0 = 1
EI
IE = 0
INTP1 servicing
INTP0
INTP1
RETI
PMK0 = 0
IE = 0
INTP0 servicing
RETI
RETI
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)
User’s Manual U17446EJ5V0UD
237