<?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 certain frequency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48311/pwm-with-certain-frequency</link><description>Hi, 
 I need to generate a PWM signal with exact 2.048 MHz. I&amp;#39;ve just realized that 
 
 allows only decimal frequency. Even if I take 16 MHz and toggle it every 7,8,9 still the closest is 2 MHz. 
 Is there a different way achieve higher accuracy using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2019 11:17:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48311/pwm-with-certain-frequency" /><item><title>RE: PWM with certain frequency</title><link>https://devzone.nordicsemi.com/thread/191617?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 11:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4ca813e-69cd-4e22-860e-23f7b76c192b</guid><dc:creator>Jared</dc:creator><description>&lt;div&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Unfortunately,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;2.048 MHz. is not possible as the PWM frequency = base_clock/top value where both base_clock and top value are whole numbers. The PWM library which use Timer, PPI and GPIOTE has a&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_pwm.html?cp=5_1_3_34_2#limitations"&gt; limitation at 200 kHz.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>