<?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>nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52496/nrf9160-uart-pull-up-and-power-consumption</link><description>hi all, i&amp;#39;m trying to disable uart for lower power consumption, i&amp;#39;ve disables it with: but when i measure the voltage on the rx pin i see 1.8V (this seems to consume current on the device on the other side of the uart interface - which is turned off </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Nov 2019 20:45:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52496/nrf9160-uart-pull-up-and-power-consumption" /><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/219168?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 20:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c897f3c1-769b-4a00-8fe5-6a23d02a088f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You cannot disable/enable the DMA. This is done in hardware, and not controllable by the application.&lt;/p&gt;
&lt;p&gt;Can you please post your code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/219109?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 14:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c4c602d-8bab-4937-827b-133013eecc23</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;this didn&amp;#39;t work...&lt;/p&gt;
&lt;p&gt;do I need the disable the DMA too somehow ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218737?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 08:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ecf8fc4-2a69-4f78-8bad-109851aac436</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Could you post your enable and disable routine?&amp;nbsp;&lt;/p&gt;
[quote user="MosheSmartAmr"]if I disable UART&amp;nbsp; before sending/receiving, i get stuck on&amp;nbsp;&amp;nbsp;while(NRF_UARTE1-&amp;gt;EVENTS_RXTO==0); after stopping RX.[/quote]
&lt;p&gt;Try setting the event to 0 before stopping the RX:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_UARTEx-&amp;gt;EVENTS_RXTO = 0; 
NRF_UARTEx-&amp;gt;TASKS_STOPRX = 1; 
while(NRF_UARTEx-&amp;gt;EVENTS_RXTO==0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218667?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 17:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a8981f4-0ea7-4fe2-a0ed-4a94ba119eb2</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Do I need any special handling if I am using the UART DMA?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;it seems to go wrong when I disable and enable it .&lt;/p&gt;
&lt;p&gt;i.e.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. if I disable UART&amp;nbsp; before sending/receiving, i get stuck on&amp;nbsp;&amp;nbsp;while(NRF_UARTE1-&amp;gt;EVENTS_RXTO==0); after stopping RX.&lt;/p&gt;
&lt;p&gt;2. lf it is disabled after an initial connection, I receive garbage from the uart.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;any suggestions?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218528?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 12:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:126247a8-1ed9-4ae7-bfb5-1b08890b5cc1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="MosheSmartAmr"]also how do I re-enable uart after the code you suggested above.[/quote]
&lt;p&gt;&amp;nbsp;You store the INTENCLR mask, then set that via INTENSET, and the same goes to all other parameters that are &amp;quot;unset&amp;quot; from the disable function. Note that you strictly do not need to clear the PSEL registers. Then you start the TX and RX via its respective tasks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are events that can be generated when entering/exiting sleep, in the POWER peripheral:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/power.html?cp=2_0_0_4_2_0"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/power.html?cp=2_0_0_4_2_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However; they are not really meant to enable interrupts on, as that would again wake you up, thus it&amp;#39;ll defeat the purpose if you hook onto these events to do CPU processing. They are however very useful to see how often the CPU sleeps if you set/clear a GPIO on these events via PPI and GPIOTE, and look at it using a logic analyzer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218497?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 10:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f4afb3c-2564-4bd1-9c58-2df532496b4a</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;also how do I re-enable uart after the code you suggested above.&lt;/p&gt;
&lt;p&gt;(specifically after setting NRF_P0_NS-&amp;gt;OUTCLR = (1 &amp;lt;&amp;lt; TXD_PIN);)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218489?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 09:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41154c5-36a7-424e-a94f-33fbbc645685</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&amp;nbsp;Hakon,&lt;/p&gt;
&lt;p&gt;Your last answer seemed to direct me to the answer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;there was an issue with the SW flow,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;which leaves the question, is there a way to get an event / interrupt when leaving sleep mode (so I can re-enable uart) ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards ,&lt;/p&gt;
&lt;p&gt;Moshe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218285?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 14:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e05e5fee-568a-42f0-89a4-c22896af5723</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If the current consumption does not come from VDD_IO, then it should not be related to the IO settings at all, but more in the program flow.&lt;/p&gt;
&lt;p&gt;Is there any functions running after disabling the uart which tries to use it again? So that the firmware goes into a bad state, causing the high current consumption?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re unsure if this comes from VDD_IO, could you try setting it to a input instead of output?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Input, connected, with pull-down
NRF_P0_NS-&amp;gt;PIN_CNF[pin_used] = 0x4;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218222?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 13:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:badec122-b904-4c24-8b00-4887cf98164c</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;unfortunately that did not work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;still getting the same consumption&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218187?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 11:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016fe451-da72-42e8-89ad-b1d8e7536982</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You can clear the&amp;nbsp;events that are set (EVENTS_*), disable the interrupts (Write 0xFFFFFFFF to NRF_UARTEx-&amp;gt;INTENCLR), and see if this has any effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218174?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 10:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d159f733-351c-408a-8f88-aa29f21bb0da</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any reason that the NRF91 will be awaken once&amp;nbsp;I disable uart.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;could the uart module do that internally? is there a way to disable the uart&amp;#39;s module ability to interrupt the NRF91 from sleep ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218173?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 10:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e860e7-3cd3-4f86-9d06-85a25d0baacb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This should not affect the PSM mode, but it might affect the application in terms of sleep routines.&lt;/p&gt;
&lt;p&gt;Is there anything specific that happens when you have disabled the UART? Are you able to see if the nRF9160 is awoken from sleep by anything unpredictable?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218161?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 09:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37729f60-d64f-4c70-9554-5e0ed73c4445</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;just to be clearer:&lt;/p&gt;
&lt;p&gt;1. the pin is actually pulled down right now.&lt;/p&gt;
&lt;p&gt;2. working in power optimmization mode (PSM), Nordic now consumes 2.5ma&amp;nbsp; (not on Vio).&lt;/p&gt;
&lt;p&gt;3. before applying what suggested here, nordic consumed 70ua on power optimization mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/218079?ContentTypeID=1</link><pubDate>Sun, 03 Nov 2019 14:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:525b6e0c-9708-41e0-bf6c-9537bc061562</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could this be in any way interfering with low power (PSM) mode ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;although the&amp;nbsp;pin is now down,&amp;nbsp; the current draw is 2.5ma.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/216321?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 09:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e985ef4d-1361-427d-9067-aafa8c83a39c</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Thanks !! it worked !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/216096?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 09:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0e86d8d-c7e1-440f-b19b-c52d60bf2611</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When the UART is disabled, the RXD is left as an input, and TXD is left as an output (with high level).&lt;/p&gt;
&lt;p&gt;This is the routine that I have tested your scenario with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;misc/printk.h&amp;gt;
#include &amp;lt;uart.h&amp;gt;

