<?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>ble_peripheral\ble_app_uart  current is big even diabled the uart peripheral.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33943/ble_peripheral-ble_app_uart-current-is-big-even-diabled-the-uart-peripheral</link><description>i use ble_app_uart to send data to centrol, and i don&amp;#39;t need the UART peripheral, so diabled uart with it: NRF_UART0-&amp;gt;ENABLE = UART_ENABLE_ENABLE_Disabled; 
 but the problem is the current still is big, I set the APP_ADV_INTERVAL = 1000 , the current</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 May 2018 06:58:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33943/ble_peripheral-ble_app_uart-current-is-big-even-diabled-the-uart-peripheral" /><item><title>RE: ble_peripheral\ble_app_uart  current is big even diabled the uart peripheral.</title><link>https://devzone.nordicsemi.com/thread/130919?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 06:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62174163-20e7-4dfd-b57f-36e84257dc5c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to hear that you found the culprit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The GPIOTE peripheral can either use the IN event or the PORT event to trigger an interrupt. The IN event requires the HFCLK to be running, even when you go to sleep. The Port event on the other hand does not require the HFCLK to be running, but the GPIOTE PORT event can only detect one pin at the time. If you have several pins triggering the PORT event, the event will only trigger once. This due to a DETECT signal in the GPIOTE core which is muxed with all the GPIOs configured with wakeup.&lt;/p&gt;
&lt;p&gt;If you only need to detect one external GPIO asserting at the time then you can simply change .&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/structnrf__drv__gpiote__in__config__t.html#a12f540cc96a043c443c13a49a11d91a0"&gt;hi_accuracy&lt;/a&gt;&amp;nbsp;from true to false in&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/structnrf__drv__gpiote__in__config__t.html"&gt;nrf_drv_gpiote_in_config_t&lt;/a&gt;&amp;nbsp;struct&amp;nbsp;passed to the nrf_drv_gpiote_in_init() call that initializes the input pin.&lt;/p&gt;
&lt;p&gt;If you need to detect multiple pins asserting at the same time then I recommend that you use the&amp;nbsp;fw-library app_gpiote. This library allows the user to have multiple wake-up sources, because the library inverts the wakeup polarity on the specific pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_peripheral\ble_app_uart  current is big even diabled the uart peripheral.</title><link>https://devzone.nordicsemi.com/thread/130866?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 15:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51ad217d-dabe-4333-bce2-fcf078a1b2ad</guid><dc:creator>Carey</dc:creator><description>&lt;p&gt;Hi, thanks , at last i have found the reason,it&amp;#39;s just because i have used the GPIOTE, if i comment out the &amp;quot;gpiote_init();&amp;quot;, the current is less than 60uA, &amp;nbsp;but i need to interrupt from external GPIO input. How to acheve it and also can make sure low power consumption?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_peripheral\ble_app_uart  current is big even diabled the uart peripheral.</title><link>https://devzone.nordicsemi.com/thread/130755?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 08:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bca4885-ebf3-4f92-90f4-aed9a072066f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Did you comment out the code that I pointed out in my previous comment? In the application you can set the Low Frequency Clock Source, i.e. either the external 32kHz crystal or the internal 32kHz RC oscillator. The nRF51 will then exclusively use the configured clock source when ever a 32kHz clock is needed.&lt;/p&gt;
&lt;p&gt;For the 16MHz clocks its a bit different.&amp;nbsp;The nRF51 will automatically switch to the 16MHz XOSC&amp;nbsp; when the Radio is used and back the internal 16MHz RC when the Radio event is over. This means that if the radio is not active and the CPU or a peripheral&amp;nbsp;requiring a 16MHz clock, then the 16MHz RC will be running.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You must make sure that all peripherals that require a 16MHz clock is disabled before entering sleep mode. Otherwise the peripheral and the clock will still be active even though the CPU is sleeping.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_peripheral\ble_app_uart  current is big even diabled the uart peripheral.</title><link>https://devzone.nordicsemi.com/thread/130655?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 16:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39f670f1-98fd-4cb9-8e7b-0094691853a6</guid><dc:creator>Carey</dc:creator><description>&lt;p&gt;I have not see any useful infomation about RC oscillator in uart_init() and app_uart_put(), but i have compared the differents between&amp;nbsp;&lt;span&gt;ble_app_blinky and&amp;nbsp;ble_app_uart, the&amp;nbsp;ble_app_blinky it configed in 16M crystal in all time, but&amp;nbsp;ble_app_uart after configed to 16M crystal, if continue to run, sometims it can changed back &amp;nbsp;to 16M RC , it&amp;#39;s very strangely , &amp;nbsp;why sometimes it changed back to 16M RC, sometimes would not change until reset?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_peripheral\ble_app_uart  current is big even diabled the uart peripheral.</title><link>https://devzone.nordicsemi.com/thread/130571?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7c373fc-a49b-40dd-a46d-c88857d143bc</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Carey,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the 700uA current consumption indicates that the 16MHz RC oscillator is still running.&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Run current for 16 MHz RC oscillator: 750μA&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So could you&amp;nbsp;instead of just disabling the UART peripheral comment out uart_init() in main() as well as comment out references to&amp;nbsp;app_uart_put() in main.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_peripheral\ble_app_uart  current is big even diabled the uart peripheral.</title><link>https://devzone.nordicsemi.com/thread/130360?ContentTypeID=1</link><pubDate>Tue, 01 May 2018 07:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:123129ed-586a-4b60-938e-2217e0e95b3a</guid><dc:creator>Carey</dc:creator><description>&lt;p&gt;i use the SDK11.0 &amp;nbsp; &amp;nbsp; nrf51822&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>