A96G140/A96G148/A96A148 User’s manual
7. Interrupt controller
69
And it remains ‘1’ until CPU
accepts interrupt. If the interrupt is served, the interrupt request flag will be
cleared automatically.
7.4
Interrupt sequence
An interrupt request is held until the interrupt is accepted or the interrupt latch is cleared to ‘0’ by a reset
or an instruction. Interrupt acceptance always generates at last cycle of the instruction. So instead of
fetching the current instruction, CPU executes internally LCALL instruction and saves the PC at stack.
For the interrupt service routine, the interrupt controller gives the address of LJMP instruction to CPU.
Since the end of the execution of current instruction, it needs 3 to 9 machine cycles to go to the interrupt
service routine. The interrupt service task is terminated by the interrupt return instruction [RETI]. Once
an interrupt request is generated, the following process is performed.