<?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>Pin number assignment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29928/pin-number-assignment</link><description>Hi, I try to map the UART pins RxD to P0.08 and TxD to P0.06 like on the nRF52840 PDK.
In code I have to assign a number. At the moment RX_PIN_NUMBER is 8 and TX_PIN_NUMBER is 6.
Is there a table to find the correct pin numbers? In the datasheet pins</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Oct 2018 12:18:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29928/pin-number-assignment" /><item><title>RE: Pin number assignment</title><link>https://devzone.nordicsemi.com/thread/151427?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 12:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63dc006b-fcf4-442a-b149-06feab33ef50</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;That seems to be a bug in the Mesh SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pin number assignment</title><link>https://devzone.nordicsemi.com/thread/151267?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 14:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd07c0cc-2452-4201-80d5-0fb3f74c4989</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/martinbl"&gt;MartinBL&lt;/a&gt; But this doesn&amp;#39;t work. Check this issue&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39114/uart-does-not-work-on-port-1"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39114/uart-does-not-work-on-port-1&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pin number assignment</title><link>https://devzone.nordicsemi.com/thread/119024?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 13:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bd545df-a179-4a05-a5bc-8e1cd72694ef</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;That&amp;#39;s a good point. You can use the macro NRF_GPIO_PIN_MAP(port, pin) when you assign the pin numbers. So if you want to use the pins on port 1 you could do:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_PIN_NUMBER  NRF_GPIO_PIN_MAP(1, 8)
#define TX_PIN_NUMBER  NRF_GPIO_PIN_MAP(1, 6)
#define CTS_PIN_NUMBER NRF_GPIO_PIN_MAP(1, 7)
#define RTS_PIN_NUMBER NRF_GPIO_PIN_MAP(1, 5)
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pin number assignment</title><link>https://devzone.nordicsemi.com/thread/119025?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 13:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23c1fb9d-409b-4f12-a84d-22a77ecece4c</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi, that&amp;#39;s what confused me, in code it says:&lt;/p&gt;
&lt;p&gt;define RX_PIN_NUMBER  8
define TX_PIN_NUMBER  6
define CTS_PIN_NUMBER 7
define RTS_PIN_NUMBER 5&lt;/p&gt;
&lt;p&gt;The port is not defined there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pin number assignment</title><link>https://devzone.nordicsemi.com/thread/119023?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 12:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64bb544f-ad53-436b-96e4-6c4dc50ab549</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not sure if I understand your question. In the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/pin.html?cp=2_0_0_3_0#qfn48"&gt;pin assignment&lt;/a&gt; list you can compare the pin names and numbers. if you want to use e.g. P0.08 for RxD, then tell the UART to use pin 8 (and port 0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>