<?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>How to use SPIM EasyDMA with nrf52?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18919/how-to-use-spim-easydma-with-nrf52</link><description>Hi All, 
 I am struggling with this question from many days. Does the SPI transmit or receive operation in SPI master code uses DMA? While using SAADC DMA I have specified buffer size as N(some uint8_t value) and directly started the sampling SAADC through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Jan 2017 11:48:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18919/how-to-use-spim-easydma-with-nrf52" /><item><title>RE: How to use SPIM EasyDMA with nrf52?</title><link>https://devzone.nordicsemi.com/thread/73109?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 11:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:901a5ae9-82d2-42ef-a9ca-e26b3ad18449</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Ok,Ole Thanks once again..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use SPIM EasyDMA with nrf52?</title><link>https://devzone.nordicsemi.com/thread/73108?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 11:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cfd99cb-cf5b-4376-9cd2-adb7707fb01e</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You mean this case?: &lt;a href="https://devzone.nordicsemi.com/question/109562/how-to-use-dma-in-nrf52-while-writing-on-sd-card-while-ble-is-also-operating/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is handled by my colleagues Petter and Pawel, you should wait for their response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use SPIM EasyDMA with nrf52?</title><link>https://devzone.nordicsemi.com/thread/73110?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 10:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d733b754-3f1b-4e99-934a-0af4943b1fb5</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Yes, Ole you are right. Now I am using &lt;code&gt;nrf_drv_spi_transfer(..)&lt;/code&gt; function to transfer 20 bytes using SPIM. I have initialized the buffer with the value that I want to transfer.Then I have just given that buffer and number of bytes to transfer to above function. As soon as all the bytes gets transferred, I have received the interrupt in the SPI interrupt handler.&lt;/p&gt;
&lt;p&gt;Thanks for your support..
I have some another questions regarding SD card writing with BLE and SADC mention [here](&lt;a href="https://devzone.nordicsemi.com/question/109562/how-to-use-dma-in-nrf52-while-writing-on-sd-card-while-ble-is-also-operating/"&gt;link text&lt;/a&gt;)` Can you suggest something regarding that...&lt;/p&gt;
&lt;p&gt;I want to write to SD card and want to use BLE for streaming at 1000sps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use SPIM EasyDMA with nrf52?</title><link>https://devzone.nordicsemi.com/thread/73107?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 09:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b39bd87a-6e88-4a87-8d8d-433cb764afa5</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SPI master code (nrf_drv_spi) will use DMA (SPIM peripheral) if &lt;code&gt;SPIx_USE_EASY_DMA&lt;/code&gt; is defined for the corresponding SPI instance (here denoted with x).&lt;/p&gt;
&lt;p&gt;Then use the &lt;code&gt;nrf_drv_spi_transfer(..)&lt;/code&gt; function to set up the transfer and send data. The tx and rx data will be in the buffers passed into the function.&lt;/p&gt;
&lt;p&gt;You can even use the &lt;code&gt;NRF_DRV_SPI_FLAG_HOLD_XFER&lt;/code&gt; if you want to setup the transfer, but not start it right away. Then you can for example start the transfer automatically using PPI when saadc is done (if this was what you intend to do?).&lt;/p&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>