<?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 consumed power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34997/pwm-consumed-power</link><description>I am now based on nrf52832 SDK14.2 development, I tried to use the PWM driver and timer to drive the corresponding two IO port an irregular waveform, I originally thought that the PWM mode will be more power, but the test found the opposite Is this normal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jun 2018 07:37:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34997/pwm-consumed-power" /><item><title>RE: PWM consumed power</title><link>https://devzone.nordicsemi.com/thread/134838?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 07:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d70d5880-dabf-4d50-877b-6e7181eadbb8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Jim_guo"]but the current of method 1 is large, is this normal?[/quote]
&lt;p&gt;What did you measure? Updates of duty cycle values will require the EasyDMA to be active, adding about 1.2 mA to the current consumption, but the updates can be done&amp;nbsp;without CPU intervention.&lt;/p&gt;
[quote user="Jim_guo"]If I need to output a 6-cycle pulse with a fixed duty cycle on an IO port, do I not need to use easyDMA and the current will be smaller?[/quote]
&lt;p&gt;I&amp;nbsp;believe that is correct, with a fixed constant duty cycle value, the PWM peripheral will draw less current. I did a quick test here, and&amp;nbsp;measured around 400µA for that&amp;nbsp;scenario.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM consumed power</title><link>https://devzone.nordicsemi.com/thread/134501?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 09:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5522af09-0fd3-4d77-9a4b-db448b42de84</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;Thanks for your instant reply!&lt;/p&gt;
&lt;p&gt;I tested the pwm_driver example. Method 1 drives the GPIO to generate irregular waveforms by using the PWM_driver method. The second method is to timer (NRF_DRV_TIMER_INSTANCE, constantly adjusting the length of the timer) to interrupt the flip GPIO port. The waveforms output by Method 1 and Method 2 are very Accurate, but the current of method 1 is large, is this normal?&lt;br /&gt;If I need to output a 6-cycle pulse with a fixed duty cycle on an IO port, do I not need to use easyDMA and the current will be smaller?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM consumed power</title><link>https://devzone.nordicsemi.com/thread/134486?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 08:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b66f3deb-ab5d-4d5d-b0c8-1dc0f67f1b56</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Generally, the PWM driver will draw some more current due to the EasyDMA logic, but the PWM driver is very flexible, and the &lt;/span&gt;built-in decoder and EasyDMA capabilities make it possible to manipulate the PWM duty cycles without CPU intervention.&lt;/p&gt;
&lt;p&gt;What examples in the SDK did you test? pwm_driver and pwm_library?&lt;/p&gt;
&lt;p&gt;What results did you get?&lt;/p&gt;
&lt;p&gt;Note that the PWM library example in the SDK is not&amp;nbsp;power optimized(uses &lt;span&gt;nrf_delay_ms() that will keep the CPU active&lt;/span&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>