This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why does default ISR get called after you remapped that same ISR?

I have mapped the CMP1INT ISR using:

EALLOW;

PieVectTable.CMP1INT = &PWM_ISR;

EDIS;

When I run the code, the default CMP1INT_ISR gets called anywhere from 20 to 40 times, and THEN the PWM_ISR gets called from that point on (without ever going back and calling the default ISR).

Why is this happening?

Which begs the question, why remap a default ISR into a custom-named one?  Why not just use the the default ISR?

I am a beginner, so I tried remapping because one of the tutorials I read did so.  But I want to know if it's even necessary.

And also how, if possible, can the default ISR NOT be called?

Thanks.