Your current code will get stuck at line# 274. The CPU will sleep in LPM3 most of the time. Occasionally, an ISR may be executed. But since none of your ISRs has a "__bic_SR_register_on_exit(LPM3_bits);"instruction inside, the CPU will go back to line# 247 and sleep again. In a sense, you are lucky that no ISR tries to wake up the CPU. Because line# 247 is at the end of the road (main), if one of the ISRs wakes up the CPU, it will roll off the end of road (main) and fall into a cliff. Your line# 276 is the end. Beyond that, there are only comments and the CPU will not do anything for you.
↧