<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Zephyr Mesh / Timer accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71282/zephyr-mesh-timer-accuracy</link><description>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&amp;#39; events to toggle a gpio so that I can measure accuracy of timing. It shows nearly 100 uS jitter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2021 14:18:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71282/zephyr-mesh-timer-accuracy" /><item><title>RE: Zephyr Mesh / Timer accuracy</title><link>https://devzone.nordicsemi.com/thread/296054?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 14:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6deee575-8721-428e-a1de-67e164c53eeb</guid><dc:creator>masak</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;k_timer_start(&amp;amp;my_timer_ms, K_MSEC(TIMER_INTERVAL_MSEC), K_MSEC(TIMER_INTERVAL_MSEC));&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t know whether it is replies on RTC or Timer, but I guess it it the timer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With the current setup, The period between two interrupts ranges about 400 uS to 600uS, not stable at 500uS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am looking for solution for this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Mesh / Timer accuracy</title><link>https://devzone.nordicsemi.com/thread/295982?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 10:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53752ad-8736-462e-be7a-46ff31e45c7c</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;You can check the documentation for the resolution of the timers.&lt;/p&gt;
&lt;p&gt;Are you using the RTC or the TIMER?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Mesh / Timer accuracy</title><link>https://devzone.nordicsemi.com/thread/295430?ContentTypeID=1</link><pubDate>Sat, 20 Feb 2021 00:51:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77e636ee-045a-4cec-9e41-c6ebd61fce2f</guid><dc:creator>masak</dc:creator><description>&lt;p&gt;no response?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Mesh / Timer accuracy</title><link>https://devzone.nordicsemi.com/thread/292754?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 17:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65dd2e57-4eba-429e-956a-73aa12619f79</guid><dc:creator>masak</dc:creator><description>&lt;p&gt;I did not include the codes.&lt;/p&gt;
&lt;p&gt;k_timer_init(&amp;amp;my_timer_ms, timer_ms_event, NULL);&lt;br /&gt; k_timer_start(&amp;amp;my_timer_ms, K_MSEC(TIMER_INTERVAL_MSEC), K_MSEC(TIMER_INTERVAL_MSEC));&lt;/p&gt;
&lt;p&gt;k_timer_init(&amp;amp;my_timer_us, timer_us_event, NULL);&lt;br /&gt; k_timer_start(&amp;amp;my_timer_us, K_USEC(TIMER_INTERVAL_USEC), K_USEC(TIMER_INTERVAL_USEC));&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;masakura&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>