<?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>nrf52840: strangeness in gpio registers description</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65255/nrf52840-strangeness-in-gpio-registers-description</link><description>Good day, 
 Studying the possibility of using C ++ on the MCU nrf52840, I met an interesting moment in file &amp;quot;nrf52840.h&amp;quot; 
 I have added a part of the file which gives me some surprise. 
 
 So, we have two ports, which are described by the NRF_GPIO_Type</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Aug 2020 09:49:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65255/nrf52840-strangeness-in-gpio-registers-description" /><item><title>RE: nrf52840: strangeness in gpio registers description</title><link>https://devzone.nordicsemi.com/thread/266684?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 09:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f204802-b39f-49b6-8b80-90436db7044c</guid><dc:creator>run_ar</dc:creator><description>[quote user="CheMax"]Ok.&amp;nbsp;Apparently it&amp;#39;s worth taking it as it is.[/quote]
&lt;p&gt;&amp;nbsp;Agree&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840: strangeness in gpio registers description</title><link>https://devzone.nordicsemi.com/thread/266661?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 09:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f338ff35-3fa9-42c5-a36f-233480e41a06</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s magic)&lt;/p&gt;
[quote userid="2112" url="~/f/nordic-q-a/65255/nrf52840-strangeness-in-gpio-registers-description/266642"]see &lt;span&gt;&lt;a title="Registers" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=4_0_0_5_8_1#topic"&gt;Registers&lt;/a&gt;&lt;/span&gt;[/quote]
&lt;p&gt;Ok, see.&amp;nbsp;There is some dissonance when looking at this table.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/462x208/__key/communityserver-discussions-components-files/4/gpio_5F00_reg.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2112" url="~/f/nordic-q-a/65255/nrf52840-strangeness-in-gpio-registers-description/266642"]The P1 base actually uses the same offset as the p0_base, and therefor P1 continues from 0x800, while p0 starts at 0x500[/quote]
&lt;p&gt;Ok.&amp;nbsp;Apparently it&amp;#39;s worth taking it as it is.&lt;/p&gt;
&lt;p&gt;Thank.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840: strangeness in gpio registers description</title><link>https://devzone.nordicsemi.com/thread/266642?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 08:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84970ed-3705-456d-b529-37b7e7446bef</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not sure why there is a reserved area in the beginning actually. But these are registry mappings that has to match the HW addresses -&amp;gt; see&amp;nbsp;&lt;span&gt;&lt;a title="Registers" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=4_0_0_5_8_1#topic"&gt;Registers&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The P1 base actually uses the same offset as the p0_base, and therefor P1 continues from 0x800, while p0 starts at 0x500&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>