<?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 via EasyDMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125309/pwm-via-easydma</link><description>Hello, 
 
 
 
 
 Following the NRF54L Express course I see that PWM duty cycle can be updated from RAM via EasyDMA but I can&amp;#39;t see an example of how this can be done anywhere or how to even start. 
 
 Unfortunately I&amp;#39;m quite new to the connect SDK, does</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Nov 2025 13:03:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125309/pwm-via-easydma" /><item><title>RE: PWM via EasyDMA</title><link>https://devzone.nordicsemi.com/thread/553307?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 13:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18977813-daaf-4d34-885c-dad13b0f33cd</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;I don&amp;#39;t think there is any &amp;quot;direct&amp;quot; register for this, but maybe you can check the following registers:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762261226838v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;They tell you&amp;nbsp;the number of bytes after a sequence completion&amp;nbsp;and&amp;nbsp;&lt;span&gt;how many bytes from your RAM buffer have been read so far during the ongoing sequence respectively.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can also track the following registers:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762261394137v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762261378255v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM via EasyDMA</title><link>https://devzone.nordicsemi.com/thread/553286?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 11:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:753e55c1-5519-4a5a-8c95-befcc86dfaa5</guid><dc:creator>Rm3</dc:creator><description>&lt;p&gt;Thank you Priyanka, that is very helpful.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to query the current duty cycle somehow/know how far into pwm_seq the pwm has got?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM via EasyDMA</title><link>https://devzone.nordicsemi.com/thread/553266?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 09:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df98ed65-6905-41d6-8166-40f4d34cfe58</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please take a look at the code snippets mentioned in this documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/pwm.html#ariaid-title2"&gt;https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/pwm.html#ariaid-title2&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From the code snippets,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;pwm_seq&lt;/strong&gt; is an array in RAM holding the duty cycle values for each channel.&lt;br /&gt;The&lt;strong&gt; .PTR&lt;/strong&gt; register points to this array, and .MAXCNT sets the number of values to transfer.&lt;br /&gt;The &lt;strong&gt;DECODER&lt;/strong&gt; register is set to load individual values for each channel.&lt;br /&gt;The&lt;strong&gt; TASKS_DMA.SEQ[0].START&lt;/strong&gt; task triggers EasyDMA to start transferring the values from RAM to the PWM peripheral, updating the duty cycle accordingly.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>