English
Language : 

38K2 Datasheet, PDF (7/151 Pages) Renesas Technology Corp – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
38K2 Group
On-going Routine
Push return address
on stack
Interrupt request
(Note)
M (S) (PCH)
Execute JSR
(S) (S) – 1
M (S) (PCL)
(S) (S)– 1
Subroutine
POP return
address from stack
Execute RTS
(S) (S) + 1
(PCL) M (S)
(S) (S) + 1
(PCH) M (S)
M (S) (PCH)
(S) (S) – 1
M (S) (PCL)
Push return address
on stack
(S) (S) – 1
M (S) (PS)
Push contents of processor
status register on stack
(S) (S) – 1
Interrupt
Service Routine
Execute RTI
I Flag is set from “0” to “1”
Fetch the jump vector
(S) (S) + 1
(PS) M (S)
POP contents of
processor status
register from stack
(S) (S) + 1
(PCL) M (S)
(S) (S) + 1
POP return
address
from stack
(PCH) M (S)
Note: Condition for acceptance of an interrupt Interrupt enable flag is “1”
Interrupt disable flag is “0”
Fig. 6 Register push and pop at interrupt generation and subroutine call
Table 3 Push and pop instructions of accumulator or processor status register
Push instruction to stack
Accumulator
Processor status register
PHA
PHP
Pop instruction from stack
PLA
PLP
Rev.3.00 Oct 15, 2006 page 7 of 147
REJ03B0193-0300