#define TXD_PIN 19

static u8_t uart_buf[1024];

void uart_cb(struct device *x)
{
	uart_irq_update(x);
	int data_length = 0;

	if (uart_irq_rx_ready(x)) {
		data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));
		uart_buf[data_length] = 0;
	}
	printk(&amp;quot;%s&amp;quot;, uart_buf);
}

void main(void)
{
	struct device *uart = device_get_binding(&amp;quot;UART_1&amp;quot;);

	uart_irq_callback_set(uart, uart_cb);
	uart_irq_rx_enable(uart);
	printk(&amp;quot;UART loopback start!\n&amp;quot;);
	while (1) {
		static u32_t wakeup_cnt;		
		k_cpu_idle();
		wakeup_cnt++;
		if (wakeup_cnt &amp;gt; 40) {
			wakeup_cnt = 0;
			NRF_UARTE1-&amp;gt;TASKS_STOPRX=1;
			while(NRF_UARTE1-&amp;gt;EVENTS_RXTO == 0);
			NRF_UARTE1-&amp;gt;EVENTS_RXTO = 0;

			NRF_UARTE1-&amp;gt;TASKS_STOPTX = 1;
			while(NRF_UARTE1-&amp;gt;EVENTS_TXSTOPPED == 0);
			NRF_UARTE1-&amp;gt;EVENTS_TXSTOPPED = 0;
			
			NRF_UARTE1-&amp;gt;ENABLE = 0;
			NRF_UARTE1-&amp;gt;PSEL.TXD = 0xFFFFFFFF;
			NRF_P0_NS-&amp;gt;OUTCLR = (1 &amp;lt;&amp;lt; TXD_PIN);
		}
	}
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This code assumes that I loopback UART0:TXD to UART1:RXD, and when it has gotten 40 chars, it disconnects the UART1 interface completely.&lt;/p&gt;
&lt;p&gt;If I do not clear the GPIO, it is held high. When I run NRF_P0_NS-&amp;gt;OUTCLR = 1&amp;lt;&amp;lt;19;, the pin goes low again after disconnecting it from the UARTE1 peripheral.&lt;/p&gt;
&lt;p&gt;Could you try this and see if that works at your end?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/216078?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 08:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c9792e-06a9-4f6f-b1c3-9e843e3370fa</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the delay ,&lt;/p&gt;
&lt;p&gt;1.about&amp;nbsp;CONFIG_SERIAL=n, this is exactly wht i did .&lt;/p&gt;
&lt;p&gt;2. attaching again .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;just tried what you suggested (waiting for the event before disabling)&amp;nbsp;, thath did not work too ...&lt;/p&gt;
&lt;p&gt;overlay file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* SPDX-License-Identifier: Apache-2.0 */

&amp;amp;uart1 {
        current-speed = &amp;lt;115200&amp;gt;;
        compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
        status = &amp;quot;okay&amp;quot;;
        tx-pin = &amp;lt;19&amp;gt;;
        rx-pin = &amp;lt;18&amp;gt;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;dts file :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2018 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	model = &amp;quot;Nordic PCA10090 Dev Kit&amp;quot;;
	compatible = &amp;quot;nordic,pca10090-dk&amp;quot;, &amp;quot;nordic,nrf9160-sica&amp;quot;,
		     &amp;quot;nordic,nrf9160&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
	};

	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		led0: led_0 {
			gpios = &amp;lt;&amp;amp;gpio0 2 GPIO_INT_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 0&amp;quot;;
		};
		led1: led_1 {
			gpios = &amp;lt;&amp;amp;gpio0 3 GPIO_INT_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 1&amp;quot;;
		};
		led2: led_2 {
			gpios = &amp;lt;&amp;amp;gpio0 4 GPIO_INT_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 2&amp;quot;;
		};
		led3: led_3 {
			gpios = &amp;lt;&amp;amp;gpio0 5 GPIO_INT_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 3&amp;quot;;
		};
	};

	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Switch 1&amp;quot;;
		};
		button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 9 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Switch 2&amp;quot;;
		};
		button2: button_2 {
			gpios = &amp;lt;&amp;amp;gpio0 6 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Push button 1&amp;quot;;
		};
		button3: button_3 {
			gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Push button 2&amp;quot;;
		};
	};

	/* These aliases are provided for compatibility with samples */
	aliases {
		led0 = &amp;amp;led0;
		led1 = &amp;amp;led1;
		led2 = &amp;amp;led2;
		led3 = &amp;amp;led3;
		sw0 = &amp;amp;button2;
		sw1 = &amp;amp;button3;
		sw2 = &amp;amp;button0;
		sw3 = &amp;amp;button1;
	};
};

