Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

RTOS current consumption

Posted by Gerald Mayerhofer on April 14, 2009
Hi,
I think of using FreeRtos on my board but I want to supply the via batteries and so I would like to know how the FreeRTOS effects the current consuption. Is there any rule of thumb how the current consuption increases?
Maybe someone knows?

Thanks!

RE: RTOS current consumption

Posted by Richard Damon on April 14, 2009
Using FreeRTOS shouldn't affect your current consumption by much (unless you fall into the trap of making your program do more now that it is easy to do.) It may even let you save power if you can put a sleep instruction in the idle loop. The biggest key is to make sure that the "tick" period for FreeRTOS is appropriate, if you need to do things 50 time a second, use a 20 ms (50Hz) timer, not a 1ms (1000Hz) one.

RE: RTOS current consumption

Posted by Richard on April 15, 2009
Using an RTOS can save current because you can design the system to be completely event driven - removing any CPU cycles that would otherwise be wasted by polling. When an event is not being processed the idle task will run and immediately put the processor into a power down state.

Using an RTOS can cost current because it needs a periodic tick to work. Lots of aps have a periodic interrupt anyway so if that is the case then it makes no difference.

As richard_damon says, setting the tick to the slowest possible is key. We have in the past played around with slowing the clock down before placing the processor into sleep mode too. To do this you have to increment more than one tick each time the tick interrupt occurs. For example, if you half the clock speed then increment the tick twice on each tick interrupt (while the clock remains slower). If you quarter the clock speed then increment the tick four times on each tick interrupt (while the clock remains slower). Etc. Once an event occurs and there is processing to do set the clock back to its full speed, assuming the processing needs to be done quickly that is.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists