Renesas R5S72621 User Manual

Page of 2152
 
Section 7   Interrupt Controller 
 
Page 208 of 2108 
 
R01UH0134EJ0400  Rev. 4.00 
 
 Sep 
24, 
2014 
SH7262 Group, SH7264 Group
7.10
 
Usage Note 
7.10.1
 
Timing to Clear an Interrupt Source 
The interrupt source flags should be cleared in the interrupt exception service routine. After 
clearing the interrupt source flag, "time from occurrence of interrupt request until interrupt 
controller identifies priority, compares it with mask bits in SR, and sends interrupt request signal 
to CPU" shown in table 7.5 is required before the interrupt source sent to the CPU is actually 
cancelled. To ensure that an interrupt request that should have been cleared is not inadvertently 
accepted again, read* the interrupt source flag after it has been cleared, and then execute an RTE 
instruction. 
Note:  *  When clearing the USB 2.0 host/function module interrupt source flag, read the flag 
three times after clearing it.