Hi All,
I am using CC2650LP and I want to use timer A in one shot mode for 10 seconds. Can you provide me the code snippet for the same.
Thanks,
Santhoj
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.
Hi All,
I am using CC2650LP and I want to use timer A in one shot mode for 10 seconds. Can you provide me the code snippet for the same.
Thanks,
Santhoj
Hi,
I am able to load the timer and its giving interrupt after the timeout. Also I am able to reload the timer value after the timeout.
But I'm trying to load the timer before completing the previous load value. This is not working.
Timer Config: 32 bit timer. Timer1; Up counting One shot timer.
DIO_callback()
{
..
GPTimerCC26XX_stop(hTimer);
GPTimerCC26XX_setLoadValue(hTimer,480000000); /* 10sec */
GPTimerCC26XX_start(hTimer);
}
this callback ll occur again in less than 10 sec. Say for example, I got first DIO interrupt at 10:30:11 (HH:MM:SS) so I expect the timer interrupt should occur after the timeout that is at 10:30:21. But if another DIO interrupt occur at 10:30:15. then I expect the timer should give interrupt at 10:30:25. Instead it is giving timer interrupt at 10:30:21 itself.
Why I am experiencing this behaviour? timer stop function won't clear the old timing value and update the new value?
Suggest me how can I design the timer to my functionality.
Thanks,
Santhoj.