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.

[参考译文] MSP430FR2033:MSP430FR2033能否使用 RTC 计数器在当天创建中断?

Guru**** 2524460 points
Other Parts Discussed in Thread: MSP430FR2033

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/592089/msp430fr2033-can-msp430fr2033-create-an-interrupt-on-the-day-with-rtc-counter

器件型号:MSP430FR2033

您好!  

我们使用 的是 MSP430FR2033。 我们的 RTC 设置 如下代码所示。 此代码每10分钟生成一次中断。

RTC_INIT (RTC_BASE、
19200、
RTC_CLOCKDIVIDER_1024);

RTC_clearInterrupt (RTC_BASE、
RTC_overflow_interrupt_FLAG);

RTC_enableInterrupt (RTC_BASE、
RTC_overflow_interrupt);

RTC_START (RTC_BASE、RTC_CLOCKSOURCE_XT1CLK); 

如何编码以 每天创建中断(24小时)

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

    我收到了你的问题。 请允许我给您一个答案。 感谢您的耐心等待。

    NIMA Eskandari
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您必须在软件中编写额外的器件。 该中断可用于检查60*60*24秒之后的时间。
    您将编码将 RTCMOD 设置为19200-1。 您的时钟频率为32768Hz。 使用1024时钟分频器和19200-1 RTCMOD:

    19200*1024/32768=600s =10分钟

    现在、在您的中断中、您可以处理中断已触发的次数以及何时达到日限制。