<?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>Questions about PWM&amp;#39;s end delay and initialized unused channels</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71609/questions-about-pwm-s-end-delay-and-initialized-unused-channels</link><description>Hi, 
 I&amp;#39;m using PWM on a nRF52832 (nRF52 DK) with SDK 17.0.2 . I have 3 PWM channels configured to LED2, LED3 and LED4. Below are my questions. I&amp;#39;m using PWM to dim the LED for 1-2 seconds and then switch it off using a timer. 
 
 I am trying to use the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Feb 2021 07:27:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71609/questions-about-pwm-s-end-delay-and-initialized-unused-channels" /><item><title>RE: Questions about PWM's end delay and initialized unused channels</title><link>https://devzone.nordicsemi.com/thread/294984?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 07:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37fcce2b-5781-4083-a956-4476689561ad</guid><dc:creator>TS Gowtham</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about PWM's end delay and initialized unused channels</title><link>https://devzone.nordicsemi.com/thread/294484?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 19:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0b4a805-111f-4a2d-9fce-bcab0a6313b9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]I am trying to use the end delay parameter to control the duration the LED stays dimmed. I noticed that end delay is ignored when the playback count is 1. I changed playback count to 2 and the LED stayed dimmed for that duration. So is end delay ignored when playback count is 1? I would like to avoid using a timer to turn off the LED after a specific duration.[/quote]
&lt;p&gt;Yes, I believe this is a limitation. If I understand what you are trying to achieve correctly, and if you are seeing this using&amp;nbsp;nrf_drv_pwm_simple_playback(), then perhaps a workaround would be to just add your last duty cycle value in another separate sequence(seq1), and use&amp;nbsp;nrf_drv_pwm_complex_playback(seq0,seq1) instead.&lt;/p&gt;
[quote user=""]At any point of time, I am only using one of the LEDs. So considering the power consumed, is it better to configure the 3 LEDs to 3 PWM channels or is it better to reconfigure the peripheral to use 1 channel with a different LED each time. In short, I would like to know how much current would be consumed by the PWM peripheral if a channel is initialized but not used.[/quote]
&lt;p&gt;&amp;nbsp;AFAIK, it will not consume any current if you only initialize it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>