<?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 with soft device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8136/pwm-with-soft-device</link><description>I&amp;#39;m working in a project &amp;amp; I want to use the PWM application provided by the SDK with the bluetooth module, I want to control the LEDs light intensity using the PWM, the PWM app is working well without using the softdevice, when I integrate the PWM with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jul 2015 06:50:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8136/pwm-with-soft-device" /><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29212?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2015 06:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ae44ca2-f746-4c24-86c8-bfd1b9d89cac</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think it will happen soon, @Krzysztof Chruściński  is investigating this.
you can find more information &lt;a href="https://devzone.nordicsemi.com/question/44952/proper-sequence-to-initialize-pwm/"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29211?ContentTypeID=1</link><pubDate>Sat, 18 Jul 2015 20:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9adbce0-0b7e-42e6-bef2-36875bd81215</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;I managed on it and it works by enabling only the PWM to one channel &amp;amp; init it then set the duty cycle and uninit it after that, the concept it that I deallocate the resources of PWM (mainly timers) after using it, the problem now it appears to be flashing while changing the duty cycle to control its brigthness, I wonder if I can ask if there are any possibility to make the resources of the PWM independent of the softdevice, I have 3 timers and two RTC, ble uses only 1 timer and the other two timers will be used with the PWM, or if there any example of building the PWM with the RTC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29209?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 10:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e03a30e6-f547-4239-a348-00b7bd9d7a6b</guid><dc:creator>Mahesh Venkitachalam</dc:creator><description>&lt;p&gt;I have simple example below that uses PWM with the Nordic UART Service, using the S110 softdevice. It uses GCC, and the latest 9.0.0 SDK.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/electronut/nRF51-pwm-test"&gt;github.com/.../nRF51-pwm-test&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29210?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 09:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:604ef6f8-f98e-4c6d-b732-55f1db0c3ecf</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;topic is well covered in this thread: &lt;a href="https://devzone.nordicsemi.com/question/39809/sometimes-pwm-signal-is-reversed/"&gt;https://devzone.nordicsemi.com/question/39809/sometimes-pwm-signal-is-reversed/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Conclusion: if you take SDK 9.0 and library present there (components/pwm) and use patch provided in the topic above (will be present in next SDK release) you should get reliable output if your period is not too short (issues seen with period 64us, not seen with 128us). I guess that for LED you don&amp;#39;t need such short period.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29203?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 07:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a00d820-5462-4646-b945-9e196afb26aa</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;also I checked the config file it didn&amp;#39;t changed at all&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29204?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 07:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:081b8f6f-32d7-406d-9e4d-e04af5033617</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;I&amp;#39;m using the nrf51422 a chip with its development kit, the softdevice is 8.0.0 one , it go through the module and set the first value of PWM values then it stop working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29208?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 06:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:764541af-e19b-4cb0-a196-3c1d821943b7</guid><dc:creator>Mahesh Venkitachalam</dc:creator><description>&lt;p&gt;Yes, the directory structure has changed. With 9.0.0 even the Makefile structure has changes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29207?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 06:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5041d49c-bf18-4950-8b11-d6d8438fca61</guid><dc:creator>Mahesh Venkitachalam</dc:creator><description>&lt;p&gt;I don&amp;#39;t see a file called &lt;code&gt;nrf_pwm.h&lt;/code&gt;. In any case, you don&amp;#39;t need to modify the core files to use PWM. You can just do it in the &lt;code&gt;config/nrf_drv_config.h&lt;/code&gt; of your project. For example: &lt;code&gt;#define TIMER1_ENABLED 1&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29206?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 05:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7691a7c0-2f97-4093-9cc0-5ab2a0e73534</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;If you are using PWM with SoftDevice, check the nrf_pwm.h .&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Set this to 1 if the application uses a SoftDevice, 0 otherwise
#define USE_WITH_SOFTDEVICE     0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Added :  Really? Is that SDK 8.x (config/nrf_drv_config.h)? I use SDK 6.1 &amp;amp; 7.2.&lt;/p&gt;
&lt;p&gt;That comment part was written by the Nordic developers.&lt;/p&gt;
&lt;p&gt;-Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29205?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 04:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:242b9498-5d33-4cdf-9ba6-d3fd33bfc037</guid><dc:creator>Mahesh Venkitachalam</dc:creator><description>&lt;p&gt;Which hardware (board) and softdevice are you using? Did you try the blinky example with and without softdevice and did that work? Also, please mention your SDK version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM with soft device</title><link>https://devzone.nordicsemi.com/thread/29202?ContentTypeID=1</link><pubDate>Sun, 12 Jul 2015 22:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb6dffa-0db5-4082-b2a2-d19da346fc58</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;also I tried to use the nrf_pwm application showed in the last reviews and it doesn&amp;#39;t work with the softdevice also&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>