<?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>nRF52840 DK No SPI write hold time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91771/nrf52840-dk-no-spi-write-hold-time</link><description>HI, 
 I&amp;#39;m trying to get an OLED display over SPI working but since I&amp;#39;ve no reaction yet, I probed the output and noticed it seems to have no write data hold time between MOSI and SCLK. 
 
 From Serial Peripheral Interface Master (SPIM) timing specifications</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Sep 2022 13:22:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91771/nrf52840-dk-no-spi-write-hold-time" /><item><title>RE: nRF52840 DK No SPI write hold time</title><link>https://devzone.nordicsemi.com/thread/385315?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 13:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:173700a5-0786-4e5d-ba15-fde75300a46d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s correct. A&amp;nbsp;SPI device samples in the middle of a clock period, to ensure that all states are settled.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK No SPI write hold time</title><link>https://devzone.nordicsemi.com/thread/385304?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 13:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9417cbce-79a8-4d3c-bb06-97a43bf3abb7</guid><dc:creator>AnomalySmith</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;br /&gt;So, if I understand correctly, it&amp;#39;s actually not a big deal if the sampling SCLK edge goes along with the bit change as long as&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;t&lt;/span&gt;&lt;sub&gt;SPIM,VMO&lt;/sub&gt;&lt;span&gt;&amp;quot; is less than a certain period (here 59ns) ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK No SPI write hold time</title><link>https://devzone.nordicsemi.com/thread/385233?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 10:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb545979-d916-45ae-9462-00432ae9b0e1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]display&amp;#39;s IC datasheet says to be &amp;gt;40ns.[/quote]
&lt;p&gt;It states &amp;gt;20 ns for&amp;nbsp;tDHW in the ssd1333 datasheet, while the setup time is specified to 40 ns.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The parameter tSPIM,HMO tells how long it will take for SPIM to react to a future change in the value of MOSI, not a new period start. That is,&amp;nbsp;It takes some time to update the value of MOSI after the clock has changed&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are afraid of the validity of the signal, you should look at parameter &amp;quot;&lt;span&gt;t&lt;/span&gt;&lt;sub&gt;SPIM,VMO&lt;/sub&gt;&amp;quot; instead, as this gives you the max time of clock edge to&amp;nbsp;MOSI valid.&lt;/p&gt;
[quote user=""]I didn&amp;#39;t see any configuration option to act on the write hold time yet but I&amp;#39;ve some warnings about the board and don&amp;#39;t know if it may interfere&amp;nbsp;:&amp;nbsp;[/quote]
&lt;p&gt;These are warnings based on duplicate&amp;nbsp;address offset definitions, which can safely be ignored.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>