Hi All,
I am using nRF51822 for my application.
how to change the App timer Interval dynamically means i have to change the timer interval before timeout.
Hi All,
I am using nRF51822 for my application.
how to change the App timer Interval dynamically means i have to change the timer interval before timeout.
Are you asking how to do it? Have you tried stopping the timer and creating a new one?
Yes i am asking.
I want it without stopping the timer because i want to increased the timer tick before timer timeout. for example i started timer with 100 ms and when its reaches to 90 ms i want to add another 100 ms delay so timer interval will be 190 ms.
Start the timer with timeout of 90. When it goes off, decide whether you want 10 more or 100 more. Or do you have some event before the timeout that tells you you want to increase the timer? If so, then you can save the time when you start the timer, and when the event occurs, stop the timer and do math on nowTime - savedTime to calculate the new timeout.
No actually in UART ISR i am receiving one packet and for checking the end of packet i want a delay of 5 ms. while i am receiving the packet i want to reset the timer count so when there is nothing in the UART ISR that time only i want to start the timer or in other words that timer count will start from 0 to 5ms and in the timer handler i will know that packet is received.
This was very difficult to understand. Do you want to have a UART timeout? Please try to explain in another way.