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.

[参考译文] 编译器/MSP430F6736A:msp430f6736A

Guru**** 2529140 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/737509/compiler-msp430f6736a-msp430f6736a

器件型号:MSP430F6736A

工具/软件: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