504
CHAPTER 21 INTERRUPT AND TEST FUNCTIONS
Main Processing
EI
INTxx
(PR=1)
INTyy
(PR=0)
IE=0
EI
RETI
INTxx
Servicing
INTzz
(PR=0)
IE=0
EI
RETI
INTyy
Servicing
IE=0
RETI
INTzz
Servicing
Figure 21-16. Multiple Interrupt Example (1/2)
Example 1. A multiple interrupt is generated at twice
While servicing interrupt INTxx, two interrupt requests, INTyy and INTzz, are acknowledged, and a multiple
interrupt is generated. Before each interrupt request acknowledgment, the EI instruction is always issued and
interrupt request acknowledgment is enabled.
PR = 0
:
High priority level
PR = 1
:
Low priority level
IE = 0
:
Interrupt request acknowledgment disabled
Example 2. A multiple interrupt is not generated with priority control
Interrupt request INTyy generated while servicing interrupt INTxx is not acknowledged because it has a lower
priority than INTxx, and a multiple interrupt is not generated. The INTyy request is reserved and acknowledged after
execution of one main processing instruction.
PR = 0
:
High priority level
PR = 1
:
Low priority level
IE = 0
:
Interrupt request acknowledgment disabled
Main Processing
INTxx
Servicing
INTyy
Servicing
INTxx
(PR=0)
1 Instruction
Execution
IE=0
INTyy
(PR=1)
EI
IE=0
EI
RETI
RETI
Summary of Contents for PD78052
Page 2: ...2 MEMO ...
Page 8: ...8 MEMO ...
Page 16: ...16 MEMO ...
Page 36: ...36 MEMO ...
Page 158: ...158 MEMO ...
Page 174: ...174 MEMO ...
Page 240: ...240 MEMO ...
Page 260: ...260 MEMO ...
Page 340: ...340 MEMO ...
Page 392: ...392 MEMO ...
Page 438: ...438 MEMO ...
Page 482: ...482 CHAPTER 20 REAL TIME OUTPUT PORT MEMO ...
Page 510: ...510 MEMO ...
Page 524: ...524 MEMO ...
Page 560: ...560 MEMO ...
Page 576: ...576 MEMO ...
Page 598: ...598 MEMO ...
Page 602: ...602 MEMO ...