<?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>Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65369/wake-up-from-deep-sleep-using-lpcomp</link><description>Hi everyone, I have the following problem: I want to use LPCOMP to wake the nrf52840 from a deep sleep so how should I use it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 30 Aug 2020 13:11:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65369/wake-up-from-deep-sleep-using-lpcomp" /><item><title>RE: Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/thread/267094?ContentTypeID=1</link><pubDate>Sun, 30 Aug 2020 13:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a49de333-abbb-452e-b1b3-fd0e4e1288ef</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;&lt;a href="https://www.digikey.com/products/en/integrated-circuits-ics/clock-timing-real-time-clocks/690?FV=1754%7C12765%2C1754%7C16010%2C1754%7C16012%2C1754%7C16013%2C1754%7C17603%2C1754%7C18111%2C1754%7C18115%2C1754%7C19006%2C1754%7C19282%2C1754%7C19283%2C1754%7C19284%2C1754%7C19907%2C1754%7C21979%2C1754%7C21981%2C1754%7C21983%2C1754%7C23603%2C1754%7C23604%2C1754%7C237198%2C1754%7C25372%2C1754%7C25373%2C1754%7C25374%2C1754%7C25375%2C1754%7C25376%2C1754%7C25377%2C1754%7C25378%2C1754%7C25379%2C1754%7C257533%2C1754%7C429397%2C1754%7C429398%2C1754%7C429399%2C1754%7C429443%2C1754%7C429444%2C1754%7C429445%2C1754%7C446316%2C1754%7C446317%2C1754%7C459877%2C1754%7C462354%2C1989%7C0%2C-8%7C690&amp;amp;ColumnSort=1000011&amp;amp;pageSize=500"&gt;Here&lt;/a&gt;&amp;nbsp;you can find a lot of RTC ICs with up to 500 nA current in&amp;nbsp;timekeeping mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/thread/267092?ContentTypeID=1</link><pubDate>Sun, 30 Aug 2020 11:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c49c4b18-7dbe-4fc2-b84b-3a9b24a6cb89</guid><dc:creator>Judge</dc:creator><description>&lt;p&gt;Hi Dmitry,can you give me some examples of that external RTC circuit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/thread/267089?ContentTypeID=1</link><pubDate>Sun, 30 Aug 2020 10:38:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e618871d-b660-46f1-8a6e-597a99caa4ee</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Yes, in system-off mode you can wake up only by GPIO or LPCOMP event. To use RTC, you have to put CPU into sleep mode. With RTC wakeup enabled, power consumption in sleep mode will be about 1.5 uA. If it&amp;#39;s too high for you, there are external RTC chips with very low power consumption (less than 500 nA) that can wake up nRF using GPIO DETECT event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/thread/267088?ContentTypeID=1</link><pubDate>Sun, 30 Aug 2020 09:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a82da0c-f151-4b7b-9359-fb960056e836</guid><dc:creator>Judge</dc:creator><description>&lt;p&gt;Hi dmitry,&amp;nbsp;But as far as I know RTC does not work in system_off mode so how can I use RTC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/thread/267087?ContentTypeID=1</link><pubDate>Sun, 30 Aug 2020 09:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ec7d9a0-3d10-4d20-ae25-cdb338078e1f</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;I didn&amp;#39;t get your case... you want to wake up by timer or by LPCOMP event?&amp;nbsp; To wake up after 5s, you can set up RTC - it can count while CPU sleeps, and then wake up CPU by compare event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/thread/267085?ContentTypeID=1</link><pubDate>Sun, 30 Aug 2020 08:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cc71835-0a3f-4f6d-8331-c5021c25973c</guid><dc:creator>Judge</dc:creator><description>&lt;p&gt;Hi dmitry, I have read about that example, but the problem I want to pose is that after a period of deep sleep for example 5s LPCOMP has to wake up the CPU automatically but as far as I know when the CPU sleeps, there is almost no timer. Which activity should I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep using LPCOMP</title><link>https://devzone.nordicsemi.com/thread/267063?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2020 11:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04172d1e-b639-4bcb-9f83-d88576b71479</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can look at &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.0%2Flpcomp_example.html&amp;amp;cp=7_1_4_6_19"&gt;lpcomp example&lt;/a&gt; in SDK. CPU will wake up on configured event (see NRFX_LPCOMP_CONFIG_DETECTION in sdk_config.h) Though this example doesn&amp;#39;t put CPU in sleep, you can replace main loop code with __WFE() instruction to fix this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    while (1)
    {
        __WFE();
    }
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>