vTaskDelay(1000) = exactly 1 s?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-06 6:39 PM
Everyone,
Does vTaskDelay(1000); = exactly 1 s ? 1000 ms ?
I feel more than that.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-06 11:54 PM
Have you checked it with a logic analyser? Toggle a GPIO before and after the delay. Since the delay is most likely based on SysTick, and you are most likely using an external crystal to drive the PLL, it will be quite accurate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-08 9:05 PM
It will delay at least 1000ms. It will be longer when there are higher priority threads or interrupts that need to be serviced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-09 12:37 AM
But I have two tasks with the same priority, it should be exactly 1s,
doesn't it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-09 6:53 AM
What are you trying to do? How close to exactly 1000ms do you have to be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-09 7:50 AM
No.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-09 9:25 AM
Consider using a TIM to create a continuous/coherent time line, the latency at any given IRQ can't be guaranteed, but over the long term it should be consistently placed.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-09 2:21 PM
vTaskDelay(1000);
will keep accumulating bias from one application to the nexthttp://www.freertos.org/vtaskdelayuntil.html
Up vote any posts that you find helpful, it shows what's working..
