Hello,
I want to make sure a PIE group 1 ISR gets called during a user defined trap ISR.
I have already looked through the nesting wiki and it seems that nesting interrupts in a user defined trap ISR is easier than an ISR associated with one of the PIE groups.
I am thinking of nesting group 1 interrupts in the user defined trap ISR could be coded as:
interrupt void userDefineTrapISR(void)
{
IER = M_INT1;
asm(" NOP");
EINT;
do something
DINT;
}
Am I correct?
Also, am confused about the example code in the nesting wiki.
Isn't
IER |= M_INT2; IER &= M_INT2;
The same as
IER = M_INT2;
Stephen