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.

CPU Timer1 disable interrupt

Hi,

I am using F28377D, I wrote a drive which can start, stop and enable interrupt for CPUTimer1.

But when i try to disable interrupt of timer1 (INT13) it is not being disabled.

I do:

IER &= (~M_INT13);

In the watch window i can see that the relevant bit in IER register is being cleared, but afterwards it is being set again.

Any clue? maybe example code for disabling CpuTimer1 or 2?

Thanks.

 

  • Hi,

    Instead try this:

    CpuTimer1Regs.TCR.bit.TIE = 0;				//Disable CPU Timer Interrupt

    Regards,

    Gautam

  • Yehuda Bitton said:

    I do:

    IER &= (~M_INT13);

    In the watch window i can see that the relevant bit in IER register is being cleared, but afterwards it is being set again.

    IER is part of the context save/restore.  So if you are changing the value (to 0) within an interrupt, it will get restored to the previous value (1) when the interrupt exits.