Make realtime loop

anonymous wrote on Saturday, October 20, 2012:

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

rtel wrote on Sunday, October 21, 2012:

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.


anonymous wrote on Sunday, October 21, 2012:

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.