<?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>Reading a GPIO bus</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85926/reading-a-gpio-bus</link><description>Hi, I&amp;#39;m trying to reading the data pins of a camera and store it in variable. I&amp;#39;m able to read single pins using 
 How would I read 8 data pins simultaneously. This is my overlay file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Mar 2022 15:46:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85926/reading-a-gpio-bus" /><item><title>RE: Reading a GPIO bus</title><link>https://devzone.nordicsemi.com/thread/358724?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 15:46:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b8f5fa2-d904-4e8d-87fb-a7b0de6d72e5</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;You can synchronously read all 32 bits of the input port P0 simultaneously with a single instruction. Using a bit mask and shifts enables cuddling up the data bits if that is required. An advantage of using a single 32-bit read returns not just the data bits but also the sync etc bits. Since the input port sampling clock is 16MHz the race hazard/uncertainty between fast changing input pins can be estimated.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; volatile uint32_t inputPinSnapshot = NRFP0-&amp;gt;IN &amp;amp; pinsDefinedAsInputsMask;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>