<?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>Regarding PWM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44600/regarding-pwm</link><description>Dear nordic, 
 I have some doubts regarding PWM. i want two PWM out both are working different frequency and also i need softdevice. I think PWM can make two ways one is using timer and other is using PWM driver is it right? 
 1. which is better method</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Mar 2019 14:02:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44600/regarding-pwm" /><item><title>RE: Regarding PWM</title><link>https://devzone.nordicsemi.com/thread/175363?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 14:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9857e3e-8d71-425c-a9be-6344ecb87ce3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The PWM&amp;nbsp;hardware modules are not very convenient if you want to change the frequency dynamically. They are setup to load duty cycle changes directly from RAM, but will need to be re-initialized every time you want to change the frequency.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For that reason you might consider the timer approach instead. Set up the GPIOTE module to set and clear your pin, and connect a TIMER module to the GPIOTE output through the PPI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One compare register in the TIMER can set the pin while another compare register clears the pin, and then you just change the values of these registers to change the duty cycle and frequency of the output.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For an example of how to set this up you can refer to &lt;a href="https://github.com/NordicPlayground/nrf52-timer-gpiote-ppi-hands-on"&gt;this example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding PWM</title><link>https://devzone.nordicsemi.com/thread/175167?ContentTypeID=1</link><pubDate>Sat, 09 Mar 2019 06:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21ad659-30e3-4b8b-af0a-b73ff84e5d92</guid><dc:creator>Alan Ajit</dc:creator><description>&lt;p&gt;iam using nrf52832. i am confusing in two method both are using to make pwm . what is the main difference between both this method&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding PWM</title><link>https://devzone.nordicsemi.com/thread/175087?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 15:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4a92cf-461f-40c0-9d32-ce0d022e9272</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Refer this link &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/lib_pwm"&gt;PWM&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which board are you using and SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>