<?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>TWI Low power mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36978/twi-low-power-mode</link><description>Dear Nordic Team, 
 Thanks for support 
 Currently i am work with VL53L0X in ble_uart_app example. it working fine , but its take 5ma current. How can i use TWI in low power mode. Please suggest anyone. 
 SDK =12.3.0 , SD=s132. 
 My Code :</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Aug 2018 07:32:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36978/twi-low-power-mode" /><item><title>RE: TWI Low power mode</title><link>https://devzone.nordicsemi.com/thread/142523?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 07:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1468019-5519-45c8-bf2e-5e9ed346b85a</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;&amp;nbsp;Problem solved. I am just add few lines in&amp;nbsp; power manage function&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;static void power_manage(void) &amp;quot; . Anyway thank you&amp;nbsp;@&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;static void power_manage(void)&lt;br /&gt;{&lt;br /&gt; #if (__FPU_USED == 1)&lt;br /&gt; __set_FPSCR(__get_FPSCR() &amp;amp; ~(0x0000009F)); &lt;br /&gt; (void) __get_FPSCR();&lt;br /&gt; NVIC_ClearPendingIRQ(FPU_IRQn);&lt;br /&gt; #endif&lt;br /&gt; __WFE();&lt;br /&gt; &lt;br /&gt; uint32_t err_code = sd_app_evt_wait();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Low power mode</title><link>https://devzone.nordicsemi.com/thread/142487?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 04:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d7ac973-e6ca-4eda-8371-3240086f92e3</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;When i need battery value i call this function . That time only take 5 ma Current. After few seconds going to 50uA.&lt;/p&gt;
&lt;p&gt;void Read_Battery_Volt(void){&lt;br /&gt; uint32_t err_code;&lt;br /&gt; adc_configure();nrf_delay_ms(10);&lt;br /&gt; err_code = nrf_drv_saadc_sample();&lt;br /&gt; APP_ERROR_CHECK(err_code);nrf_delay_ms(10);&lt;br /&gt; err_code = nrf_drv_saadc_sample();&lt;br /&gt; APP_ERROR_CHECK(err_code);nrf_delay_ms(10);&lt;br /&gt; err_code = nrf_drv_saadc_sample();&lt;br /&gt; APP_ERROR_CHECK(err_code);nrf_delay_ms(10);&lt;br /&gt; nrf_drv_saadc_uninit();&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Low power mode</title><link>https://devzone.nordicsemi.com/thread/142356?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 10:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b800c40f-34ab-4efa-9952-d95b587d2271</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you mind sharing the configuration of the SAADC driver?&amp;nbsp;&lt;br /&gt;Are you putting the CPU to sleep whenever you&amp;#39;re not using it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Low power mode</title><link>https://devzone.nordicsemi.com/thread/142301?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 07:04:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f5791b0-220f-4422-a343-81cad97c8b4a</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thanks for reply. My ADC part also take 5ma but it is going to disabled and consume low current. But i cant disable the TWI module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI Low power mode</title><link>https://devzone.nordicsemi.com/thread/142169?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 12:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ce458e1-6255-453a-9a6c-9b98ffd95099</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;you need to take care when using the drivers in blocking mode as the nrf_delay_ms() functions are implemented as asm NOP instructions and it will therefore not put the CPU to sleep. If you want to sleep while waiting you need to set up an RTC to time out after the given timout period and put the CPU to sleep with the following calls:&lt;br /&gt;__WFE();&lt;/p&gt;
&lt;p&gt;__SEV();&lt;/p&gt;
&lt;p&gt;__WFE();.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>