AnsweredAssumed Answered

How to force a value in the Timer_Counter register

Question asked by aloui.seifeddine@gmail.com on Jun 18, 2013
Latest reply on Jun 19, 2013 by Prashant

Hi every body,

 

I want to be able to  generate a callback to a function each 1 millisecond.

 

The problem is that the first callback to the function should be done in less time because the beginning of the slot was about 700us in the past so I need the first callback to be executed after 300ms then the following callbacks should be done each ms.

 

Well I solved this by starting the timer with a period of 300us and then in the first callback I restart it with a period of 1ms but I wonder if  there is another way to do this.

 

Thanks

Outcomes