<?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>Changing PWM frequency (period)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10672/changing-pwm-frequency-period</link><description>I have 2 PWMs working with the version 8 softdevice on an nRF51422, and it&amp;#39;s straightforward enough to change the duty cycle with app_pwm_channel_duty_set() in the app_pwm library. However, I would like to be able to change the period on-the-fly, as well</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Dec 2015 14:34:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10672/changing-pwm-frequency-period" /><item><title>RE: Changing PWM frequency (period)</title><link>https://devzone.nordicsemi.com/thread/39837?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 14:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa604a0-5f2d-4600-9d83-1f356a32cafb</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;With the SDK driver you have to uninitialize and reinitialize the PWM. You could make your own driver that allows for varying frequency, but this can be very difficult (if not impossible) to achieve without the risk of getting an inverted PWM signal (a common issue on the nRF51).&lt;/p&gt;
&lt;p&gt;If you go for the SDK driver, make sure to use the SDK 10 version as this has fixed problems related to the uninit function in previous SDKs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing PWM frequency (period)</title><link>https://devzone.nordicsemi.com/thread/39836?ContentTypeID=1</link><pubDate>Sat, 05 Dec 2015 06:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d39bc6c-4b42-4228-b147-7b2a905db642</guid><dc:creator>GEO</dc:creator><description>&lt;p&gt;I can do this only through :
uninit pwm module,
init pwm module with necessary period,
enable pwm module,
set duty cycle,
start....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>