<?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 power-off mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8437/wake-up-from-power-off-mode</link><description>I&amp;#39;m working in a project &amp;amp; I want to wake up the system from the sleep mode but it didn&amp;#39;t wake up or I don&amp;#39;t know what is expected on the wake up, will the system be run from the start of the main function or not. 
 I used a variable resistor to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Aug 2015 11:46:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8437/wake-up-from-power-off-mode" /><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30719?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 11:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1bdd18b-ad44-434a-bf84-ab1e390e47c3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We have noticed that you are not waiting for EVENTS_READY, this could be a problem if you go to system off before the LPCOMP is ready.&lt;/p&gt;
&lt;p&gt;So you have to add this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_LPCOMP-&amp;gt;TASKS_START = 1;
while(NRF_LPCOMP-&amp;gt;EVENTS_READY == 0);
NRF_LPCOMP-&amp;gt;EVENTS_READY = 0;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30718?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 07:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:405663ab-5ffa-4d03-a194-934e78c6e809</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;what I did I noticed that the AIN0 in the datasheet is connected to an external crystal in the development kit, so it didn&amp;#39;t work with me with any sleep mode, I changed the pin to AIN4 which is float by default &amp;amp; tried to use it, it works fine with me &amp;amp; with the ble also, I used sd_power_off()
and it works with me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30717?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 05:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a955c89-5b26-4630-9e98-d08c58bea830</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi mohamed,&lt;/p&gt;
&lt;p&gt;on the pca100028 Rev3 kit, i did not manage to get SystemOff work with LPCOMP. Like I said, there is something wierd about it. I do not have the revision of hardware you mentioned, and I am surprised it works for you.
Can you tell us what change you made that the SystemOff started working without BLE ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30716?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 20:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bc88f14-f96a-47c8-b3c7-47ab02ea85fe</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;Aryan, I have a question
the power off using SYSTEM_OFF mode, it works with when I use the application only without softdevice or any ble module, when I integrate it to the bluetooth module project, I found that it didn&amp;#39;t work, I lose the connection and it didn&amp;#39;t become on again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30715?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 20:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb0c093d-85bf-44ba-a309-c1080977d55e</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;it works with me Aryan, thank you for ur great help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30714?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 19:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555980e4-a1f9-4b64-9082-7e8aa0989434</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;my chip number is N51422 QFACA1 1503D &amp;amp; its datasheet said that AIN0 is P0.26&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30713?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 18:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e211424-30ac-4da0-91e3-ad8fc8e0c4ff</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;which nersion of hardware are you using?, p0.26 is not connected to Anolog input of LPCOMP. I changed that part while testing your code.
Please read the product specification to see where your Analog inputs are connected. I do bot have the code handy but I think VREF is connected to pin 0 and VAnalog 2 is connected to pin 1.
Check the pin assignment for your product in the product specification document. I am sure P0.26 is not connected to LPCOMP in anyway. I also used external dynamic voltage output and change the voltage until it crooses the threshold defined in your code. It works fine if you connect the changing voltage to the correct pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30712?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 18:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff5e2c3e-c978-4e18-a48c-0825f89a1f91</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;how did you test my code, I tested it by adding a voltage source to p0.026 and changing this voltage till it cross the threshold but found nothing changed after it !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30711?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 16:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7d3a047-53bb-4009-a473-36c4201c21f6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I did not understand your question, what do you mean by output?
When the system wakes up from SystemOFF(Deep sleep) there is a reset first, but when the system wakes up from normal sleep (WFE/WFI) there is no reset, and it continues from where it sleeps.
when it goes to sleep by WFE(sd_ble_wait_evt), any event or interrupt will wake the system up. If it is an interrupt then the interrupt is serviced first and then then execution returns to the for loop where power_manage is called. If you are asking about power consumption, i do not remember them but the devzone has covered that topic completely, you can browse for it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30710?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 16:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:126d1621-936f-414d-a25a-5755427ad948</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;and  the sleep mode &amp;quot;not deep sleep&amp;quot; is developed with  the WFE &amp;amp; sd_app_wait_evt(), also  from where you knew that my code work ,what was the output after the wake up from the sleep mode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30709?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 15:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36fd529a-b0c8-4705-a180-a13f477f38b7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;yes, but i cannot get it to work. Could be something related to hardware, i am not sure.
system off mode is deep sleep mode and consumes least currect (leakage current)
while sleep mode is not deep sleep where you can choose to keep selected modules on like RTC,RAM and HFCLK etc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30708?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 15:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:678e39aa-8d1a-4b87-b0f1-fa8ec8709112</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;what shall I expect to see when the app is back from the sleep mode, will it start the main function from scratch or what will happen ? ? ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30707?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 15:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae5127e4-124d-493f-acf5-11ee26c66ba1</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;what is the main difference between them, it&amp;#39;s said that on the documentation of the chip that the LP_COMP can wake up the system from the deep sleep mode (power off) !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30706?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 14:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb0c50ac-63a3-4138-ae28-64e26d91e401</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;After the fix I showed above I verified that LPCOMP works normally with sleep mode __WFE(). But it does not wake up from SYSTEM_OFF  mode. I have created a internal ticket for it. unfortunately most of the people incharge of this component are on vacation, so the response time will be slow. Until then I recommend you to use __WFE or sd_app_evt_wait instead of system_off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30705?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 13:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5968f6ad-e00b-4c86-a81e-ef42da34f8b3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tried your code but, looking at it seems like you need to change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_LPCOMP-&amp;gt;INTENSET = LPCOMP_INTENSET_UP_Enabled;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_LPCOMP-&amp;gt;INTENSET   = (LPCOMP_INTENSET_UP_Enabled &amp;lt;&amp;lt; LPCOMP_INTENSET_UP_Pos);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from power-off mode</title><link>https://devzone.nordicsemi.com/thread/30704?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 09:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5df5a8-09c8-4eb4-829d-33550b3ee8c8</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;any help please !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>