<?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 peripheral clock and frequency question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43579/spi-peripheral-clock-and-frequency-question</link><description>Hi Nordic Team, 
 I am using the nRF52840 for a project, and I am interfacing with an LCD using the SPIM3 peripheral. I know there have been past posts on the Devzone which say that it is not recommended to use any other frequency for the SPI peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Feb 2019 16:58:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43579/spi-peripheral-clock-and-frequency-question" /><item><title>RE: SPI peripheral clock and frequency question</title><link>https://devzone.nordicsemi.com/thread/170965?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 16:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f9055c2-601c-4bb1-8988-d23d5a95a17b</guid><dc:creator>debbietray</dc:creator><description>&lt;p&gt;Great, thanks for the quick responses and help!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI peripheral clock and frequency question</title><link>https://devzone.nordicsemi.com/thread/170836?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 11:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da71606c-feff-4f35-8fc4-1875fac3f28a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, you are right. I was not aware, but this does not work with the higher clock frequencies supported by SPIM3. Then you are unfortunately stuck with either 8 MHz or 16 MHz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI peripheral clock and frequency question</title><link>https://devzone.nordicsemi.com/thread/170714?ContentTypeID=1</link><pubDate>Tue, 12 Feb 2019 17:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:906ddea6-fcab-4905-ad39-89714147d177</guid><dc:creator>debbietray</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply.&amp;nbsp; Do you have more information on how I can tweak the frequency register?&amp;nbsp; I tried several various&amp;nbsp;settings for the frequency register, but when it wasn&amp;#39;t recognized as one of the preset frequencies, it seemed to always default to 32MHz.&amp;nbsp; Thanks!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI peripheral clock and frequency question</title><link>https://devzone.nordicsemi.com/thread/170518?ContentTypeID=1</link><pubDate>Tue, 12 Feb 2019 08:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba2eaae-60f6-460f-ba79-8fc371ef2424</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have not tested anything other than the frequencies specified in the documentation for the FREQUENCY register.&amp;nbsp;The supported frequencies can be exactly generated from the HF clock, so that you will have a stable clock signal with 50 % duty cycle.&lt;/p&gt;
&lt;p&gt;You can try to tweak the &lt;a href="https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/spim?749#register.FREQUENCY"&gt;FREQUENCY&lt;/a&gt;&amp;nbsp;register, but as you can see by checking the CLK signal on a logic analyzer it will not be very clean. It might not be OK for the internal timing of your slave device, and it might not be OK for the nRF SPIM peripheral itself. Moreover, even if it does work it might be that it is only just, so that it might fail in some occasions on some devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>