<?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>nrf52832 timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27622/nrf52832-timer</link><description>I am using the nrf52832 soc, and have a requirement to run the device in low power mode and using the timer with a timeout value in days? how can I do so? 
 Sample code would be of great help.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2017 12:36:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27622/nrf52832-timer" /><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109098?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 12:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e8fe68-f8c8-4a86-862a-b9095fe90da2</guid><dc:creator>sreehari410</dc:creator><description>&lt;p&gt;I&amp;#39;m using the SDK V11.0, setting the RTC_config_frequency to 8 and the RTC to timeout at 24 hours (i.e 691200 ticks passed to nrf_drv_rtc_cc_set ()). I&amp;#39;m able to get the RTC timeout once after 24 hours with this configuration. Can you let me know how the SDK bug can affect the working of RTC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109097?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 06:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0431af-394f-411f-858c-f23b7c9d32ad</guid><dc:creator>Ankit</dc:creator><description>&lt;p&gt;If I use app_timer, then at what frequency my soc will wake up? If app_timer is generic timer which wakes up every 10ms and if it counts for 24 hours on behalf of me, then it is not usefull to me as I want to sleep(soc must be sleeping) for max period of time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109096?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 06:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40d3cdd4-798d-4657-8570-df482a8ccb1d</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Why not just use an app_timer with a variable that you count up with in the handler.  I believe (due to an SDK bug) ~4hrs was the maximum timeout you could set an RTC to.  So after 6 timeouts you have your 24hrs elapsed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109095?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 13:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:303e5701-55af-42a7-b244-dee7d6458815</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;I&amp;#39;m glad you were able so solve it!&lt;br /&gt;
Maybe you could convert the comment to an answer and mark it as correct, so that others can see that the issue has been resolved?&lt;br /&gt;
Best regards,&lt;br /&gt;
Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109094?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 13:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb32f90d-615b-4c3a-967b-9c6d6be6fb9f</guid><dc:creator>Ankit</dc:creator><description>&lt;p&gt;Yes we got it what we want.
And yes we are using RTC2 as RTC0 and RTC1 are not available and being used by Softdevice.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109093?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 13:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1d26715-ff4c-4bbd-a5c3-c7471f53d6d2</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Ok, sounds like you have it figured out.  I just wanted to remind you that if you use a soft device you can&amp;#39;t use RTC0,  but RTC1 and  RTC2 are available.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109092?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 05:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494bf747-c449-4123-991f-2ab0ebd7ec90</guid><dc:creator>Ankit</dc:creator><description>&lt;p&gt;I changed RTC_freq to 8 and now I am able to configure RTC to count for 24 days.
Yes we are using soft device s132_nrf52_2.0.0_softdevice.hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109091?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 15:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b58a6af-d2dc-4b3b-8078-8ba2f8994ffe</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Ankit, are you using a soft device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109089?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 13:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cddbb95a-038b-4630-b06a-df2dae71aedb</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Ankit.&lt;br /&gt;
When using a prescaler of 0, the RTC will overflow after 512 seconds.
Like AmbystomaLabs said in his comment above, using the max prescaler value (2^12-1=4095) the RTC will overflow after 582.542 hours or ~24 days. More information &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=2_1_0_24_1#concept_iwc_1mj_sr"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109090?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 08:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d67871-18b4-41aa-8abe-8150bde85d82</guid><dc:creator>Ankit</dc:creator><description>&lt;p&gt;Hi nordic support.&lt;/p&gt;
&lt;p&gt;I have tried to do it using RTC in comparator mode, but it gives me a max sleep time of 512 seconds.
I want a timer that can count for me for maximum time.&lt;/p&gt;
&lt;p&gt;Can you share a sample code or a readily available example code? I am referring SDK V11.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 timer</title><link>https://devzone.nordicsemi.com/thread/109088?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 14:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccf0908b-c012-4a64-9d8b-fe9baba88aed</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;The RTC will easily accommodate this and is the preferred method of handling sleep/wake cycles of the cpu since it is the lowest power clock.
Since the RTC has a 12 bit prescaler and 24 bit counters with one compare event you can run it for 2^24/(32768/2^12) eighth second intervals or about 24 days before it overflows. The ISR from the RTC event will wake the processor up after you put it in low power mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>