<?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>Detect if NFC antenna is connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115466/detect-if-nfc-antenna-is-connected</link><description>Is there a way of detecting if NFC antenna is connected. 
 My thought process is, set as GPIOs, one as input and one as output set high to measure the continuity. Am I able to toggle NFC between GPIO and NFC in runtime? 
 Thank you, 
 Shahin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Oct 2024 14:42:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115466/detect-if-nfc-antenna-is-connected" /><item><title>RE: Detect if NFC antenna is connected</title><link>https://devzone.nordicsemi.com/thread/506754?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 14:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25a27a66-1c99-49f4-b87a-fd7b388ac80b</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Toggling the NFC pins between functioning as NFC pins and GPIOs during runtime is not possible. This must be set when building the application. I&amp;#39;m not sure which SDK version you&amp;#39;re using, but with NCS version &amp;lt;2.5.0, you can use &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_NFCT_PINS_AS_GPIOS"&gt;CONFIG_NFCT_PINS_AS_GPIOS&lt;/a&gt;. For NCS &amp;gt;2.6.0,&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_NFCT_PINS_AS_GPIOS:~:text=please%20use%20devicetree%20to%20configure%20NFCT%20pins%20as%20GPIOS%20like%20this%3A%20%26uicr%20%7B%20nfct%2Dpins%2Das%2Dgpios%3B%20%7D%3B"&gt; refer this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Sorry, I shouldn&amp;#39;t have used &amp;#39;not advisable&amp;#39; in my first response. I think it caused some confusion.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detect if NFC antenna is connected</title><link>https://devzone.nordicsemi.com/thread/506346?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 15:18:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22399e82-466c-4fcd-9fd0-4a201c6d66a5</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;It&amp;#39;ll be only checked during the initialization steps, i.e. once on each boot. NFC is initialized backend, is there a way of disabling NFC on startup and initializing it manually in code?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detect if NFC antenna is connected</title><link>https://devzone.nordicsemi.com/thread/506345?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 15:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a77b0b4a-ac4b-4827-945b-9e2c665aab1c</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you referring to the NFC antennas on the development kit? I’m asking because I find the query a bit unclear.&lt;/p&gt;
[quote user=""]My thought process is, set as GPIOs, one as input and one as output set high to measure the continuity. Am I able to toggle NFC between GPIO and NFC in runtime?&amp;nbsp;[/quote]
&lt;p&gt;The nRF52833 uses two dedicated pins for NFC functionality, typically referred to as NFC1 (pin 2) and NFC2 (pin 3). These special-purpose pins are designed for NFC communication but can also be used as GPIOs. However, I believe frequent toggling between NFC and GPIO modes at runtime is not advisable. I think the main reason is that reinitializing the NFC each time you toggle may disrupt its functionality, as NFC seems to be highly sensitive to timing.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>