<?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>Arbitrary PWM Frequency Generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54655/arbitrary-pwm-frequency-generation</link><description>Hello, 
 
 I&amp;#39;m looking to be able to adjust PWM output frequency around 100KHz in 100Hz (or close to it) steps. I understand that no matter which method you use the implement PWM, the limitation is the max clock rate of 16Mhz. I&amp;#39;ve tried this with app_pwm</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2019 15:51:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54655/arbitrary-pwm-frequency-generation" /><item><title>RE: Arbitrary PWM Frequency Generation</title><link>https://devzone.nordicsemi.com/thread/221389?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 15:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef26dbd9-aceb-4d49-85b6-4388a3326e34</guid><dc:creator>matt-lionembedded</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the response. I did try using the TIMER/GPIOTE/PPI as I mentioned but fundamentally I don&amp;#39;t think the resolution I&amp;#39;m looking for is possible with a 16MHz peripheral clock. Summed up by a colleague of mine:&amp;nbsp;&lt;span&gt;100kHz is 10000ns period, 100.1kHz is 9990ns.&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;That 10ns period difference isn&amp;#39;t possible digitally when your CPU clock is 16MHz (= 62.5ns).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arbitrary PWM Frequency Generation</title><link>https://devzone.nordicsemi.com/thread/221249?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 09:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3571b2-bd49-413e-b7e7-d14773886361</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Take a look at the&amp;nbsp;\nRF5_SDK\examples\peripheral\gpiote project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is possible to setup a TIMER to run continuously with auto-clear when the&amp;nbsp;TIMER reach a compare value. You can in addition connect TIMER compare events (by using PPI) to toggle a pin through the GPIOTE peripheral.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>