<?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>timer2 with s110 v1 sdkv6 not working right.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15286/timer2-with-s110-v1-sdkv6-not-working-right</link><description>i have ble running perfect in nrf51422 until i turn timer 2 on and this is code for init timer2 
 void timer2_init(void)
	{
 NRF_TIMER2-&amp;gt;MODE = TIMER_MODE_MODE_Timer;
 NRF_TIMER2-&amp;gt;BITMODE = TIMER_BITMODE_BITMODE_16Bit &amp;lt;&amp;lt; TIMER_BITMODE_BITMODE_Pos;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2016 11:05:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15286/timer2-with-s110-v1-sdkv6-not-working-right" /><item><title>RE: timer2 with s110 v1 sdkv6 not working right.</title><link>https://devzone.nordicsemi.com/thread/58390?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 11:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1225b529-7c05-445d-9f09-483abf005402</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the HF clock initialized? You can request it while the SoftDevice is running by calling:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t running = 0;
sd_clock_hfclk_request();
while(! p_is_running)
{          
    // Wait for the crystal to start                  
    sd_clock_hfclk_is_running((&amp;amp;p_is_running));
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can stop the HFCLK when it is no longer needed by calling&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_clock_hfclk_release();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>