<?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>Change the PWM duty cycle with EasyDMA in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98436/change-the-pwm-duty-cycle-with-easydma-in-nrf-connect-sdk</link><description>I need to change the PWM duty cycle through DMA. 
 Is there an example on how to do so in the nrf connect sdk?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Apr 2023 13:34:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98436/change-the-pwm-duty-cycle-with-easydma-in-nrf-connect-sdk" /><item><title>RE: Change the PWM duty cycle with EasyDMA in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/419296?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 13:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c294d2fa-0a15-4304-a113-01dda8f272b2</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you need to set as disabled. From what I recall all you should need to do to use the NRFX driver is to enable it in pjr.conf as seen in the example below&lt;/p&gt;
&lt;p&gt;Here is also an example from a coworker regarding PWM and NRFX driver&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/samples/src/nrfx_pwm/common_mode/main.c"&gt;https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/samples/src/nrfx_pwm/common_mode/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change the PWM duty cycle with EasyDMA in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/419288?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 13:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c21d68-c978-4777-878f-d55bbae1ddd1</guid><dc:creator>FrancoisG</dc:creator><description>&lt;p&gt;I understand.&lt;/p&gt;
&lt;p&gt;So if a sequence cannot be sent using the Zephyr PWM driver I guess I will use nrfx hal directly.&lt;/p&gt;
&lt;p&gt;If I override the Zephyr PWM driver completely (manually calling nrf_pwm_configure, nrfx_pwm_simple_playback, etc), should I leave the `pwm0` DT binding `&lt;span&gt;status = &amp;quot;disabled&amp;quot;;`?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change the PWM duty cycle with EasyDMA in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/419261?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 12:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a76ab6-f094-4cd2-9591-bb3bce20f282</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I have not found any examples for it unfortunately. If its only the initial duty cycle is should be fine to set in the initial function call. However if you want to change the duty cycle after the initial function call there is a&amp;nbsp;potential for a issue where the CPU overwrites the memory area at the same time as the DMA tries to access it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;
&lt;p&gt;Note. From end of work today the office will be closed until Tuesday the 11th due to public holiday in Norway&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change the PWM duty cycle with EasyDMA in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/419228?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 11:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cab87e9d-d6ad-4208-a533-befaa64bedad</guid><dc:creator>FrancoisG</dc:creator><description>&lt;p&gt;I will keep the frequency the same but change the duty cycle.&lt;/p&gt;
&lt;p&gt;The application is to send data over IR (infrared) like a remote control without cpu intervention.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change the PWM duty cycle with EasyDMA in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/419187?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 08:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c98dd136-0210-4a7b-af0b-67d803d71924</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi, I will look into it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the goal to change the PWM frequency after the initial start or at the start of the PWM?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>