This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zephyr Mesh / Timer accuracy

Hi,

I am evaluating Zephyr mesh and implemented two timers; one triggers at every 2 mS, the other triggers at every 500 uS.

I put a code in both timers' events to toggle a gpio so that I can measure accuracy of timing. It shows nearly 100 uS jitter.

For 500uS timer, it is 20% error. I need more accuracy, at least +-5 % of the target frequency of the timer function. Is it possible? 

Thanks,

masakura

Parents Reply
  • Hi,


    Which document? BTW, I feel it is nothing to do with the resolution. Anyway, what I am trying to is to reduce the jitter of the timer interrupt when it is set to trigger at 500uS using this API.

    k_timer_start(&my_timer_ms, K_MSEC(TIMER_INTERVAL_MSEC), K_MSEC(TIMER_INTERVAL_MSEC));

    I don't know whether it is replies on RTC or Timer, but I guess it it the timer.

    With the current setup, The period between two interrupts ranges about 400 uS to 600uS, not stable at 500uS.

    I am looking for solution for this.

    Thanks,

     

Children
No Data
Related