<?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 timeout frequency won&amp;#39;t change</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4413/rtc-timeout-frequency-won-t-change</link><description>Hi, 
 I have successfully enable the app_timer module which toggle an output pin on every interrupt, and now I want to enable an interrupt on every 400us with %10 accuracy. 
 I’m using the below function to start the timer 
 app_timer_start(m_app_timer_id1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Nov 2014 13:35:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4413/rtc-timeout-frequency-won-t-change" /><item><title>RE: RTC timeout frequency won't change</title><link>https://devzone.nordicsemi.com/thread/15668?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2014 13:35:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:249fe57b-aea9-42ff-986e-e96e9978d511</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The macro &amp;quot;APP_TIMER_TICKS&amp;quot; takes in two variables, which is the period in milliseconds, and the prescaler for the RTC. This macro cannot give you a lower period than 1 millisecond.&lt;/p&gt;
&lt;p&gt;To get a TICK of 400 us (+/- 10%), you should set the &amp;quot;APP_TIMER_PRESCALER&amp;quot; to &amp;#39;0&amp;#39; and start the timer like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = app_timer_start(m_app_timer_id1, 13, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will give a period of 13 / 32768 = 396.7 us.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>