A SERVICE OF

logo

320
Chapter 24 Interrupt Control
8.Caution
7.4 How can I set an I flag?
8. Caution
Interrupt request flags are not cleared automatically. Make sure to clear them in the interrupt process.
(They are usually cleared by writing “0” to the bit of the interrupt request flag, however, there are some
exceptions depending on the type of peripheral functions. See the chapter for the corresponding peripheral
function.)
−>In C:
I flag is set to “1” (interrupt enable) by writing __EI();.
I flag is set to “0” (interrupt disable) by writing __DI();.
Two underscores