<?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>Repeat SPI transfers with SS line faster</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76387/repeat-spi-transfers-with-ss-line-faster</link><description>I am trying to read data from a chip over SPI. 
 
 The implementation of the SPI comms is not ideal as they require a new CS/SS line toggle on every byte. I cannot do a bulk SPI read. 
 I am seeing a 10uS delay between each SPI XFER. Is there a way to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Jun 2021 13:49:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76387/repeat-spi-transfers-with-ss-line-faster" /><item><title>RE: Repeat SPI transfers with SS line faster</title><link>https://devzone.nordicsemi.com/thread/315653?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 13:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f73b21eb-9424-4f0f-b2bc-bea010dc482e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could setup and trigger the SPIM manually, which will omit all the pointer checks and so forth:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_spim_tx_buffer_set(spi.p_reg, &amp;amp;reg, 1);
nrf_spim_rx_buffer_set(spi.p_reg, &amp;amp;rx, 1);
nrf_spim_event_clear(spi.p_reg, NRF_SPIM_EVENT_END);
nrf_spim_task_trigger(spi.p_reg, NRF_SPIM_TASK_START);
while (!nrf_spim_event_check(spi.p_reg, NRF_SPIM_EVENT_END));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This should speed things up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>