November, 2018 Rev.1.4
55
finish current instruction and jump to the interrupt service routine. After executing the service routine,
the program address is retrieved from the stack by executing RETI instruction to restart from the
position where the interrupt is accepted. The following figure shows the sequence.
NOTE
Interrupt flags due to USART TX, KEYSCAN and FLASH are not auto-cleared when the CPU accepts the
request. KEYSCAN module has no status register, so interrupt flag is not to be polled.
10.6 Effective time of Interrupt Request
To activate interrupt request from interrupt sources, both EA bit in IE register and individual enable bit
INTnE in IEx register must be enabled. At this time, the effective time of interrupt request after setting
control registers is as follows.
Saves PC to stack to continue program
execution after serving ISR
IE.EA Flag
1
IEx.y
1
1
Saves Program Counter Low Byte
SP
SP + 1
M(SP)
(PCL)
2
Saves Program Counter High Byte
SP
SP + 1
M(SP)
(PCH)
3
Produces Interrupt Vector Address
(Interrupt Vector Address)
4
Jumps to ISR(Interrupt Service Routine)
5
Return from ISR
RETI
6
Restores Program Counter High Byte
(PCL)
(SP-1)
7
Executes Main Program
9
Restores Program Counter Low Byte
(PCL)
(SP-1)
8
Figure 10-3 Sequence of Interrupt handling
Summary of Contents for MC96FR364B
Page 17: ...MC96FR364B November 2018 Rev 1 4 17 4 PACKAGE DIMENSION...
Page 18: ...MC96FR364B 18 November 2018 Rev 1 4 Figure 4 1 PKG DIMENSION 28 TSSOP...
Page 23: ...MC96FR364B November 2018 Rev 1 4 23 6 3 REMOUT Port Data PAD VDD Figure 6 3 REMOUT port...
Page 69: ...November 2018 Rev 1 4 69 Initial value 00H BIT 7 0 BIT counter value...