<?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>Why does MOSI stay high afther sending last byte with a value higher than Decimal 127. Binear (0111 1111)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77430/why-does-mosi-stay-high-afther-sending-last-byte-with-a-value-higher-than-decimal-127-binear-0111-1111</link><description>I get that is has to do with something around the MSB. But I cant seem to find a way to prevent this. No i can not send a byte 0x00 since this will trigger certaint behavior of the slave. How can I prevent it from staying high while also sending the data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Jul 2021 16:13:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77430/why-does-mosi-stay-high-afther-sending-last-byte-with-a-value-higher-than-decimal-127-binear-0111-1111" /><item><title>RE: Why does MOSI stay high afther sending last byte with a value higher than Decimal 127. Binear (0111 1111)</title><link>https://devzone.nordicsemi.com/thread/320323?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 16:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb3c62d-9908-4873-85ce-c9130a6c7fdb</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;This may not work, but it is worth a quick try. When the buffer Tx stream is exhausted (after 5th byte in this case) the output switches to the Tx idle stream defined by&amp;nbsp;&lt;em&gt;ORC&lt;/em&gt;. If Tx length is the same or greater than Rx length then this idle byte never actually gets sent, but it may be preloaded and therefore influence the end state of &lt;em&gt;MOSI&lt;/em&gt;..&lt;/p&gt;
&lt;p&gt;Change this value from 0xFF to 0x7F or 0x00 to test.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;o&amp;gt; NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character  &amp;lt;0-255&amp;gt; 
#ifndef NRFX_SPIS_DEFAULT_ORC
#define NRFX_SPIS_DEFAULT_ORC 0 //255
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does MOSI stay high afther sending last byte with a value higher than Decimal 127. Binear (0111 1111)</title><link>https://devzone.nordicsemi.com/thread/320115?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 21:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a8d7a2c-03f6-4b75-a0ca-85cdaf16eb71</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not sure if there&amp;#39;s a way to prevent this. Is this violating the SPI spec? As far as I can see MOSI should be ignored by the slave when CS is not asserted. Please correct me if you find any other info, and I will run this through the HW designers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>