<?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>Inter SPI time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78981/inter-spi-time</link><description>Hello, 
 
 I wish to send SPI message by 2 Bytes per once, total 102 bytes. 
 Basically SPI works fine. 
 I wonder if there is way to reduce inter SPI time. It measured 18u sec. 
 Could it be around 2 u sec? 
 
 Below is my source code. 
 nbBYtes is 102</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Sep 2021 12:30:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78981/inter-spi-time" /><item><title>RE: Inter SPI time</title><link>https://devzone.nordicsemi.com/thread/329225?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 12:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f35d20e-aec7-4d5b-8cd5-57d41a5efc26</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The list feature is enable by the driver when the POSTINC flags are set.&lt;/p&gt;
&lt;p&gt;See this page on how to use the driver in advanced mode:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_spi_master.html#hardware_driver_spi_advanced"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_spi_master.html#hardware_driver_spi_advanced&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inter SPI time</title><link>https://devzone.nordicsemi.com/thread/327087?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 01:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74faada0-e73d-45df-bc50-9d24e50333f3</guid><dc:creator>JIYEON</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried array list. Still 18u sec takes between SPI.&lt;/p&gt;
&lt;p&gt;Regarding Easy DMA, I have some questions.&lt;/p&gt;
&lt;p&gt;In my configuration, SPI0_USE_EASY_DMA is already enabled.&lt;/p&gt;
&lt;p&gt;I defined&amp;nbsp; Tx&amp;amp;Rx buffer as Array list.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define BUFFER_SIZE  2

typedef struct ArrayList
{
    uint8_t buffer[BUFFER_SIZE];
} ArrayList_type;

ArrayList_type gau8TxData[NB_16BIT_XFERS] = {0};
ArrayList_type gau8RxData[NB_16BIT_XFERS] = {0};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and execute SPI communication like below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        for(index = 0; index &amp;lt; (nbBYtes / 2); index++)
        {
            spi1_xfer_done = false;

            err_code = nrf_drv_spi_transfer(&amp;amp;m_spi_ntm, &amp;amp;gau8TxData[index], 2, &amp;amp;gau8RxData[index], 2);
            RETURN_IF_ERROR(err_code);

            while (!spi1_xfer_done)
            {
                __WFE();
            }
        }&lt;/pre&gt;&lt;/p&gt;
&lt;pre class="pre codeblock"&gt;&lt;span&gt;But I can&amp;#39;t find .MAXCNT nor .PTR which is specified in your link.&lt;br /&gt;Did I miss something?&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inter SPI time</title><link>https://devzone.nordicsemi.com/thread/327018?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 14:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0eb8c78-2376-4eed-a396-4fe910a32106</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You could try using array list to improve this.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html#topic"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html#topic&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>