<?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 stopping a few seconds after boot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78646/pwm-is-stopping-a-few-seconds-after-boot</link><description>We are ready to go into production and have made several pre-production boards. Now that we have several boards we are finding that some of the Nordic parts (nrf52840) have a condition where the PWM starts up at boot, but then a few seconds later stops</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Aug 2021 11:50:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78646/pwm-is-stopping-a-few-seconds-after-boot" /><item><title>RE: PWM is stopping a few seconds after boot</title><link>https://devzone.nordicsemi.com/thread/325286?ContentTypeID=1</link><pubDate>Tue, 17 Aug 2021 11:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f8f0615-eb4d-4ce2-84c0-4001ab54e63f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It may be difficult to debug exactly what is the problem here. I assume you are using the app_pwm library, which is not using a dedicated pwm hardware module, but instead use a mix of timers, ppi and gpiote to generate a pwm signal. This was originally intended for the nRF51-series which don&amp;#39;t have a pwm hardware module.&lt;/p&gt;
&lt;p&gt;I suggest to use the dedicated PWM module in the nRF52840 instead of the &amp;quot;soft&amp;quot; implementation above. You can find a simple PWM implementation here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28081/is-there-a-simple-example-how-to-set-a-pwm-driver/110654#110654"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/28081/is-there-a-simple-example-how-to-set-a-pwm-driver/110654#110654&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The example was written for the nRF52832, but can also work on the nRF52840 (both have PWM hardware modules).&lt;/p&gt;
&lt;p&gt;As to answer your questions on pan73 and ppi delay workaround, this is a workaround for the nRF51-series and early hardware versions of the nRF52832. It does not have any effect on the nRF52840. If you want to pursue what may be the difference between build codes, it can help to understand which build codes you have found works and fails.&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>