There are two separate mechanisms involved in interrupts:
1. The enabling and disabling of external interrupts.
Either all "available" interrupts are enabled or they are not availble. That is controlled via:
where you can pass either
So this effectly controls if you have interrupts or not. This controls the PIE bit of the status register.
2. You can selectively enable or make available individual interrupts.
That is, you have to activate an interrupt source by setting the corresponding bit in the ienable register. This is accomplished via two utility functions:
After you register a LISR, you will have to activate the interrupt source using the functions above.