-
1. Re: How Rtos task switching works?
MoTa_728816 Aug 21, 2019 12:39 AM (in response to prJ_3956181)Hi,
For the FreeRTOS, you can visit following URL to get Tutorial type materials.
To begin with, how about skimming the pages above
and if you encounter further question(s), post specific questions to
FreeRTOS Support Forrum
https://sourceforge.net/p/freertos/discussion/382005/
and/or here ;-)
Best Regards,
21-Aug-2019
Motoo Tanaka
-
2. Re: How Rtos task switching works?
JoMe_264151 Aug 21, 2019 2:49 AM (in response to prJ_3956181)1 of 1 people found this helpfulA task controlling a motor (or any other device) usually does not end. Just like the infinite main-loop in "normal" applications the controling tasks will not end. Instead there are conditions set from the outside that the task "sees" and performs what is needed, ie the change between actual and required position. Starting and ending tasks can result in some system overhead which might reduce performance.
When you want to learn how RTOSses principally work, have a look into this thread.
Bob
-
3. Re: How Rtos task switching works?
prJ_3956181 Aug 21, 2019 4:08 AM (in response to JoMe_264151)Hi JoMe
Is it like this if sevo task(i want to move 90 degree) and dc task are give some 5 ticks,the sevo will do for 5 ticks (which moves to 20degree)then switches to dc task for 5 ticks and then to servo move 40 degree,then to dc and so on unit it completes the task
-
4. Re: How Rtos task switching works?
JoMe_264151 Aug 21, 2019 4:53 AM (in response to prJ_3956181)Think in single tasks:
How are you going to let the servo task move 90°? Probably you setup some signal stream (using a PWM) and WAIT for completion.
The second motor works the same.
Now during the wait phases, because tis is comparably slow, your tasks get switched a thousand times per second until the waiting is finished.
Bob
-
5. Re: How Rtos task switching works?
VasanthR_91Aug 25, 2019 9:59 PM (in response to prJ_3956181)
Hi,
If you are interested in generating PSoC6 projects with FreeRTOS, the following video series will be helpful.
Link: https://www.cypress.com/video-library/PSoC-Software/psoc-6-101-lesson-1-4-freertos-0/604106
Best Regards,
Vasanth