<?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 delay betwen byte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79523/spi-delay-betwen-byte</link><description>Hello, 
 I have a problem with the SPI of the nRF52DK 52832, and Zephyr 1.6.1. I have to transmit 10 frames of 5760 bytes each to the TFT display with the ST7789 driver. 
 The transmission is successful but I measured a delay between one byte and the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Sep 2021 11:50:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79523/spi-delay-betwen-byte" /><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/330474?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 11:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:864ac787-d6ae-4b46-95cb-2d34eba84729</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;thanks a lot for your help, I have reprogrammed the DK and now works.&lt;/p&gt;
&lt;p&gt;I Have tested your example and work perfect and I have noted tha the buffer of SPI is 255 bytes.&lt;/p&gt;
&lt;p&gt;I found why in my application&amp;nbsp; i see a pause 2 uS every byte , because in overlay file i have this code&lt;/p&gt;
&lt;p&gt;&amp;amp;spi2 {&lt;br /&gt;compatible = &amp;quot;nordic,nrf-spi&amp;quot;;&lt;br /&gt;status = &amp;quot;okay&amp;quot;;&lt;br /&gt;label =&amp;quot;SPI_2&amp;quot;;&lt;br /&gt;sck-pin = &amp;lt;2&amp;gt;;&lt;br /&gt;mosi-pin = &amp;lt;3&amp;gt;;&lt;br /&gt;miso-pin = &amp;lt;4&amp;gt;;&lt;br /&gt;cs-gpios = &amp;lt;&amp;amp;gpio0 25 0&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;I have changed &amp;quot;nordic,nrf-spi&amp;quot; to &amp;quot;nordic,nrf-spim&amp;quot; and now work well.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks&lt;/p&gt;
&lt;p&gt;Fausto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/329954?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 08:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233184c7-17c3-4a83-99ae-dd468c17c739</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Fausto,&lt;/p&gt;
[quote user="Fb62"]unfortunately my nRF52-DK doesn&amp;#39;t work anymore,[/quote]
&lt;p&gt;&amp;nbsp;This post might be helpful in recovering it:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/24592/my-nrf52-nrf51-dk-kit-doesn-t-work/"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/24592/my-nrf52-nrf51-dk-kit-doesn-t-work/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Fb62"]it is possible to have the test code you did, so when I get the new DK, I also try your code.[/quote]
&lt;p&gt;&amp;nbsp;&lt;strong&gt;Attachment&lt;/strong&gt;:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8053.spi_5F00_test.rar"&gt;devzone.nordicsemi.com/.../8053.spi_5F00_test.rar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;PS: You might have been affected by this nRF52832 errata:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52832_Rev2%2FERR%2FnRF52832%2FRev2%2Flatest%2Fanomaly_832_58.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52832_Rev2%2FERR%2FnRF52832%2FRev2%2Flatest%2Fanomaly_832_58.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/329650?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 14:11:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3ac30d-171e-4ee8-ae62-a8ec74a69073</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Hi Sigurd,&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;it is possible to have the test code you did, so when I get the new DK, I also try your code.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Fausto&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/329648?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 14:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f76ca54-4153-4478-8b79-b1f10f2f62a6</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;SDK 1.6.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/329647?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 14:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de87c24b-daaf-44c1-bb7c-c94edf1dcd31</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;HI,&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt;&amp;nbsp; Sigurd,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;unfortunately my nRF52-DK doesn&amp;#39;t work anymore,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt; I think the PCA10040 is broken (power and clock is ok, but the pc doesn&amp;#39;t recognize it anymore).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;So I can&amp;#39;t send you a photo of the spi transmission with the delays.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;I bought a new nRF52-DK, from mouser, as soon as I get it I redo the test and send a photo.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;What I see on my analyzer doesn&amp;#39;t look like your measurement at all, where the clock is continuous.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;In my transmission the clock stops after 8 bits, pausing for 2 microseconds, to resume for the transmission of the next byte, and so on.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;I am using nRF52832 with Zephyr 1.6.1 whit Segger, what version did you use to do this test?&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Thank you,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Fausto&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/329643?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 13:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce99109c-d20d-4907-944d-e4ff7a3aa903</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Fb62"] it&amp;#39;s the same delay of 2 uS .[/quote]
&lt;p&gt;&amp;nbsp;How are you measuring this?&lt;/p&gt;
&lt;p&gt;I tried reprodcuing it, but I&amp;#39;m seeing 1 µs on the logic analzyer:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1631713312750v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/329443?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c86410-a6a8-4476-9a34-bfb39d5f02d4</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;Hi it&amp;#39;s the same delay of 2 uS .&lt;/p&gt;
&lt;p&gt;What is the default cpu clock, it&amp;#39;s possible increase it?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Fausto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI delay betwen byte</title><link>https://devzone.nordicsemi.com/thread/329346?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 08:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b887eb2e-79a4-45dc-a9e0-437d94a28f1f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]uint16_t fBuffer[5760];[/quote]
&lt;p&gt;&amp;nbsp;Try using uint8_t instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>