<?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 Jitter with nRF52DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118649/pwm-jitter-with-nrf52dk</link><description>Hi everyone, 
 I am getting started with the nRF52832 and am testing it with the nRF52DK. I just completed the nRF Connect SDK Fundamentals course and now wanted to test the PWM Module. I am getting strong jitters on the PWM signal as seen in the attached</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Feb 2025 12:38:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118649/pwm-jitter-with-nrf52dk" /><item><title>RE: PWM Jitter with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/521718?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 12:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe00fc7a-fc9e-4339-b0e2-01c625a3c7d3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Also , if you are using a BLE or other protocol stacks, they turn on the hfclk as needed but in your example, since you are not using BLE or any other stack, the responsibility to start the right clocks falls on the applicaiton.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Jitter with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/521717?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 12:37:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bba2b5d7-7bdf-4e5d-90b1-cddebbdfbeb0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think you need to know your peripherals to understand which clocks they work with. With PWM, the peripheral itself can work with both internal and external clocks but it is recommended to use XTAL HFCLK. This has been discussed on the forum like &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66398/nrf52840-pwm-jitter"&gt;here&lt;/a&gt;. Unfortunately there is no single source to find such information as this is scattered info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Jitter with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/521608?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 16:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a03218b-7d49-47fc-84c7-858a6a09f3e0</guid><dc:creator>Moe1992</dc:creator><description>&lt;p&gt;Thank you :) I did find a forum post which suggests using this pice of code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
// Wait for clock to start
while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and I am happy to say that this works.&lt;/p&gt;
&lt;p&gt;But since I am still learning, I would like to know, how I could have found this solution if nobody had asked this before here on the forum. What I mean is: How do I find this information using the documentation? Searching &amp;quot;HFXO&amp;quot; in the nRF Connect SDK documentation yields no results: &lt;a href="https://docs.nordicsemi.com/search?bundle=ncs-latest&amp;amp;labelkey=nrf52832&amp;amp;labelkey=nrf52-series&amp;amp;q=hfxo"&gt;https://docs.nordicsemi.com/search?bundle=ncs-latest&amp;amp;labelkey=nrf52832&amp;amp;labelkey=nrf52-series&amp;amp;q=hfxo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Why does nothing show up in the results?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Jitter with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/521577?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 14:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae382fa-3561-4f28-95e4-281a37446db4</guid><dc:creator>Daniel Chisholm</dc:creator><description>&lt;p&gt;Try enabling the high frequency crystal oscillator (keyword &amp;quot;HFXO&amp;quot; shoud help you find things).&lt;/p&gt;
&lt;p&gt;If HFXO isn&amp;#39;t turned on, then the internal 32MHz RC oscillator is used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>