Keil™, An ARM® Company

RTX51 Tiny User's Guide

Idle Task

When no task is ready to run, RTX51 Tiny executes an Idle Task. The Idle Task is simply an endless loop. For example:

SJMP $

Some 8051-compatible devices provide an idle mode that reduces power consumption by halting program execution until an interrupt occurs. In this mode, all peripherals include the interrupt system still continue operation.

RTX51 Tiny allows you to initiate idle mode in the Idle Task (when no other task is ready for execution). When the RTX51 Tiny Timer Tick Interrupt (or any other interrupt) occurs, the microcontroller resumes program execution. The code executed by the Idle Task may be enabled and configured in the CONF_TNY.A51 configuration file.