NEC 78K0S/KA1+ User Manual page 223

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KA1+:
Table of Contents

Advertisement

Figure 12-7. Interrupt Request Acknowledgment Processing Algorithm
××IF:
Interrupt request flag
××MK:
Interrupt mask flag
IE:
Flag to control maskable interrupt request acknowledgment (1 = enable, 0 = disable)
Figure 12-8. Interrupt Request Acknowledgment Timing (Example of MOV A, r)
Clock
CPU
Interrupt
If an interrupt request flag (××IF) is set before an instruction clock n (n = 4 to 10) under execution becomes n − 1,
the interrupt is acknowledged after the instruction under execution is complete. Figure 12-8 shows an example of the
interrupt request acknowledgment timing for an 8-bit data transfer instruction MOV A, r. Since this instruction is
executed for 4 clocks, if an interrupt occurs for 3 clocks after the instruction fetch starts, the interrupt acknowledgment
processing is performed after the MOV A, r instruction is executed.
CHAPTER 12 INTERRUPT FUNCTIONS
Start
No
××IF = 1?
Yes (Interrupt request generated)
××MK = 0?
Yes
IE = 1?
Yes
Vectored interrupt
servicing
Saving PSW and PC, jump
MOV A, r
User's Manual U16898EJ3V0UD
No
Interrupt request pending
No
Interrupt request pending
8 clocks
Interrupt servicing program
to interrupt servicing
223

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents