Hi,
Is it recommended to put CPU into LPM3 and to wake it up every 1ms?
In MSP430F2274 datasheet SLAS504F, table “Wake-Up From Lower-Power Modes (LPM3/4)” on page 39, DCO clock wake-up time is around 1us, but for CPU wake-up time, I found the parameter tClock,LPM3/4 is undefined in the document. How long is it?
And that the datasheet gives partially the information regarding wake-up time. In SLAU144I MSP430x2xx Family User's Guide, “2.3 Operating Modes” describes the speed for SR bits to take effect to be:
“When setting any of the mode-control bits, the selected operating mode takes effect immediately”
May I understand “immediately” as clock cycle time? Then for 1MHz DCO one clock cycle is 1us, so that “immediately” also means 1us, and is roughly the same as the DCO wake up time defined in the MSP430F2274’s datasheet (not including tClock,LPM3/4 for which information is lacking).
Although 1ms timer interrupt period is much longer than the total several μs’s sleep-and-wake-up time, it seems too frequently if judging by common sense. Moreover, even in 1MHz active mode the CPU consumes only around 0.3mA of current which if multiplied by 1ms is almost negligible. So is it really necessary to do such a frequent 1ms interrupt wake-up?
An alternative methods I found on the forum is by using _delay_cycles(unsigned long) compiler intrinsics. This would of course put the CPU in active mode. Which of the two methods is recommended?
Matt