Hi,
We're nesting a PWM interrupt inside an ADC interrupt.
We're the method TI recommends, that is at the beginning of the ADC interrupt we have:
IER |= M_INT3;
IER &= M_INT3;
NOP;
EINT;
and at the end of the ADC interrupt we have:
DINT;
question is this:
At some point in the ADC interrupt, we need to block the PWM interrupt from being nested.
So we call DINT, then run the code we need, then we call EINT to enable further nesting.
It seems to work fine (by toggling GPIOs at both interrupts), but we want to make sure there are no "glitches" that we don't capture.
Is the above method done in a correct way?
We thought maybe we need to repeat the
IER |= M_INT3;
IER &= M_INT3;
NOP;
before calling EINT again.
Thank you!