<?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>PWR MGMT DEBUG PIN</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67569/pwr-mgmt-debug-pin</link><description>Hi! Reading the documentation on NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED, I&amp;#39;m left with a few questions. 
 1. Will this pin be set in all system sleep states? i.e System on and system off? 
 2. Can this pin be set to low, rather than high wen the system</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Oct 2020 14:38:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67569/pwr-mgmt-debug-pin" /><item><title>RE: PWR MGMT DEBUG PIN</title><link>https://devzone.nordicsemi.com/thread/277175?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 14:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f901831-abca-4c78-b6f3-69a9e59441c1</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>[quote user=""]1. Will this pin be set in all system sleep states? i.e System on and system off?[/quote]
&lt;p&gt;It will only be set (high) in System ON idle. If you want it to be set in System OFF, you can add PWR_MGMT_DEBUG_PIN_SET(); before nrf_power_system_off() in nrf_prw_mgmt.c&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. Can this pin be set to low, rather than high wen the system enters sleep mode?[/quote]
&lt;p&gt;You will have to edit the nrf_pwr_mgmt.c file. On line 138 and 139 (SDK 17.0.2), the PWR_MGMT_DEBUG_PIN_SET/CLEAR() functions are defined. You can switch the nrf_gpio_pin_set/clear() functions.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]3. Will my setup of GPIOs prior to entering sleep mode affect the output of this pin in sleep mode? I set them all to default (not connected, no pull etc).[/quote]
&lt;p&gt;&amp;nbsp;I assume with &amp;quot;sleep mode&amp;quot; you mean &amp;quot;system OFF&amp;quot;. If you set the pins to default (0x2) before entering system OFF, they will be high-z inputs and not be driven high or low.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]4. If this pin is not connected to any peripheral, will it affect the power usage of my device in system off?[/quote]
&lt;p&gt;No&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]5. Are there other pins, other than GPIOs which can be used as the PWR_MGMT_DEBUG_PIN?[/quote]
&lt;p&gt;Only GPIOs can be used for this purpose. All the pins which do not have a specific purpose (like VDD, decoupling, DCDC, HF crystal, antenna etc..) are GPIOs. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>