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

at91sam7s64 Sleep mode

Posted by Nobody/Anonymous on May 12, 2005
Hi,
I would like to do some power saving in my software, however I'm not sure what's the best way to make it work in FreeRTOS.
My software should work in 100ms duration, then sleep for 1second, wake up and repeat the procedure. Do you have suggestions on how I should implement it?


RE: at91sam7s64 Sleep mode

Posted by Nobody/Anonymous on May 12, 2005
You can place the processor into power save mode in the idle task.

If you are using a version prior to 3 then you have to modify the code in prvIdleTask() within tasks.c. If you are using V3 then you can use the idle hook facility
(http://www.freertos.org/a00015.html#IdleHook).

When you place the processor into sleep mode you have to choose a mode that allows the timer to continue running, otherwise you will never wake! Also the timer must be able to bring the processor out of sleep mode.

The lower the tick rate the lower the power consumption will be.

If the idle task puts the processor to sleep then the processor will wake on the RTOS tick. If this makes a task ready to run the task will run - if not the idle task will immediately put the processor back to sleep.

Hope this helps.


[ 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