<?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>How use multiple peripherals with one SPI port ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54864/how-use-multiple-peripherals-with-one-spi-port</link><description>Hello, 
 I have two differents sensors on one SPI port and I don&amp;#39;t really know how to be able to use both. Of course all are connected in the same MISO/MOSI/SCK but there, is only one SS for it like in the example below: 
 
 
 Do you have an idea or should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2019 14:47:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54864/how-use-multiple-peripherals-with-one-spi-port" /><item><title>RE: How use multiple peripherals with one SPI port ?</title><link>https://devzone.nordicsemi.com/thread/222146?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 14:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09bfadc6-1abe-4ad2-bf15-ef7c952b6cbe</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="JimBr"]is .ss_pin =&amp;nbsp;NRF_DRV_SPI_PIN_NOT_USED the same as ss_pin&amp;nbsp;&amp;nbsp; = NRFX_SPIM_PIN_NOT_USED ? because the compiler does not know yours.[/quote]
&lt;p&gt;Sorry! Yes, those are the same&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use multiple peripherals with one SPI port ?</title><link>https://devzone.nordicsemi.com/thread/222120?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:53:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16aed2f5-bc35-4145-af1b-fff8fadf0d8b</guid><dc:creator>JimBr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much! I was thinking about this method as well.&lt;/p&gt;
&lt;p&gt;is .ss_pin =&amp;nbsp;NRF_DRV_SPI_PIN_NOT_USED the same as ss_pin&amp;nbsp;&amp;nbsp; = NRFX_SPIM_PIN_NOT_USED ? because the compiler does not know yours.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Jimmy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How use multiple peripherals with one SPI port ?</title><link>https://devzone.nordicsemi.com/thread/222112?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a47688-4998-49dd-a716-1c6cb87f5489</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The driver only supports one specific pin to be used as a CSN/SS pin. It does however support to control this manually, by disconnecting the pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you set the .ss_pin =&amp;nbsp;NRF_DRV_SPI_PIN_NOT_USED, you can control each chip select (SS) pin manually in your application. Then you can configure each individual SS pin to output, and set active/inactive in your spi_send function.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>