&amp;amp;adc {
	status =&amp;quot;ok&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;ok&amp;quot;;
};


&amp;amp;uart0 {
	status = &amp;quot;ok&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;26&amp;gt;;
	rx-pin = &amp;lt;30&amp;gt;;
};

/*
&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;29&amp;gt;;
	rx-pin = &amp;lt;28&amp;gt;;
	rts-pin = &amp;lt;27&amp;gt;;
	cts-pin = &amp;lt;26&amp;gt;;
};
*/
&amp;amp;uart1 {
	status = &amp;quot;ok&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;1&amp;gt;;
	rx-pin = &amp;lt;0&amp;gt;;
	rts-pin = &amp;lt;14&amp;gt;;
	cts-pin = &amp;lt;15&amp;gt;;
};

&amp;amp;i2c2 {
	status = &amp;quot;ok&amp;quot;;
	sda-pin = &amp;lt;12&amp;gt;;
	scl-pin = &amp;lt;31&amp;gt;;
};

&amp;amp;pwm0 {
	status = &amp;quot;ok&amp;quot;;
	ch0-pin = &amp;lt;2&amp;gt;;
};

&amp;amp;spi3 {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;timer0 {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;timer1 {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;timer2 {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;flash0 {
	/*
	 * For more information, see:
	 * http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
	 */
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x00000000 0x10000&amp;gt;;
		};
		slot0_partition: partition@10000 {
			label = &amp;quot;image-0&amp;quot;;
		};
		slot0_ns_partition: partition@40000 {
			label = &amp;quot;image-0-nonsecure&amp;quot;;
		};
		slot1_partition: partition@80000 {
			label = &amp;quot;image-1&amp;quot;;
		};
		slot1_ns_partition: partition@b0000 {
			label = &amp;quot;image-1-nonsecure&amp;quot;;
		};
		scratch_partition: partition@f0000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0x000f0000 0xa000&amp;gt;;
		};
		storage_partition: partition@fa000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x000fa000 0x00006000&amp;gt;;
		};
	};
};

