CHAPTER 10 INTERRUPT FUNCTIONS
User's Manual U11919EJ3V0UM00
161
10.4.2 Maskable interrupt request acceptance operation
A maskable interrupt request can be accepted when the interrupt request flag is set to 1 and the corresponding
interrupt mask flag is cleared to 0. A vectored interrupt request is accepted in the interrupt enabled status (when the
IE flag is set to 1).
The time required to start the interrupt processing after a maskable interrupt request has been generated is
shown in Table 10-3.
See Figures 10-12 and 10-13 for the interrupt request acceptance timing.
Table 10-3. Time from Generation of Maskable Interrupt Request to Processing
Minimum Time
Maximum Time
Note
9 clocks
19 clocks
Note
The wait time is maximum when an interrupt
request is generated immediately before BT and
BF instruction.
Remark
1 clock: (f
CPU
: CPU clock)
When two or more maskable interrupt requests are generated at the same time, they are accepted starting from
the interrupt request assigned the highest priority.
A pended interrupt is accepted when the status where it can be accepted is set.
Figure 10-11 shows the algorithm of accepting interrupt requests.
When a maskable interrupt request is accepted, the contents of PSW and PC are saved to the stack in that
order, the IE flag is reset to 0, and the data in the vector table determined for each interrupt request is loaded to the
PC, and execution branches.
To return from interrupt processing, use the RETI instruction.
1
f
CPU
Summary of Contents for mPD789022
Page 2: ...User s Manual U11919EJ3V0UM00 2 MEMO ...
Page 8: ...User s Manual U11919EJ3V0UM00 8 MEMO ...
Page 12: ...User s Manual U11919EJ3V0UM00 12 MEMO ...
Page 22: ...User s Manual U11919EJ3V0UM00 22 MEMO ...
Page 32: ...User s Manual U11919EJ3V0UM00 32 MEMO ...
Page 84: ...User s Manual U11919EJ3V0UM00 84 MEMO ...
Page 92: ...User s Manual U11919EJ3V0UM00 92 MEMO ...
Page 104: ...User s Manual U11919EJ3V0UM00 104 MEMO ...
Page 166: ...User s Manual U11919EJ3V0UM00 166 MEMO ...
Page 178: ...User s Manual U11919EJ3V0UM00 178 MEMO ...
Page 184: ...User s Manual U11919EJ3V0UM00 184 MEMO ...
Page 204: ...User s Manual U11919EJ3V0UM00 204 MEMO ...
Page 206: ...User s Manual U11919EJ3V0UM00 206 MEMO ...