<?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>Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94814/serial-peripheral-interface</link><description>Hi team, 
 I am trying to work on SPI peripheral on the nordic development board nRF52840. How many SPI compatible ICs are present on the board. And how to identify them? 
 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Dec 2022 11:40:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94814/serial-peripheral-interface" /><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/401893?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 11:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d865a099-1698-424d-907d-e925f3a6e6eb</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello Yugeswar,&lt;/p&gt;
&lt;p&gt;Karl is taking a deserved vacation and I have been assigned&amp;nbsp; to this case.&lt;/p&gt;
&lt;p&gt;Could you please open a new ticket stating the proper issue because your issue looks different from the parent question. And also please expect some delay from Devzone as we are understaffed due to Christmas vacation here in Norway.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/401165?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 03:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe382772-5d27-4dc9-8ac8-660f8c042bc1</guid><dc:creator>yugeswar</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;Now I have ordered an external SPI slave device (EEPROM), as there are no slave devices on board that supports SPI peripheral. Does the APIs given in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fgroup__nrfx__spi.html&amp;amp;anchor=gaa882c9d38c2a3c714123cc807757d9bb"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fgroup__nrfx__spi.html&amp;amp;anchor=gaa882c9d38c2a3c714123cc807757d9bb&lt;/a&gt;&amp;nbsp;sufficient to interface with the external device? How can I write and read data from the slave device? Kind advice please.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/401021?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 10:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa2ccf6-f46c-476b-820a-20f2160d6663</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;No problem at all - I am happy to help! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;While QSPI might be more daunting to familiarize with initially it comes with a lot of advantages when used to interface with external memory.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any issues or questions in the future, or if you should have any follow-up questions about the QSPI usage.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400973?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 03:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f1e20d8-87ef-4e16-a6ef-aa05f70f0a6d</guid><dc:creator>yugeswar</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;Thank You for the suggestions. I am a newbie to the SPI communication protocol. Without implementation of data transfer via SPI, I felt understanding QSPI is a little complicated. Hence I have been focussing my queries on SPI alone.&lt;/p&gt;
&lt;p&gt;I will check with both the SPIM and QSPI APIs as suggested and also refer to the SD card example.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400897?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 15:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7038fbe-16c0-4c11-9b4e-96db4828268f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Yungeswar&lt;br /&gt;&lt;br /&gt;My apologies, it seems that I misunderstood your intentions earlier.&lt;br /&gt;&lt;br /&gt;The answer to your question about which API you could use is indeed either the QSPI peripheral API, or &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__spim.html"&gt;the SPIM peripheral API&lt;/a&gt;.&lt;br /&gt;If you would like a reference on how to communicate with the external memory you could look at &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/app_sdcard_example.html"&gt;the Fatfs storage SD Card Example&lt;/a&gt;.&lt;br /&gt;If I could ask, however, why is it that you would like to use SPI for the transfers to the external memory, when you could be using QSPI?&lt;br /&gt;&lt;br /&gt;The pinout/connection to the external memory could also be helpful for you to take a look at, and it is described in &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_external_memory.html"&gt;the DKs external memory documentation&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400739?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 04:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d226e03-c8e2-4cb8-8a47-166074cc51c1</guid><dc:creator>yugeswar</dc:creator><description>&lt;p&gt;Thanks for the reply Karl.&lt;/p&gt;
&lt;p&gt;I agree that the external memory is connected to MCU through QSPI. But in the nRF52840_DK_User_Guide,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a id="" href="https://infocenter.nordicsemi.com/pdf/nRF52840_DK_User_Guide_v1.2.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF52840_DK_User_Guide_v1.2.pdf&lt;/a&gt;&amp;nbsp;, it is mentioned that both SPI and QSPI are connected to the external memory.&lt;/p&gt;
&lt;p&gt;If it is so, and if we configure SPI with the external memory GPIO pins, which APIs can I use to read and write data?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Yugeswar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400624?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 13:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b21038b-36da-4d59-9aab-4e7d21cc5863</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="yugeswar"]However, like You have mentioned that the MCU is connected to&amp;nbsp;&lt;span&gt;external memory via SPI&lt;/span&gt;[/quote]
&lt;p&gt;This is not quite accurate - I said that the MCU is connected to external memory through QSPI, which is not SPI.&lt;br /&gt;If you would like to &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/qspi_example.html"&gt;test the usage of the external memory mounted on the DK you can check out the QSPI example in the SDK&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400589?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 11:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e85543d8-b2cd-4f6d-8530-6aa0256cc220</guid><dc:creator>yugeswar</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;I am using SDK 16.0 for nRF52840 development board. I have found an example code for SPI in D:\..nRF5 SDK v16.0\examples\peripheral\spi path.&lt;/p&gt;
&lt;p&gt;However, like You have mentioned that the MCU is connected to&amp;nbsp;&lt;span&gt;external memory via SPI, which APIs can I use for reading and writing data to the external memory?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400563?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 10:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c68a7c2-bdb5-46b5-96a4-ab3ed8d907f4</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;No problem at all, I am happy to help! :)&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400511?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 06:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c89a7a39-4f76-4166-96ba-977cd4e17531</guid><dc:creator>yugeswar</dc:creator><description>&lt;p&gt;Thank You Karl.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Peripheral Interface</title><link>https://devzone.nordicsemi.com/thread/400308?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 08:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d44c3a69-17d6-4e14-ba58-d89c14778c04</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;There is no devices on the nRF52840 DK that uses an SPI interface. The closest thing would be the external memory that uses QSPI, but not SPI.&amp;nbsp;&lt;br /&gt;You can check this directly in &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK/Download?lang=en#infotabs"&gt;the DK Hardware files&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>