<?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>GPIO shared ID and Custom Board Defines</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82625/gpio-shared-id-and-custom-board-defines</link><description>Dear, I am developing first project for self training using Nordic MCU. I want to interface few Buttons, Leds and LCD. I read the Datasheet nRF5340_PS_v1.0.pdf. In it in the article number 5.3.1.1, the Peripehral list with IDs and Base address is given</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Dec 2021 13:25:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82625/gpio-shared-id-and-custom-board-defines" /><item><title>RE: GPIO shared ID and Custom Board Defines</title><link>https://devzone.nordicsemi.com/thread/342933?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 13:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8f88694-dd5a-41b4-bc3b-8599206b3c51</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you read the text under &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fperipheral_interface.html&amp;amp;cp=3_0_0_6_0_1&amp;amp;anchor=concept_shared_id"&gt;Peripherals with shared ID&lt;/a&gt;&amp;nbsp;it says the following:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&amp;quot;In general (with the exception of ID 0), peripherals sharing an ID and &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;base address&lt;/strong&gt;&lt;/span&gt; may not be used simultaneously. Only one peripheral can be enabled at a given ID.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If you look at the base addresses of P0 and P1&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1280x160/__key/communityserver-discussions-components-files/4/2043.pastedimage1639142443997v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;you can see that the base addresses are different, and it shouldn&amp;#39;t be an issue using them simultaneously.&lt;/p&gt;
&lt;p&gt;However, for the UARTE, SPI and TWI, it&amp;#39;s different:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1447.pastedimage1639142640576v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can see the that the same instances (id) of the peripherals are sharing the same base address.&lt;/p&gt;
&lt;p&gt;Therefore you can&amp;#39;t use UARTE0 at the same time as SPIM0, or TWIM2 at the same time as UARTE2, and so on..&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>