<?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>Interfacing two slaves on spi master</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23432/interfacing-two-slaves-on-spi-master</link><description>Greetings to all, 
 I am working on a project where i need to interface both the SD card and the OLED Display with ble altogether. I am able to do so individually. But i want to know how to do it together, the code together are building and flashing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jul 2017 11:05:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23432/interfacing-two-slaves-on-spi-master" /><item><title>RE: Interfacing two slaves on spi master</title><link>https://devzone.nordicsemi.com/thread/92074?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 11:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d68b7268-756b-4322-9145-a222821f109c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;See answer in &lt;a href="https://devzone.nordicsemi.com/question/157920/a-nrf52-function-mapping-to-nrf51/?answer=157948#post-id-157948"&gt;separate thread&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing two slaves on spi master</title><link>https://devzone.nordicsemi.com/thread/92076?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 08:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94dcc65e-3ed1-488f-be24-fe8c406a1d3e</guid><dc:creator>YASH</dc:creator><description>&lt;p&gt;Hello, i am following the third step, as it is best suited for me, although i am getting an error in the line:-&lt;/p&gt;
&lt;p&gt;volatile spi_control_block_t * my_setup = mw_spi_instance.drv_inst_idx;&lt;/p&gt;
&lt;p&gt;its saying that &amp;quot;mw_spi_instance&amp;quot; is not declared or is unidentified.
As i believe, it is function for nrf52, which is certainly not mapping. If i ma right, can u redirect to the correct replacement of this for my nrf51 as i m working on nrf51422.&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing two slaves on spi master</title><link>https://devzone.nordicsemi.com/thread/92075?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 09:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18d48300-ab98-4216-a81e-99fd83885a6b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SPI master driver in our SDK does not support switching SS pin for use with multiple devices. You got a couple of alternative options to interface multiple chips:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use two different SPI instances. The nRF51 series &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf#page=17"&gt;support up to two SPI master instances&lt;/a&gt; running simultaneously.&lt;/li&gt;
&lt;li&gt;Set the SS pin to &lt;code&gt;NRF_DRV_SPI_PIN_NOT_USED&lt;/code&gt; and control the SS pin yourself using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/group__nrf__gpio.html?cp=4_0_2_6_6_7"&gt;GPIO abstraction API&lt;/a&gt; functions.&lt;/li&gt;
&lt;li&gt;Use the method suggested by &lt;a href="https://devzone.nordicsemi.com/question/111924/nrf52-as-spi-master-with-multiple-slaves/?answer=157239#post-id-157239"&gt;this user&lt;/a&gt;, to change the SS pin in the SPI master driver. Note that I have not tested this, but the principle should work.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>