Part Number: LAUNCHXL-CC26X2R1
Tool/software: Code Composer Studio
Hello,
I would like to use the real time clock, integrated in the CC2652R1.
Do you have some examples ?
Thanks,
Best regards,
Sebastian
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.
Part Number: LAUNCHXL-CC26X2R1
Tool/software: Code Composer Studio
Hello,
I would like to use the real time clock, integrated in the CC2652R1.
Do you have some examples ?
Thanks,
Best regards,
Sebastian
Hi Sebastion,
What is your use-case for the RTC?
The "Clock" module in TI-RTOS is actually running of the RTC, which means you could use this to run timers of the RTC timer if you could accept some jitter in the responds. This is the most straight forward way and the recommended one if it is sufficient for your task.
If this for some reason is not enough, you could potentially use "Channel 1". Keep in mind that anything you do in this ISR would add some delay for any other Clock callback that is expected to be invoked. Please see the TI-RTOS API documentation for information on how to use this channel:
Hi Sebastian,
Please refer to the Clock section of the User's Guide: http://dev.ti.com/tirex/explore/content/simplelink_cc13x2_26x2_sdk_3_40_00_02/docs/ble5stack/ble_user_guide/html/ble-stack-tirtos/clocks.html#clocks
Thanks,
Elin
Hello M-W,
Thank you for your response, I need to implement a calendar using the rtc.
Perfect.
Thanks,
Best regards,
Sebastian
Hello M-W
So for doing a calender (RTCC) i have to implement it? it is not integrated?
Thanks,
Sebastian
I found this post:

It works.
Thank you for your help.
Best regards,
Sebastian
I'm sorry for the number of posts..
Function get_Seconds gives me the count in seconds, but I need to do a calender so there are not a function which gives me the date (year, month, day, hours, minutes and seconds) ?
Thanks,
Best regards,
Sebastian
Hi Sebastian,
No, there is no calendar functionality in the RTC module. There is also no such module in TI-RTOS. You would need to define your own SW module for this (much like the TI-RTOS seconds module is simply a wrapper around the RTC value).