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.
你好,可以把变量放在中断中计数。
也可以放在while(1)中计数,只是需要在中断里退出低功耗,计完数之后再进入。
你好!
你使用的外设需要使用时钟源,但是在低功耗模式下,有些时钟源是关闭的。
例如LPM0与LPM1下只有ACLK和SMCLK是开启的,
LPM2与LPM3下只有ACLK是开启的。
所以在进入低功耗模式前,一定要检查在低功耗模式下继续运行的外设,其时钟在低功耗模式下是否还是有效的。
Regards,
Hardy