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.

Event Manager - ACTRB and interrupt problem

I am trying to solve one problem from weeks. I have around 10 interrupts, and everything work fine except Event Manager. I am initializing ACTRB registers like :

EvbRegs.ACTRB.bit.CMP7ACT = 1;

EvbRegs.ACTRB.bit.CMP8ACT = 1;

EvbRegs.ACTRB.bit.CMP9ACT = 1;

EvbRegs.ACTRB.bit.CMP10ACT = 1;

Then on Timer3Underflow Interrupt ACTRB should be changed on :

EvbRegs.ACTRB.bit.CMP7ACT = 3;

EvbRegs.ACTRB.bit.CMP8ACT = 1;

EvbRegs.ACTRB.bit.CMP9ACT = 1;

EvbRegs.ACTRB.bit.CMP10ACT = 3;

When I am running program in real-time I have 1,1,1,3 not 3,1,1,3 and interrupt doesn't want to load. When I would put breakpoint on interrupt, everything work fine. What's the reason of that weard behavior ?

  • Most likely you are experiencing a timing issue some where ... you may want to turn on your interrupts one by one to detect your failire point. By the way, having ten interrupts is an interesting situation - this may be a good case for BIOS application. I personally start getting worried using more than two interrupts :-)