<?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>nRF52. Multiple transactions in SPIS mode with EasyDMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12556/nrf52-multiple-transactions-in-spis-mode-with-easydma</link><description>Hi all, 
 Can I do something like this: 
 
 
 The SPI master sets CSN line low. 
 
 
 The SPI master sends multiple packets. And the total number of bytes exceeds the value of the register RXD.MAXCNT. For example, 1024B. 
 
 
 The SPI master</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Mar 2016 11:38:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12556/nrf52-multiple-transactions-in-spis-mode-with-easydma" /><item><title>RE: nRF52. Multiple transactions in SPIS mode with EasyDMA</title><link>https://devzone.nordicsemi.com/thread/47659?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 11:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdc5bd12-3380-41e1-b1e5-e415f86b2dd5</guid><dc:creator>Anton</dc:creator><description>&lt;p&gt;Ok. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52. Multiple transactions in SPIS mode with EasyDMA</title><link>https://devzone.nordicsemi.com/thread/47658?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 11:15:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5db281cf-df81-4f4e-9414-7be065fc12c9</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Oh then no way to use HW SPIS peripheral on nRF5x with more that 255B transferred through EasyDMA, you will need to manage CSN hi/low/hi for each transfer I believe. Alternatively you can write your own interrupt driven SPIS but bit banging GPIO will obviously fail during extensive work by BLE stack (it will delay application interrupts and you will get it too late to capture incoming data).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52. Multiple transactions in SPIS mode with EasyDMA</title><link>https://devzone.nordicsemi.com/thread/47657?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 11:03:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b927206e-0218-49a9-bdeb-ff62e478a5b4</guid><dc:creator>Anton</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;I forgot to say that it is necessary for SPIS mode. The question is whether the slave can operate with such amount of data without CSN manage. For example, I want to reсeive 1024B from MOSI and send 1024B to master by MISO. Is it necessary to set CSN line high after every 255 bytes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52. Multiple transactions in SPIS mode with EasyDMA</title><link>https://devzone.nordicsemi.com/thread/47656?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 10:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f0dc7c2-829e-447c-be0d-e6a775e30b94</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Anton,&lt;/p&gt;
&lt;p&gt;Both SPI and TWI (I2C) Master peripherals on nRF52 have so called &amp;quot;array list&amp;quot; option which should help you to achieve exactly this. You can set-up set of Tx/Rx structures (pointers) and let EasyDMA to process it. In case you would like to pretend to do just one (not multiple) transfers on SPI Master (I guess you are talking to some serial flash module which can typically read infinite sequences) then you should be able to manage CSN line in SW (before/after DMA transfer is done). However there is no example in nRF5 SDK (as far as I see) so I&amp;#39;m wondering if you or someone from Nordic could post it here once you make it work.&lt;/p&gt;
&lt;p&gt;More about Array List in SPIM on nRF5 &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.0%2Fspim.html&amp;amp;cp=1_2_0_29_1_0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>