<?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>Set easyDMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17941/set-easydma</link><description>For Setting the easyDMA on I2C, Do I need just to set the TWI0_USE_EASY_DMA to 1 ? 
 Also do I need to set an arrayList? which? 
 or can I just use the same settings that I use for TIW as a regular TWI transmission, if this is the case: what is the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Nov 2016 15:01:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17941/set-easydma" /><item><title>RE: Set easyDMA</title><link>https://devzone.nordicsemi.com/thread/69200?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 15:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2be02c7-7038-4413-a53a-6ece7a0e684b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Correct :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set easyDMA</title><link>https://devzone.nordicsemi.com/thread/69198?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 14:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91da1491-f059-4af3-897f-824ff2530fc5</guid><dc:creator>User1321</dc:creator><description>&lt;p&gt;So basically TWI itself works the same with easyDMA enabled or not, the difference comes from where TWI is reading/writing the data when TWI is transmitting/receiving? Is this correct?
Then, easyDMA is very useful only when we are dealing with the RAM of the nrF52, NOT related with the memory of, for example, a sensor that I have connected to the nordic Microcontroller.
Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set easyDMA</title><link>https://devzone.nordicsemi.com/thread/69197?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 14:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae68fb71-37a7-4573-ac03-03ac4ec2eff8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Usually the CPU configures the TWI peripheral and starts an operation, then goes to sleep. If it is a TX operation, EasyDMA can be used by TWI to read the data directly from RAM, while the CPU is sleeping. If it is an RX operation, EasyDMA can be used by TWI to write the data directly to RAM, while the CPU is sleeping. After an operation is complete, the TWI can trigger an interrupt to wake the CPU to take appropriate action.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set easyDMA</title><link>https://devzone.nordicsemi.com/thread/69199?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 14:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e9151d2-27fc-4eca-9695-4e3fc9f1f2d5</guid><dc:creator>User1321</dc:creator><description>&lt;p&gt;Thank you for your answer Peter,  I have still one doubt. Can I use easyDMA for reading or writing data from a sensor using EasyDMA while the CPU is sleeping?Or it can be used only for writing/reading from the RAM? This is actually the reason of why I am thinking on using easyDMA.
Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set easyDMA</title><link>https://devzone.nordicsemi.com/thread/69196?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 10:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9336c22d-b265-4351-aba9-1d4275a4b7ca</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;For Setting the easyDMA on I2C, Do I
need just to set the TWI0_USE_EASY_DMA
to 1 ?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you are using the TWI driver, yes.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Also do I need to set an arrayList?
which?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;or can I just use the same settings that I use for TIW as a
regular TWI transmission, if this is
the case: what is the difference that
it has when I use easyDMA wrt I2C?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The same settings. EasyDMA allows peripherals to access RAM directly. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/easydma.html?cp=2_2_0_9#easydma"&gt;this&lt;/a&gt; for more information.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Is there any API for using easyDMA? or
maybe an example?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/twi_sensor_example.html?cp=4_0_0_4_5_32"&gt;This&lt;/a&gt; is an example.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In the case that I want to save data
on the RAM, is easyDMA the only way of
doing it?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you want the peripheral to save data directly to RAM, yes. The CPU can of course read data from a peripheral and write it to RAM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>