<?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>Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56932/using-rtc-to-create-a-delay-that-sleeps-while-waiting</link><description>Our device uses an nRF52840 and we are using SDK v15.3.0 and soft device v140. 
 In order to optimize power consumption, I want to make a delay function using the RTC (with external oscillator) that will put the device to sleep while it waits. 
 The delay</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jan 2020 14:02:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56932/using-rtc-to-create-a-delay-that-sleeps-while-waiting" /><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/231431?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 14:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe204b8-2bfd-4bd1-bbe6-73377b94c4f2</guid><dc:creator>matt_C</dc:creator><description>&lt;p&gt;I am using cystic timer. The code I posted is a small edited subset of the whole body of code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/231272?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 22:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1e1e218-a534-41dd-a020-865741e8efe3</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;The power profiler provides a very detailed view of the power draw in time and graphs this for you.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Outside of that I noticed that you have this&amp;nbsp;&amp;nbsp;statement SysTick_Config( SystemCoreClock / 1000 );&amp;nbsp; Are you using the Systick timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/230957?ContentTypeID=1</link><pubDate>Sat, 25 Jan 2020 00:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c93fcf37-4e39-470b-a804-e6a2830e5d21</guid><dc:creator>matt_C</dc:creator><description>&lt;p&gt;I am fairly certain that my method of power consumption measurement is solid.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The method of current consumption I am using is to charge a large capacitor, power our device using it for a set period of time, and then measuring how much capacitor voltage has dropped. From this I calculate the current consumed so that I get a good average current consumption including time sleeping.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there anything that the power profiler could tell me of my total power consumption that this method will not? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From power&amp;nbsp;measurements done before trying to implement this RTC delay with sleep I was using ~3x less&amp;nbsp;&lt;/span&gt;current.&lt;/p&gt;
&lt;p&gt;This new RTC delay with sleep was added to allow me to wait for a specific sensor measurement to complete. Previously I just used the RTC to trigger tasks and the main loop went to sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/230956?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 23:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0950c11a-2157-485d-a30e-1e6f293327ab</guid><dc:creator>Jay Tyzzer</dc:creator><description>&lt;p&gt;I suggest you acquire&amp;nbsp; a Nordic power profiler for accurate power measurements.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/230955?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 23:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d80b472-91e3-444a-8b47-9bbadaf38893</guid><dc:creator>matt_C</dc:creator><description>&lt;p&gt;No debugger was attached during the measurement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/230954?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 22:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b021fc-8699-4828-b269-7c84f52fbfcc</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Did you have&amp;nbsp;a debugger connected during the measurement?&amp;nbsp; Having one connected will greatly increase the power consumption since parts of the SoC aren&amp;#39;t shutdown.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/230719?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 17:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51322283-f51f-4072-be56-4f5262e21953</guid><dc:creator>matt_C</dc:creator><description>&lt;p&gt;I have enabled the soft device. I did a power consumption measurement using capacitor discharge and the usage was dramatically higher&amp;nbsp;than it should be if it was successfully sleeping. The power usage was only slightly less than using&amp;nbsp;nrf_delay_ms(delay_ms) for the delay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to create a delay that sleeps while waiting</title><link>https://devzone.nordicsemi.com/thread/230718?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 17:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f302945c-1d40-43f4-8316-629f0fcb6add</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;How do you know the device doesn&amp;rsquo;t enter sleep? &amp;nbsp;Also I noticed a call to BLEInit() you have enabled the SoftDevice correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>