<?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>SPI Signals pinout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37712/spi-signals-pinout</link><description>Hi. 
 I would like to route the BLE SPI signals to an external connector for use with external debugger. 
 Please specify which the nRf52832 pins are by default assigns to these signals: 
 1) SPI_MOSI(SDI) 
 2) SPI_MISO(SDO) 
 3) SPI_CLK 
 4) SWDIO 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Aug 2018 10:43:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37712/spi-signals-pinout" /><item><title>RE: SPI Signals pinout</title><link>https://devzone.nordicsemi.com/thread/145892?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 10:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3356af41-6ba6-4397-aa43-f4516092eae6</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again.&lt;/p&gt;
&lt;p&gt;Here is an example:&lt;/p&gt;
&lt;p&gt;Open up the main.c file in your SDK 15 folder,&lt;em&gt; nRF5_SDK_15.0.0_a53641a\examples\peripheral\spi\main.c&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Under the main function you find the struct &lt;em&gt;spi_config&lt;/em&gt; that defines which GPIO pins the SPI is configured to.&lt;/p&gt;
&lt;p&gt;The struct is the following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;
    spi_config.ss_pin   = SPI_SS_PIN;
    spi_config.miso_pin = SPI_MISO_PIN;
    spi_config.mosi_pin = SPI_MOSI_PIN;
    spi_config.sck_pin  = SPI_SCK_PIN;
    APP_ERROR_CHECK(nrf_drv_spi_init(&amp;amp;spi, &amp;amp;spi_config, spi_event_handler, NULL));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Just change &lt;em&gt;SPI_SS_PIN, SPI_MISO_PIN, SPI_MOSI_PIN, and SPI_SCK_PIN&lt;/em&gt; to the GPIO pins integers you found in the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&amp;amp;cp=2_1_0_3&amp;amp;anchor=pin_assign%20list."&gt;pin assignment.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can also open one of the project files found in &lt;em&gt;nRF5_SDK_15.0.0_a53641a\examples\peripheral\spi\pca10040\blank &lt;/em&gt;and do the exact same thing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Signals pinout</title><link>https://devzone.nordicsemi.com/thread/145879?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 09:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8e9e0be-0cde-4fbb-9d42-57c014fbeb78</guid><dc:creator>shay</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for your answer&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you specify how can I map the spi interrupt pin in the software?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Signals pinout</title><link>https://devzone.nordicsemi.com/thread/145343?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 14:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8772925e-3052-4228-8cb6-08f91b90dfcd</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;You can connect to any GPIO pin found in&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pin.html?cp=2_1_0_3#pin_assign%20list."&gt;this&lt;/a&gt;&amp;nbsp;table in the product specification for the SPI signals. The SWDIO pin is also found in this table.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The mapping of the pins needs to be done according the configurations found for each signal, which is also found in the product specification for the SPI&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spi.html?cp=2_1_0_47#concept_cdm_gk4_sr"&gt;here&lt;/a&gt;, I suggest you read that.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>