Thanks, can I crwate a separate task for this, in main function in for loop, can I use tk_sleep for Half second, that way, task collects data for every Half second.
task_main_fn()
{
for(;
{
collect GPIO data and do process....
tk_sleep(half-second);
}
}
Hi Yevgeni:
I have to take 840 samples per second, if I keep for loop for 840 then if I keep tk_sleep, not sure when it finishes, for example I have to measure 24 receptacles instantaneous current and voltage for 840 samples per second, is there any way I can measure makesure 840 samples can take within one second, can I use times to happen 840 samples per second exactly without putting task in sleep using tk_sleep?