This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5335: Wake up from any LPM

Part Number: MSP430F5335


If I have a conditional go to sleep code like this:

if (cell_pwr() || g_debug_bps > 9600) {
    __bis_SR_register(LPM1_bits + GIE);  // Go to sleep
} else {
    __bis_SR_register(LPM2_bits + GIE);  // Go to sleep
}

can I wake up using the code below, considering that sometimes the uC will be in LPM1 and the ISR will attempt to wake it up from LPM2?

__bic_SR_register_on_exit(LPM2_bits);  // wake up

**Attention** This is a public forum