I am relatively new to TIRTOS and am trying to understand what is the best way to trigger a series of events at certain times. More specifically, i have a static table of times, i.e. [0.17sec, 1.85sec, 2.8sec, 30sec, 600sec]. At each of these time steps, i would like to change the period parameter of the PWM driver.
From what i understand so far, there a few different ways to do this:
* a task that sleeps for the amount of MS defined by each tilmestep
* a one shot clock for each of these time intervals
Are there other/better ways to do this?
One detail is that this is a very high priority event, that should take precedence over everything else in the system. The timing between each step as well as the immediate change in PWM parameter is highly critical.
Thanks in advance for your suggestions.