<?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 jitter when setting duty cycle to .2 .4  .6 .8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19170/pwm-jitter-when-setting-duty-cycle-to-2-4-6-8</link><description>I&amp;#39;m tryinng to minimize jitter on my LED when I switch between .2 .4 .6 .8
I&amp;#39;m using a nrf51822 for my testing. The jitter is so bad that it has a strobe effect. 
 I reviewed mention of some issues with this. I am attaching the code I&amp;#39;m using to control</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jan 2017 09:41:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19170/pwm-jitter-when-setting-duty-cycle-to-2-4-6-8" /><item><title>RE: PWM jitter when setting duty cycle to .2 .4  .6 .8</title><link>https://devzone.nordicsemi.com/thread/74218?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 09:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3379725-ec64-478b-8b7e-6b7c0ab22b6a</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Mbed has its own sdk. It may be based on one of nordics SDKs, but at least the pwmout library is written specially for mbed and not based on the SDK PWM library. &lt;a href="https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c"&gt;Here&lt;/a&gt; is the source code for the pwmout library which is different from the one used in our SDK. I would use the SDK instead of mbed. You can also switch to nrf52. The nrf52 does not have problem with jittering as it has a hardware PWM peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM jitter when setting duty cycle to .2 .4  .6 .8</title><link>https://devzone.nordicsemi.com/thread/74217?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 20:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1245333d-4d34-4c23-9194-5b8a5913ac83</guid><dc:creator>Gillgen1</dc:creator><description>&lt;p&gt;Ole, thank you for your response.  You are correct I am using mbed for preliminary testing, and I thought I was using sdk11 which should have all the issues corrected. How would I check that on mbed platform&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM jitter when setting duty cycle to .2 .4  .6 .8</title><link>https://devzone.nordicsemi.com/thread/74216?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 12:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:913cd5cf-9e24-4c6e-882b-ce8afce81ded</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;This is mbed right (looks like c++ code at least)? Earlier PWM libraries (including mbed) had a problem with glitching PWM if used together with BLE. You should use the PWM library from SDK 10 and later, these are fixed and don&amp;#39;t have the glitching problem when used together with BLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM jitter when setting duty cycle to .2 .4  .6 .8</title><link>https://devzone.nordicsemi.com/thread/74219?ContentTypeID=1</link><pubDate>Sun, 22 Jan 2017 04:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b96f2e8-17a3-4a8b-9ed0-574701722f81</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;10mS is 10/1000 of a second = 1/100 th  second = 100Hz&lt;/p&gt;
&lt;p&gt;(Can&amp;#39;t help with the other part of your question)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>