NEC mPD784225 Series User Manual page 364

16-/8-bit single-chip microcontrollers
Table of Contents

Advertisement

22.2 Interrupt Servicing Modes
There are three µ PD784225 interrupt servicing modes, as follows:
• Vectored interrupt servicing
• Macro servicing
• Context switching
22.2.1 Vectored interrupt servicing
When an interrupt is acknowledged, the program counter (PC) and program status word (PSW) are automatically
saved to the stack, a branch is made to the address indicated by the data stored in the vector table, and the interrupt
service routine is executed.
22.2.2 Macro servicing
When an interrupt is acknowledged, CPU execution is temporarily suspended and a data transfer is performed
by hardware. Since macro service is performed without the intermediation of the CPU, it is not necessary to save
or restore CPU statuses such as the program counter (PC) and program status word (PSW) contents. This is therefore
very effective in improving the CPU service time (refer to 22.8 Macro Service Function).
22.2.3 Context switching
When an interrupt is acknowledged, the prescribed register bank is selected by hardware, a branch is made to
a pre-set vector address in the register bank, and at the same time the current program counter (PC) and program
status word (PSW) are saved in the register bank (refer to 22.4.2 BRKCS instruction software interrupt (software
context switching) acknowledgment operation and 22.7.2 Context switching).
Remark "Context" refers to the CPU registers that can be accessed by a program while that program is being
executed. These registers include general-purpose registers, the program counter (PC), program status
word (PSW), and stack pointer (SP).
364
CHAPTER 22 INTERRUPT FUNCTIONS
User's Manual U12697EJ3V0UM

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd784225y seriesMpd784224Mpd784225Mpd78f4225Mpd784224yMpd784225y ... Show all

Table of Contents