RTC Magazine

Proceed to Website >>

Close Advertisement Close Advertisement


BROWSE ARTICLES BY TECHNOLOGY

DIGITAL EDITION

RTC Magazine Digital Edition

INDUSTRY NEWS

RECENT COMMENTS

  • This is really amazing and saves labor,time and money at field. Definitely, this will be welcomed by instrumentation community

    S.SANTHIRAJ - See Article

  • thanks alot you have given the enough data about the cross bar switching ... i am again saying thanks you very much .

    Rajmir Khan - See Article

  • Excellent article. It really seems like the IF-MAP SCADA components can be part of a comprehensive security solution. I'd like to try this out.

    Mattes - See Article

  • Excellent article, Right now I'm working in the development of an mobile robot, using a single-board RIO, is a very useful tool... you can have you...

    Juan Tapiero - See Article

  • Hi Steve - I apologize for the delay. Please contact me at meghan.kerry@ni.com. Also, you might be interested in our new, NI Single-Board RIO based...

    Meghan Kerry - See Article

WHITEPAPERS

QUICK DOWNLOADS

SOLUTIONS ENGINEERING

Intelligent Power Management

RTOS - The Heart of Good Power Management

The basic mechanisms for power management are already in the RTOS. The lowest-priority task can put the CPU into a selected sleep mode to be reawakened by any interrupt in the role of Prince Charming.

LOTTA FRIMANSON, IAR SYSTEMS

  • Page 1 of 3
    Bookmark and Share

Low power consumption is an essential requirement in many embedded applications. The growing importance of battery-powered applications for portable electronics, home automation and wireless communications—for example, in medical devices, personal navigation devices, sports watches and portable game consoles—means that the demand for improved battery life is growing dramatically. The number of low-power versions of microprocessors and other silicon devices that have power management capabilities is increasing steadily.

Many embedded applications spend most of their time waiting for something to happen: receiving data on a serial port, watching an I/O pin change state, or waiting for a time delay to expire. If the processor is still running at full speed when it is idle, battery life is being consumed while very little is being accomplished. So in many applications the microprocessor is only active during a very small amount of the total time, and by placing it in a low-power mode during the idle time, the battery life can be extended by orders of magnitude.

However, incorporating power management and using an RTOS may be just as important a way to save power as the silicon design itself. Test examples have shown that some microprocessors may be in idle mode for 60 - 80% of their operating time. Using an RTOS in combination with idle tasks may significantly reduce power consumption and the CPU overhead by ensuring that the CPU is in its lowest possible power mode whenever it is idle.

Reducing Power Consumption in an Embedded System

The key is to minimize the active time and therefore maximize the time when the processor can go to sleep. The active time can be reduced by using a compiler that is efficient at optimizing for speed. The faster a specific task can be executed, the less time the processor needs to run.

A further important consideration is to structure the code in a way that identifies when the system is not performing any tasks. A good approach is to have a task-oriented design and to use an RTOS: In a task-oriented design, a task can be defined with the lowest priority, and will then only run when there is no other task needing to run. We call this task the idle task, and it is the perfect place to implement power management. In practice, every time the idle task is activated, it puts the processor into a low-power mode.

An RTOS provides the developer with a framework on which to build and organize the features of the system. The toolbox that accompanies the RTOS should also provide services such as inter-task communication and time management. Even for systems that have no need of the real-time capability, the code can be cleaner and better organized if based on an RTOS, partly because it promotes code reuse. The integration of an RTOS solves a variety of problems that can occur in application code, since it provides multitasking capability and allows the application to be broken down into smaller pieces.

Each task is assigned its own priority based on its importance, and preemptive scheduling ensures that the microcontroller (MCU) runs the task that has the highest priority among those that are ready to run. In most cases, adding a lower-priority task will not affect the responsiveness of the system to high-priority tasks.

There are many advantages to implementing power management within the OS, as it allows developers to concentrate purely on application development. The application developers can then easily use this object-oriented approach to make the embedded system more power efficient and easier to maintain, and development times become faster.

Using Low-Power Modes

The use of low-power modes is also very beneficial. A low-power mode is simply a state that a microprocessor can be switched to in order to save power. Many microprocessors and other silicon devices have a number of different low-power modes, in which different parts of the processor can be turned off when they are not needed. The oscillator can be either turned off or switched to a lower frequency, peripheral units and timers can be turned off, and the CPU stops executing instructions. Several processors have different levels of low-power modes, each with a different power consumption based on which peripherals are left on.

LEAVE A COMMENT