<?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 slave data offset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10071/spi-slave-data-offset</link><description>I&amp;#39;m using the 0.9.2 SDK SPI slave example to connect to a SPI master (Atmel SAM4S). When I initiate a SPI transfer from the master side I can see that all the data arrives correctly on the nrf52 side (ABCDEFGHIJKLMNOP) every time. However, on the master</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Nov 2015 03:14:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10071/spi-slave-data-offset" /><item><title>RE: SPI slave data offset</title><link>https://devzone.nordicsemi.com/thread/37340?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 03:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8877e773-5c31-47f5-91c4-5fd22f8373fc</guid><dc:creator>Bernd (nvisionary)</dc:creator><description>&lt;p&gt;I solved the issue by looking at it on the logic analyzer. Apparently there were two issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;On the master side I didn&amp;#39;t deselect the chip select before reading the SPI RX data which apparently resulted in extra frames sent on the SPI bus. Therefore the shift.&lt;/li&gt;
&lt;li&gt;I still saw 0xAA&amp;#39;s for the first Byte in every transaction. Turns out that the timing was off froCS going low to the first clock toggle. Once the delay was large enough all the data is correctly transmitted to both sides. Closing.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>