Hi,
I would like to know if it is possible with Rtos to make a loop every 5ms .
In this loop of course I need to use serial port / Can BUS an other task.
I work with a PIC32.
Thanks you
Make realtime loop
Make realtime loop
http://www.freertos.org/vtaskdelayuntil.html
http://www.freertos.org/a00127.html The above links will be a good starting point. Plus look at any of the demo applications in the download. You might want to consider if you really want to do all these things every 5ms. I might be wrong, as you don’t provide much information, but the implication of your post is that you are converting a super loop program into an RTOS program by just copying the superloop into a task. It might be better to work of events generated by your peripherals. Regards.
http://www.freertos.org/a00127.html The above links will be a good starting point. Plus look at any of the demo applications in the download. You might want to consider if you really want to do all these things every 5ms. I might be wrong, as you don’t provide much information, but the implication of your post is that you are converting a super loop program into an RTOS program by just copying the superloop into a task. It might be better to work of events generated by your peripherals. Regards.
Make realtime loop
Thank you for your answer
I will look at it asap
I need this to make PID and acceleration deravative calculation so I need a good precision in the loop time.
I will look at it asap
I need this to make PID and acceleration deravative calculation so I need a good precision in the loop time.