<?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>nRF52840 UARTE+GPIOTE current consumption as compared to nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46181/nrf52840-uarte-gpiote-current-consumption-as-compared-to-nrf52832</link><description>I am measuring current on the nRF52840 when UARTE + GPIOTE are running (and sd_app_evt_wait() is called in the meantime), and I see about 1.2mA average current. On the nRF52832, the same app (it is just rebuilt for nRF52840) draws around 700uA, which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2019 07:24:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46181/nrf52840-uarte-gpiote-current-consumption-as-compared-to-nrf52832" /><item><title>RE: nRF52840 UARTE+GPIOTE current consumption as compared to nRF52832</title><link>https://devzone.nordicsemi.com/thread/182513?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 07:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0092ec4-a8a6-4d27-bac8-a665cf2622a3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry, I read your initial question too quickly, so I did not noise that you intended to test with the UART active. These numbers make sense.&amp;nbsp;The UARTE peripheral has a higher current consumption than the UART peripheral, due to the added current consumption of the DMA bus. (This is the same for all peripherals where you have DMA and non-DMA alternatives, due to the DMA logic.)&lt;/p&gt;
&lt;p&gt;There is no way to bring down this current consumption specifically, other than making sure that you enable the DC/DC. You should also make sure that you only enable peripherals when they are needed, and disable them immediately after, so that you reduce the average current consumption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 UARTE+GPIOTE current consumption as compared to nRF52832</title><link>https://devzone.nordicsemi.com/thread/182475?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 22:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a9bdd4a-9829-44e1-b9e1-7e2173d923bc</guid><dc:creator>catsunami</dc:creator><description>&lt;p&gt;Hi Einar, as stated in my post, I am using the UART peripheral. Below is a sample main function that I am using. Here, with UART I am getting about 0.8mA.&amp;nbsp;&lt;strong&gt;Is this expected?&amp;nbsp;&lt;/strong&gt;With UARTE I see about 1.2mA. Is there any way to bring this current down?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am testing on the nRF52840 DK, and using a 50kHz Keysight DMM to measure (so I&amp;#39;m sure it&amp;#39;s accurate enough for this purpose).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main()
{
   {NRF_UART0-&amp;gt;ENABLE = UART_ENABLE_ENABLE_Disabled &amp;lt;&amp;lt; UART_ENABLE_ENABLE_Pos; \
                        *(volatile uint32_t *)0x40002FFC = 0; \
                        *(volatile uint32_t *)0x40002FFC; \
                        *(volatile uint32_t *)0x40002FFC = 1;}
    
   NRF_P0-&amp;gt;DIRSET = 0xFFFFFFFC;
   NRF_P0-&amp;gt;OUTCLR = 0xFFFFFFFC;
   NRF_P1-&amp;gt;DIRSET = 0xFFFFFFFF;
   NRF_P1-&amp;gt;OUTCLR = 0xFFFFFFFF;
  
   NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
   while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0)
   {
   
   }
   NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
   NRF_UART0-&amp;gt;ENABLE = UART_ENABLE_ENABLE_Enabled &amp;lt;&amp;lt; UART_ENABLE_ENABLE_Pos;
   
   
   NRF_UART0-&amp;gt;TASKS_STARTRX = 1;
    
   NRF_POWER-&amp;gt;DCDCEN = POWER_DCDCEN_DCDCEN_Disabled &amp;lt;&amp;lt; POWER_DCDCEN_DCDCEN_Pos;
   NRF_POWER-&amp;gt;DCDCEN0 = POWER_DCDCEN0_DCDCEN_Disabled &amp;lt;&amp;lt; POWER_DCDCEN0_DCDCEN_Pos;
   
   for (uint32_t i = 0; i &amp;lt; 5000000; i++)
   {
      __NOP();
   }
   
   while(1)
   {
      __WFE();
      //__SEV();
      //__WFE();
   }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 UARTE+GPIOTE current consumption as compared to nRF52832</title><link>https://devzone.nordicsemi.com/thread/182113?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 12:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4d86b92-0b30-4714-bf0a-9f23f12e2303</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is difficult to say without knowing more about your app and HW, which peripherals etc. are active. Generally you should only get about 2-3 μA in low power mode (calling&amp;nbsp;sd_app_evt_wait()) provided you are not using any additional resources at that time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>