<?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 individual decoder not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29805/pwm-individual-decoder-not-working</link><description>Hi all, 
 I have two pwm pins I would like to have them run at two different duty cycles. My understanding is that we can do this by setting the decoder to individual. When I set this register to individual my output flat lines. Although, When I set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jan 2018 13:54:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29805/pwm-individual-decoder-not-working" /><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118300?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 13:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edfd6328-b9db-49de-b835-e7f9fd1c30ff</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;I guess I interpret that as &amp;quot;single modes require on half word per &lt;em&gt;active&lt;/em&gt; channel&amp;quot;. What I found unintuitive is that it requires values for channels that are never used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118301?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 13:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1319f401-3580-4dbc-a74e-7b8a8241c60e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;See figure &lt;em&gt;Figure 4. Decoder memory access modes in the documentation&lt;/em&gt;. Also from the documentation we have the following:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;After the SEQ[n].PTR is set to the
desired RAM location, the SEQ[n].CNT
register must be set to the number of
16-bit half words in the sequence. It
is important to observe that the
Grouped and Single modes
require one half word per group or one
half word per channel respectively,
and thus increases RAM size
occupation.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Single mode is here the same as Individual mode.
I.e. you need one half word for each of the 4 channels, even if you are only using e.g 2 channels. The documentation could have stated this in a more clear way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118299?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 13:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6371f3df-ce80-463e-9c21-90837061ad32</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Sure, but that doesn&amp;#39;t make sense if I only have enabled three of them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118298?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 13:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4527b6ab-4390-4b56-a003-5b99b749c433</guid><dc:creator>micallef25</dc:creator><description>&lt;p&gt;my guess is because there are 4 pwm pins grouped together you need to allocate for the 4 registers. I don&amp;#39;t recall seeing anything in the documentation&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118297?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 07:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ee7af6-4d5e-4f4a-bdbd-02fd1027df11</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Thanks for this! I spent the better part of yesterday trying to figure this out.
Is this mentioned in the documentation somewhere? Because I didn&amp;#39;t find anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118295?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 14:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:295b7049-08a6-4683-a65a-fbb3c46f1d4d</guid><dc:creator>micallef25</dc:creator><description>&lt;p&gt;That makes sense, Thank you for your help (:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118294?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 14:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9343b29f-6c51-409c-8df0-b8dcc7999433</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;When configured as Individual, one duty cycle value is required for each compare register. It have to do with how the PWM is fetching the COMPARE values from RAM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118296?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 13:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699a69ab-13bb-4b69-a962-1582ce405be4</guid><dc:creator>micallef25</dc:creator><description>&lt;p&gt;Ok, follow up comment then, why is that??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM individual decoder not working</title><link>https://devzone.nordicsemi.com/thread/118293?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 13:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1ea5af3-7bfd-4548-9089-55fe8fed34ac</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For &lt;code&gt;PWM_DECODER_LOAD_Individual&lt;/code&gt;, the pwm_sequence table need to be a length of 4.&lt;/p&gt;
&lt;p&gt;Change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint16_t pwm_doody[2]={0x250, 0x421};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint16_t pwm_doody[4]={0x250, 0x421,0,0};
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>