<?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>RGB LED PWM driver with nrf51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17119/rgb-led-pwm-driver-with-nrf51</link><description>Greetings, 
 Here&amp;#39;s an implementation of controlling the color of a RGB LED with a TIMER of nRF51. It works well most of the time, although it inverts polarity kind of randomly, especially when the r,g,b values are low. We know of the issue of PWM inversion</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Apr 2018 06:55:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17119/rgb-led-pwm-driver-with-nrf51" /><item><title>RE: RGB LED PWM driver with nrf51</title><link>https://devzone.nordicsemi.com/thread/129864?ContentTypeID=1</link><pubDate>Thu, 26 Apr 2018 06:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11570779-a83d-4523-99d2-a991c2548e99</guid><dc:creator>shivali singh</dc:creator><description>&lt;p&gt;CAN YOU SEND ME CODE,&lt;/p&gt;
&lt;p&gt;shivali.chauhan791@gmail.com&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RGB LED PWM driver with nrf51</title><link>https://devzone.nordicsemi.com/thread/65701?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 08:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9dd5494-3bb3-419a-9d82-2eff93f98f93</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The problem may be that you clear the timer before you stop it. If you get interrupted after clearing the timer and before stopping it, the timer counter value may go past the new CC value, and you will have inversion.&lt;/p&gt;
&lt;p&gt;Stop before you clear instead:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;rgb_timer_stop();
rgb_timer_clear();
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>