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.

[参考译文] MSP430FR2355:RTCMOD 寄存器未加载?

Guru**** 2519770 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1076719/msp430fr2355-rtcmod-register-not-loading

部件号:MSP430FR2355

    RTCMOD = (int)((float)(32768 / divA[div]) * s) - 1;  //upper 8 bits are seconds that IRQ will occur
    RTCCTL |= RTCSS__XT1CLK | RTCSR | (div + 4) << 8;

我在上面看到的最后一行代码后设置了断点。  我看着 RTCMOD 寄存器,它显示了 ME 20479 (十进制)。  复制到表达式窗口时,表达式的值为255。  有人能告诉我为什么 RTCMOD 似乎没有加载计算值?

谢谢