Enabling Global Interrupts

Question: How Do I Enable Global Interrupts?



The m8c.inc file contained in the library header directory of each project contains several useful macros. After including "m8c.inc" in your program, you may use macros like M8C_EnableGInt to enable global interrupts. This sets the Global Interrupt Enable (GIE) bit in the CPU Flag register.

Note: The pending interrupts are only recognized if the GIE is set.