<?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 frequency accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13474/pwm-frequency-accuracy</link><description>hello,
I want to generate a square wave; examples of your company use PWM official offer;Square wave frequency lower accuracy, configuration 10KHz frequency, there will be error &amp;#177; 16Hz.How do I need to configure the frequency accuracy can reach &amp;#177; 1Hz</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 May 2016 03:53:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13474/pwm-frequency-accuracy" /><item><title>RE: PWM frequency accuracy</title><link>https://devzone.nordicsemi.com/thread/51413?ContentTypeID=1</link><pubDate>Fri, 06 May 2016 03:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b74f515-b382-4bf1-af80-4df37380bc98</guid><dc:creator>jasonbu</dc:creator><description>&lt;p&gt;Solved tks~&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency accuracy</title><link>https://devzone.nordicsemi.com/thread/51412?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 10:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f01fe31-9da3-4190-9f78-6f5108888526</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Do you have an external crystal on your board? If you have, you can start it by writing this in top of main():&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
while(!NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED){}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You will not get the accuracy you want by using the internal RC oscillator, it has a typical accuracy of 1.5%: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.0/clock.html?cp=1_3_0_17_3_0#unique_1900851505"&gt;infocenter.nordicsemi.com/.../clock.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>