<?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 Sequence loop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17779/pwm-sequence-loop</link><description>Hi, 
 I read in the documentation that one can loop a complex playback. The way I understood, one could load a first sequence (say seq1) and a second sequence (say seq2) and then loop the whole thing. So this should happen: 
 seq1-&amp;gt;seq2-&amp;gt;seq1-&amp;gt;seq2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Apr 2017 07:57:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17779/pwm-sequence-loop" /><item><title>RE: PWM Sequence loop</title><link>https://devzone.nordicsemi.com/thread/68482?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 07:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab72c175-0b9e-43b5-9d19-5b086cd04fe0</guid><dc:creator>Felipe Ribas</dc:creator><description>&lt;p&gt;I didn&amp;#39;t properly measured but I remembed that clearly the timing was shorter than it should on seq2 when it had only one element. As if it didn&amp;#39;t actually wait for the whole time it should but just the enough time to load the value and then reset it all....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Sequence loop</title><link>https://devzone.nordicsemi.com/thread/68481?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 02:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eeb4654-6f2c-4df4-9a37-40cbc1527bf4</guid><dc:creator>Bash102</dc:creator><description>&lt;p&gt;Im seeing behavior that may be related. With the goal of playing a series of sequences, the product I&amp;#39;m working on first calls a &lt;code&gt;nrf_drv_pwm_complex_playback&lt;/code&gt; then on the &lt;code&gt;NRF_DRV_PWM_EVT_FINISHED&lt;/code&gt; event a &lt;code&gt;nrf_drv_pwm_simple_playback&lt;/code&gt; is called and given a sequence with length 1. It then does this again for a different third sequence with a longer length. The result is that the sequence with length 1 is called for a very small amount of time (~75 ms). I am toggling GPIOs on &lt;code&gt;NRF_DRV_PWM_EVT_FINISHED&lt;/code&gt;, &lt;code&gt;NRF_DRV_PWM_EVT_END_SEQ0&lt;/code&gt;, and &lt;code&gt;NRF_DRV_PWM_EVT_END_SEQ1&lt;/code&gt; to indirectly debug the timing. When I change it to length 2 and reduce the repeat counts accordingly the system behaves as expected. Have you tried measuring the timing from those events?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Sequence loop</title><link>https://devzone.nordicsemi.com/thread/68480?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 12:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37b0b76c-9c5c-46b4-95cc-54cd264c4dff</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;What is the value of &lt;code&gt;nrf_pwm_sequence_t.repeats&lt;/code&gt;? This determine how many extra times the sequence should be played (a value of &amp;#39;1&amp;#39; should give seq1-&amp;gt;seq1-&amp;gt;seq2-&amp;gt;seq2-&amp;gt;seq1-&amp;gt;seq1...).&lt;/p&gt;
&lt;p&gt;I get the seq1-&amp;gt;seq1-&amp;gt;seq1... only if I have playback_count = 0, regardless of what value &lt;code&gt;repeats&lt;/code&gt; are. If repeats is &amp;#39;1&amp;#39; and playback_count = 1 I get seq1-&amp;gt;seq1-&amp;gt;seq2-&amp;gt;seq1-&amp;gt;seq1-&amp;gt;seq2...&lt;/p&gt;
&lt;p&gt;All other values give the correct behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>