<?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 Can&amp;#39;t Stop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41233/pwm-can-t-stop</link><description>AfterIi stop pwm and uninit pwm, I can&amp;#39;t disable a pin left high by the PWM. I am using sdk16 with softdevice 6.0.0 proximity example.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Dec 2018 14:40:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41233/pwm-can-t-stop" /><item><title>RE: PWM Can't Stop</title><link>https://devzone.nordicsemi.com/thread/160772?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 14:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f41748-9e3c-4ec0-98a2-98c8af342586</guid><dc:creator>Arjun_arj</dc:creator><description>&lt;p&gt;Yes i am using nRF52832-DK. I didn&amp;#39;t checked pin 4&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Can't Stop</title><link>https://devzone.nordicsemi.com/thread/160770?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 14:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:972387a3-179c-41d7-b9fd-154db88425e8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you using a&amp;nbsp;nRF52832-DK?&lt;/p&gt;
&lt;p&gt;Note that pin 20 is connected to LED4.&lt;/p&gt;
&lt;p&gt;Do you see the same issue with e.g. pin 4 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Can't Stop</title><link>https://devzone.nordicsemi.com/thread/160767?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 14:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e176a3-6ffd-48a9-965d-3ec2c0122623</guid><dc:creator>Arjun_arj</dc:creator><description>&lt;p&gt;The buzzer pin number is 20 .&amp;nbsp;Not gtting&amp;nbsp;any error code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Can't Stop</title><link>https://devzone.nordicsemi.com/thread/160766?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 14:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b76508d-b877-4d74-b259-fe4fa6ec6235</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) So you are trying to set the pin low?&lt;/p&gt;
&lt;p&gt;2) Do you get any error-codes returned somewhere?&lt;/p&gt;
&lt;p&gt;3) What pin number is &amp;quot;&lt;span&gt;BUZZER&amp;quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;4) Maybe it&amp;#39;s the buzzer that is pulling the pin high ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Can't Stop</title><link>https://devzone.nordicsemi.com/thread/160360?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 12:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b916ce-181a-4bea-a5e0-726f6e991392</guid><dc:creator>Arjun_arj</dc:creator><description>&lt;p&gt;void pwm_stop(void) { &lt;br /&gt; ret_code_t err_code;&lt;br /&gt;&lt;br /&gt; app_pwm_disable(&amp;amp;PWM1);&lt;br /&gt;&lt;br /&gt; err_code = app_pwm_uninit(&amp;amp;PWM1);&lt;br /&gt; APP_ERROR_CHECK(err_code); &lt;br /&gt; nrf_gpio_cfg_output(BUZZER);&lt;br /&gt; nrf_gpio_pin_clear(BUZZER);&lt;br /&gt; &lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Can't Stop</title><link>https://devzone.nordicsemi.com/thread/160359?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 12:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10039416-eb45-4716-8d46-ba58e05448e6</guid><dc:creator>Arjun_arj</dc:creator><description>&lt;p&gt;ret_code_t err_code;&lt;br /&gt;&lt;br /&gt; app_pwm_disable(&amp;amp;PWM1);&lt;br /&gt;&lt;br /&gt; err_code = app_pwm_uninit(&amp;amp;PWM1);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; nrf_gpio_cfg_output(BUZZER);&lt;br /&gt; nrf_gpio_pin_clear(BUZZER);&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ret_code_t app_pwm_uninit(app_pwm_t const * const p_instance)&lt;br /&gt;{&lt;br /&gt; app_pwm_cb_t * p_cb = p_instance-&amp;gt;p_cb;&lt;/p&gt;
&lt;p&gt;if (p_cb-&amp;gt;state == NRFX_DRV_STATE_POWERED_ON)&lt;br /&gt; {&lt;br /&gt; app_pwm_disable(p_instance);&lt;br /&gt; }&lt;br /&gt; else if (p_cb-&amp;gt;state == NRFX_DRV_STATE_UNINITIALIZED)&lt;br /&gt; {&lt;br /&gt; return NRF_ERROR_INVALID_STATE;&lt;br /&gt; }&lt;br /&gt; pwm_dealloc(p_instance);&lt;/p&gt;
&lt;p&gt;p_cb-&amp;gt;state = NRFX_DRV_STATE_UNINITIALIZED;&lt;br /&gt; return NRF_SUCCESS;&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Can't Stop</title><link>https://devzone.nordicsemi.com/thread/160352?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 11:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69c7c676-894a-4115-bf36-c55a2fb2f55f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you post the code you use to disable the pin?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>