<?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 loop-back test analysis</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31192/spi-loop-back-test-analysis</link><description>Hello DevZone, 
 I am using a nRF52840 for project development. 
 To test SPI setting is correct or not, I am doing the loop-back test, I set the MISO and MOSI PIN according to Arduino UNO compatible PIN map. But when I run the nRF52 program, I found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Mar 2018 07:41:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31192/spi-loop-back-test-analysis" /><item><title>RE: SPI loop-back test analysis</title><link>https://devzone.nordicsemi.com/thread/123346?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 07:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba898c1e-80c9-4b11-aea0-ce2f55812d9d</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just tested following example in SDK14.2:&amp;nbsp;sdk\nrf5\examples\peripheral\spi&lt;/p&gt;
&lt;p&gt;I have shorted only PINs: P0.04 (MOSI) and P0.28 (MISO).&lt;/p&gt;
&lt;p&gt;Once trasnfer is done Rx buffer reflects Tx buffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI loop-back test analysis</title><link>https://devzone.nordicsemi.com/thread/123336?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 05:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03c20046-6a06-4092-9216-b43c23bb5322</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI loop-back test analysis</title><link>https://devzone.nordicsemi.com/thread/123240?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 12:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83c9c686-fac6-47fe-80e3-791018a97944</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;But this is not a problem. You can have 2 isntances of SPI on 1 DK &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Nevertheless I will try to reproduce your case here. If I understand you correctly you have only SPI master and you have shorted MOSI with MISO?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI loop-back test analysis</title><link>https://devzone.nordicsemi.com/thread/123239?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 12:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6ce92a6-f3c1-4e9a-9c95-c4016a4c181c</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Because I have only one DK, I want to do a loopback test...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI loop-back test analysis</title><link>https://devzone.nordicsemi.com/thread/123185?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 08:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b7c00ac-77a3-408c-a4fd-7b7cc850c86b</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Basically you need to configure 2 instances of SPI: 1 for master and 1 for slave and connect them:&lt;/p&gt;
&lt;p&gt;- Master MOSI with Slave MISO&lt;/p&gt;
&lt;p&gt;- Master MISO with Slave MOSI&lt;/p&gt;
&lt;p&gt;- Master SCK with Slave SCK&lt;/p&gt;
&lt;p&gt;- Master CS with Slave CS.&lt;/p&gt;
&lt;p&gt;So you will need 4 connections - now you have only 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI loop-back test analysis</title><link>https://devzone.nordicsemi.com/thread/123177?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 08:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb2c415-6456-4a78-87ab-f42796d51e14</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Thanks Jakub,&lt;/p&gt;
&lt;p&gt;I didnt connect SCK. As I am doing loopback test, I thought both master and slave are the nRF52 DK. Therefore, I didn&amp;#39;t connect SCK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you tell me how to connect SCK for loopback test?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI loop-back test analysis</title><link>https://devzone.nordicsemi.com/thread/123172?ContentTypeID=1</link><pubDate>Wed, 07 Mar 2018 07:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91bf65bb-131d-454b-92b5-8149b42aab51</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;How did you configured SPI SCK? I assume master and slave shall have different PIN configured for SCK. I don&amp;#39;t see SCK connection between SPI master and SPI slave on you picture.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>