<?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 is not accurate with SoftDevice(nRF51822)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6259/pwm-is-not-accurate-with-softdevice-nrf51822</link><description>Hi. 
 We need to ring the Buzzer with 4.2kHZ PWM. 
 However, in the event of 4.2kHZ in nRF51822 PWM is inaccurate about 2us. 
 Please tell us how to fix it. 
 ※link Very Simple Code(SDK v6.1.0) 
 main.c 
 ※ test environment 
 
 
 Nordic chip</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Mar 2015 10:47:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6259/pwm-is-not-accurate-with-softdevice-nrf51822" /><item><title>RE: PWM is not accurate with SoftDevice(nRF51822)</title><link>https://devzone.nordicsemi.com/thread/21889?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2015 10:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49072608-8ea5-4f0d-b809-831414ae188e</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you tried to explicitly enable the 16MHz crystal to get more accuracy? Do that by calling the sd_clock_hfclk_request() as done in &lt;a href="https://github.com/NordicSemiconductor/nrf51-ADC-examples/blob/master/adc-example-with-softdevice/main.c"&gt;this example&lt;/a&gt; in line 252.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>