<?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 library problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50356/pwm-library-problem</link><description>Hello Nordic! 
 I&amp;#39;m developing with sdk15.3.0, s340, and nrf 52840. 
 My custom board had buzzer and back-light so I need to use PWM. 
 So I tested pwm library example in my custom board and it was work very well. 
 So I intergrated the example to my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2019 07:53:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50356/pwm-library-problem" /><item><title>RE: PWM library problem</title><link>https://devzone.nordicsemi.com/thread/201763?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 07:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f4b134e-d002-404c-a900-08226dad9f3a</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Glad that you solve the problem :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM library problem</title><link>https://devzone.nordicsemi.com/thread/201637?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d182cea-c03a-41da-8f3b-8993d924c010</guid><dc:creator>hongpal</dc:creator><description>&lt;p&gt;Actually, I solved this problem by using pwm driver.&lt;/p&gt;
&lt;p&gt;Busy work is busy state in CPU.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM library problem</title><link>https://devzone.nordicsemi.com/thread/201609?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3a8027-bfcd-48db-9dc6-8c6de0e9e737</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;So I intergrated the example to my project. But I found out the bug in my project.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I use pwm in the midst of busy work, I found the system die. I don&amp;#39;t find any error code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you give me more details on what you mean by &amp;quot;bug in your project&amp;quot;? What happens and when it happens? What do you mean by &amp;quot;busy work&amp;quot;?&lt;/p&gt;
&lt;p&gt;The difference between the PWM driver and library is that the PWM driver (&lt;code&gt;nrf_drv_pwm.c&lt;/code&gt;) uses the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pwm.html?cp=3_0_0_5_16" rel="noopener noreferrer" target="_blank"&gt;PWM peripheral&lt;/a&gt;, while the PWM library(&lt;code&gt;app_pwm.c&lt;/code&gt;) uses the TIMER, PPI and GPIOTE peripherals. The PWM driver uses dedicated hardware to generate the signal, while the PWM library uses GPIOTE, PPI and timers in combination.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>