Multiple Interrupt Servicing - NEC mPD78F0730 Preliminary User's Manual

8-bit single-chip microcontroller
Table of Contents

Advertisement

13.4.3 Multiple interrupt servicing

Multiple interrupt servicing occurs when another interrupt request is acknowledged during execution of an interrupt.
Multiple interrupt servicing does not occur unless the interrupt request acknowledgement enabled state is selected
(IE = 1). When an interrupt request is acknowledged, interrupt request acknowledgement becomes disabled (IE = 0).
Therefore, to enable multiple interrupt servicing, it is necessary to set (1) the IE flag with the EI instruction during
interrupt servicing to enable interrupt acknowledgement.
Moreover, even if interrupts are enabled, multiple interrupt servicing may not be enabled, this being subject to
interrupt priority control. Two types of priority control are available: default priority control and programmable priority
control. Programmable priority control is used for multiple interrupt servicing.
In the interrupt enabled state, if an interrupt request with a priority equal to or higher than that of the interrupt
currently being serviced is generated, it is acknowledged for multiple interrupt servicing. If an interrupt with a priority
lower than that of the interrupt currently being serviced is generated during interrupt servicing, it is not acknowledged
for multiple interrupt servicing. Interrupt requests that are not enabled because interrupts are in the interrupt disabled
state or because they have a lower priority are held pending. When servicing of the current interrupt ends, the
pending interrupt request is acknowledged following execution of at least one main processing instruction execution.
Table 13-5 shows relationship between interrupt requests enabled for multiple interrupt servicing and Figure 13-10
shows multiple interrupt servicing examples.
Downloaded from
Elcodis.com
electronic components distributor
Table 13-5. Relationship Between Interrupt Requests Enabled for Multiple Interrupt Servicing
Multiple Interrupt Request
Interrupt Being Serviced
Maskable interrupt
ISP = 0
ISP = 1
Software interrupt
Remarks 1.
: Multiple interrupt servicing enabled
2. ×: Multiple interrupt servicing disabled
3. ISP and IE are flags contained in the PSW.
ISP = 0: An interrupt with higher priority is being serviced.
ISP = 1: No interrupt request has been acknowledged, or an interrupt with a lower
IE = 0:
IE = 1:
4. PR is a flag contained in PR0L, PR0H, PR1L, and PR1H.
PR = 0: Higher priority level
PR = 1: Lower priority level
CHAPTER 13 INTERRUPT FUNCTIONS
During Interrupt Servicing
Maskable Interrupt Request
PR = 0
IE = 1
IE = 0
×
×
×
priority is being serviced.
Interrupt request acknowledgement is disabled.
Interrupt request acknowledgement is enabled.
Preliminary User's Manual U19014EJ1V0UD
Software
Interrupt
PR = 1
Request
IE = 1
IE = 0
×
×
×
×
405

Advertisement

Table of Contents
loading

Table of Contents