<?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>nRF51 Stop/Start UART function to save energy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12583/nrf51-stop-start-uart-function-to-save-energy</link><description>Hi. I&amp;#39;m using PCA10028, SDK10.0.0, S130. 
 Q1. I want UART to start or stop whenever I want. It&amp;#39;s to save current consumption.
There is &amp;quot;uart_init()&amp;quot; for reference, but I don&amp;#39;t know how to stop it. 
 Q2. As I&amp;#39;ve tested, uart_init() function time is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Sep 2016 13:46:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12583/nrf51-stop-start-uart-function-to-save-energy" /><item><title>RE: nRF51 Stop/Start UART function to save energy</title><link>https://devzone.nordicsemi.com/thread/47784?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 13:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:290b8f6a-70fd-4b4b-bddb-296fa71fe3ae</guid><dc:creator>Vala</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using APP_UART_FIFO_INIT function (SDK 11) for initilizing the UART. For un-initializing it I tried both app_uart_close and nrf_drv_uart_uninit but still after calling the initialization function the err_code is so that it restarts the device. Currently I am using NVIC_SystemReset to reset the device after disconnecting from UART and to be able to initialize it again. Is there any better solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Stop/Start UART function to save energy</title><link>https://devzone.nordicsemi.com/thread/47783?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2016 08:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad35d642-dc50-49d5-ac65-7607c07915e7</guid><dc:creator>roger.k</dc:creator><description>&lt;p&gt;Thanks a lot. It&amp;#39;s so helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Stop/Start UART function to save energy</title><link>https://devzone.nordicsemi.com/thread/47782?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 11:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5dba5b7-f884-49de-8c4a-40b65082261f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;To save energy you can use the hardware flow control to turn off uart when it is not needed. Unfortunately this is not an option currently in our SDK and not easy to do. You could init/uinit uart using nrf_drv_uart_init()/uninit(), but I am not sure if this will work out of the box.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/nrf51-UART-examples/tree/master/ble_app_uart_low_power/ble_app_uart_low_power_slave"&gt;This example&lt;/a&gt; on github use hardware flow control or other gpio pins to turn off uart when it is not needed. It use SDK 6.1 and a port is not easy. I will make an internal request for low power uart in our SDK as this is needed.&lt;/p&gt;
&lt;p&gt;About uart_init() function taking 340ms, are you sure about that? Measuring the time on APP_UART_FIFO_INIT(..) i get about 53us.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>