<?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>Configuration Pin in open-drain output - Low State unexpected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89088/configuration-pin-in-open-drain-output---low-state-unexpected</link><description>Hi, 
 I would like to declare my pin in output open-drain, so i use this configuration 
 
 
 
 My issue is when i declare my pin, I have an unexpected low state that occur, is this normal? 
 
 I tried to configure with pullup, but same behavior. 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jun 2022 07:03:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89088/configuration-pin-in-open-drain-output---low-state-unexpected" /><item><title>RE: Configuration Pin in open-drain output - Low State unexpected</title><link>https://devzone.nordicsemi.com/thread/373580?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 07:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c5df0dc-bf43-4541-9e8c-e56d60071be0</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;Thanks, it&amp;#39;s working !&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration Pin in open-drain output - Low State unexpected</title><link>https://devzone.nordicsemi.com/thread/372959?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 08:44:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:487effd5-cc3d-4edc-9cb7-7194d9b7ad7d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Julien,&lt;/p&gt;
&lt;p&gt;Please try to &amp;#39;set&amp;#39; the pin before you configure it. Like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_set(PIN_1); &amp;nbsp; // define pin state first to avoid glitch during configuration &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_set(PIN_2);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio_cfg_output_open_collector(PIN_1); // pin goes high to down &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio_cfg_output_open_collector(PIN_2); // pin goes high to down &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit: &lt;/strong&gt;Forgot to add that this is expected behavior because the OUT register reset value is 0x0:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1655455760747v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>