<?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>RTC accurate</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13380/rtc-accurate</link><description>Hi.
I will make clock. 
 I use RTC2 + Softdevice. (PCA10040 , NRF52832 , s132_nrf52_2.0.0_softdevice.hex ) 
 Base Source code = nRF5_SDK_11.0.0_89a8197\examples\ble_peripheral\ble_app_uart 
 const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(2);

static</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Apr 2016 12:43:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13380/rtc-accurate" /><item><title>RE: RTC accurate</title><link>https://devzone.nordicsemi.com/thread/51056?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 12:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:761e9034-2b9b-4fee-81e0-31d105a5310f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;From what you lists it should be possible to use RTC for what you want. Others have done similar things, see for instance this question with very good comments and answers: &lt;a href="https://devzone.nordicsemi.com/question/53893/best-way-to-implement-system-clock-on-nrf51/"&gt;Best way to implement system clock on nRF51&lt;/a&gt; There are some good solutions there, using the RTC together with a TIMER in counter mode.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In your code from the initial question, what is your value for &lt;code&gt;APP_TIMER_PRESCALER&lt;/code&gt;?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC accurate</title><link>https://devzone.nordicsemi.com/thread/51055?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 02:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef6db9f8-3042-4a4c-9776-ee684f248a62</guid><dc:creator>seoknight</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I will make stopwatch. or clock or watch...&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I need 1ms.(accurate)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I did use RTC.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I made 1ms.(Choice of prescaler)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;But, This RTC is not 1ms. (1.001ms or 1.0005ms or 1.0008ms ...)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Eventually, I will not make stopwatch. because RTC is not accurate.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I have not external RTC IC.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Do you know I need ?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC accurate</title><link>https://devzone.nordicsemi.com/thread/51054?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 15:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10d71fb-2685-431b-baed-ee33e729c101</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Jitter does not equal delay. Imagine a bus table that says a bus will arrive at 8 a.m. every day. If there is a jitter of +/- 10 minutes then the bus will arrive some time between 7:50 and 8:10 every day. The delay is always less than 10 minutes. The bus arrives with an accuracy of 10 minutes today, and it arrives with an accuracy of 10 minutes in a thousand years. This is the same for the jitter on the RTC clock. After 24 hours it will still fire within 15-46 us every time the clock reaches the trigger value.&lt;/p&gt;
&lt;p&gt;The accuracy of the clock itself depens on the clock source.&lt;/p&gt;
&lt;p&gt;Now to your particular use case: What do you need a clock for, and how accurate must it be? I can not give any good suggestions for what to use before I know the answers to these two questions. (There are other options than RTC, which may be better for you use case, but I really do not know what you need yet.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC accurate</title><link>https://devzone.nordicsemi.com/thread/51053?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 00:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d2f9e2-b267-4061-a933-1b1d1c308a13</guid><dc:creator>seoknight</dc:creator><description>&lt;p&gt;First compare(NRF_DRV_RTC_INT_COMPARE0) : delay +- 62ns(max)    ---- 1 every second&lt;/p&gt;
&lt;p&gt;-&amp;gt; nrf_drv_rtc_counter_clear(&amp;amp;rtc) : + 46us(max)&lt;/p&gt;
&lt;p&gt;Second compare(NRF_DRV_RTC_INT_COMPARE0) : delay +- 62ns(max)&lt;/p&gt;
&lt;p&gt;-&amp;gt; nrf_drv_rtc_counter_clear(&amp;amp;rtc) : + 46us(max)&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;1 sec = 1sec + (+46us +- 62ns)&lt;/p&gt;
&lt;p&gt;24hours = 3600sec + (+46us +- 62ns)x3600&lt;/p&gt;
&lt;p&gt;&amp;quot;some clocks are more accurate than others.&amp;quot; what? some clock???&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand. This delay is not accurate. never.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC accurate</title><link>https://devzone.nordicsemi.com/thread/51052?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2016 09:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8fc91ca-b00a-4c83-a506-90af0f91bffc</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;There is no clock that is infinitely accurate, but some clocks are more accurate than others. What do you need this clock for, what is the use case? And how accurate must it be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC accurate</title><link>https://devzone.nordicsemi.com/thread/51051?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2016 09:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c40c4a64-b8a0-4183-95d1-350ca9d328cd</guid><dc:creator>seoknight</dc:creator><description>&lt;p&gt;hi, Terje&lt;/p&gt;
&lt;p&gt;two things make delay(15~46 us).&lt;/p&gt;
&lt;p&gt;I need zero delay.&lt;/p&gt;
&lt;p&gt;Clock need no delay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC accurate</title><link>https://devzone.nordicsemi.com/thread/51050?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2016 14:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93a93432-869a-4a08-affd-da6a9c67595d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;At least two things will affect RTC accuracy:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Choice of prescaler (see &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.0%2Frtc.html&amp;amp;cp=1_2_0_23_1&amp;amp;anchor=concept_iwc_1mj_sr"&gt;Resolution versus overflow and the PRESCALER&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Accuracy of the LFCLK (see &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.0%2Fclock.html&amp;amp;anchor=frontpage_clock"&gt;CLOCK - Clock control&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In addition you should expect &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.0%2Frtc.html&amp;amp;cp=1_2_0_23_7&amp;amp;anchor=concept_s4s_fg4_sr"&gt;jitter of magnitude 15-46 us&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What do you need accurate time for? Other ways to do this may be better, like using the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.0%2Ftimer.html&amp;amp;cp=1_2_0_22&amp;amp;anchor=concept_xbd_hqp_sr"&gt;timer peripheral&lt;/a&gt;. Even using a clock IC may be an option, if what you need is to keep accurate time over long periods of time. It all really depends on what you need.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>