/ {
	/* SRAM allocated and used by the BSD library */
	sram0_bsd: memory@20010000 {
		device_type = &amp;quot;memory&amp;quot;;
		compatible = &amp;quot;mmio-sram&amp;quot;;
	};

	/* SRAM allocated to the Non-Secure image */
	sram0_ns: memory@20020000 {
		device_type = &amp;quot;memory&amp;quot;;
		compatible = &amp;quot;mmio-sram&amp;quot;;
	};
};

/* Include partition configuration file */
#include &amp;quot;nrf9160_pca10090_partition_conf.dts&amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/214530?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 08:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d9e121a-06f5-4cf3-8648-b37441db639e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Moshe,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="MosheSmartAmr"]2. if I disable UART completely, I see the line on LOW.[/quote]
&lt;p&gt;&amp;nbsp;Never initialize it? ie: CONFIG_SERIAL=n?&amp;nbsp;&lt;/p&gt;
[quote user="MosheSmartAmr"]4. attached.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Looks like they weren&amp;#39;t attached. Could you try .zip&amp;#39;ing it and then attach it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you try disabling per the recommendation in the datasheet, ie: wait for the events on RX and TX before completely disabling the peripheral to see if this has a difference on the behavior?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/214281?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 07:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1f85356-23a4-4b56-ab7b-2908bdfd130c</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m pretty sure it is the NRF since the device on the other size is powered off.&lt;/p&gt;
&lt;p&gt;2. if I disable UART completely, I see the line on LOW.&lt;/p&gt;
&lt;p&gt;3. it is measured on a costum board.&lt;/p&gt;
&lt;p&gt;4. attached.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/213555?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 07:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ec26054-3dc1-4d21-a131-89f8402d7920</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Moshe,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you 100 % certain that its the nRF that is keeping this line high?&lt;/p&gt;
&lt;p&gt;If you power off only the nrf91, does the voltage drop to gnd?&lt;/p&gt;
&lt;p&gt;Is this measured on a nRF91-DK or a custom board?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it still is set high, can you please post any changed overlay/dts files?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: your stop/disable routines will not work as you intend them to, because when you issue TASKS_STOPRX=1, you have to wait for the EVENTS_RXTO to occur before you disable the UART instance (same goes for the TX, although its less of a change for that the occurring while you disable the peripheral), as stated here in the PS:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/uarte.html?cp=2_0_0_5_18_6#concept_twi_low_power"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/uarte.html?cp=2_0_0_5_18_6#concept_twi_low_power&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/213519?ContentTypeID=1</link><pubDate>Sun, 06 Oct 2019 12:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36b4e2df-7cce-42da-8628-68240bf93836</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;what I did was to disable&amp;nbsp;UART completely (from the code) and measure.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;however, the issue is that i still measure 1.8v on the uart pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;somehow nothing I do seems to disable the uart pull-up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/213509?ContentTypeID=1</link><pubDate>Sun, 06 Oct 2019 10:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0dca08a-af50-42d5-af07-be2fe8e91f9e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To get a baseline measurement, is it possible to&amp;nbsp;add a long sleep at the beginning of your code before you enable the UART instances, then try to measure the idle current? Or did you do that already?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/213508?ContentTypeID=1</link><pubDate>Sun, 06 Oct 2019 10:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6400e4bc-4959-4e9c-bf6e-67c2aa20e479</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. current consumption is around 1ma.&lt;/p&gt;
&lt;p&gt;2. Verified the GPIO&amp;#39;s from the register and they look ok, the pins that contols the external device I measured the voltage and it looks corrct.&lt;/p&gt;
&lt;p&gt;3. checked the ENABLE , they look ok .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/211959?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 07:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54cef3f8-02cf-4c89-9967-f410889accee</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Could you let me know the current consumption you see is? Here are some things you can try:&lt;/p&gt;
&lt;p&gt;- Verify GPIO pin configuration RX and TX by reading out the configuration registers with your debugger. Also, the pin that controls the power to the external device if you use an output pin for it.&lt;/p&gt;
&lt;p&gt;- If possible, get a baseline measurement by measuring the current consumption before enabling UARTE and power to external circuitries.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Check the enable registers for all UART instances.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 uart Pull-Up and power consumption</title><link>https://devzone.nordicsemi.com/thread/211958?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 07:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2b6ad1a-562f-41e2-a0ef-f2ceadbb96e3</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi Vidar ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&lt;span&gt;&amp;nbsp;Did you determine that based on the total current consumption?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;yes, I did.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I further debug this issue?&amp;nbsp;&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>