Well yes, that would most likely fix the immediate problem of no wake-up interrupt.. But what you'd be doing is pretty much setting the interrupt flag early and immediately coming out of LPM0. I was curious how long does entering the LPM0 take in the 1st place i.e. what's the minimum delay I can generate reliably by sequence of "start timer -> go to LPM0 sleep -> wake up with interrupt" and at what point I should be using __delay_cycles() instead.
↧