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.

如何设置使用CC1310的RTC?

Other Parts Discussed in Thread: CC1310, SIMPLICITI

Hello, everyone!

   1. 据我的了解,TI在"C:\ti\tirtos_cc13xx_cc26xx_2_16_00_08\products\cc13xxware_2_03_01_16780\driverlib\aon_rtc.c"中为用户提供了CC1310 RTC的操作库函数。不知道在CC1310_RTOS中有没有关于RTC的操作?

   2. 网上说的关于在RTOS中实现RTC功能,要么使用Seconds,要么使用clock。但是,不管是Second还是clock,在进行设置当前时间时,输入变量都是UTC时间。而我目前能够从网络上获取到的时间都是calendar格式(年,月,日,时,分,秒)。

        1> TI有没有提供输入变量为calendar的函数来设置时间?

        2> 目前有没有成熟的函数,可以用来将UTC时间转换为calendar时间?

  • 请参考此帖: https://e2e.ti.com/support/wireless_connectivity/proprietary_sub_1_ghz_simpliciti/f/156/t/496812

  • 你好,

            我正在调试RTOS中的RTC,看TI回复都是不能直接使用API去配置RTC。请问你后来是怎么实现RTC的?

    是用一个CLOCK去计时的吗?

  • Hi ,你好。我按照如下代码设置了RTC CH0

    AONRTCEnable();
    AONRTCCombinedEventConfig(AON_RTC_CH0);
    AONRTCChannelEnable(AON_RTC_CH0);
    IntEnable(INT_AON_RTC_COMB);//AON-RTC
    AONRTCCompareValueSet(AON_RTC_CH0, 0x10000);
    /**
     * \brief  RTC中断处理函数。
     * \param  none
     * \return none
    */
    void AONRTCIntHandler(void)
    {
        if (AONRTCEventGet(AON_RTC_CH0))
        {
            AONRTCEventClear(AON_RTC_CH0);
            GPIO_toggleDio(6);
        }
    }

    我发现每次中断后,中断函数总是会进入两次!

    RTC中的 Combined是什么意思呢,这这个有关吗?
    不使用RTOS的 例程代码能不能更加丰富一些,有些外设只看driverlib里面代码,理解的不是特别准确。
  • 你好,
    后来你的RTC 能跑起来了吗?