<?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>Two Instances of SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36049/two-instances-of-spi</link><description>Hi, 
 
 I am trying to have two instances of SPI with the same data and clock pins but to two different devices and thus two different select pins. 
 I have set all the SPI_Enable to 1 and this is my code. My goal is to send SPI to two devices on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jul 2018 16:15:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36049/two-instances-of-spi" /><item><title>RE: Two Instances of SPI</title><link>https://devzone.nordicsemi.com/thread/140728?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 16:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af43a531-2f70-4517-82b0-edd4a1d21d5a</guid><dc:creator>zigenz</dc:creator><description>&lt;p&gt;In your visualiser, can you confirm that spi_config1.ss_pin is being asserted when you try to communicate on the SPI bus to peripheral 1?&amp;nbsp; Also, have you tried&amp;nbsp;initiating SPI channel 0 with the SPI channel 1 config to confirm you don&amp;#39;t have&amp;nbsp;any wiring errors?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two Instances of SPI</title><link>https://devzone.nordicsemi.com/thread/140726?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 15:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07961b51-d24e-48a0-82af-6c02c57a736a</guid><dc:creator>drewfowler17</dc:creator><description>&lt;p&gt;I appreciate the replies. I have been watching it in real time with an analog discovery. The problem is definitely in the code, as it works with the 0 instance. Haven&amp;#39;t tested it much since I posted this, but will keep looking into the SPI Master docs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you all.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two Instances of SPI</title><link>https://devzone.nordicsemi.com/thread/140724?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 15:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:024041e1-e5e0-44fe-8384-a45fcee7b14e</guid><dc:creator>zigenz</dc:creator><description>&lt;p&gt;Hi Drew,&lt;/p&gt;
&lt;p&gt;I have successfully used two SPI channels on the nRF52832 using the method you mentioned (although haven&amp;#39;t checked your code with a fine-toothed comb).&lt;/p&gt;
&lt;p&gt;Being honest, you&amp;#39;re going to struggle debugging this without a logic analyser.&amp;nbsp; I use the Saleae Logic8 for this kind of stuff - it&amp;#39;s excellent for protocol debugging (&lt;a href="https://www.saleae.com/"&gt;https://www.saleae.com/&lt;/a&gt;).&amp;nbsp; Note I&amp;#39;m in no way affiliated with Saleae - a friend put me onto it and it&amp;#39;s&amp;nbsp;genuinely a&amp;nbsp;well made product that doesn&amp;#39;t break the bank (unlike most electronic test equipment).&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
&lt;p&gt;- Z&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two Instances of SPI</title><link>https://devzone.nordicsemi.com/thread/140717?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 14:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad789606-52ed-4305-b879-0ab19773a8d3</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hello Drew,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Have you followed the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fhardware_driver_spi_master.html&amp;amp;cp=4_0_0_2_0_13" target="_blank" rel="noopener noreferrer"&gt;documentation for the SPI master driver ?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also I would recommend that you hook up the signals to a logic analyzer to actually see what is happening in real-time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two Instances of SPI</title><link>https://devzone.nordicsemi.com/thread/139128?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 13:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e67ef85c-ef9a-45c8-8390-160cb56d9a15</guid><dc:creator>drewfowler17</dc:creator><description>&lt;p&gt;I am using 15.0.0&amp;nbsp; &amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1234.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../1234.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two Instances of SPI</title><link>https://devzone.nordicsemi.com/thread/138905?ContentTypeID=1</link><pubDate>Wed, 04 Jul 2018 08:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de901892-d9b9-4171-af51-7ba08b8bd807</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What SDK version do you use, and could you send the sdk_config.h file that you are using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>