<?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 library issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40002/pwm-library-issues</link><description>So, here is an interesting and fun one: I am using a module with the nRF52832 to control an LED driver with a PWM, we 
 
 According to the documentation http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Flib_pwm.html&amp;amp;cp</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Nov 2018 12:57:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40002/pwm-library-issues" /><item><title>RE: PWM library issues</title><link>https://devzone.nordicsemi.com/thread/156496?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 12:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9baf347-3c01-44e4-9f46-60613fb75877</guid><dc:creator>PM Bubblynet</dc:creator><description>&lt;p&gt;hey!&lt;/p&gt;
&lt;p&gt;We are doing progress on the private ticket so I will close this one and just continue with the other.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM library issues</title><link>https://devzone.nordicsemi.com/thread/155789?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 14:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:959d727d-b75d-47a6-8e9b-ec9c122e5834</guid><dc:creator>PM Bubblynet</dc:creator><description>&lt;p&gt;Hey martin, when first I posted this question, devzone system marked as spam and my FAE told me to send the question on private instead:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support/217112"&gt;PWM library issues&lt;/a&gt;&amp;nbsp;sorry for the duplicated question, still we have no answers...&lt;/p&gt;
&lt;p&gt;issue 1:&lt;/p&gt;
&lt;p&gt;yes I&amp;nbsp;had the design checked by nordic too:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support/214641"&gt;Design Review LED driver for Bluetooth Mesh&lt;/a&gt;&amp;nbsp;so that shouldn&amp;#39;t be an issue&lt;/p&gt;
&lt;p&gt;thing is interesting to me is that: for a duty cycle &amp;gt; 100 2 things should happen: either some error should pop up, or it should stay the same as at 100... there is something on the calculations of the PWM library that allow more than 100 duty cycle and that value is different than at 100 duty cycle... any ideas? :)&lt;/p&gt;
&lt;p&gt;issue 2:&lt;/p&gt;
&lt;p&gt;yes I tried both polarities... anyways, I would focus on the first issue first, since as soon as I invert the polarity then... well you get me right? :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM library issues</title><link>https://devzone.nordicsemi.com/thread/155356?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 14:04:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcaa77f1-5600-43c7-b3e2-92255e522882</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Issue 1:&lt;/p&gt;
&lt;p&gt;Do you have a logic analyzer that you can use to measure what kind of duty cycles the PWM actually produces? When I test the library the signal is constantly high or low if I use duty cycles 0 or &amp;gt;100. If you are using a custom board it could be issues with your design that cause the LED to light up even though it shouldn&amp;#39;t. Do you mind uploading your schematic and layout files?&lt;/p&gt;
&lt;p&gt;Issue 2:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;APP_PWM_POLARITY_ACTIVE_LOW is the default polarity so this probably changes nothing. Have you tried&amp;nbsp;APP_PWM_POLARITY_ACTIVE_HIGH? Which one to chose depends on whether your are sinking or sourcing current to your LED.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>