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.

进入低功耗模式问题



__bis_SR_register(LPM3 + GIE)    无法打开中断允许

__bis_SR_register(LPM3_bits + GIE) 可以打开中断允许

头文件中对LPM3 与LPM3_bits 的定义是一样的啊,为什么第二句可以,第一句不行。

#define LPM3                (SCG1+SCG0+CPUOFF)

#define LPM3_bits           (SCG1+SCG0+CPUOFF)