<?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 prescaler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8994/app-timer-prescaler</link><description>I know this should be simple, but the prescaler is confusing me... 
 If I initialize my timers with a prescaler of 0, APP_TIMER_INIT(0, ...) 
 Then the max timer I can have is 512 seconds? 
 What if I do: app_timer_start(timer_id, 58982400, NULL)?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Sep 2015 09:52:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8994/app-timer-prescaler" /><item><title>RE: App timer prescaler</title><link>https://devzone.nordicsemi.com/thread/33114?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2015 09:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c536de3f-57ee-4197-bfaf-5dce74841ed8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Just an addition to RK answer
APP_Timer is 24 bit. The number you mentioned 58982400(0X3840000) does not fit, trying to write it will write (0X840000) which is 8650752 timer ticks. With prescaler 0 each tick is 30.516us. So like RK mentioned you will end of with 264 second timer.&lt;/p&gt;
&lt;p&gt;If you change the prescaler say to 7, then there are 4096 ticks per seconds and 7372800(0X7080000) ticks for 30 minutes. This should fit into the timer well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App timer prescaler</title><link>https://devzone.nordicsemi.com/thread/33113?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2015 00:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8042c671-5c60-4702-bbb9-54cb7cea88df</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;no it&amp;#39;ll give you a 264 second timer. Everything internally is &amp;#39;&amp;amp;&amp;#39; with the maximum timer count which is 0x00FFFFFF so you&amp;#39;ll end up with 58982400 mod 16777216 timer ticks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App timer prescaler</title><link>https://devzone.nordicsemi.com/thread/33112?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 23:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9749b3-fd55-40e5-9af9-d29810957ac7</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Sorry, my bad. 512 seconds is max with 0 prescalar. You need a prescalar of 3 so that LFCLK is divided by 4, which will give enough to count for 30 min.
I&amp;#39;ve to sleep soon I guess. ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App timer prescaler</title><link>https://devzone.nordicsemi.com/thread/33111?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 23:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c83110fc-8633-4128-8b66-8cdb6102ae17</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;By yes, do you mean I will get a 30 minute timer? Or that 512 seconds is the max and anything above that could be unpredictable?&lt;/p&gt;
&lt;p&gt;Yes, I forgot to include that I call app_timer_create.  I mean, the program works, but I have not sat down and actually timed anything longer than 512 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App timer prescaler</title><link>https://devzone.nordicsemi.com/thread/33110?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 22:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee29b62-65a3-4988-b766-920fb4915faf</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes. I hope you call &lt;code&gt;app_timer_create&lt;/code&gt; to create timer_id.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>