Maskable Interrupt Acknowledge Operation - NEC mPD780065 Series Preliminary User's Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

17.4.2 Maskable interrupt acknowledge operation

A maskable interrupt becomes acknowledgeable when an interrupt request flag is set to 1 and the mask (MK) flag
corresponding to that interrupt request is cleared to 0. A vectored interrupt request is acknowledged if in the interrupt
enable state (when IE flag is set to 1). However, a low-priority interrupt request is not acknowledged during servicing
of a higher priority interrupt request (when the ISP flag is reset to 0). The times from generation of a maskable interrupt
request until interrupt servicing is performed are listed in Table 17-3 below.
For the interrupt request acknowledge timing, see Figures 17-11 and 17-12.
Table 17-3. Times from Generation of Maskable Interrupt until Servicing
When ××PR = 0
When ××PR = 1
Note If an interrupt request is generated just before a divide instruction, the wait time becomes longer.
Remark 1 clock: 1/f
CPU
If two or more interrupt requests are generated simultaneously, the request with a higher priority level specified
in the priority specify flag is acknowledged first. If two or more interrupts requests have the same priority level, the
request with the highest default priority is acknowledged first.
An interrupt request that is held pending is acknowledged when it becomes acknowledgeable.
Figure 17-10 shows the interrupt request acknowledge algorithm.
If a maskable interrupt request is acknowledged, the contents are saved into the stacks in the order of PSW, then
PC, the IE flag is reset (0), and the contents of the priority specify flag corresponding to the acknowledged interrupt
are transferred to the ISP flag. Further, the vector table data determined for each interrupt request is loaded into
PC and branched.
Return from an interrupt is possible with the RETI instruction.
276
CHAPTER 17 INTERRUPT FUNCTIONS
Minimum Time
7 clocks
8 clocks
(f
: CPU clock)
CPU
Preliminary User's Manual U13420EJ2V0UM00
Note
Maximum Time
32 clocks
33 clocks

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd780065Mpd78f0066

Table of Contents