<?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>One PWM output pin initializes high while the other 2 initialize low</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126058/one-pwm-output-pin-initializes-high-while-the-other-2-initialize-low</link><description>Greetings, 
 Using SDK v3.1.1 I&amp;#39;ve configured 3 PWM outputs using the pwm0-2 modules via a DTS overlay. After reset or power cycle (and prior to making any PWM driver calls), the pwm0 output at P1.15 starts off high while the remaining two outputs are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Dec 2025 14:48:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126058/one-pwm-output-pin-initializes-high-while-the-other-2-initialize-low" /><item><title>RE: One PWM output pin initializes high while the other 2 initialize low</title><link>https://devzone.nordicsemi.com/thread/556886?ContentTypeID=1</link><pubDate>Fri, 12 Dec 2025 14:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45102985-5c77-4133-bd06-53eea50857c9</guid><dc:creator>Dave Littell</dc:creator><description>&lt;p&gt;Thanks, but explicitly getting rid of the&amp;nbsp;&amp;quot;nordic,invert&amp;quot; with a &amp;quot;/delete-property/&amp;quot; fixed it.&amp;nbsp; Having to undo stuff like this from the DK DTS has wasted some significant time (and keeps popping up as we progress).&amp;nbsp; I&amp;#39;d request that you guys offer the option of starting with a clean DTS with none of the DK-specific stuff instead of forcing developers to create their own and spend time bludgeoning it into submission.&amp;nbsp; ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One PWM output pin initializes high while the other 2 initialize low</title><link>https://devzone.nordicsemi.com/thread/556852?ContentTypeID=1</link><pubDate>Fri, 12 Dec 2025 10:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f94e418-4195-40d7-a872-21130dfddf9c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;you can add this &amp;#39;&amp;#39;&lt;span&gt;PWM_POLARITY_NORMAL&amp;#39;&amp;#39; for each of your pwm instances in the overlay file. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;pwmheaters {
	compatible = &amp;quot;pwm-leds&amp;quot;;

	pwm0_channel0: pwm0_channel0 {
		pwms = &amp;lt;&amp;amp;pwm0 0 PWM_MSEC(100) PWM_POLARITY_NORMAL&amp;gt;;
	};

	pwm1_channel0: pwm1_channel0 {
		pwms = &amp;lt;&amp;amp;pwm1 0 PWM_MSEC(100) PWM_POLARITY_NORMAL&amp;gt;;
	};

	pwm2_channel0: pwm2_channel0 {
		pwms = &amp;lt;&amp;amp;pwm2 0 PWM_MSEC(100) PWM_POLARITY_NORMAL&amp;gt;;
	};
};  &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To get a clean DTS for the nRF52840 you have to&amp;nbsp;create your own out‑of‑tree board based on nRF52840 and customize its&amp;nbsp;&lt;code dir="ltr"&gt;BOARD.dts&lt;/code&gt;&amp;nbsp;and pinctrl files. You can read this here&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One PWM output pin initializes high while the other 2 initialize low</title><link>https://devzone.nordicsemi.com/thread/556845?ContentTypeID=1</link><pubDate>Fri, 12 Dec 2025 10:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe603c3c-c098-4c29-9f27-af05a1be3452</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try this (using a&amp;nbsp;“sleep” state with&amp;nbsp;&lt;code dir="ltr"&gt;low-power-enable)&lt;/code&gt; for the pinctrl of pwm0?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
    pwm0_default: pwm0_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 1, 15)&amp;gt;;
        };
    };

    pwm0_sleep: pwm0_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 1, 15)&amp;gt;;
            low-power-enable;
        };
    };
};

&amp;amp;pwm0 {
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It may help to define low power state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One PWM output pin initializes high while the other 2 initialize low</title><link>https://devzone.nordicsemi.com/thread/556594?ContentTypeID=1</link><pubDate>Tue, 09 Dec 2025 17:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63bbfeb9-ea9c-4913-a07a-624f76e4718e</guid><dc:creator>Dave Littell</dc:creator><description>&lt;p&gt;Resolution: somehow a &amp;quot;nordic,invert&amp;quot; crept into pwm0_default and required a &amp;quot;/delete-property/&amp;quot;.&amp;nbsp; This highlights the need for starting with a &lt;strong&gt;&lt;em&gt;CLEAN&lt;/em&gt;&lt;/strong&gt; DTS when creating an overlay for a custom board.&amp;nbsp; Where can I get a clean DTS for the nRF52840?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>