<?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 stop is not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9760/pwm-stop-is-not-working</link><description>First I want to mention, that I know about the pwm inverted issue. 
 About my project: 
 I have a switch which will start and stop a pwm signal. And I use a softdevice, because I also start and stop the pwm signal trough BLE. 
 My setup is: 
 -nRF51DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Oct 2015 13:10:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9760/pwm-stop-is-not-working" /><item><title>RE: pwm stop is not working</title><link>https://devzone.nordicsemi.com/thread/36160?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd22ecd3-7013-419b-8b89-e7678e16df89</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Inspectron: Isn&amp;#39;t it in pwm_start() you call app_pwm_enable() ?&lt;/p&gt;
&lt;p&gt;How did you setup the ADC ? I don&amp;#39;t see any relation between them, except if you use PPI with the ADC.
Have you tried the patch I provided above ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm stop is not working</title><link>https://devzone.nordicsemi.com/thread/36159?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 08:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c36e8aa-1bf5-44d0-9bc6-6c3b890b95c3</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;@Hung Bui: I tried to avoid disable and enable function for the pwm. When I stop the pwm, I will just set the duty cycle to 0%. And when I start the pwm, the duty cycle will be set to 90%. The problem is, once I call pwm_start(), the adc wont measure anymore. And if I work with enable and disable, then is the adc always working. How is that possible? As I see the app_pwm_disable function wont stop the pwm signal. Only if I call nrf_drv_gpiote_out_task_disable then the pwm will be stopped&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm stop is not working</title><link>https://devzone.nordicsemi.com/thread/36158?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 10:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4062a7a4-6935-4f96-8bac-05adfb480239</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Inspectron: I tried here but couldn&amp;#39;t recreate the issue. I saw an issue when enable 2 PWM channels that the second channel got inverted after disable-enable but not with 1 channel.
Attached is the example modified from ble_app_template SDK 8.1. Please try and let me know the result.
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template-_2D00_-PWM-_2D00_-1Channel.zip"&gt;ble_app_template - PWM - 1Channel.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;I got here a patch for the issue with the 2nd channel and the uninit-init issue (instead of disable-enable), it&amp;#39;s made for SDK 9.0 but you can follow to modify the file for SDK v8.x:
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_pwm_5F00_patched.c"&gt;app_pwm_patched.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm stop is not working</title><link>https://devzone.nordicsemi.com/thread/36157?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 13:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a02e9933-79cd-4cc9-8322-9b66494f1d36</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;No it wont change anything. I added pwm_irq_enable(p_instance); in the app_pwm_enable() function. And the problem is not to start the pwm. The problem is when I want to stop the pwm. But the strange thing is, if I change the switch position and then call pwm_stop function, then it will work. Because in my program, I can start and stop the pwm over a switch/BLE. And this is working like it should.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm stop is not working</title><link>https://devzone.nordicsemi.com/thread/36156?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 13:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee6391ff-3e1e-47d7-9673-2314062461e1</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Inspectron&lt;/p&gt;
&lt;p&gt;Check if the solution on &lt;a href="https://devzone.nordicsemi.com/question/52275/unable-to-toggle-pwm-module-off-and-on/"&gt;this thread&lt;/a&gt; helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>