<?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>SPIM data transfert depends on Rx buffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36559/spim-data-transfert-depends-on-rx-buffer</link><description>Hello, 
 
 I have configured the SPI0 module in master mode with EasyDMA. I use the below code to send data 
 
 
 
 In the output I get the string &amp;quot;SPIM TEST&amp;quot; and with extra 0xFF bytes. I noticed that the total number of bytes corresponds to the rx_length</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jul 2018 08:18:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36559/spim-data-transfert-depends-on-rx-buffer" /><item><title>RE: SPIM data transfert depends on Rx buffer</title><link>https://devzone.nordicsemi.com/thread/140615?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 08:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aa5956f-167a-498a-85b8-626a47665e99</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Thank you for the information&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM data transfert depends on Rx buffer</title><link>https://devzone.nordicsemi.com/thread/140577?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 21:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14dd017d-5f8d-407d-95a5-49bf29971b22</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Yes&amp;nbsp; that&amp;#39;s&amp;nbsp; how SPI works, it&amp;#39;s full duplex, every cycle bytes are clocked in AND out, so if you clock in 24 bytes you clock out 24 bytes too. The data clocked out depends on the setting of the &amp;#39;idle bit&amp;#39; but by default that&amp;#39;s 1 so all the extra bytes would be 0xFF. All SPI devices are designed to understand this protocol and ignore bytes they weren&amp;#39;t expecting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Serial_Peripheral_Interface"&gt;en.wikipedia.org/.../Serial_Peripheral_Interface&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>