Maskable Interrupt Request Reception; Times From Maskable Interrupt Request Generation To Interrupt Service - NEC PD78056F User Manual

Pd78058f series; pd78058fy series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

21.4.2 Maskable Interrupt request reception

For a maskable interrupt request, the interrupt request flag is set at (1) and if the mask (MK) flag of that interrupt
is cleared (0), it is possible for it to be received. A vector interrupt request is received if an interrupt enable state
exists (when the IE flag is set at (1)). However, if a high priority order interrupt is being processed (when the ISP
flag is reset (0)), an interrupt request which has a low priority order specified for it is not received.
The timing from the time when a maskable interrupt request is generated until the interrupt is processed is shown
in Table 21-3.
For the timing of interrupt request reception, see Figures 21-14 and 21-15.
Table 21-3. Times from Maskable Interrupt Request Generation to Interrupt Service
When
When
Note
If an interrupt request is generated just before a divide instruction, the wait time is maximized.
Remark
1 clock :
If two or more maskable interrupt requests are generated simultaneously, the request specified for higher priority
with the priority specify flag is acknowledged first. Also, when the priority order specification flag specifies the same
priority order for two interrupts, the interrupt request with the higher default priority order is received first.
Any reserved interrupts request are acknowledged when they become acknowledgeable.
Figure 21-13 shows interrupt request acknowledge processing algorithms.
If a maskable interrupt request is received, the contents of the program status word (PSW) and the program counter
(PC) are saved to the stack in that order, the IE flag is reset (0) and the content of the received interrupt's priority
order specification flag is saved to the ISP flag. Further, for each interrupt request, data from the predetermined vector
table are loaded to the PC and branched.
Return from the interrupt is possible with the RETI instruction.
494
CHAPTER 21 INTERRUPT AND TEST FUNCTIONS
Minimum Time
PR =0
7 clocks
PR =1
8 clocks
1
(fCPU: CPU clock)
f
CPU
Note
Maximum Time
32 clocks
33 clocks

Advertisement

Table of Contents
loading

Table of Contents