AnsweredAssumed Answered

Global milliseconds timer.

Question asked by Evgeny Erenburg on Jun 10, 2018
Latest reply on Jun 13, 2018 by Evgeny Erenburg

Right now I have a global counter that increments in interrupt every millisecond.

 

void TI1_OnInterrupt(LDD_TUserData *UserDataPtr)
{
   globalSysTimer++;
}

And on this variable based timeouts, delays, and periodic loops in the program.
It's easy and convenient but I don't like the paradigm to interrupt the program flow every millisecond.
So I want to use a timer - like FlexTimer Module (FTM) and read its counter for a timestamp. But the FTM is 16-bit - it gives me 65536 ms before overflow. not enough.
What another options do I have in Kinetis K line?

Outcomes