<?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>High PWM Power Consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125095/high-pwm-power-consumption</link><description>I have an LED connected, and I want to use PWM, but enabling it adds about 700 &amp;#181;A of passive current — both when the output is high and low. However, if I set the duty cycle equal to the period, the current consumption returns to normal.. Also, if I set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Oct 2025 14:21:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125095/high-pwm-power-consumption" /><item><title>RE: High PWM Power Consumption</title><link>https://devzone.nordicsemi.com/thread/552783?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2025 14:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93faa0bf-f5b3-4a99-9118-4b036e126e52</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Andrew,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should be possible to change the PWM frequency to use 400 Hz frequency. In the sample &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/basic/blinky_pwm"&gt;blinky_pwm&lt;/a&gt;, you can &lt;span&gt;update the code where the PWM period is set, for example using the&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;pwm_set_dt()&lt;/code&gt;&lt;span&gt;&amp;nbsp;function and using the &lt;code dir="ltr"&gt;PWM_HZ(x)&lt;/code&gt;&amp;nbsp;macro, where&amp;nbsp;&lt;code dir="ltr"&gt;x&lt;/code&gt;&amp;nbsp;is your desired frequency: &lt;a href="https://docs.nordicsemi.com/bundle/zephyr-apis-latest/page/group_pwm_interface.html#ga4a5edbee48c4a5706cf75524aef2364a:~:text=PWM_DT_SPEC_GET_OR-,%E2%97%86%C2%A0PWM_HZ,-%23define%20PWM_HZ"&gt;https://docs.nordicsemi.com/bundle/zephyr-apis-latest/page/group_pwm_interface.html#ga4a5edbee48c4a5706cf75524aef2364a:~:text=PWM_DT_SPEC_GET_OR-,%E2%97%86%C2%A0PWM_HZ,-%23define%20PWM_HZ&lt;/a&gt; ..&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Turning off logging when measuring current should also help in reducing the power consumption. The following blog explains what can be done to optimize the power consumption:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs"&gt;Optimizing Power on nRF52 Designs&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Swathy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High PWM Power Consumption</title><link>https://devzone.nordicsemi.com/thread/552079?ContentTypeID=1</link><pubDate>Tue, 21 Oct 2025 13:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b7abcc8-dc66-4182-a3a8-78b56e9ff421</guid><dc:creator>andrew55529</dc:creator><description>&lt;p&gt;Thank you for the explanation.&lt;br data-start="106" data-end="109" /&gt; But maybe it&amp;rsquo;s possible to reduce the PWM frequency &amp;mdash; would that lower the current consumption?&lt;br data-start="204" data-end="207" /&gt; I only need about 400 Hz for LED brightness control.&amp;nbsp;It&amp;rsquo;s hard to believe that the PWM peripheral draws almost as much current as the Bluetooth radio &amp;mdash; is there really no way to reduce that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High PWM Power Consumption</title><link>https://devzone.nordicsemi.com/thread/552068?ContentTypeID=1</link><pubDate>Tue, 21 Oct 2025 12:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:329dd294-d31a-4340-affb-65e49dc7d8bc</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The increased current consumption you observe when enabling PWM is expected behavior for Nordic SoCs. When the PWM peripheral is active, it requires a high-frequency clock, which significantly increases current draw—even if the output is low or high.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This current is drawn as long as the PWM peripheral is enabled, regardless of the output state.&amp;nbsp;&lt;span&gt;Setting the duty cycle to 0% or 100% (i.e., always low or always high) can allow the hardware or driver to disable the PWM peripheral and simply set the GPIO, which returns the current consumption to the baseline, which is what you observed. See here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119898/how-to-completely-disable-pwm-in-the-nrf-connect-sdk?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;(+) How to completely disable PWM in the nRF Connect SDK? - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Swathy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>