<?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>PWM driver with lower current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61768/pwm-driver-with-lower-current-consumption</link><description>Hi, I&amp;#39;m developing on nRf52811 and I want to get PWM working to set my led when I put a pin to high. I just saw other tickets where using PWM library is not effective (and I tried but yes, not working) so I implemented PWM driver, demo1, to do something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 May 2020 12:23:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61768/pwm-driver-with-lower-current-consumption" /><item><title>RE: PWM driver with lower current consumption</title><link>https://devzone.nordicsemi.com/thread/251715?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 12:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9127fe00-8efe-4e31-9907-07a578469487</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you want a simple PWM, I suggest that you stick to the pwm_library example implementation.&lt;/p&gt;
&lt;p&gt;The reason this is not very power efficient is that the main() loop doesn&amp;#39;t have a proper sleep cycle, like most of the BLE examples have. Look at the BLE examples, and see if you can implement this. You need to change the nrf_delay_ms() function with a proper delay function. nrf_delay_ms() will keep the CPU awake, which you don&amp;#39;t want to do. Look at e.g. the ble_app_uart example how to implement a proper sleep routine in your main loop.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you still think the current consumption is too high after implementing a sleep routine, it is probably because you need to have a timer running in order to use the pwm. I don&amp;#39;t know what accuracy you need for your pwm signal, but you may look into changing out the timer peripheral with the RTC if you want to lower it further.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM driver with lower current consumption</title><link>https://devzone.nordicsemi.com/thread/251554?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 15:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03da5b11-e043-4998-930e-d4a3bf5f2c74</guid><dc:creator>Rafael Barrero</dc:creator><description>&lt;p&gt;I just found and tried low_power_pwm and not works at current I want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>