Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>