Pumpkin, Inc.

Pumpkin User Forums

low power modes

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

low power modes

Postby msp430user » Mon Nov 18, 2002 4:30 am

Hi all,

Are the low power modes from the MSP430 supported by the RTOS salvo?

msp430user
 
Posts: 1
Joined: Mon Nov 18, 2002 12:00 am
Location: holland

Re: low power modes

Postby aek » Tue Nov 19, 2002 6:32 am

Hello.

Yes, they are. The way to use Salvo with low-power modes is to force the MSP430 back into low-power mode whenever the scheduler reports that there are no longer any eligible tasks to run. The main() code would look like this:

code:
for (;;) {
OSSched();
if ( OSAnyEligibleTasks() == 0 )
Sleep();
}

This way, the MSP430 will stay alive as long as there are eligible tasks to run. But once there aren't any (e.g. all tasks are waiting or delayed), it will sleep. Any interrupt will then wake it back up again. If the interrupt causes a waiting or delayed task to become eligible again, then said task will run, etc.

Note that for this to work, you must not have any task(s) that are always eligible (i.e. they only context switch with OS_Yield()), and the OSIdlingHook() function will not execute when the MSP430 is asleep.

Regards,

------------------

[This message has been edited by aek (edited November 19, 2002).]

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 2 guests

cron