<?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>App timer triggering instantly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45933/app-timer-triggering-instantly</link><description>Development Software: SDK v15.3, IDE IAR v7.8, SoftDevice 6.1.1 
 Computer Platform: Windows 
 HW revisions: EYSHJNZWZ (nRF52832) 
 
 Hi, 
 My application requires SPI and BLE working together. For BLE I&amp;#39;ve defined two application timers which gets instantiated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Apr 2019 08:35:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45933/app-timer-triggering-instantly" /><item><title>RE: App timer triggering instantly</title><link>https://devzone.nordicsemi.com/thread/181251?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 08:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2095a9da-3d0e-481f-b248-1f353015b8a5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, probably. My assumption was that it felt immediately because you missed the&amp;nbsp;APP_TIMER_TICKS macro. In this case, you are only waiting 1/32768 of the time you should have been waiting, providing that you are using the default prescaler configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App timer triggering instantly</title><link>https://devzone.nordicsemi.com/thread/181235?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 07:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34979967-c489-41b7-9eab-e8e18faa18eb</guid><dc:creator>Jay_Shah</dc:creator><description>&lt;p&gt;My bad. It should have been APP_TIMER_TICKS(20000).&amp;nbsp;So, is that why timer triggers immediately?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App timer triggering instantly</title><link>https://devzone.nordicsemi.com/thread/181046?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 12:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab13719-d4aa-4415-ae88-036938cfb553</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What timeout do you want?&lt;/p&gt;
&lt;p&gt;Is it intentional that you use&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    #define SPI_INTERVAL            20000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;or should the line be like below instead?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    #define SPI_INTERVAL            APP_TIMER_TICKS(20000)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>