<?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>UART current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66914/uart-current-consumption</link><description>Hello, 
 I developed an application for a custom nrf52832 board. It uses the Nordic UART Service (NUS) to transmit data over BLE. This works fine. 
 At the moment I am trying to optimize the current consumtion of this application on the custom nrf52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Dec 2022 16:31:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66914/uart-current-consumption" /><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/399512?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 16:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab321433-7b43-4b7a-a0f5-b9456607dca8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you please post your question in a new ticket, explaining exactly what you are looking for? NCS are quite different from nRF5 SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/399500?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 15:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e08e602-ce53-46de-b927-16a4c0d16a64</guid><dc:creator>droidecahedron</dc:creator><description>&lt;p&gt;Hello Jorgen,&lt;/p&gt;
&lt;p&gt;Is there an equivalent in NCS 2.0.2? We are running into similar power issues, but unsure how the nrf5 sdk changes in this thread translate to NCS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/275051?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 11:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75e3b2b-133c-4800-8c2c-7f7623817ca7</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thank you very much for your support. I will take a look to this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/275003?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 08:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd450a95-fd31-4ce4-bb45-c8c7a7d0e871</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Michael01101"]1. Do you know what the typical current consumption of EasyDMA is?[/quote]
&lt;p&gt;Unfortunately, we do not have current numbers for each component in the chip alone. EasyDMA is always used in combination with a peripheral, so it is not easy to measure its current consumption alone.&lt;/p&gt;
[quote user="Michael01101"]2. Do you know how the current consumption is distributed? (How much current draws EasyDMA and how much current draws the 16MHz clock?)[/quote]
&lt;p&gt;&lt;span&gt;The major part of&amp;nbsp;&lt;/span&gt;&lt;a title="SAADC active" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/_tmp/graviton/autodita/CURRENT/parameters.i_saadc.html?cp=4_0_0_4_1_0_6"&gt;SAADC active&lt;/a&gt;&lt;span&gt;&amp;nbsp;current is from EasyDMA. The majority of the&amp;nbsp;&lt;a title="TIMER running" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/_tmp/graviton/autodita/CURRENT/parameters.i_timer.html?cp=4_0_0_4_1_0_8"&gt;TIMER running&lt;/a&gt;&amp;nbsp;current is from the HFCLK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that these values are in the nRF52840 PS and not fully accurate for nRF52832, however it gives you an idea of the magnitude of currents consumed. The currents are typical values and for 3.0V supply voltage.&lt;/span&gt;&lt;/p&gt;
[quote user="Michael01101"]3. Is there somewhere a summary of the typical current draws of each peripheral?[/quote]
&lt;p&gt;Current consumption for some peripherals (including the ones linked in 2., are presented in&amp;nbsp;&lt;a title="Current consumption" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/chapters/current_consumption/doc/frontpage.html"&gt;Current consumption&lt;/a&gt;&amp;nbsp;chapter in the nRF52832 PS. For nRF52832, there is also current consumption numbers in the &amp;quot;Electrical Specifications&amp;quot; section of each peripheral chapter. The problem with these number is that they are typically run currents for the peripheral itself, and does not include current consumed by other requested resources (EasyDMA, Clock domains, etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274901?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21009497-6415-4205-8e3f-f4cb3d8acc3c</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thank you very much for your reply.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274889#274889"]EasyDMA current is only introduced once[/quote]
&lt;p&gt;This sounds very reasonable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Do you know what the typical current consumption of EasyDMA is?&lt;/p&gt;
&lt;p&gt;I want to analyze the current consumption of each peripheral. As I already mentioned in my original question my current increases by ~1.35mA when call uart_init().&lt;/p&gt;
&lt;p&gt;2. Do you know how the current consumption is distributed? (How much current draws EasyDMA and how much current draws the 16MHz clock?)&lt;/p&gt;
&lt;p&gt;3. Is there somewhere a summary of the typical current draws of each peripheral?&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274889#274889"]How large is the&amp;nbsp;SAADC_SAMPLES_IN_BUFFER define[/quote]
&lt;p&gt;It is defined to 4. I already figured out that there is no point of using the Low Power Mode of SAADC for this application. Especially because I need EasyDMA,&amp;nbsp;allowing sampling of channels directly to RAM using PPI, without CPU intervention. This is not available in Low Power Mode.&lt;/p&gt;
&lt;p&gt;Thank you so much in advance for answering my questions.&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: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274889?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:456d74c4-1bf4-4a1e-9ebe-a4031bc488ed</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;1. When you did not set&amp;nbsp;&lt;span&gt;UART_PIN_DISCONNECTED&amp;nbsp;for the UART RX pin, EasyDMA was already enabled due to the UART being in RX mode. When you removed the RX part of UART, EasyDMA was not started until you start the SAADC (which uses the same EasyDMA feature for storing samples in RAM). EasyDMA current is only introduced once, not multiplied by the numbers of peripheral utilizing EasyDMA concurrently.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. How large is the&amp;nbsp;SAADC_SAMPLES_IN_BUFFER define? In order to achieve low current, the buffers can only hold a single sample for each enabled channel. Depending on your acquisition time, 4 channels with a sample rate of 1 kHz means that the SAADC will be enabled ~5-20% of the time anyway, and with the overhead of stopping/starting the SAADC, you may not be able to see low currents like in the examples I linked. Handling this much interrupts to change buffers every 1 ms may also not work well in all application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274789?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 07:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a771a55-44ae-46d8-82f5-d2674cd3dd6d</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I figured out that when I use UART_PIN_DISCONNECTED for the rx part of the UART, the current consumption increases by ~1.5mA when I call the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void saadc_init(void)
{
    ...
    err_code = nrf_drv_saadc_buffer_convert(m_buffer_pool[0],SAADC_SAMPLES_IN_BUFFER);
    APP_ERROR_CHECK(err_code);   
    err_code = nrf_drv_saadc_buffer_convert(m_buffer_pool[1],SAADC_SAMPLES_IN_BUFFER);
    APP_ERROR_CHECK(err_code);
    ...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Unfortunaly, I am not able to determine why this causes the increase in current consumption.&amp;nbsp;The call of the nrf_drv_saadc_buffer_convert(..) function is equal to the &amp;quot;Low Power SAADC&amp;quot; example with multiple channels.&lt;/p&gt;
&lt;p&gt;1. Do you have any ideas why this causes the increase in current consumption when I use&amp;nbsp;&lt;span&gt;UART_PIN_DISCONNECTED for the rx part of the UART?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Do you have any ideas how to solve this issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much in advance.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274760?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 05:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6d28fd-0fdf-4a81-8866-efed183e8814</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sorry for my late reply.&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274409#274409"]Do you have multiple channels enabled in the SAADC?[/quote]
&lt;p&gt;Yes, I am using 4 channels.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274409#274409"]what sample rate are you using for the SAADC[/quote]
&lt;p&gt;1kHz (1ms) for all channels.&lt;/p&gt;
&lt;p&gt;I also use the SAADC in non-blocking mode and with double buffering. For accuracy I need the HFCLK.&lt;/p&gt;
&lt;p&gt;I already evaluated the SAADC readings and they are fine.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274409#274409"]example for multichannel low power SAADC[/quote]
&lt;p&gt;I will take a look to this examples. I hope that I can find the reason for the increase in current consumption.&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: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274409?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 15:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63797119-c7ce-4019-945e-a029d0e8f633</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do you have multiple channels enabled in the SAADC? I have seen before that this could prevent the low power mode from working correctly. Also, what sample rate are you using for the SAADC?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples"&gt;This Github repository&lt;/a&gt; has a few examples of low power SAADC with one and multiple channels.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/23867/nrf52-best-practise-for-ultra-low-power-saadc-4-channel-conversion/131251#131251"&gt;This post&lt;/a&gt; has an example for multichannel low power SAADC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274402?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 15:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef756199-92dc-452b-81c6-4e3aa2fa9e19</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello, thank you very much for your answer.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274380#274380"]enabling low-power mode [/quote]
&lt;p&gt;I applied your suggested change in the sdk_config, but unfortunaly it does not change anything.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274380#274380"]Note that requesting the HFCLK will cause ~400 uA[/quote]
&lt;p&gt;I know that, but I have to use the HFCLK for the accuracy of the SAADC.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I figured out, that when I use NUS without the SAADC, the current consumption&amp;nbsp;with UART_PIN_DISCONNECTED is significantly lower than with RX_PIN_NUMBER. So it looks like it have something to do with the SAADC.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have any suggestions?&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274380?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 14:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46ef1d3c-a76d-4187-9ff4-f357f2f38a58</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The SAADC also enables the EasyDMA once started. You can try enabling low-power mode in your sdk_config.h file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;q&amp;gt; SAADC_CONFIG_LP_MODE  - Enabling low power mode
 

#ifndef SAADC_CONFIG_LP_MODE
#define SAADC_CONFIG_LP_MODE 1
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that requesting the HFCLK will cause ~400 uA current @ 3.0 V increase in current as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274318?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 12:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ac7985-0d21-4736-8c26-f52e0c03077c</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thank you very much for your reply.&lt;/p&gt;
&lt;p&gt;Sorry for my inaccurate description in my previous reply to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I start with initializing log, timers, buttons_leds and power_managment:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        log_init();
        timers_init();
        buttons_leds_init(&amp;amp;erase_bonds);
        power_management_init();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Current consumption: 0.391mA&lt;/p&gt;
&lt;p&gt;If I initialize uart after that with RX_PIN_NUMBER, my current increases to 1.768mA. (Case 1)&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;&lt;span&gt;I initialize uart after that with UART_PIN_DISCONNECTED, my current increases to 0.392mA (Case 2)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;----------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Case 1:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After Initialize ble_stack, gap_param, gatt, services, advertising, conn_param:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Current while advertising: 2.03mA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Current while connected (no data transfer): 1.85mA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After intializing SAADC and start using NUS:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;          saadc_sampling_event_init();
          saadc_init();
          saadc_sampling_event_enable(){
                ...
                nrf_drv_clock_hfclk_request(NULL); 
                ...
          };&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Current: 2.84mA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-----------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Case 2:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After Initialize ble_stack, gap_param, gatt, services, advertising, conn_param:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Current while advertising: 0.377mA&lt;/p&gt;
&lt;p&gt;Current while connected (no data transfer): 0.144mA&lt;/p&gt;
&lt;p&gt;After intializing SAADC and start using NUS:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;          saadc_sampling_event_init();
          saadc_init();
          saadc_sampling_event_enable(){
                ...
                nrf_drv_clock_hfclk_request(NULL); 
                ...
          };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Current: 2.81mA&lt;/p&gt;
&lt;p&gt;&lt;span&gt;----------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you know why my overall current consumption is finally the same?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274245?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 09:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ec4be8-382e-4380-a655-70d8283afff4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this behavior. I&amp;#39;m still seeing low current consumption after connection as long as the RX pin is set to disconnected.&lt;/p&gt;
&lt;p&gt;You say &amp;quot;&lt;span&gt;when my device is connected to the central and data is sent over NUS&amp;quot;, can you describe exactly at what point the current increases? What steps did you do after establishing&amp;nbsp;the connection to the device?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274089?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 15:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d9d7e0-7e92-4545-8ee6-8cf3e3a85238</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thank you very much for your response.&lt;/p&gt;
&lt;p&gt;I was able to disable the RX part of the UART by setting the RX pin to UART_PIN_DISCONNECTED. After I call the uart_init() function my increase in current consumption is far lower than 1.35mA.&lt;/p&gt;
&lt;p&gt;However, when my device is connected to the central and data is sent over NUS, the overall current consumption is the same as before.&lt;/p&gt;
&lt;p&gt;It looks like, that this change is revoked at some point when the SoftDevice starts.&lt;/p&gt;
&lt;p&gt;1. Do you have any suggestions what could cause this behaviour?&lt;/p&gt;
&lt;p&gt;2. Do you have an idea how to solve this issue?&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;so much in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274044?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 12:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a054c768-5860-4d34-ac18-5fa5fafde58f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I did my testing with ble_app_uart from SDK 17.0.2 on a nRF52 DK (PCA10040).&lt;/p&gt;
&lt;p&gt;Starting with unmodified example, I measure this current (1.875 mA):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2313.unmodified.png" /&gt;&lt;/p&gt;
&lt;p&gt;By adding the two changes to the sdk_config.h file I posted in my previous post (458 uA):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6445.legacy_5F00_uart.png" /&gt;&lt;/p&gt;
&lt;p&gt;Without adding the two previous changes, but setting the RX pin to&amp;nbsp;UART_PIN_DISCONNECTED&amp;nbsp;in comm_params passed to&amp;nbsp;APP_UART_FIFO_INIT, the current is reduced to ~4 uA:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3302.rx_5F00_disabled.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274038?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 12:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0ad976-daef-4e94-bf28-c7d7055c5ae8</guid><dc:creator>Michael01101</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thank you very much for your response.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274019#274019"]With these configs, I measure about 450 uA base current.[/quote]
&lt;p&gt;I applied these changes to my sdk_config.h in my project, unfortunaly the current consumption is still at 1.35mA. Did you made more changes in the sdk_config.h?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/66914/uart-current-consumption/274019#274019"]Another option is to disable the RX part of the UART[/quote]
&lt;p&gt;I don&amp;acute;t need the RX part of the UART for my application. Where can I find this implementation&amp;nbsp;for disabling&amp;nbsp;the RX part&amp;nbsp;of the UART in NRF_LOG?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/274019?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 11:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed5d31c-e40a-47b4-a00c-2a178b208425</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. Is this the normal current consumption of the UART?[/quote]
&lt;p&gt;This depends a bit on which UART are used.&amp;nbsp;Both the&amp;nbsp;&lt;a title="  UART electrical specification  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uart.html?cp=4_2_0_49_10_0#unique_797521703"&gt;UART&lt;/a&gt;&amp;nbsp;and the&amp;nbsp;&lt;a title="  UARTE electrical specification  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=4_2_0_34_10_0#unique_958674283"&gt;UARTE&lt;/a&gt;&amp;nbsp;peripherals has a run current of 55 uA, but in addition, both requires the HFCLK to run, which is about 400 uA. The UARTE peripheral also adds the EasyDMA current of about 1.2 mA to the current, when the UART is active. These are numbers for 3.0V supply, I would expect them to be higher at 1.8V.&lt;/p&gt;
[quote user=""]2. Are there any ways to lower the current consumption of the UART?[/quote]
&lt;p&gt;You can try to for the UART library to use the legacy UART peripheral, by setting the following configs in your sdk_config.h file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifndef UART_LEGACY_SUPPORT
#define UART_LEGACY_SUPPORT 0
#endif


#ifndef UART0_CONFIG_USE_EASY_DMA
#define UART0_CONFIG_USE_EASY_DMA 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With these configs, I measure about 450 uA base current.&lt;/p&gt;
&lt;p&gt;Another option is to disable the RX part of the UART if you do not need this in your application. We have implemented this in NRF_LOG, and I measure 4 uA base current with this, as the UART peripheral is only active when a TX operation is happening. Since UART is asynchronous, there is no way to achieve this for RX, except having RX enabled at all times, or use additional control-signals to notify the chip in advance that a transfer will happen, to make it enable the RX mode.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART current consumption</title><link>https://devzone.nordicsemi.com/thread/273971?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e1914f-f8ad-4414-972d-7cf17c46caaf</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="93336" url="~/f/nordic-q-a/66914/uart-current-consumption"]1. Is this the normal current consumption of the UART?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote userid="93336" url="~/f/nordic-q-a/66914/uart-current-consumption"]2. Are there any ways to lower the current consumption of the UART?[/quote]
&lt;p&gt;Not without deactivating the peripherial. UART(E) will keep the HFCLK on in order to be able to transmit/receive.&lt;/p&gt;
&lt;p&gt;You can lower the &lt;em&gt;current&lt;/em&gt; consumtion by using the integrated DCDC from a higher operating voltage (e.g. 3V3 instead of 1V8), but this won&amp;#39;t help you when your design is intended for 1V8 operation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>