Hi All,

I have an  MSP430 application running on top of the excellent QF (quantum
framework ..) scheduler/RTOS and currently have
the LPM1 instruction in the idle loop, and the main OS timer interrupt
qualified with the "wakeup" keyword, and that all works fine,
everything goes to sleep and wakes up on interrupt.

However, I have some procedural code (non state-machine) that during which,
I would like to sleep for one clock tick (the clock tick is currently 2MS),
so I thought I could just call LPM1 in the procedural code and it should
wakeup and continue next tick. The problem is it doesn't and never seems to
wakeup at all, yet the LPM1 macro works fine from the OS idle loop.

I am not sure why this is happening.

Can someone shed some light on this issue?

I also notice that the LPMx macros do not set the GIE bit as well as the low
power bits, yet other compilers set the GIE bit ...
Anyone know why mspgcc doesnot?

Cheers,
Bernie

Reply via email to