<?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>1ms tick function with system clock 16MHz ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/348/1ms-tick-function-with-system-clock-16mhz</link><description>I made code like to below for using 16Mhz system clock. 
 /* Start 16 MHz crystal oscillator */
NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0; NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1; 
 /* Wait for the external oscillator to start up */
while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Sep 2013 10:11:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/348/1ms-tick-function-with-system-clock-16mhz" /><item><title>RE: 1ms tick function with system clock 16MHz ?</title><link>https://devzone.nordicsemi.com/thread/1834?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2013 10:11:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a8c86e-acd0-4776-b13d-b760584eba2c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For setting up a TIMER or RTC with a 1 ms interval, please see the examples &amp;quot;rtc_example&amp;quot; and &amp;quot;timer_example&amp;quot; in the SDK. They are not directly setup with this interval, but that can be changed by adjusting the values for CC-registers.&lt;/p&gt;
&lt;p&gt;If you want the 16M to source the 32kHz RTC, then this can be set in register &amp;quot;NRF_CLOCK-&amp;gt;LFCLKSRC&amp;quot;&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>