<?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>Synchronize SPI clock with generated timer clock</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68041/synchronize-spi-clock-with-generated-timer-clock</link><description>I am working with a IC that requires SPI clocks to be synchronized (in phase) with its system clock. Currently the IC&amp;#39;s clock source is connected to one of the nRF52&amp;#39;s GPIO pins which is driven by Timer 1, generating a 1MHz clock. SPI 1 is connected to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Nov 2020 08:48:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68041/synchronize-spi-clock-with-generated-timer-clock" /><item><title>RE: Synchronize SPI clock with generated timer clock</title><link>https://devzone.nordicsemi.com/thread/279862?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 08:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a393044-b2bf-438c-be35-76d53293fc07</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;The best of luck &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Unless you have more questions I will consider the case closed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronize SPI clock with generated timer clock</title><link>https://devzone.nordicsemi.com/thread/279593?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 20:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cb4d942-707e-4148-b866-69fe3c2b523b</guid><dc:creator>49bwjf8</dc:creator><description>&lt;p&gt;Will do, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronize SPI clock with generated timer clock</title><link>https://devzone.nordicsemi.com/thread/278956?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 10:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bffd5d39-fc1f-45dc-9c90-aa442cd2d787</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;According to the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/spim.html?cp=4_0_0_5_24_6#unique_940180269"&gt;SPIM electrical specification&lt;/a&gt;&amp;nbsp;this delay is 1us typical.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are no min and max values unfortunately. I don&amp;#39;t see any reason why it would be non deterministic, but I would recommend doing some testing to verify this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronize SPI clock with generated timer clock</title><link>https://devzone.nordicsemi.com/thread/278829?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 15:32:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:528e59d1-51f4-4f71-9901-42246262258d</guid><dc:creator>49bwjf8</dc:creator><description>&lt;p&gt;Thanks for your reply! I am using nRF5 SDK v15.3.0 and am using nrf_drv_spi.&lt;br /&gt;&lt;br /&gt;Is the time between starting the SPI peripheral and the rising edge of the clock deterministic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronize SPI clock with generated timer clock</title><link>https://devzone.nordicsemi.com/thread/278785?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 13:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b442505b-a19c-43de-8754-b538212ca1a8</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You probably need to start the SPI interface in sync with the 1MHz clock put out by Timer 1. This should be possible by connecting the START task of the SPI peripheral to the compare event generated by timer 1 over PPI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you let me know which SDK version you are using, and which driver you are using for the SPI?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>