<?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>What is the maximum frequency the PWM peripheral can be generate using the nRF52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92867/what-is-the-maximum-frequency-the-pwm-peripheral-can-be-generate-using-the-nrf52840</link><description>Hi 
 I have successfully used the TIMER &amp;amp; GPIOTE to generate dual tone frequencies for a BFSK project. 200kHz &amp;amp; 400kHz. ( 50% duty cycle square wave) 
 I wonder if the same is possible using the PWM peripheral. Could you clarify 
 1) What is the maximum</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Oct 2022 09:08:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92867/what-is-the-maximum-frequency-the-pwm-peripheral-can-be-generate-using-the-nrf52840" /><item><title>RE: What is the maximum frequency the PWM peripheral can be generate using the nRF52840?</title><link>https://devzone.nordicsemi.com/thread/390928?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 09:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d3b1c38-3112-48f6-a78c-47d020cbdefc</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There is a rather nice discussion here that explain how you can generate&amp;nbsp;sine wave using PWM module:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/89209/clarification-on-how-to-generate-a-10khz-sine-wave-with-pwm-and-dma"&gt;Clarification on how to generate a 10kHz sine wave with PWM and DMA&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Indirectly the above should also show how you can generate a 200kHz/400kHz square wave using PWM. Note though that the minimum COUNTERTOP you can use is 3 from the register description:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pwm.html#register.COUNTERTOP"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/pwm.html#register.COUNTERTOP&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also see the PWM chapter in general:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pwm.html"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/pwm.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>