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.