<?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 play PWM sequence of the variable frequency and constant duty cycle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52130/how-to-play-pwm-sequence-of-the-variable-frequency-and-constant-duty-cycle</link><description>Hello, guys! 
 
 Here are the details about my development environment: 
 SDK = 15.3.0 
 IDE = SES 
 SoC = nRF52840-based BL654 module. 
 In my design, I need to drive a buzzer with the PWM signal. I&amp;#39;ve seen many PWM examples that deal with the complex</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2019 07:10:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52130/how-to-play-pwm-sequence-of-the-variable-frequency-and-constant-duty-cycle" /><item><title>RE: How to play PWM sequence of the variable frequency and constant duty cycle</title><link>https://devzone.nordicsemi.com/thread/209991?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 07:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02dcc37a-75a0-4e4f-aed3-70c0cc2ed20e</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/dmitovs"&gt;Dmitry&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thank you very much for pointing out that for me. Indeed, I was able to benefit from the PWM waveform mode!&lt;/p&gt;
&lt;p&gt;Thanks once again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to play PWM sequence of the variable frequency and constant duty cycle</title><link>https://devzone.nordicsemi.com/thread/209694?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 22:55:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b981abe-0259-4804-8127-cdacad230847</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi Bojan,&lt;/p&gt;
&lt;p&gt;Yes, there is a waveform mode that can change both frequency and duty cycle. Here&amp;#39;s its description from spec:&lt;/p&gt;
&lt;p&gt;A special mode of operation is available when DECODER.LOAD is set to WaveForm. In this mode, up to&lt;br /&gt;three PWM channels can be enabled - OUT[0] to OUT[2]. In RAM, four values are loaded at a time: the&lt;br /&gt;first, second and third location are used to load the values, and the fourth RAM location is used to load the&lt;br /&gt;COUNTERTOP register. This way one can have up to three PWM channels with a frequency base that&lt;br /&gt;changes on a per PWM period basis. This mode of operation is useful for arbitrary wave form generation in&lt;br /&gt;applications such as LED lighting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>