<?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>How to change TX_PIN_NUMBER  to P1.00 on the nRF52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38788/how-to-change-tx_pin_number-to-p1-00-on-the-nrf52840</link><description>This is really a two part question. 
 1. How do I even refer to pin P1.00? It&amp;#39;s clear that pin P0.06 is referred to simply as pin 6, but what is the naming convention for the P1.xx pins? 
 
 2. Do I just hack the pca10056.h file directly to change the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Sep 2018 11:19:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38788/how-to-change-tx_pin_number-to-p1-00-on-the-nrf52840" /><item><title>RE: How to change TX_PIN_NUMBER  to P1.00 on the nRF52840?</title><link>https://devzone.nordicsemi.com/thread/150011?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 11:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:872574de-ffbd-467c-8fa3-afeae3b1d82e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you are using the examples with custom boards, you&amp;nbsp;can follow the documentation to add support for custom boards to the SDK:&amp;nbsp;&lt;a title="Using the SDK with other boards" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/sdk_for_custom_boards.html?cp=4_0_0_1_5"&gt;Using the SDK with other boards&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You are not required to use the defines from BSP for pins in your application. You can add a new define in your main.c and pass this to the UART init:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define UART_TX_PIN NRF_GPIO_PIN_MAP(1,0);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change TX_PIN_NUMBER  to P1.00 on the nRF52840?</title><link>https://devzone.nordicsemi.com/thread/149879?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 16:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf8f50e-c5e7-441d-a04f-8a9bc562bd92</guid><dc:creator>David Fogelsong</dc:creator><description>&lt;p&gt;Yipee!&amp;nbsp; I made the change by hacking&amp;nbsp;&lt;span&gt;pca10056.h to use this line instead, and it worked!&amp;nbsp; &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define TX_PIN_NUMBER  NRF_GPIO_PIN_MAP(1,0)   &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, that part is good.&amp;nbsp; However, hacking SDK header files is problematic, because then different projects start to interfere with one another because they rely on different hacked SDK&amp;#39;s.&amp;nbsp; Is there a more elegant solution than hacking the SDK directly?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i.e. question #1 is answered.&amp;nbsp; But, what is the answer to question #2 in the OP?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change TX_PIN_NUMBER  to P1.00 on the nRF52840?</title><link>https://devzone.nordicsemi.com/thread/149878?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 16:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c3308cf-377a-4786-b850-12c03a55ddca</guid><dc:creator>David Fogelsong</dc:creator><description>&lt;p&gt;Looks like you&amp;#39;re exactly right.&amp;nbsp; I found this, but it&amp;#39;s equivalent to what you said:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//@brief Macro for mapping port and pin numbers to values understandable for nrf_gpio functions.
 
#define NRF_GPIO_PIN_MAP(port, pin) (((port) &amp;lt;&amp;lt; 5) | ((pin) &amp;amp; 0x1F))
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change TX_PIN_NUMBER  to P1.00 on the nRF52840?</title><link>https://devzone.nordicsemi.com/thread/149874?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 15:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86fb0917-09fa-49c9-9bdf-95fa9350afad</guid><dc:creator>Peter Kenyon</dc:creator><description>&lt;p&gt;try adding 32 to the pin number for port 1 it worked for me, ie pin 32 in your case&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>