Other Parts Discussed in Thread: SYSBIOS
CC1310 RTC 定时例子
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,因此你只需设置一次时间,即使在低功耗模式下,它也会在通电时继续计数时间。低功耗模式由 TI-RTOS 管理。
需要用做长时间的定时,例如延时一天后报警
e2echina论坛这边不提供代码编写服务,RTC看时间的demo给您,如果您这边写一个延时一天报警的逻辑代码很困难的话,建议您联系与您公司对接的FAE。
建议您去英文论坛去发表您的需求,您可以得到更为专业的回复
需要实现一天的定时,定时到后自动唤醒设备
您这边需要的例程我们这边是不提供的,只能为您找到一些相关的资料,尽可能的帮助到您。希望您这边可以理解。
Hi Genyi,
请参考此例程:
Best regards,
Shuyang
Hi Genyi,
二者关联性如下:
The RTC is used by TI-RTOS as the time base for the ti.sysbios.Clock module. It continues to run even when the processor is in standby mode and will wake the processor whenever a Clock object times out.
Clock objects are used to implement the timeouts for BIOS APIs such as Task_sleep(), Semaphore_pend(), Event_pend(), etc. They are also used internally by various TI-RTOS driver functions when a timeout is required.
The RTC is also used as the timebase for the ti.sysbios.hal.Seconds module which can be used to provide time-of-day information to your application.
请参考:https://e2e.ti.com/support/processors-group/processors/f/processors-forum/578980/rtos-rtc-in-cc1310
Best regards,
Shuyang
需要用做长时间的定时,例如延时一天后报警,,我的设备需要低功耗, 只看到用RTC看时间的例子,不能满足需求!
RTC 在大约 18 分钟后循环,因此您不能使用它让设备休眠一整天,然后在中断时唤醒。
如果你有一些东西只需要每天运行一次,其余时间设备应该休眠,你仍然需要更频繁地唤醒,然后在唤醒 x 次后,你就可以做你需要做的事情。