<?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 Recevie data is allways 1bit shift</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109338/spim-recevie-data-is-allways-1bit-shift</link><description>Hi Nordic team, I&amp;#39;m currently facing a bit of a snag while trying to establish communication between the nRF52840 (NCS 2.5.0) and the MS5540C sensor using a 3-wire SPI protocol (note that the device doesn&amp;#39;t require a ‘Chip select’ signal). 
 Here&amp;#39;s the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Apr 2025 05:58:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109338/spim-recevie-data-is-allways-1bit-shift" /><item><title>RE: SPIM Recevie data is allways 1bit shift</title><link>https://devzone.nordicsemi.com/thread/533115?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 05:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c89632a-cec1-457d-b8d5-ababefb38047</guid><dc:creator>PedroR</dc:creator><description>&lt;p&gt;I have the same problem. How did you fix it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Recevie data is allways 1bit shift</title><link>https://devzone.nordicsemi.com/thread/476417?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 04:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2470baf8-1f1b-4e5f-8b43-aab39d8bad25</guid><dc:creator>lammobile</dc:creator><description>&lt;div class="flex-1 overflow-hidden"&gt;
&lt;div class="react-scroll-to-bottom--css-upgzr-79elbk h-full"&gt;
&lt;div class="react-scroll-to-bottom--css-upgzr-1n7m0yu"&gt;
&lt;div&gt;
&lt;div class="flex flex-col text-sm pb-9"&gt;
&lt;div class="w-full text-token-text-primary" data-testid="conversation-turn-3"&gt;
&lt;div class="px-4 py-2 justify-center text-base md:gap-6 m-auto"&gt;
&lt;div&gt;
&lt;div class="relative flex w-full flex-col agent-turn"&gt;
&lt;div class="flex-col gap-1 md:gap-3"&gt;
&lt;div class="flex flex-grow flex-col max-w-full"&gt;
&lt;div data-message-author-role="assistant" data-message-id="8016df29-e483-4587-a550-88b1a2c6eaa2"&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;p&gt;Hi&amp;nbsp;J&amp;oslash;rgen Holmefjord,&lt;/p&gt;
&lt;p&gt;Thank you so much, finally I had to write a soft SPI to implement this function. I will send you the sample application once I optimize this feature. Thank you very much.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="mt-1 flex justify-start gap-3 empty:hidden"&gt;
&lt;div&gt;
&lt;div class="flex"&gt;&lt;span class="" data-state="closed"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class="relative flex h-full flex-1 flex-col"&gt;
&lt;div class="flex w-full items-center"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Recevie data is allways 1bit shift</title><link>https://devzone.nordicsemi.com/thread/474523?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 08:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd916e96-6b74-4f4c-98b1-9d56392b2782</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you provide a sample application that can be used to reproduce this behavior?&lt;/p&gt;
&lt;p&gt;It is unclear to me&amp;nbsp;if the pin levels is caused by the SPIM peripheral or by some GPIO config in the application.&lt;/p&gt;
[quote user=""]Is there a way to keep the clock signal at the low level by default after powering on the system?[/quote]
&lt;p&gt;From a HW perspective, the GPIOs are set as inputs, with input buffer disconnected and no pull by default. This should not drive the signals high, but since they are floating, the level might be interpreted as high or low by the sensor.&amp;nbsp;&lt;/p&gt;
[quote user=""]Or perhaps, is there a method to reset the receiver MISO counter or buffer?[/quote]
&lt;p&gt;There is no way to do that apart from stopping the transfer and starting a new one. You could also read one additional byte and do the shifting in your application (it this does not mess up the state of the sensor).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>