<?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>NRF51 polarity low on reinit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11495/nrf51-polarity-low-on-reinit</link><description>When I init, uninit, and re-init a PWM with pin_polarity set to APP_PWM_POLARITY_ACTIVE_HIGH, the actual polarity of the signal is active low. This also happens when I init and enable, disable and uninit, then init and enable again, which is closer to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jan 2016 22:59:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11495/nrf51-polarity-low-on-reinit" /><item><title>RE: NRF51 polarity low on reinit</title><link>https://devzone.nordicsemi.com/thread/43414?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 22:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6eb72e7-7557-4475-bfbd-1ce7dd388db3</guid><dc:creator>andyb</dc:creator><description>&lt;p&gt;Thank you for your reply. To clarify, the problem was with the behavior of the pwm when it was initted and running, not with the pin state when it wasn&amp;#39;t running.&lt;/p&gt;
&lt;p&gt;I pulled in the app_pwm.[ch] files from version 10.0, keeping the rest of the SDK at 8.1, and this seems to have resolved the problem. I am a bit uncomfortable mixing files from different versions, but it seems to be the best solution for our project right now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 polarity low on reinit</title><link>https://devzone.nordicsemi.com/thread/43413?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 12:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32d1be2-b864-4a6c-a5ba-dcf328640d57</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If you want to have good hold on pin state before and after PWM init and unit, then you need to initialize the pin to correct state using nrf_gpio.h nrf_gpio_cfg_xxx();&lt;/p&gt;
&lt;p&gt;Then when you init pwm, GPIOTE will own the pins and will initialize pin to the state configured with PWM API, after disabling pwm  (or initializing) then gpio will take control.&lt;/p&gt;
&lt;p&gt;However, I remember that there were issues with PWM disable/enable features which were fixed in SDK10, look into &lt;a href="https://devzone.nordicsemi.com/question/52275/unable-to-toggle-pwm-module-off-and-on/"&gt;this&lt;/a&gt; thread for more info regarding this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>