CHAPTER 19 INTERRUPT FUNCTIONS
Page 728 of 920
19.4.4
Interrupt servicing during division instruction
The RL78/G1H handles interrupts during the DIVHU/DIVWU instruction in order to enhance the interrupt
response when a division instruction is executed.
• When an interrupt is generated while the DIVHU/DIVWU instruction is executed, the instruction is suspended
• After the instruction is suspended, the PC indicates the next instruction after DIVHU/DIVWU
• An interrupt is generated by the next instruction
• PC-3 is stacked to execute the DIVHU/DIVWU instruction again
Normal interrupt
Interrupts while Executing DIVHU/DIVWU Instruction
(SP-1)
←
PSW
(SP-1)
←
PSW
(SP-2)
←
(PC)
S
(SP-2)
←
(PC-3)
S
(SP-3)
←
(PC)
H
(SP-3)
←
(PC-3)
H
(SP-4)
←
(PC)
L
(SP-4)
←
(PC-3)
L
PC
S
←
0000
PC
S
←
0000
PC
H
←
(Vector)
PC
H
←
(Vector)
PC
L
←
(Vector)
PC
L
←
(Vector)
SP
←
SP-4
SP
←
SP-4
IE
←
0
IE
←
0
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...