<?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>Ways to drive nrf52840 Port0 Pin 9 (P0.9 NFC) as GPIO?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55719/ways-to-drive-nrf52840-port0-pin-9-p0-9-nfc-as-gpio</link><description>Are there any ways/workarounds/configurations to drive P0.9 on nrf52840 as an Input/Output instead of just being NFC pin. 
 Technically we should be able to drive this pin as an GPIO pin but there is not any output or input generated at this pin. 
 Any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Mar 2025 17:33:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55719/ways-to-drive-nrf52840-port0-pin-9-p0-9-nfc-as-gpio" /><item><title>RE: Ways to drive nrf52840 Port0 Pin 9 (P0.9 NFC) as GPIO?</title><link>https://devzone.nordicsemi.com/thread/529601?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 17:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35e66859-4092-444c-b394-c9bcbd04a0f3</guid><dc:creator>cjh39</dc:creator><description>&lt;p&gt;This does not work..&lt;/p&gt;
&lt;p&gt;Im using a nrf52840 , Segger with the nrf SDK.&lt;/p&gt;
&lt;p&gt;How do I use the NFC pins as GPIO ? There must be a simple solution to this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ive added #define CONFIG_NFCT_PINS_AS_GPIOS 1 to the sdk_config.h and also I added the CONFIG_NFCT_PINS_AS_GPIOS here&lt;/p&gt;
&lt;p&gt;&lt;img style="cursor:zoom-in;max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2438.pastedimage1743097718776v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I check the nrfjprog --memrd 0x10001000 --n 512, Im getting all F&amp;#39;s&lt;/p&gt;
&lt;p&gt;&lt;img style="cursor:zoom-in;max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1033.pastedimage1743097773703v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ways to drive nrf52840 Port0 Pin 9 (P0.9 NFC) as GPIO?</title><link>https://devzone.nordicsemi.com/thread/225809?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 07:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f11383-d105-4df1-83ab-24756790ad2f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;NFC can be disabled and GPIOs enabled by defining the CONFIG_NFCT_PINS_AS_GPIOS variable in the project settings. How you do this depends on what IDE you&amp;#39;re using.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you&amp;#39;re using SEGGER Embedded Studios, go to&amp;nbsp;&lt;strong&gt;&lt;span&gt;&lt;span&gt;Project&lt;u&gt;&amp;gt;&lt;/u&gt;&lt;/span&gt;&lt;span&gt;Edit Options&lt;u&gt;&amp;gt;&lt;/u&gt;&lt;/span&gt;&lt;span&gt;Cod&amp;gt;&lt;/span&gt;&lt;span&gt;Preprocessor&lt;u&gt;&amp;gt;&lt;/u&gt;&lt;/span&gt;&lt;span&gt;Preprocessor Definitions&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;and add the CONFIG_NFCT_PINS_AS_GPIOS variable.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;If you&amp;#39;re using Keil µvision, go to&amp;nbsp;&lt;strong&gt;Project&amp;gt;Options for Target&amp;gt; C/C++&amp;gt;Preprocessor Symbols&amp;gt;Define&amp;nbsp;&lt;/strong&gt;and add the CONFIG_NFCT_PINS_AS_GPIOS variable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;You can also check out &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&amp;amp;cp=3_1_0_3_2_1&amp;amp;anchor=concept_sq5_lcz_2q"&gt;these instructions&lt;/a&gt; for a more in-depth explanation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ways to drive nrf52840 Port0 Pin 9 (P0.9 NFC) as GPIO?</title><link>https://devzone.nordicsemi.com/thread/225808?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 07:04:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b528f8b2-1c03-4e08-906d-c37892445b4b</guid><dc:creator>amore</dc:creator><description>&lt;p&gt;This issues has been solved by using CONFIG_NFCT_PINS_AS_GPIOS=y. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>