Hello Nordic team,
I am testing a timer using code snippet which Nordic team recommended as a reference. My code is something like this:
|
uint64_t start, stop; void TIMER2_IRQHandler(void) |
As you can see in the code, I added some code to read out the RTC counter value to compare the time when timer start and expires with respect to RTC time. The result was:
start =9 stop = 16290 delta=16281
The time between start and stop is 16281, while I am expecting the delta is to be around 16384 ( 16384 is 1000ms in RTC , right?). it seems the timer expires a little earlier(103 ticks = 6.2866 ms). Can you please advise what I was wrong in testing the timer operation?
Thanks,
Robin