<?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>Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12731/clocks-timers-rtc-why</link><description>I am developing software for the nRF52. As recommended by many recent posts here in the Developer Zone, I have upgraded to SDK 11. I am working on an application for a battery-powered device which will repeat the following cycle: 
 
 
 Sleep, for one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jul 2019 10:07:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12731/clocks-timers-rtc-why" /><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/200930?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 10:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd9e8443-eddc-4461-90b2-e35b05fb04e5</guid><dc:creator>awneil</dc:creator><description>[quote userid="13415" url="~/f/nordic-q-a/12731/clocks-timers-rtc-why/48339"]In the industry RTC always refers to a &amp;quot;Real-time clock&amp;quot;[/quote]
&lt;p&gt;Actually, that&amp;#39;s not true - there are other manufacturers who also use &amp;quot;RTC&amp;quot; to mean &amp;quot;&lt;span&gt;Real-time &lt;em&gt;counter&lt;/em&gt;&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Doesn&amp;#39;t make it right, of course!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/200928?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 10:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:955ccb39-27ab-45b5-8562-dd553930e848</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Report broken links here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/backstage/f/backstage-forum/46958/broken-links-since-moving-back-to-infocentre-from-doclib"&gt;https://devzone.nordicsemi.com/nordic/backstage/f/backstage-forum/46958/broken-links-since-moving-back-to-infocentre-from-doclib&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the links would point to 3-year-old versions of the resources - so out-of-date now.&lt;/p&gt;
&lt;p&gt;Probably easiest to just go straight to the current Product Specification and SDK documentation ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/200915?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 09:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eac9dd6-f6d0-4ad3-b5e5-163165e27398</guid><dc:creator>Heiner</dc:creator><description>&lt;p&gt;Hi Tesc,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;unfortunately the links you posted are no longer working. Could you be so kind and update them?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/48342?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 13:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5b03741-2145-4e25-a9fe-bf5c570c0177</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Thanks! I just noted the prescaler thing, too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/48341?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 11:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9b9e0a4-6c28-49ea-9c92-3a8e0a3366cb</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;For RTC, the rate at which the counter ticks is configured using the 12 bit PRESCALER register.&lt;/p&gt;
&lt;p&gt;The timer ticks every PRESCALER + 1 tick of the LFCLK (@32768 Hz). With the maximum PRESCALER setting of 4095, the RTC gets a period of 125 ms and overflows after 582.542 hours.&lt;/p&gt;
&lt;p&gt;I have fixed the broken link to the documentation for &amp;quot;RTC -- Real-time counter&amp;quot; in the answer above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/48340?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 09:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5c4897-f6bb-4c89-a3e4-067b639f90c7</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;There&amp;#39;s also typically 32-bit second counters without calendar, and they are also called &amp;quot;Real Time Clocks&amp;quot;. Actually, I prefer this type of counter to days/months etc. calendar because it is pretty easy to convert seconds counter (e.g. Epoch Time) into days/months etc, but more complicated to do it vice versa. And in a program code you will eventually need second counter, mostly.&lt;/p&gt;
&lt;p&gt;But the reason I ended up here into an old discussion is that nRF5 RTC seems to be only 24 bit and thus wraps over after 512 seconds (@32768 Hz). Thats way too little. Now I am trying to find out a solution for the system to deep sleep e.g. an hour without losing the &amp;quot;real time&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/48339?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 20:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5ea6db2-6d0e-4f09-baa5-1dc75c796602</guid><dc:creator>jcondon</dc:creator><description>&lt;p&gt;Btw, I think it was a mistake to call the &amp;quot;Real-time counter&amp;quot; an RTC. In the industry RTC always refers to a &amp;quot;Real-time clock&amp;quot; which keeps track of days/months w/ an internal calendar. The RTC is really a low-freq counter... a totally different thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clocks, timers, RTC, why?</title><link>https://devzone.nordicsemi.com/thread/48338?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2016 15:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee9bdab2-b649-4cc5-a86d-2552fbc7a7b7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;The main difference between TIMER and RTC (Real-time counter) is that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&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;/li&gt;
&lt;li&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;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For the details, see chapters 24 (&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Ftimer.html"&gt;TIMER -- Timer/counter&lt;/a&gt;) and 25 (&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Frtc.html"&gt;RTC -- Real-time counter&lt;/a&gt;) of the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fchips%2Fnrf52832_ps.html"&gt;nRF52832 Product Specification&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For RTC there is also a library in the SDK: &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Flib_timer.html&amp;amp;cp=4_0_0_3_27"&gt;Timer library&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Based on what you write about your application I would suggest using RTC.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CLOCK_ENABLED&lt;/code&gt; is for enabling the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fhardware_driver_clock.html&amp;amp;cp=4_0_0_2_1"&gt;clock driver&lt;/a&gt; in the SDK. This is not a timer. Rather it is a driver for handling the low and high frequency clock sources.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>