<?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/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47564/nrf52832-52810-system-off-wakeup-issue</link><description>Hi: 
 I test the system off mode, I attached a micro vibration sensor. Pulse generated when shaking as follow. 
 the button config is BSP example default(toggle) , i try to use NRF_GPIO_PIN_PULLUP/NRF_GPIO_PIN_PULLDOWN/ NRF_GPIO_PIN_NOPULL ang BUTTONS_ACTIVE_STATE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jun 2019 11:02:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47564/nrf52832-52810-system-off-wakeup-issue" /><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192895?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18666202-a590-4bf6-ad2e-6dad20495e0f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The key thing is that the nRF GPIO can be configured with internal pull-up, pull-down or no pull resistor at all. This gives you full flexibility, so it is all up to you to design this.&amp;nbsp;Please refer to my&lt;a href="https://devzone.nordicsemi.com/support-private/support/229426#permalink=468611"&gt; post from yesterday&lt;/a&gt; for suggestions about how you can do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192890?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 10:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5d57bc-1c55-42bb-9480-3170274bbef4</guid><dc:creator>bevis</dc:creator><description>&lt;div class="trans-left"&gt;
&lt;div class="trans-input-wrap"&gt;
&lt;div class="input-wrap" dir="ltr"&gt;
&lt;div class="textarea-wrap without-textarea-bg"&gt;
&lt;div class="textarea-bg-text small-font" id="textarea-bg-text"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="input-operate"&gt;&lt;a class="operate-btn op-sound data-hover-tip" href="https://fanyi.baidu.com/###"&gt;&lt;span class="icon-sound"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;div class="op-favor-container"&gt;&lt;span class="icon-favo"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="trans-right"&gt;
&lt;div class="output-wrap small-font"&gt;
&lt;div class="output-mod ordinary-wrap"&gt;
&lt;div class="output-bd" dir="ltr"&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span&gt;What should we do?&lt;/span&gt;&lt;span class=""&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Are you talking about the &lt;span&gt;high impedance&lt;/span&gt; state as pull-down input or something else?&lt;/span&gt;&lt;span class=""&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;On the other hand, if I take an external pull-up input, in order to trigger the edge, my MCU must set no pull or pull down.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192862?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 08:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93fdccb8-eb17-4c5d-85aa-4968f7285413</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The internal pull resistor is optional. You can disable it if you like, and in that case, the input is high impedance (virtually no leakage). So, it is entirely up to you to design the HW to match your needs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192855?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 08:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f79e59-7901-463a-8c51-b7abd235d6a3</guid><dc:creator>bevis</dc:creator><description>&lt;div class="trans-left"&gt;
&lt;div class="trans-input-wrap"&gt;
&lt;div class="input-wrap" dir="ltr"&gt;
&lt;div class="textarea-wrap without-textarea-bg"&gt;
&lt;div class="textarea-bg-text small-font" id="textarea-bg-text"&gt;&lt;span class=""&gt;I have tried 10K, voltage is 1.7V, shaking can produce 1.7V - &amp;gt; 3V rising edge pulse, but when the sensor is still off, leakage is about 200 ua. When I increase to 100K, voltage is 2.6V, shaking can produce 2.6 - &amp;gt; 3V rising edge, although the leakage current is reduced to 100ua, setting high sense at this time will lead to no access to s.&lt;/span&gt;&lt;span class=""&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;System off, if sense low is set, the system will not wake up.&lt;/span&gt;&lt;span class=""&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Was the system off designed without considering that some sensors were on?Because this sensor is always on, it causes the leakage of the pull-up input. I changed to turn on mode when dormant 1.9ua, but the wake-up conditions I still need to induction logic level pulse, or to face the leakage problem, I do not know how to deal with now.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192836?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 07:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d16d8b2-3767-43fe-9df1-6f00c915c53f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. As mentioned, the nRF GPIO input is high impedance (unless you count the optional pull resistor, which is ~13 kΩ), so it is up to you to design a circuit that provided valid logic levels to the nRF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192739?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 13:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2c45c9-41ed-402c-89f5-ca19d7a83e0c</guid><dc:creator>bevis</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4846.111.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192737?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 13:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91aca8af-973f-41f7-bd20-1acb97d0a8c0</guid><dc:creator>bevis</dc:creator><description>&lt;p&gt;As you said, the voltage between Rser and Rpull is logical low level &amp;lt; 0.7*VDD = 2.1. I&amp;#39;m adjusting 1.7V. When shake the vibration sensor, GPIO can detect the rising edge pulse to 1.7V - &amp;gt; 3V, because I set GPIO as the pull-up input. Because of setting up pull-up input, Rpull and GND generate a 100-200ua leakage current. This is very troublesome when it comes to system off. By the way, the sensor is also connected to GND.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192726?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 13:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b0c8aa2-a616-4082-9e09-3f1b1d221261</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not sure I understood you correctly, but from what I understood you have connected the sensor as shown below, via a serial resistor and then the pull-down resistor:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-1cf68e3bf64a4832a1bbe6e6010361ec/sensor.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;This constitutes a voltage divider, so depending on the resistor values, you will get an invalid voltage level at the input on the nRF.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know any details of your design, but generally, you can fix this in one of the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Make sure that Rser is much smaller then Rpull, so that the voltage between will still be within the valid region.&lt;/li&gt;
&lt;li&gt;Remove Rser (if it is not needed)&lt;/li&gt;
&lt;li&gt;Use an external pull resistor and move Rpull before Rser. The nRF GPIO input is high impedance and draws virtually no current, so it should not have much impact on the voltage in this case.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/192561?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 07:16:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39336563-e62d-44bc-bfbc-5ae5de1880a1</guid><dc:creator>bevis</dc:creator><description>&lt;p&gt;My shake sensor is connected in series with a resistor connected to GND. The input is set to a pull-up input. One problem is that when my sensor off, the detection pin is pulled down. At this time, I set it to a high level to detect NRF_GPIO_PIN_SENSE_HIGH.(Resistance changes during vibration increase the level of pin detection),it works.&amp;nbsp;But when the sensor off, because of the direct connection to GND and the pull-up input relationship, the leakage current is 200 ua, and the pull-down resistance isolation is at least 100 + ua, which will lead to the level mismatch and can not wake up normally. What can I do to solve the leakage problem? Or is there any better way to wake up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/188270?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 12:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93555acf-a9d9-4609-88d9-a253cf87023c</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="Z388225"]Does it mean that when the external input signal remains high or low, the system will always be awakened and unable to sleep?[/quote]
&lt;p&gt;No. You configure the sense mechanism to detect one level. For instance, if the pin state is normally low and you want to wake up when it is high, then you use&amp;nbsp;NRF_GPIO_PIN_SENSE_HIGH. And vice versa. You should of course also make sure that the pin is never floating. So if there is not always a input signal, then you must use a (internal) pull resistor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/188260?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 12:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9948fe56-7b1c-4aab-b1db-d763db01513e</guid><dc:creator>bevis</dc:creator><description>&lt;p&gt;&amp;ldquo;Sense on the other hand is a GPIO feature that allows the pin to detect/sense a voltage level (high or low) and wake up form system OFF when it does.&amp;rdquo; Does it mean that when the external input signal remains high or low, the system will always be awakened and unable to sleep?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/188257?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 12:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b964bf3d-2018-4e89-8f73-5d9c46a885f0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The GPIO sense mechanism is unrelated to the GPIOTE peripheral. GPIOTE requires a clock, and cannot be used in system OFF. Sense on the other hand is a GPIO feature that allows the pin to detect/sense a voltage level (high or low) and wake up form system OFF when it does. The sense mechanism is configured for instance with&amp;nbsp;nrf_gpio_cfg_sense_set(), or using&amp;nbsp;nrf_gpio_cfg_sense_input() to set up everything with a single function. Essentially this writes the configuration to the corresponding &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=3_1_0_19_2_9#register.PIN_CNF-0"&gt;PIN_CNF&lt;/a&gt; register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/188237?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 11:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8d461c1-9579-43ca-8a82-d2ae38927a81</guid><dc:creator>bevis</dc:creator><description>&lt;p&gt;Thank you for your prompt. By the way, what&amp;#39;s the difference between nrf_drv_gpiote_in_init and nrf_gpio_cfg_sense_set? The former is familiar to me, and the latter has been exploring???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832/52810 System OFF wakeup issue</title><link>https://devzone.nordicsemi.com/thread/188231?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 11:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f789f84a-63ff-408c-a823-f6004baaa98a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did not fully understand the question, so please elaborate and ask again if the following does not answer it.&lt;/p&gt;
&lt;p&gt;The GPIO sense mechanism can be used as a wake up source from system off mode, and it can detect either a high or a low level. This pulse can be quite short (exactly how short is not documented) and wake up the device from system off. So if you have a bit of noise on the input, then this will typically wake up the system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>