<?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>How to adjust PWM frequency (SDK11 nRF52)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23064/how-to-adjust-pwm-frequency-sdk11-nrf52</link><description>I would like write music box by buzzer. So I need adjust the PWM frequency continuously.
But i don&amp;#39;t find the sample cede which is about adjust PWM frequency in SDK.
Where can i get the related information ?
thanks a lot.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Jun 2017 09:09:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23064/how-to-adjust-pwm-frequency-sdk11-nrf52" /><item><title>RE: How to adjust PWM frequency (SDK11 nRF52)</title><link>https://devzone.nordicsemi.com/thread/90766?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 09:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9549cd-134b-40df-9f7a-f8bd7345fcf5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Climent&lt;/p&gt;
&lt;p&gt;If I understand you correctly what you are looking for is just a function to make a square wave on a certain frequency?&lt;/p&gt;
&lt;p&gt;If so I think it might be easiest to do without using the PWM driver, rather by hooking up a timer to a GPIO using the PPI and GPIOTE peripherals.
Then you can control the frequency by adjusting the CC registers of the timer directly.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>