<?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 pin usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36632/nrf52840-pin-usage</link><description>Hi, 
 we are developing against the nRF52840 chip. We are interpreting the documentation as indicating that each pin can do all of GPIO, PWM, I2C and SPI. Are we reading this correctly? It is just that every other chip we have looked at, each pin only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jul 2018 05:22:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36632/nrf52840-pin-usage" /><item><title>RE: nrf52840 pin usage</title><link>https://devzone.nordicsemi.com/thread/140758?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 05:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9447bfba-a61e-47d6-8aff-9c0fcf4a0af1</guid><dc:creator>paul</dc:creator><description>&lt;p&gt;Thanks RK. A matter of checking out &amp;quot;Too good to be true...&amp;quot; Better to find out before we enshrine a possible misunderstanding in hardware....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;cheers Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 pin usage</title><link>https://devzone.nordicsemi.com/thread/140752?ContentTypeID=1</link><pubDate>Fri, 20 Jul 2018 04:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e5b550c-a13a-4674-b4c1-446fa62f69ee</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Yes. I&amp;#39;d explain it the other way around, for each instance of each function (SPI0, SPI1, I2C0 .. etc) there are registers in which you can select which of the pins are used for each of the input/outputs of that function and you can assign any GPIO to any function. Obviously you can only assign&amp;nbsp;each GPIO to one function at most, any that are assigned ignore anything set in the GPIO registers for them (because the peripheral takes them over), all other pins which you haven&amp;#39;t assigned are just GPIOs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s also a recommendation in the manual to avoid using some of the GPIOs located close to the radio for high frequency serial in order to ensure you don&amp;#39;t get interference so better to use those pins for low frequency comms or as GPIOs (if you need them at all).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A few functions are fix, USB for instance, and the SWD interface pins are fixed and, common to many MCUs, analog is restricted to a number of pins, but outside that, anything module which needs input/output pins can use any numbered GPIO you like.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kinda useful right?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>