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.

CC2650: Does the "Seconds.h" module use hardware RTC?

Part Number: CC2650
Other Parts Discussed in Thread: SYSBIOS


Hi! I want to get time in unixtime format using hardware RTC.

The processor will be in Standby mode most of the time.

Does the Seconds.h module use hardware RTCs or is it only in active mode?

  • That is my understanding. See the seconds.xdc and seconds.c under C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\products\bios_6_46_01_37\packages\ti\sysbios\family\arm\cc26xx

  • Yes, it use RTC

    UInt32 Seconds_get(Void)
    {
    volatile UInt32 curSeconds;
    UInt key;

    key = Hwi_disable();

    curSeconds = AONRTCSecGet();

    curSeconds = (curSeconds - Seconds_module->refSeconds) +
    Seconds_module->setSeconds;

    Hwi_restore(key);

    return (curSeconds);
    }