<?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>Busrt read 128 byte FIFO using SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73750/busrt-read-128-byte-fifo-using-spi</link><description>Hallo, 
 I am trying to communicate MAX86140 sensor with nrf52840DK. This is the link to the datasheet of MAX86140/1 . I am able to write and read MAX registers successfully. 
 MAX86140 consist of a 128 byte FIFO which has to be burst read for data, The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Apr 2021 14:29:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73750/busrt-read-128-byte-fifo-using-spi" /><item><title>RE: Busrt read 128 byte FIFO using SPI</title><link>https://devzone.nordicsemi.com/thread/304612?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 14:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7770dbe9-8133-4f47-89b6-ce8661845b6d</guid><dc:creator>Kalrz </dc:creator><description>&lt;p&gt;Hallo Jorgen,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply. I will try out and in case if I face any problem, I will update here.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Karlz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busrt read 128 byte FIFO using SPI</title><link>https://devzone.nordicsemi.com/thread/303827?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 14:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93dffde8-248d-467c-8956-641d3b7cb763</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nrf_drv_spi API can support up to 255 bytes of read/write in a single transfer. All you need to do is to increase the rx_/tx_buffer_length parameters passed to &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__drv__spi.html#ga8502179e5c7d7a7da5104a4c1febe1e0"&gt;nrf_drv_spi_transfer&lt;/a&gt;&lt;span&gt;() to the desired length. Note that the RX buffer will be filled while the first address byte being written, so if you want to read 128 bytes&amp;nbsp;&lt;em&gt;after&lt;/em&gt; this byte have been written, you need to increase the RX length with 1 byte to 129 bytes, and then ignore the first byte in the RX buffer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In nRF52840, even longer read/writes can be supported (up to 65535 bytes) using the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrfx_migration_user_guide.html?cp=7_1_2_7_1#getting_started_replace_nrf_drv_options_migrate"&gt;nrfx_spim driver API&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>