<?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 and  softdevice on nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4960/pwm-and-softdevice-on-nrf51822</link><description>Hello, 
 I know that this question was here before, but I&amp;#39;ve read all of the questions and answers and still I don&amp;#39;t know what I do wrong. 
 I&amp;#39;m using 3 PWM channels to controll RGB led, and I&amp;#39;m using my RGB_update function to change color by writting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Mar 2015 08:59:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4960/pwm-and-softdevice-on-nrf51822" /><item><title>RE: Pwm and  softdevice on nRF51822</title><link>https://devzone.nordicsemi.com/thread/17476?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2015 08:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b178be17-e0a2-4d76-81dd-dce2fe289d42</guid><dc:creator>Georgi Olentšenko</dc:creator><description>&lt;p&gt;I am using the latest version of nrf51-pwm-library:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/nrf51-pwm-library/blob/master/main_sound.c"&gt;github.com/.../main_sound.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After debugging for quite a while and finally got it working by placing pwm initialization AFTER &lt;strong&gt;ble_stack_init();&lt;/strong&gt; Actually after everything, related to softdevice and ble initialization, just before while loop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pwm and  softdevice on nRF51822</title><link>https://devzone.nordicsemi.com/thread/17475?ContentTypeID=1</link><pubDate>Wed, 31 Dec 2014 12:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd82c152-50b2-47bf-bd28-1d365ae15a0d</guid><dc:creator>Annim</dc:creator><description>&lt;p&gt;Hmm,&lt;/p&gt;
&lt;p&gt;It seems that all init(config) of pwm is carried out after the routine call of ble_stack_init();(or not?) If you are using pwm lib so provided by nrf, which i think you are using, then please shift your pwm initialization steps into one method and call it BEFORE ble_stack_init();&lt;/p&gt;
&lt;p&gt;I have carried out the same with 3 led/channels and init before ble_stack_init() so proper timers get occupied first then let softdevice to occupy TIMER0.&lt;/p&gt;
&lt;p&gt;Secondly i pass parameters as nrf_pwm_set_value({0-3}, n);   //n {0-255}(int) not int32_t. make sure you have set those LED pins as output in led_init(). Do let us know if you have fixed or this helped you or if problem still persist then do provide any other information regarding your code/arrangements please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>