<?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 Pin settings directly in the Register?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74023/how-to-change-pin-settings-directly-in-the-register</link><description>I want to change the GPIO settings for the pin P1.08 but in the register description (nRF52840_PS_v1.2.pdf) there are only the names and offsets for the pins from P0.00 to P0.31. - Where can I change the Instance from P0 to P1 and how can I write this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Apr 2021 11:46:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74023/how-to-change-pin-settings-directly-in-the-register" /><item><title>RE: How to change Pin settings directly in the Register?</title><link>https://devzone.nordicsemi.com/thread/305075?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 11:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4971d9b5-ca74-4429-b0a9-ce7ff5b91a29</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF52840 have two instances of the GPIO peripheral, P0 with pins from 0-31, and P1 with pins from 0-15.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to write to the pins on P1, you should use the P1 instance, e.g. for P1.08:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_P1-&amp;gt;PIN_CNF[8] = ...;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;NRF_GPIO is mapped to the base address of P0, and cannot be use for interfacing pins on PORT P1.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>