|
PD17225_15 Datasheet, PDF (46/86 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCONTROLLER FOR SMALL GENERAL-PURPOSE INFRARED REMOTE CONTROL TRANSMITTER | |||
|
◁ |
µPD17225, 17226, 17227, 17228
7.3 Interrupt Sequence
If IRQÃÃ flag is set to â1â when IPÃÃ flag is â1â, interrupt processing is started after the instruction cycle of the instruction
executed when IRQÃÃ flag was set has ended. Since the MOVT instruction, EI instruction, and the instruction which
matches the condition to skip use two instruction cycles, the interrupt enabled while this instruction is executed is
processed after the second instruction cycle is over.
If IPÃÃ flag is â0â, the interrupt processing is not performed even if IRQÃÃ flag is set, until IPÃÃ flag is set.
If two or more interrupts are enabled simultaneously, the interrupts are processed starting from the one with the highest
priority. The interrupt with the lower priority is kept pending until the processing of the interrupt with the higher priority is
finished.
7.3.1 Operations when interrupt is accepted
When an interrupt has been accepted, the CPU performs processing in the following sequence:
Clears IRQÃÃÃ corresponding to
INTE flag and accepted interrupt
Decrements value of stack pointer by 1
(SP â 1)
Saves contents of program counter to
stack addressed by stack pointer
Loads vector address to program counter
Save contents of PSWORD to interrupt stack register
One instruction cycle is required to perform the above processing.
44
Data Sheet U12643EJ2V0DS00
|
▷ |