<?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 Enable/Disable with sdk v1.3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63714/uart-enable-disable-with-sdk-v1-3-0</link><description>Greeting, 
 We are in process of upgrading from sdk1.1.0 to sdk 1.3.0. In order to use less current, we have to enable and disable uarts during program exectution: 
 
 Our code this far has been as follows: 
 With this code, afer uart is disabled, we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 May 2023 13:06:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63714/uart-enable-disable-with-sdk-v1-3-0" /><item><title>RE: UART Enable/Disable with sdk v1.3.0</title><link>https://devzone.nordicsemi.com/thread/425872?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 13:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc55770-d6f0-45b2-ba78-4a036c089ddc</guid><dc:creator>Lamdev</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/tjaz"&gt;Tjaz&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At which level did you succeed to reduce the power consumption ?&lt;/p&gt;
&lt;p&gt;Do you have code sample for your UART shutdown ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Enable/Disable with sdk v1.3.0</title><link>https://devzone.nordicsemi.com/thread/260064?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 08:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5133524a-1913-43b5-952e-356190f3cf7f</guid><dc:creator>Tjaz</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;sorry.&lt;/p&gt;
&lt;p&gt;We use uart0 and uart1 (one for debug, and one to communicate with another chip). I was testing by enabling/disabling only uart1, but turns out, if I disable both, power consumption drops as expected.&lt;/p&gt;
&lt;p&gt;Sorry for the trouble.&lt;/p&gt;
&lt;p&gt;For others looking at this thread, both methods work (using the new power management api and using the registers directly).&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Tjaž&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Enable/Disable with sdk v1.3.0</title><link>https://devzone.nordicsemi.com/thread/260049?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 07:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:521e1577-febb-4d35-af1b-0305861644c2</guid><dc:creator>Tjaz</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have tried both GPIO_INPUT and GPIO_DISCONNECTED insted of GPIO_OUTPUT:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;gpio_pin_configure(gpio_dev, PIN_UART_0_RX, GPIO_DISCONNECTED);
gpio_pin_configure(gpio_dev, PIN_UART_0_TX, GPIO_DISCONNECTED);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;gpio_pin_configure(gpio_dev, PIN_UART_0_RX, GPIO_INPUT);
gpio_pin_configure(gpio_dev, PIN_UART_0_TX, GPIO_INPUT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Both have the same effect on power consumption as GPIO_OUTPUT - none.&lt;/p&gt;
&lt;p&gt;Again, to &lt;strong&gt;reiterate&lt;/strong&gt;:&amp;nbsp;&lt;br /&gt;The code I posted used &lt;strong&gt;to work&amp;nbsp;&lt;/strong&gt;for us, and we saw power consumption drop, this means that the UART peripheral device did in fact &amp;quot;shut down&amp;quot; and get cut from power.&lt;/p&gt;
&lt;p&gt;Now, with sdk v1.3.0, this no longer happens.&lt;/p&gt;
&lt;p&gt;Even if setting the pins to output causes the nRF to &amp;quot;use power to keep it low&amp;quot; as you stated, the power consumption should still change (drop), since the UART device&amp;nbsp;should be&amp;nbsp;disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Enable/Disable with sdk v1.3.0</title><link>https://devzone.nordicsemi.com/thread/259941?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 14:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b633563f-767e-45db-98e7-a5ed06229337</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Tja&lt;span&gt;ž,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For lowest current consumption, the pins should be set to disconnected input. Can you please try to set this in the uart_0_disable() function?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when you set it to output, the nRF will use power to keep the pin low. Especially if there is something else in the other end trying to pull it high.&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;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>