<?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>SPI communication via DMA in background using ppi and a timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48198/spi-communication-via-dma-in-background-using-ppi-and-a-timer</link><description>Hi, 
 I&amp;#39;ve just realized the project from 
 https://github.com/Martinsbl/nrf5-mpu-examples/tree/master/nrf52-mpu-easydma-using-gpiote-and-registers 
 And it is working quiet well. Now I need something similar for SPI communication. I&amp;#39;ve tried it with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jun 2019 13:57:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48198/spi-communication-via-dma-in-background-using-ppi-and-a-timer" /><item><title>RE: SPI communication via DMA in background using ppi and a timer</title><link>https://devzone.nordicsemi.com/thread/192427?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 13:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea71bbc-93d3-41c6-aade-24179f74cf5c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;We don&amp;#39;t have an example for this, but the driver documentation which I linked to earlier explains how you can enable list mode (&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__drv__spi.html#gaa8dcccaab92e307b5cb16c2da2d29072"&gt;NRF_DRV_SPI_FLAG_TX_POSTINC&lt;/a&gt;) and start transfers through PPI.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication via DMA in background using ppi and a timer</title><link>https://devzone.nordicsemi.com/thread/191394?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b03721c5-a7d9-4ade-87c0-a385168f6c15</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Sorry no. The SPI Master Example is the lowest performance ever. I would like to have an Example with ArrayList mode which runs without CPU usage like the Example of Martin.&lt;/p&gt;
&lt;p&gt;I did not mean to use TWIM and SPIM at the same time but SPIM in Arraylist mode and normal SPIM. It is not working when the SPIM is in Arraylist mode I cannot write to it although no communication is going. I have to uninit it and init again without Arraylist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication via DMA in background using ppi and a timer</title><link>https://devzone.nordicsemi.com/thread/191373?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 12:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81afc2c2-8951-4e66-b998-8f5334d61501</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried to have a look at the SDK example:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/spi_master_example.html?cp=5_1_4_6_37"&gt;SPI Master Example&lt;/a&gt;. The driver documentation can be found here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/hardware_driver_spi_master.html?cp=5_1_2_0_13"&gt;SPIM&lt;/a&gt;.&lt;/p&gt;
[quote userid="18764" url="~/f/nordic-q-a/48198/spi-communication-via-dma-in-background-using-ppi-and-a-timer"]So far in the TWIM example it is not possible to switch between DMA and direct write without uninitialization of the SPI.[/quote]
&lt;p&gt;The TWIM0 and SPIM0 are &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/peripheral_interface.html?cp=3_1_0_14_1#concept_shared_id"&gt;shared&lt;/a&gt; so they cannot be used at the same time. Maybe you can use another TWIM or SPIM instance instead?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication via DMA in background using ppi and a timer</title><link>https://devzone.nordicsemi.com/thread/191122?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 13:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4e1246d-d5bb-4185-85f2-1d21d800f895</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think. you can try find some code examples in this topic :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46291/ads1299-reading-register_spi_nrf52832"&gt;ads1299-reading-register_spi_nrf52832&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37497/rare-counter-error"&gt;/nordic-q-a/37497/rare-counter-error&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Best regards,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Max&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>