工具/软件:TI C/C++编译器
主席先生,
_bis_SR_register (LPM3_bits);
和
_bis_SR_register (LPM3_bits | GIE);
这两项陈述有何区别、
_BIC_SR_REGISTER_ON_EXIT (LPM3_BITS | GIE);
当我从上面的 lpm3模式中退出时、我的 RTC 中断将停止
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.
工具/软件:TI C/C++编译器
主席先生,
_bis_SR_register (LPM3_bits);
和
_bis_SR_register (LPM3_bits | GIE);
这两项陈述有何区别、
_BIC_SR_REGISTER_ON_EXIT (LPM3_BITS | GIE);
当我从上面的 lpm3模式中退出时、我的 RTC 中断将停止
您好 Satish、
[引用 user="cnh sharma13"]_bis_sr_register (LPM3_bits);
这将设置 LPM3的寄存器位、
[引用 user="cnchh sharma13"]_bis_sr_register (LPM3_bits | GIE);
这将设置 LPM3的寄存器位并启用通用中断。
[引用用户="cnchh sharma13"] __BIC_SR_register_ON_EXIT (LPM3_BITS | GIE);
上面的语句会清除 LPM3和通用中断的寄存器位、因此它实际上会禁用通用中断。
您要做的实际上是设置我假设的位。 在上述语句中,将"bic"替换为"bis",以便设置位。
但是、如果我误解了您想要做的事情、请更正我。
此致、
Britta