I need to execute a set of instructions after x miliseconds, which can be set from 1 to 5 miliseconds.
Is there any funtion able to do this?
Thanks for advantage
I need to execute a set of instructions after x miliseconds, which can be set from 1 to 5 miliseconds.
Is there any funtion able to do this?
Thanks for advantage
Hi. You can try with costates. Inside the costates you can use the instruction waitfor(delayMs(xxx)) where xxx are milliseconds.
The code structure must be like this:
costate{
…
(your instructions)
…
waitfor(delayMs(xxx))
}
Regards
Luciano
Sorry, I don’t thanks your reply
I did this:
if(MS_TIMER != TIMER_[0])
{
…
TIMER_[0] = MS_TIMER;
}