<?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>Best Way to Keep Track of Time with the nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23115/best-way-to-keep-track-of-time-with-the-nrf52</link><description>I need to keep track of time on a device featuring the nRF52 and have an RTC run continuously in the background. The drift should not be more than a few seconds over a year. Is this possible to achieve with a moderate power consumption? 
 I am a bit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Apr 2018 08:00:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23115/best-way-to-keep-track-of-time-with-the-nrf52" /><item><title>RE: Best Way to Keep Track of Time with the nRF52</title><link>https://devzone.nordicsemi.com/thread/126591?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 08:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02e9320e-cfe3-42bb-a26a-df0fcdb5ba13</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Note that the example was&amp;nbsp;originally written for SDK 13, so you might want to use that to test the example.&lt;/p&gt;
&lt;p&gt;I recommend using &lt;a href="https://www.putty.org/"&gt;PuTTY&lt;/a&gt;&amp;nbsp;to test the example.&lt;/p&gt;
&lt;p&gt;With PuTTY serial connection it should look like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3c78aef28af04c99bc942baa2e2eb66d/pastedimage1522742342970v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best Way to Keep Track of Time with the nRF52</title><link>https://devzone.nordicsemi.com/thread/126393?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 11:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65fbb933-3f9b-421b-9125-0471758afa2c</guid><dc:creator>sonalkale</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;how nrf-calendar-example work?&lt;/p&gt;
&lt;p&gt;I can create hex file using sdk14.But there is no output using printf command on uart port.&lt;/p&gt;
&lt;p&gt;please suggest some solution.&lt;/p&gt;
&lt;p&gt;Thank You.&lt;a href="https://github.com/NordicSemiconductor/nrf5-calendar-example"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best Way to Keep Track of Time with the nRF52</title><link>https://devzone.nordicsemi.com/thread/90942?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 09:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5965055-cd0a-464b-9996-2b44e25255ef</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It will depend on the ppm of the source of the RTC.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.maximintegrated.com/en/design/tools/calculators/product-design/rtc.cfm"&gt;Here&lt;/a&gt; is an online-calculator you can use to calculate the drift.&lt;/p&gt;
&lt;p&gt;On the nRF52-DK the 32kHz external crystal is 20 ppm, this will give you a drift at 10.51 minutes for 1 year. The lowest ppm I have seen for a 32kHz external crystal is 5 ppm (2.63 minutes drift for 1 year).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best Way to Keep Track of Time with the nRF52</title><link>https://devzone.nordicsemi.com/thread/90944?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 19:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a6bd057-f784-4961-9e39-bbce057f2964</guid><dc:creator>A Knecht</dc:creator><description>&lt;p&gt;What do you reckon is an achievable drift over the course of a year with the nRF52 and an external RTC respectively?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best Way to Keep Track of Time with the nRF52</title><link>https://devzone.nordicsemi.com/thread/90945?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 15:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f47992-b855-4403-847e-bb109dc368de</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=2_1_0_18#frontpage_clock"&gt;clock control system&lt;/a&gt; is basically the system that drives the whole chip, including the CPU and all peripherals. It can be divided into 2 clock systems, the low frequency clock(LFCLK) and the high frequency clock (HFCLK) . With &lt;code&gt;nrf_drv_clock*&lt;/code&gt; you  have several ways to &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/group__nrf__drv__clock.html?cp=4_0_0_6_8_0_0"&gt;interact with the clocks&lt;/a&gt;, including initialization and calibrating.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;The &lt;code&gt;nrf_drv_rtc*&lt;/code&gt; includes drivers for the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=2_1_0_24#concept_rvn_vkj_sr"&gt;Real-time counter (RTC) peripheral&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;nrf_drv_timer*&lt;/code&gt; includes drivers for the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/timer.html?cp=2_1_0_23#concept_xbd_hqp_sr"&gt;TIMER peripheral&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The main difference between TIMER and RTC (Real-time counter) is that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;TIMER uses the high-frequency clock source (HFCLK, 16 MHz), which means better resolution (62.5 ns) and higher power consumption (typ. 5 or 70 uA depending on HFCLK source).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;RTC uses the low-frequency clock source (LFCLK, 32 KHz), which means less resolution (~30 us) and lower power consumption (typ. 0.1 uA).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;code&gt;app_timer*&lt;/code&gt; and &lt;code&gt;app_simple_timer*&lt;/code&gt; are libraries that builds on top the RTC1 peripheral(app_timer) and the TIMER1 peripheral(app_simple_timer). This gives more high-level functionality where you can create multiple timer instances, and you have functions to start and stop the timers. Take a look at the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;Application Timer Tutorial&lt;/a&gt; if you want to learn more.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;For keeping track of time on the nRF52, I would recommend taking a look at the &lt;a href="https://github.com/NordicSemiconductor/nrf5-calendar-example"&gt;nrf-calendar-example we have on Github&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best Way to Keep Track of Time with the nRF52</title><link>https://devzone.nordicsemi.com/thread/90943?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 13:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a645d119-2f4a-43f1-a178-90e91953c76a</guid><dc:creator>John</dc:creator><description>&lt;p&gt;That&amp;#39;s a pretty strict drift requirement. I didn&amp;#39;t do the math but that might be less than 1 ppm. You won&amp;#39;t get that kind of performance out of the internal RC, and I haven&amp;#39;t seen an external crystal that was that good. If you really need to hit that you will also need to calibrate the clock for is natural offset, and probably temperature compensate it periodically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>