<?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 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67762/nrf52840-2-spi-instance-use-different-clock-to-2-devices</link><description>Hello Everyone, I am using nRF52840 and i have 2 SPI slaves (Sensor and EEPROM), the sensor spi clock is use 10 MHz and the EEPROM is 40MHz, sck、mosi、miso、ss are all different pin. Can i make 2 spi instance working in same time by setting spi_config &amp;amp;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Nov 2020 01:09:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67762/nrf52840-2-spi-instance-use-different-clock-to-2-devices" /><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277945?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 01:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7008bdc-e916-4ca7-beb4-22970e9f1f2d</guid><dc:creator>qleung</dc:creator><description>&lt;p&gt;Sorry i not expression that clearly, actually i need the flash memory working on at least 40 MHz, that my mistake and thanks for your&amp;nbsp;&lt;span&gt;help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277944?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 00:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336e77d1-dce2-4586-907a-5e96a7bd39eb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You said the EEPROM was the 40 MHz device - EEPROMs do not generally have a &lt;em&gt;minimum&lt;/em&gt; clock frequency.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2570._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277942?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 00:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2646759-d6f0-4f14-bbac-080533603543</guid><dc:creator>qleung</dc:creator><description>&lt;p&gt;Hi Awneil,&lt;/p&gt;
&lt;p&gt;Device A lowest working frequent is 40MHz and Device B maximum working frequent is 10MHz, so i need two different frequent base SPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277940?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 00:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87751fce-47cf-4bf3-abb8-0b10dbf14475</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3201._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277939?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 00:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039d767e-ce5a-41a9-9d7b-d9fc219fd386</guid><dc:creator>qleung</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for your answer, now i know how does that work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277874?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 15:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e7a4727-d0cb-4747-a4ce-b96ea9888ea2</guid><dc:creator>awneil</dc:creator><description>[quote userid="95009" url="~/f/nordic-q-a/67762/nrf52840-2-spi-instance-use-different-clock-to-2-devices/277695#277695"]those frequencies are devices specification ferquncy range[/quote]
&lt;p&gt;Again, aren&amp;#39;t they just the maximum &lt;em&gt;&lt;strong&gt;limit&lt;/strong&gt; &lt;/em&gt;to the range - not a requirement that they work exactly &lt;em&gt;&lt;strong&gt;at&lt;/strong&gt; &lt;/em&gt;those specific frequencies ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277870?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 15:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ba90095-2510-4569-ab62-e6abd63d6798</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="qleung"]use legacy SPI, it is can work in same time with different clock(like set general gpio to PWM and MOSI、MISO) too?[/quote]
&lt;p&gt;The legacy SPI peripheral are also independent, so yes, you can use different clocks on the different SPI peripherals at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277695?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 00:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78294eba-3ffa-42c9-81ff-32e823bdcf1e</guid><dc:creator>qleung</dc:creator><description>&lt;p&gt;Hi Awneil&lt;br /&gt;Appreciate your detail explanation, but i also want to know if don&amp;#39;t use SPIM but use legacy SPI, it is can work in same time with different clock(like set general gpio to PWM and MOSI、MISO) too? Because those frequencies are devices specification ferquncy range.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 2 SPI instance use different clock to 2 devices</title><link>https://devzone.nordicsemi.com/thread/277547?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 09:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:166843a4-de90-46e7-b389-f38e789781fb</guid><dc:creator>awneil</dc:creator><description>[quote userid="95009" url="~/f/nordic-q-a/67762/nrf52840-2-spi-instance-use-different-clock-to-2-devices"]the sensor spi clock is use 10 MHz and the EEPROM is 40MHz[/quote]
&lt;p&gt;Surely, those are just the &lt;em&gt;maximum&lt;/em&gt; specifications for those components - they don&amp;#39;t &lt;em&gt;have to&lt;/em&gt; be those specific frequencies?&lt;/p&gt;
&lt;p&gt;Check the &lt;strong&gt;datasheets&lt;/strong&gt; for the parts!&lt;/p&gt;
&lt;p&gt;Give manufacturers, part numbers, and datasheet links for the slaves - so people can verify.&lt;/p&gt;
&lt;p&gt;You can find the nRF52840 Product Specification (and other documentation) here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52840.html"&gt;https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52840.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The Block Diagram shows you that the nRF52840 has &lt;strong&gt;three&lt;/strong&gt; SPIM modules:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1603963288825v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/blockdiagram.html?cp=4_0_0_2"&gt;infocenter.nordicsemi.com/.../blockdiagram.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>