There are several things you may do to optimize your RTX51 Tiny
programs.
If possible, disable Round-Robin task switching. Round-Robin
requires 13 bytes of stack space to store the task context and all
registers. This space is not required if task switching is
triggered by calling an RTX51 Tiny library routine (like os_wait or os_switch_task).
Use the os_wait routine instead of relying on the
Round-Robin timeout to switch a task. This improves system reaction
time and task response time.
Avoid setting the timer tick interrupt rate too fast. Setting
the time-out for the timer tick to a small value increases the
number of ticks per second but decreases the amount of time
available for tasks (because the timer tick interrupt takes 100-200
cycles to execute). Set the time-out value high enough to minimize
the effects of the timer tick interrupt handler.
To minimize the memory requirements of RTX51 Tiny, number your
tasks sequentially beginning with 0.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.