<?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 still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49300/system-off-mode-still-drawing-200ua-how-to-switch-off-the-saadc-and-pull-high-the-saadc-pins</link><description>Hi, 
 I&amp;#39;m using 3 AIN pins to read analog readings. However, when I go to sleep mode, I want the current to be as low as possible. 
 I notice that the AIN pins (saadc) is floating or disconnected and I need it to pull high to switch off my optical sensor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2019 15:48:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49300/system-off-mode-still-drawing-200ua-how-to-switch-off-the-saadc-and-pull-high-the-saadc-pins" /><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196891?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 15:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c7fa746-c0e5-4b3e-b0f6-77eea443450d</guid><dc:creator>ctchong</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Yes I measure the current with the debugger removed on my prototype board. With the debugger plugged in I could see a significant increase in current draw.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196828?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 11:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a4a9b70-4cd4-4032-bf35-e42e11511869</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It could be that the debugger put the chip in debug mode. You should measure the current without debugger connected. In debug mode, CPU and clocks will be running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196787?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 10:19:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7c9eff-7203-4c7b-8263-e56c0091ae27</guid><dc:creator>ctchong</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Do I need to configure/set the SWDCLK and SWDIO as well ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems like my chip is not going to system off mode. It resets when I plug in the swd.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Best regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Chong&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196580?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 13:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ad1624-cf6f-4404-8dfe-75962611bd73</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="ctchong"]Will the BSP events prevent the chip to go into system OFF mode ?&amp;nbsp;[/quote]
&lt;p&gt;No, they should not. Entering System OFF mode will turn off all clock sources and only GPIO/NFC/LPCOMP/RESET can wake the chip. If&amp;nbsp;&amp;nbsp;bsp_btn_ble_sleep_mode_prepare() configures a floating pin as wakeup source (BSP buttons have not been initialized), this could cause the chip to wake right away. This will trigger a chip reset.&lt;/p&gt;
[quote user="ctchong"]Are there any checks to verify if the chip is in system OFF mode ?&amp;nbsp;[/quote]
&lt;p&gt;Only by measuring the current consumption of the chip. This should be ~300 nA. The function call will not return.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196579?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 13:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a906729-3458-4880-b75a-7f1be6be6e46</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="ctchong"]Will the BSP events prevent the chip to go into system OFF mode ?&amp;nbsp;[/quote]
&lt;p&gt;No, they should not. Entering System OFF mode will turn off all clock sources and only GPIO/NFC/LPCOMP/RESET can wake the chip. If&amp;nbsp;&amp;nbsp;bsp_btn_ble_sleep_mode_prepare() configures a floating pin as wakeup source (BSP buttons have not been initialized), this could cause the chip to wake right away. This will trigger a chip reset.&lt;/p&gt;
[quote user="ctchong"]Are there any checks to verify if the chip is in system OFF mode ?&amp;nbsp;[/quote]
&lt;p&gt;Only by measuring the current consumption of the chip. This should be ~300 nA. The function call will not return.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196578?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 13:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd9e714-1548-4291-b26c-9a2d5ba76959</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="ctchong"]Will the BSP events prevent the chip to go into system OFF mode ?[/quote]
&lt;p&gt;&lt;span&gt;No, they should not. Entering System OFF mode will turn off all clock sources and only GPIO/NFC/LPCOMP/RESET can wake the chip. If&amp;nbsp;&amp;nbsp;bsp_btn_ble_sleep_mode_prepare() configures a floating pin as wake-up source (BSP buttons have not been initialized), this could cause the chip to wake right away. This will trigger a chip reset.&lt;/span&gt;&lt;/p&gt;
[quote user="ctchong"]Are there any checks to verify if the chip is in system OFF mode ?&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;Only by measuring the current consumption of the chip. This should be ~300 nA. The function call will not return.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196476?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 10:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6b4c7fb-e14e-4926-9010-7f0686df137d</guid><dc:creator>ctchong</dc:creator><description>&lt;p&gt;Hi Jorgen&lt;/p&gt;
&lt;p&gt;Will the BSP events prevent the chip to go into system OFF mode ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are there any checks to verify if the chip is in system OFF mode ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have done the following to shut down to system OFF mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t err_code = bsp_indication_set(BSP_INDICATE_IDLE);
    APP_ERROR_CHECK(err_code);

    // Prepare wakeup buttons.
    err_code = bsp_btn_ble_sleep_mode_prepare();
    APP_ERROR_CHECK(err_code);
    nrfx_saadc_uninit();
    app_timer_stop(peroid_adc_timer_id);
     err_code = sd_power_system_off();
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Chong&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 200uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196457?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 09:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d97d5fc-77f9-49b0-87ae-31c9ccd38088</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Is it the nRF or external devices that draw this high current? The nRF will not draw this much current if it is in System OFF mode, so either it is not in this state, or there are external devices that draw current. All clock sources are stopped when the chip is put in System OFF mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 150uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196369?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 04:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50207a21-9243-46cf-a36d-4ff2b87371e4</guid><dc:creator>ctchong</dc:creator><description>&lt;p&gt;Hi Jorgen,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your help. It works but I realised that it doesn&amp;#39;t help with my current consumption problem in sleep mode. I&amp;#39;m still getting 200uA of current draw at system mode off. I&amp;#39;m using BSP Events as well does it affect the sleep mode ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My sensors have no voltage difference which I assume no current draw as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Chong&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System off mode still drawing 150uA. how to switch off the saadc and pull high the saadc pins?</title><link>https://devzone.nordicsemi.com/thread/196235?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 11:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e21d6378-0091-4403-add1-eef5099eee6e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After you uninit the SAADC, you can control the pins using GPIO HAL functions. Use&amp;nbsp;GPIO pin number corresponding to the analog input, i.e. AIN0 = P0.02 (see&amp;nbsp;&lt;a title="Pin assignments" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html?cp=3_0_0_6_0"&gt;nRF52840 Pin assignments&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;nrf_gpio_cfg_input(2&lt;span&gt;,&amp;nbsp;NRF_GPIO_PIN_PULLUP&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>