<?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>troubles in 4 channels PWM signal generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4695/troubles-in-4-channels-pwm-signal-generation</link><description>Hello, 
 I try to generate 4 PWM signals on an nRF51 DK board, but I have two troubles : 
 
 
 in the &amp;quot;Simple PWM&amp;quot;, during nrf_pwm_set_value() function the TIMER is stopped and restarted, which will cause a glitch on the other channel too 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Dec 2014 09:07:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4695/troubles-in-4-channels-pwm-signal-generation" /><item><title>RE: troubles in 4 channels PWM signal generation</title><link>https://devzone.nordicsemi.com/thread/16645?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2014 09:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a3fc19-8521-4056-89e2-5de45bb3cf06</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What PWM settings are you using?
Are you using a SoftDevice?
If yes, have you set the USE_SOFTDEVICE define in the header file to 1?&lt;/p&gt;
&lt;p&gt;Regards
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: troubles in 4 channels PWM signal generation</title><link>https://devzone.nordicsemi.com/thread/16644?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2014 15:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8917cf17-0be9-4290-9e07-8480a97cd85e</guid><dc:creator>gyurka</dc:creator><description>&lt;p&gt;Hi Stefan,
thank you for your quick answer.
I checked the new nrf_pwm files.
My first trouble seems to be solved, I can generate pwm signals on 4 channel.
But the second behaviour is the same as before, if I modify the values with nrf_pwm_set_value(),
the polarity of this output signal can sometimes be inverted. I experienced, this incident happens
mainly, if more channels hold the same setup value. If I restart the wrong channel from 0,
the output signal will be good again.
Best Regards: Gyorgy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: troubles in 4 channels PWM signal generation</title><link>https://devzone.nordicsemi.com/thread/16643?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2014 12:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b4b4ee-15a3-4dc2-a686-10ac554e824b</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://github.com/NordicSemiconductor/nrf51-pwm-library"&gt;PWM library&lt;/a&gt; for nRF51 has been updated recently and I suspect the update addresses the issues you mention. Perhaps you can check that out and report if it is adequate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>