AnsweredAssumed Answered

Reseting timer interrupt by disabling and enabling.

Question asked by Kaustubh Kagalkar on Jun 22, 2016
Latest reply on Jun 23, 2016 by Kaustubh Kagalkar



I am working on MK24FN1M0VDC12 MCU, and using Timer Interrupt for 8ms periodic interrupt. I need to sync this interrupt with an external trigger. I read from the K24 Sub-Family Reference Manual pg no 1050, that, to reset the timer, enabling and disabling the interrupt is required. I am using following function calls as follows.

if (TI1_Disable() != ERR_OK) {

         static int err1 = 0;



if (TI1_Enable() != ERR_OK) {

          static int err = 0;




When these lines are executed the interrupt is completely disabled, and I never the periodic interrupt after that.