<?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>Using pin drive S0D1 with GPIOTE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80917/using-pin-drive-s0d1-with-gpiote</link><description>I&amp;#39;m working in a project where I have to use produce a PWM signal which actively drives the pin low for 0, and disconnects the pin for 1. The PWM is generated by an in house created library, which uses one timer and one gpiote to toggle the pin at the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Oct 2021 09:01:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80917/using-pin-drive-s0d1-with-gpiote" /><item><title>RE: Using pin drive S0D1 with GPIOTE</title><link>https://devzone.nordicsemi.com/thread/335428?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 09:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:023db111-34ca-4ca5-8bc0-14a4198c9752</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I understand you correctly you can make the code work simply by changing&amp;nbsp;GPIO_PIN_CNF_DRIVE_S0D1 to&amp;nbsp;GPIO_PIN_CNF_DRIVE_S0S1, but&amp;nbsp;if you use S0D1 it is always disconnected, and pulled high?&lt;/p&gt;
&lt;p&gt;It should be possible to set manual GPIO settings through PIN_CNF even when the pin is controlled by some other peripherals such as GPIOTE. Some of the GPIO settings will be overriden by that peripheral, but drive strength should not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>