<?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>Timer under 5ms</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9609/timer-under-5ms</link><description>Hello, 
 I have added a timer to my code, which I need to be of 1ms. The handler of the timer is correctly called when the timer is 5ms or above. However, if I change it to less than 5ms the handler is never called. 
 Here is some of the code I used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Oct 2015 10:24:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9609/timer-under-5ms" /><item><title>RE: Timer under 5ms</title><link>https://devzone.nordicsemi.com/thread/35509?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 10:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90359b0c-f070-47de-965a-8d24c57c3624</guid><dc:creator>dblasco</dc:creator><description>&lt;p&gt;You both were right! I had to change APP_TIMER_PRESCALER to 3 so 1ms were at least 5 ticks. Now it is working.&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer under 5ms</title><link>https://devzone.nordicsemi.com/thread/35507?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 07:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d9aed3-a1ae-4460-96f0-7522050e9a5a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you have set timeout_ticks = 1024*0.001 = 1.
So like &lt;a href="https://devzone.nordicsemi.com/users/4048/krch/"&gt;Krzysztof Chruściński &lt;/a&gt; has mentioned below, your app_timer_start function should have returned with error NRF_ERROR_INVALID_PARAM (0X07) because it needs to be a minimum of 5 ticks. Change it according to  &lt;a href="https://devzone.nordicsemi.com/users/4048/krch/"&gt;Krzysztof Chruściński &lt;/a&gt; &amp;#39;s answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer under 5ms</title><link>https://devzone.nordicsemi.com/thread/35508?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2015 19:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7927bd1f-dec2-4f90-a23f-357a9215b948</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;You are hitting minimum acceptable timeout_ticks value.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;@param[in]       timeout_ticks
Number of ticks (of RTC1, including
prescaling) to time-out event  *&lt;br /&gt;
(minimum 5 ticks).&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;app_timer_start should return error code in that case.&lt;/p&gt;
&lt;p&gt;If you want to have 1ms tick you need to decrease APP_TIMER_PRESCALER so that 1ms is more than 5 ticks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer under 5ms</title><link>https://devzone.nordicsemi.com/thread/35506?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2015 13:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81138a21-1cb0-4311-b177-b8a63e62d449</guid><dc:creator>dblasco</dc:creator><description>&lt;p&gt;i edited the question with it! it is 1024 so 1024*(31+1)=32768 the frequency of the slow crystal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer under 5ms</title><link>https://devzone.nordicsemi.com/thread/35505?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2015 12:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffea6856-1231-49ba-b177-8da98a8465b8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;can you post what is the value of&lt;code&gt;APP_TIMER_MULTIPLICADOR&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>