|
3820_03 Datasheet, PDF (104/349 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.2 Interrupts
(2) Processing upon acceptance of an interrupt request
Upon acceptance of an interrupt request, the following operations are automatically performed.
ÂThe processing being executed is stopped.
ÂThe contents of the program counter and the processor status register are pushed onto the stack
area. Figure 2.2.2 shows changes of the stack pointer and the program counter upon acceptance
of an interrupt request.
ÂConcurrently with the push operation, the jump destination address (the beginning address of the
interrupt processing routine) of the occurring interrupt stored in the vector address is set in the
program counter, then the interrupt processing routine is executed.
ÂAfter the interrupt processing routine is started, the corresponding interrupt request bit is automati-
cally cleared to â0.â The interrupt disable flag is set to â1â so that multiple interrupts are disabled.
Accordingly, for executing the interrupt processing routine, it is necessary to set the jump destination
address in the vector area corresponding to each interrupt.
Program counter
PCL Program counter (high-order)
PCH Program counter (low-order)
Interrupt disable flag = â0â
Stack area
Stack pointer
S
(S)
(S)
Interrupt
request is
accepted
Program counter
PCL
Vector address
PCH (from Interrupt vector area)
Stack pointer
S
(S) â 3
Interrupt disable flag = â1â
Stack area
(s) â 3
Processor status register
Program counter (low-order)
(S) Program counter (high-order)
Fig. 2.2.2 Changes of stack pointer and program counter upon acceptance of interrupt request
3820 GROUP USERâS MANUAL
2â17
|
▷ |