<?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 in nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5852/pwm-in-nrf51822</link><description>Hi, I am using nRF51822 to generate two channels PWM to control motors. Softdevice is V5.2.1. But I found the the Blue tooth connection sometimes dead if the PWM frequency is high. I set the frequency to 300Hz it ran well, but when I set the PWM frequency</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Mar 2015 10:31:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5852/pwm-in-nrf51822" /><item><title>RE: PWM in nRF51822</title><link>https://devzone.nordicsemi.com/thread/20429?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2015 10:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:010fff43-19cf-481d-97a9-111066d58a44</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Softdevice 5.2.1 is rather old softdevice. Is it because you have older nRF51 hardware that you are using the 5.2.1 softdevice. If you are using the latest &lt;a href="https://github.com/NordicSemiconductor/nrf51-pwm-library"&gt;PWM library&lt;/a&gt;, then it is developed with SDK 7 which runs with softdevice 7.1, see the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/ATTN-51/41917"&gt;nRF51 compatibility matrix&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM in nRF51822</title><link>https://devzone.nordicsemi.com/thread/20428?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2015 12:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:794953ed-b7c3-4b16-826e-800e43a13262</guid><dc:creator>Annim</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;PWM is not affecting you Bluetooth connection at all. It is the power_manage() api call which pulls the device for a sleep and from this the BUTTON or say WAKEUP_BUTTON should be configured.&lt;/p&gt;
&lt;p&gt;If you want to not to loose the BLE connection and PWM activity also goes on, then i shall say remove the power_manage() call from the end of main context loop and place it where you find it suitable to save energy.&lt;/p&gt;
&lt;p&gt;Apart from this, be careful about the timers you are using to get PWM running as softdevice will occupy the timer0. So drive the PWm on other left timers with priority 3 which is the leat app priority.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>