<?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>App timer accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15809/app-timer-accuracy</link><description>Hello, I&amp;#39;ve got a problem with an app_timer
starting from the BLE_UART example, I&amp;#39;ve set 
 #define APP_TIMER_PRESCALER 4
#define CLOCK_CONFIG_LF_SRC NRF_CLOCK_LF_SRC_Xtal
 
 and create a timer with 
 app_timer_create(&amp;amp;m_alert_timer_id, APP_TIMER_MODE_REPEATED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Aug 2016 15:23:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15809/app-timer-accuracy" /><item><title>RE: App timer accuracy</title><link>https://devzone.nordicsemi.com/thread/60349?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2016 15:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b92cb79e-fdff-4a6e-b892-ccdc061dcbd6</guid><dc:creator>cedric</dc:creator><description>&lt;p&gt;it&amp;#39;s clealy that, I was confused by the nrf_drv_rtc.c (too much work around the rtc use) which is not used by the app_timer.c since the last as it&amp;#39;s own writes in the rtc peripheral...
Thanks John.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App timer accuracy</title><link>https://devzone.nordicsemi.com/thread/60348?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2016 20:07:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037eec44-a8de-45c9-a513-6ecb98d4f326</guid><dc:creator>John</dc:creator><description>&lt;p&gt;According to the nRF52 documents, the calculation for frequency with regards to the prescaler is:&lt;/p&gt;
&lt;p&gt;fRTC [kHz] = 32.768 / (PRESCALER + 1 )&lt;/p&gt;
&lt;p&gt;So to use 8192 the prescaler should be set to 3. I ran into this once on the nRF51 and it took a while for it to sink in that the prescaler starts at 0, not 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>