<?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>nRF52832: Determine current position in sequence PWM with DMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35761/nrf52832-determine-current-position-in-sequence-pwm-with-dma</link><description>Hello, 
 I&amp;#39;m using the PWM peripheral to generate a waveform. The waveform is loaded into RAM and then I use the SEQ[n].PTR and SEQ[n].CNT registers to set up the DMA. The output is working quite nicely. 
 In my application, though, there has arose the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jun 2018 14:25:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35761/nrf52832-determine-current-position-in-sequence-pwm-with-dma" /><item><title>RE: nRF52832: Determine current position in sequence PWM with DMA</title><link>https://devzone.nordicsemi.com/thread/137713?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 14:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b2c1371-e857-4a7b-af0c-fc9cfc18cfe8</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Thank you for the suggestion.&lt;/p&gt;
&lt;p&gt;I was thinking about doing the counting in an IRQ in software, but using one of the Timers to count the steps is a great idea. I could also use a PPI to connect EVENTS_LOOPSDONE or EVENTS_SEQEND to TASKS_CLEAR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Determine current position in sequence PWM with DMA</title><link>https://devzone.nordicsemi.com/thread/137712?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 14:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ae46b9-e2cb-4d1b-aa60-eac72c078afc</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;May be use a timer as counter?&lt;/p&gt;
&lt;p&gt;If connect EVENTS_PWMPERIODEN to timer COUNT task with PPI.&amp;nbsp;&lt;span class="" id="result_box" lang="en"&gt;&lt;span&gt;timer in comparison mode.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The new value in the PWM generator is delivered after the completion of the previous period (if delays are not included).&lt;/span&gt; &lt;span class=""&gt;Means knowing how many periods have passed, you can understand on which line of the table we are.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=""&gt;Theoretically it can work out, but this must be checked.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: Determine current position in sequence PWM with DMA</title><link>https://devzone.nordicsemi.com/thread/137708?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 14:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81378193-0004-4a92-bd60-3351542581e4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Let&amp;#39;s say that while the PWM is outputting COMP0[3], my application wants to know the current state of the PWM. Is there a way to read what values are loaded into the DMA or where the DMA is currently pointed?[/quote]
&lt;p&gt;Unfortunately, there is no way to see where you are in an ongoing PWM sequence.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>