<?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>nRF52 spi0 pin mappings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16577/nrf52-spi0-pin-mappings</link><description>Hi,
I am trying to get the example spi slave working. I am using SDK 11.0 ( I will try again under the 12.0 SDK later today).
I&amp;#39;ve checked my spi master by running the master in loopback mode and verifying that it does receive what is being sent. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 04 Mar 2018 06:28:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16577/nrf52-spi0-pin-mappings" /><item><title>RE: nRF52 spi0 pin mappings</title><link>https://devzone.nordicsemi.com/thread/122714?ContentTypeID=1</link><pubDate>Sun, 04 Mar 2018 06:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42ed64c-7e08-45ac-9d1f-0653641ed9bd</guid><dc:creator>Thomas Y</dc:creator><description>&lt;p&gt;I can&amp;#39;t used P.002 as MOSI pin on DK and on stand alone design do you know why ?&lt;/p&gt;
&lt;p&gt;is there a setting inside SDK_CONFIG.h for the analog module to use Vcc as VREF, by chance?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;similar to&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.1.0%2Fgroup__nrf__drv__comp__config.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Reference voltage.&lt;/p&gt;
&lt;p&gt;Following options are available:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;0 - Internal 1.2V&lt;/li&gt;
&lt;li&gt;1 - Internal 1.8V&lt;/li&gt;
&lt;li&gt;2 - Internal 2.4V&lt;/li&gt;
&lt;li&gt;4 - VDD&lt;/li&gt;
&lt;li&gt;7 - ARef&lt;/li&gt;
&lt;/ul&gt;
&lt;dl class="section note"&gt;
&lt;dt&gt;Note&lt;/dt&gt;
&lt;dd&gt;This is an NRF_CONFIG macro.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;span&gt;For my understanding &amp;quot;Often the analog module takes priority over everything else, but you can usually set up the ref pin to be either internal or external&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;// SPI_MOSI_PIN 2 GPIO / AIN0&amp;nbsp; DOES NOT WORK&amp;nbsp; AIN7 P31 OK&lt;br /&gt;// SPI_MISO_PIN 3 GPIO / AIN1 OK&lt;br /&gt;// SPI_SCK_PIN 4 GPIO / AIN2 OK&lt;br /&gt;// CHANNEL1_CS_PIN 9 GPIO&amp;nbsp; PROBABLY ON DK IT IS NFC&lt;br /&gt;// CHANNEL2_CS_PIN 7 GPIO OK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 spi0 pin mappings</title><link>https://devzone.nordicsemi.com/thread/63410?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 14:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9227f9e-a793-4140-bb99-4fe536a80028</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The spi example is setup to work with the spis example. SPI0 is can be mapped to any pins on the nRF52 (on the nRF devices all gpio pins can have any digital function like spi, gpio, uart, twi etc, only analog function has to be used on certain pins). Both example uses these pins for spi (as you can see in sdk_config.h):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SPI_SCK_PIN 3
#define SPI_MISO_PIN 28
#define SPI_MOSI_PIN 4
#define SPI_SS_PIN 29
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Connect these pins on the two boards and it should work.&lt;/p&gt;
&lt;p&gt;Spi example uses the SPI0 peripheral (&lt;code&gt;#define SPI_INSTANCE 0&lt;/code&gt;) while the spis example uses the SPIS1 peripheral (&lt;code&gt;#define SPIS_INSTANCE 1&lt;/code&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>