<?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 maximum throughput of EasyDMA on PWM device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10340/nrf52-maximum-throughput-of-easydma-on-pwm-device</link><description>Hello, 
 I&amp;#39;ve been looking a bit into the nRF52 product specification and I was just wondering how powerful EasyDMA is under extreme conditions. 
 Let&amp;#39;s assume the following scenario: All 12 PWM channels are in use, with a frequency of 1 MHz. The duty</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Nov 2015 15:06:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10340/nrf52-maximum-throughput-of-easydma-on-pwm-device" /><item><title>RE: nRF52 maximum throughput of EasyDMA on PWM device</title><link>https://devzone.nordicsemi.com/thread/38386?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 15:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92b988ba-2360-4548-afd4-a8b9e1df5fcf</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;As mentioned most of the peripherals are clocked at 16MHz, to reduce power consumption and to make the peripheral behavior aligned with the nRF51. The same goes for the peripheral bus.&lt;/p&gt;
&lt;p&gt;Feel free to accept the answer if you are happy with it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 maximum throughput of EasyDMA on PWM device</title><link>https://devzone.nordicsemi.com/thread/38385?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2015 19:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76772eb0-0f23-4a1a-bbdc-04129ae1e3e7</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;I just saw it in the block diagram.. thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 maximum throughput of EasyDMA on PWM device</title><link>https://devzone.nordicsemi.com/thread/38384?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2015 18:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47be1c84-c18f-4513-89ef-8a0ce2a9f500</guid><dc:creator>Eric Stutzenberger</dc:creator><description>&lt;p&gt;The APB Bus on the nRF52 is running at 16 MHz.  So, even though the CPU core is running at 64 MHz, the APB peripheral clocks are still limited to 16 MHz.  Check out the nRF52 Performance information here: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52.v1.0.0/migration/performance.html"&gt;infocenter.nordicsemi.com/.../performance.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 maximum throughput of EasyDMA on PWM device</title><link>https://devzone.nordicsemi.com/thread/38383?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2015 13:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6605fe49-558b-445c-b994-5a73e2118b0b</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Torbjørn, thanks for this high quality info! This really helps a lot!
Just one question: You mention one EasyDMA transfer per 2 16MHz clock cycles. Shouldn&amp;#39;t it be per 2 64MHz cycles on the nRF52?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 maximum throughput of EasyDMA on PWM device</title><link>https://devzone.nordicsemi.com/thread/38382?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2015 12:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10dcb231-5058-4f5d-9f5f-c834f479d090</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You can run one EasyDMA transfer per 2 16MHz clock cycles (every 125ns) maximum for each block of the RAM. The nRF52832 has 8 RAM blocks, so in theory you could run 8 EasyDMA transfers per 125ns if each transfer goes to its own RAM block.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Yes, the PWM updates 2 compare values at once to utilize the 32-bit capacity of the EasyDMA.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Higher priority devices will delay lower priority devices, but unless the higher priority device accesses the RAM 100% of the time there will interleaving naturally.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you assign one of the 8 RAM blocks to PWM exclusively there will be no impact on the system. If you put everything on the same block then lower priority channels will be delayed when there is a lot of BLE activity. In your case this means the PWM update would be pulled out to give priority to the radio, encryption modules and CPU. If the PWM doesn&amp;#39;t get the update in time it will just replay the previous duty cycle, so there are no glitches, just a delayed update.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The PWM register are double buffered, yes. As soon as it has loaded the current duty cycle it will request the next value, to make sure you have the entire interval time (1us) to get the new data.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>