<?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>Is it physically possible to set UART RX and TX to same GPIO pin?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21248/is-it-physically-possible-to-set-uart-rx-and-tx-to-same-gpio-pin</link><description>I&amp;#39;m trying to implement send &amp;amp;&amp;amp; recieve through one wire. Handling of pin state, if it is input or output is done via SW. Also it is going to be half-duplex only. 
 Is it possible to do something like this: 
 NRF_UART0-&amp;gt;PSELTXD=PIN_TX_RX;
NRF_UART0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 25 Mar 2018 05:29:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21248/is-it-physically-possible-to-set-uart-rx-and-tx-to-same-gpio-pin" /><item><title>RE: Is it physically possible to set UART RX and TX to same GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/125863?ContentTypeID=1</link><pubDate>Sun, 25 Mar 2018 05:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:455f4fc5-c230-48da-ba59-3d435af4307c</guid><dc:creator>Thomas Y</dc:creator><description>&lt;p&gt;How about using RX pin as GPIO output pin ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it physically possible to set UART RX and TX to same GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/83158?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 16:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d05c25-e4f6-434d-b22c-88a16b5b0608</guid><dc:creator>PaukSK</dc:creator><description>&lt;p&gt;I was just curious, if it was possible. I couldn&amp;#39;t get it to work.&lt;/p&gt;
&lt;p&gt;Already connected it externally. Thanks :)!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it physically possible to set UART RX and TX to same GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/83157?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 15:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f2be51b-2968-423d-91ad-53ed67078c74</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;No this is not possible. You could maybe disable the peripheral, reconfigure the PSELR(T)XD registers and GPIOs before re-enabling again. But why not just connect the two pins externally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it physically possible to set UART RX and TX to same GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/83161?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 00:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e7ba958-04b1-4825-8700-cb37c9092c5b</guid><dc:creator>PaukSK</dc:creator><description>&lt;p&gt;Oh, I see now about the different peripherals. Thanks.&lt;/p&gt;
&lt;p&gt;I know exactly, when I want to receive and when to transmit. So I change the pin state accordingly. And  disable recieve when transmitting and vice versa.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it physically possible to set UART RX and TX to same GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/83160?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 23:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16fe0f53-5597-420a-871d-383213235262</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s not really what that section means, it&amp;#39;s saying you can&amp;#39;t assign the same GPIO pin to two different peripherals, ie you can&amp;#39;t set the same pin in UART0 and SPI0 or similar. It doesn&amp;#39;t say that the same pin cannot be used twice in a single peripheral. However given the different setup (input vs output) I would think it&amp;#39;s pretty unlikely you can use one pin as TX and RX in the UART as you&amp;#39;ve found.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it physically possible to set UART RX and TX to same GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/83159?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 23:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:467ad561-1ba7-4377-9424-7d156ca9ce5a</guid><dc:creator>PaukSK</dc:creator><description>&lt;p&gt;Found answer in nRF51_RM_v3.0&lt;/p&gt;
&lt;p&gt;&amp;quot;Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.&amp;quot;&lt;/p&gt;
&lt;p&gt;They will need to be connected appropriately externally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>