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.

关于CC2530的RTC功能

Other Parts Discussed in Thread: CC2530

Hi,all:

      CC2530的RTC功能如何调试,如果想实现UTC时间的话。

     

  • 可否说详细点?CC2530本身不带RTC模块,最好的办法是外接一个RTC芯片;如果是希望节点保持同步的话,可以在发送数据包时加上自己的时钟,目标传感器节点收下数据和时钟,大家用这个时钟去同步自己的时钟

  • 简单点:如果我要用2530做一个世界时间钟表。 需要对时,设置闹钟功能,在没有RTC模块的情况下,用CC2530的内部晶振可以实现吗?

    如下这些函数,可以实现以上功能吧:

    void osal_setClock( UTCTime newTime )

    UTCTime osal_getClock( void )

    void osal_ConvertUTCTime( UTCTimeStruct *tm, UTCTime secTime )

    UTCTime osal_ConvertUTCSecs( UTCTimeStruct *tm )