Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20867

BASCOM-AVR : Writing code to run multiple tasks at same time : REPLY

$
0
0
I agree Hubert, and it would be wonderful if someone took his time (and skill) to write a true RTOS kernel for the Xmega. There are of course numerous examples of this need. Motor controllers, Alarm systems, Human interfaces , ... If one need handling asynchronous tasks on the microsecond level depends on the application type however. If you need to respond to unexpected events this is true, but if you just need to run internal processes on exact and predetermined intervals, a task-swapper is even better than an RTOS. In most of my own application there are very few external events, other than UART, claiming asynchronous access. These can often wait a few ms for service and are never a problem. Most other processes are initiated on predetermined timer events. In my world, a missed task is however a disaster, so I need to know that high priority tasks are always executed, and started without time jitter. What i want to say is that we need both types. A good task controller for synchronous tasks AND a good task swapper or RTOS for asynchronous tasks. /P

Viewing all articles
Browse latest Browse all 20867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>