3 Replies Latest reply on Feb 4, 2016 11:25 PM by userc_7899

    Maximum amount of time that is allowed in the timeout callback function


      Hi All,


      I am running some signal processing algorithms in the fine timeout callback function, the total number of ARM CPU clock cycles for the calculations is about 1300, which corresponds to 55us.


      The code seems to be working fine when the period of the fine timeout is 1s, but I see that the module resets when the timeout is reduced to 100ms.


      Is there any guideline on what would be the maximum allowable amount of time to spend on timeout callbacks ? Also, where should I put the math-intensive codes if I need them to run every 10ms ? Is the callback function a good place, if yes which one and if not are there any main loops that I can use (which can be interrupted by higher priority tasks).


      Thanks a lot in advance