Part Number: CC2650
Other Parts Discussed in Thread: CODECOMPOSER, SYSBIOS
Hi team,
AONRTCEnable();
func=AONRTCActive();
i have enabled AON but i am not getting currentstamp i dont why can any one please help me?
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: CC2650
Other Parts Discussed in Thread: CODECOMPOSER, SYSBIOS
Hi team,
AONRTCEnable();
func=AONRTCActive();
i have enabled AON but i am not getting currentstamp i dont why can any one please help me?
Hi FI,
Thank you so much for the reply,
I am using Codecomposer studio
#include <xdc/std.h>
#include <ti/sysbios/BIOS.h>
#include <driverlib/aon_rtc.h>
#include <driverlib/aon_batmon.h>
#include <time.h>
#include <ti/sysbios/hal/Seconds.h>
Char func;
Char func1;
uint32_t func2;
uint32_t func4;
uint32_t seconds;
uint32_t batt;
time_t t1;
uint32_t t;
struct tm *ltm;
char *curTime;
char seconds1;
char str;
uint8_t str1;
uint8_t str2;
int main()
{
/* Start kernel. */
AONRTCEnable();
func=AONRTCActive();
AONRTCEventClear(AON_RTC_CH1);
AONRTCCompareValueSet(AON_RTC_CH1, 0x5dddcc54);
AONRTCChannelEnable(AON_RTC_CH1);
AONRTCChannelEnable(AON_RTC_CH0);
func1=AONRTCChannelActive(AON_RTC_CH1);
AONRTCCombinedEventConfig(AON_RTC_CH0 | AON_RTC_CH1);
func4= AONRTCCompareValueGet(AON_RTC_CH1);
BIOS_start();
return 0;
}
this code works fine but displaying current timestamp
I follow this method i need to update timestamp continuously by using channel 1 but i dont how to hook the function?
var Timer = xdc.module('ti.sysbios.family.arm.cc26xx.Timer');
Timer.funcHookCH1 = "&myHookCH1";
AONRTCEventClear(AON_RTC_CH1);
AONRTCCompareValueSet(AON_RTC_CH1, 0x40000);
AONRTCChannelEnable(AON_RTC_CH1);
Hi,
If you are interested in just the current time and date please see this if it helps:
https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/t/522038
Thanks,