<?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>nrf51822 application timer issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9961/nrf51822-application-timer-issue</link><description>Hello , 
 I am initialising application timer with prescale of 327 for 10 ms interrupt delay. I created a timer slot using app_timer_create(&amp;amp;ulTestTimer, APP_TIMER_MODE_REPEATED, test_timeout); 
and started the timer app_timer_start(ulTestTimer, 1,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Oct 2015 10:44:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9961/nrf51822-application-timer-issue" /><item><title>RE: nrf51822 application timer issue</title><link>https://devzone.nordicsemi.com/thread/36961?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 10:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57e652d4-046f-4e22-8b7a-e6a31331c296</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Yes correct. 1 tick corresponds to 10 ms with prescale of 327. And I want to achieve 10 ms interrupt. I am toggling a pin for each interrupt callback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 application timer issue</title><link>https://devzone.nordicsemi.com/thread/36960?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 10:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37b8f643-8c4d-4c44-9cd6-b2e76eaa81e2</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;The number of ticks is what the clock &amp;quot;counts&amp;quot; to before triggering your callback function. With a prescaler of 327, the clock counts 100 times per second (or 100 ticks per second). 1 tick is then 10 ms. 5 ticks is therefore 50 ms. How do you measure the time before callback is triggered?&lt;/p&gt;
&lt;p&gt;If you want a 10ms timer. Set the prescaler lower(maximum 65), to count faster.
Use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/group__app__timer.html#gafdaf90781af071b0c295cd5b2b08da3d"&gt;APP_TIMER_TICKS&lt;/a&gt; macro to convert from ms to ticks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 application timer issue</title><link>https://devzone.nordicsemi.com/thread/36959?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 10:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2d7862d-0dd0-45e1-b2bb-a986d214d95f</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Thank you for the link. I changed the value from 5 to 1 and created only one timer instance. But I am getting 30ms instead of 10ms. Will it effect if I change the &lt;strong&gt;Number of ticks&lt;/strong&gt; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 application timer issue</title><link>https://devzone.nordicsemi.com/thread/36958?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 10:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7177cec5-73de-40fe-8d29-11c9869be0ff</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hey.&lt;/p&gt;
&lt;p&gt;Check out the documention for &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/group__app__timer.html#ga03fb5f5fa85d16289db0d3c15bb0f24d"&gt;app_timer_start&lt;/a&gt;. It says that the minimum is 5 ticks.&lt;/p&gt;
&lt;p&gt;Copy pasted from the docs:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[in]	timeout_ticks	Number of ticks (of RTC1, including prescaling) to timeout event minimum 5 ticks).
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>