<?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>RTC1 problem of accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9819/rtc1-problem-of-accuracy</link><description>Hello, 
 I&amp;#39;m trying to use the APP_TIMER API to have tempo, but I&amp;#39;ve noticed a problem of accuracy when using the RTC1.
I use 0 as prescaler, so the RTC1 runs at 32768Hz.
But when I want a tempo of 32768 ticks (in order to have 1 second of tempo),</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Oct 2015 15:23:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9819/rtc1-problem-of-accuracy" /><item><title>RE: RTC1 problem of accuracy</title><link>https://devzone.nordicsemi.com/thread/36389?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 15:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b5c5dbb-6ee6-4223-b0b7-8480165192cc</guid><dc:creator>TheRaven</dc:creator><description>&lt;p&gt;I haven&amp;#39;t selected a LFCLK.
After selecting the XTAL LFCLK, 32768 represents exactly 1.000s on my osxilloscope, so it seems that APP_TIMER uses the internal clock by default !&lt;/p&gt;
&lt;p&gt;Thank you very much for helping me to solve my problem !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 problem of accuracy</title><link>https://devzone.nordicsemi.com/thread/36388?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 14:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1f129cd-9c23-4d98-bb47-45078186df67</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Interesting .... Your code looks correct, RTC1 uses LFCLK, which LFCLK have you selected? I see that the code starts the LFCLK but cant see which one. I am not sure if APP_TIMER selects any clock by default (and i do not have the code handy to verify) If you (or app_timer) have selected internal RC LFCLK, then the error seems to be inline with this clock jitter. Try to select the XTAL LFCLK explicitly and see if there is any improvement&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>