Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner