<?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 In S120 mode not giving exact tick delay</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15211/timer-in-s120-mode-not-giving-exact-tick-delay</link><description>Hi
I am working on NRF51822. I am using S120 ble_app_multilink_central example. I am trying to create a Timer1 interrupt of 1ms interval. My interrupt is working but interval is not 1ms.It is much bigger than 1mS. 
 My Timer code is as below- 
 void</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Jul 2016 11:57:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15211/timer-in-s120-mode-not-giving-exact-tick-delay" /><item><title>RE: Timer In S120 mode not giving exact tick delay</title><link>https://devzone.nordicsemi.com/thread/58078?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 11:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96133756-e515-449e-a689-8202ea6c0ea1</guid><dc:creator>PK</dc:creator><description>&lt;p&gt;Thank you Ole Bauck,&lt;/p&gt;
&lt;p&gt;It is working file. Thank you so much for your prompt support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer In S120 mode not giving exact tick delay</title><link>https://devzone.nordicsemi.com/thread/58077?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 11:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:681cc644-d9b6-4b91-b84d-98300de1d22e</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You are not clearing the TIMER when the compare value (CC[0]) is reached, which means that the timer will count until it overflows after 2^16 / 250kHz = 262ms. You can setup the timer to be cleared at compare value 0 with shorts:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_TIMER1-&amp;gt;SHORTS = (TIMER_SHORTS_COMPARE0_CLEAR_Enabled &amp;lt;&amp;lt; TIMER_SHORTS_COMPARE0_CLEAR_Pos);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then you should get interrupt every 1ms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>