<?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>system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14504/system-off-mode-in-nrf51822</link><description>hello there , i have put my nrf51 dk in system off mode.then i am generating interrupt using button 3 to wake up it. but my nrf51dk can&amp;#39;t wake up. can you hel p me?? 
 my main function and interrupt handler function are as below 
 int main(void)
{</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jun 2016 05:24:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14504/system-off-mode-in-nrf51822" /><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55375?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 05:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13046481-8c52-4851-93b4-948d3a0c86bb</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;still i don&amp;#39;t have any solution. can anyone help me??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55372?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 13:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f85db93f-b621-4f4b-a37c-e2223b23d8b4</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;why nrf52 is not advertising again??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55371?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 13:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:005b23e4-57e3-48bb-b2f4-0d1345ef42ea</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;how to add debouncing filter in software??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55374?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 13:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d9a4cd8-0c8b-4d1b-b18a-cd575387622d</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;LED blinks because the input of the button pin is bouncing, to remove this add a debouncing filter in hardware or software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55373?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 13:35:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1de07cea-3289-43da-b21a-25346b912b1b</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;i can&amp;#39;t understand what you are saying. in system off mode, LED should not blink. and after pressing button nrf52 does not advertisement again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55367?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 13:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd267eae-08a1-443e-807e-ab84acca9590</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is just a functional example. The LED will blink weakly since no debouncing is implemented, ie. it will wake up on false pulses. Implement a simple software debouncing filter on wakeup to verify that the pulse was real, then perform the actual wakeup.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55370?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 12:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e68ebc50-5c14-453c-a6c7-c1ed3ff79ca4</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;i uploaded that code in nrf52.but nrf52 don&amp;#39;t go in system off mode.because LED is blinking&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55369?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 12:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fac5853-9203-432d-872c-c9af39da8067</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;i tested your code on .here advertisement does not start again. can you tell me how to do it??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55368?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 11:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e440ef9-c5af-4c18-9096-1fb70cf0e4b1</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;This code is working fine for me on the nRF52 DK, I just added two line to the ble_app_beacon example&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
    uint32_t err_code;
    // Initialize.
    APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false);
    err_code = bsp_init(BSP_INIT_LED, APP_TIMER_TICKS(100, APP_TIMER_PRESCALER), NULL);
    APP_ERROR_CHECK(err_code);
    ble_stack_init();
    advertising_init();

    // Start execution.
    advertising_start();
    
    
    nrf_gpio_cfg_sense_input(13, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_HIGH); // Added this
    sd_power_system_off();                                                                                          // Added this
    
    // Enter main loop.
    for (;; )
    {
        power_manage();
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Make sure that you set the PULLUP/PULLDOWN and sensitivity correctly (active low or high depending on your configuration).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55366?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 07:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d25d9e0b-55d6-4a59-8fc6-627acb00a19b</guid><dc:creator>rushin</dc:creator><description>&lt;p&gt;hello thanks for your support. i edited code. but somehow its not working. can you tell me what is wrong??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: system off mode in nrf51822</title><link>https://devzone.nordicsemi.com/thread/55365?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 07:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c482bdb6-79d1-497e-b326-31485f0c1017</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to configure a pin to be able to wake up from SYSTEM OFF, can be done like so:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_cfg_sense_input(WAKEUP_PIN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
sd_power_system_off():
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;API documentation for &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/group__nrf__gpio.html#ga91f72be8204a892956fa5d5dd59c32b2"&gt;nrf_gpio_cfg_sense_input here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>