<?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>nrf52 with LDO setup consum 10 uA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32486/nrf52-with-ldo-setup-consum-10-ua</link><description>I set up my nrf52 self board with internal LDO using reference schematics with internal LDO setup. 
 Im entering the power safe mode using __WFE instruction 
 
 Also i did the same with nrf51 but it has DC/DC converter mode. In nrf51 case current consumtion</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Oct 2018 03:34:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32486/nrf52-with-ldo-setup-consum-10-ua" /><item><title>RE: nrf52 with LDO setup consum 10 uA</title><link>https://devzone.nordicsemi.com/thread/151096?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 03:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c083e1c-065d-448b-b834-a157a6cd97a6</guid><dc:creator>Amigo</dc:creator><description>&lt;p&gt;No, it seems to be like that! The current is 5 - 9 uA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 with LDO setup consum 10 uA</title><link>https://devzone.nordicsemi.com/thread/150810?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 08:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ef6863a-d028-421c-8a87-d2aa3b754b54</guid><dc:creator>Beike</dc:creator><description>&lt;p&gt;I has meet the same problem, have you solved it? can anyone help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 with LDO setup consum 10 uA</title><link>https://devzone.nordicsemi.com/thread/125642?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 06:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc6d69e7-e9c5-40fa-bc26-6087f18bfe8a</guid><dc:creator>Amigo</dc:creator><description>&lt;p&gt;Dont you have any idea about my ansver below?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 with LDO setup consum 10 uA</title><link>https://devzone.nordicsemi.com/thread/125641?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 06:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:748c1da5-b505-4706-9358-e59a6568aea1</guid><dc:creator>Amigo</dc:creator><description>&lt;p&gt;Dont you have no idea about my ansver below!?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 with LDO setup consum 10 uA</title><link>https://devzone.nordicsemi.com/thread/125030?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 14:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:197b0093-2d1a-41fb-8301-210a58237570</guid><dc:creator>Amigo</dc:creator><description>&lt;p&gt;&lt;img alt="My schematics" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7288.nordic.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Here is board schematics overhead.&lt;/p&gt;
&lt;p&gt;My GPIO&amp;nbsp; &lt;span&gt;setting&amp;nbsp;&lt;/span&gt;and clock setting functions:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;bool clocks_set(uint8_t source, bool state )
{
	NRF_CLOCK-&amp;gt;CTIV = 16;
	if(source == XTAL_HF)
	{
		if(state == true)
		{
				#if defined (NRF51822)
						NRF_CLOCK-&amp;gt;XTALFREQ = CLOCK_XTALFREQ_XTALFREQ_16MHz &amp;lt;&amp;lt; CLOCK_XTALFREQ_XTALFREQ_Pos;
				#endif
				NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
				NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
				while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
		}
		else if(state == false){
			// если генератор запущен
			NRF_CLOCK-&amp;gt;TASKS_HFCLKSTOP = 1;
			__NOP;
		}
		return (bool)(NRF_CLOCK-&amp;gt;HFCLKSTAT &amp;gt;&amp;gt; CLOCK_HFCLKSTAT_STATE_Pos);
	}
	else if(source == XTAL_LF)
	{
		if(state == true)
		{
			// если генератор не запущен
			NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos;
			NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0;
			NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
			while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0);
		}
		else if(state == false){
			NRF_CLOCK-&amp;gt;TASKS_LFCLKSTOP = 1;
			__NOP;
		}
		return (bool)(NRF_CLOCK-&amp;gt;LFCLKSTAT &amp;gt;&amp;gt; CLOCK_LFCLKSTAT_STATE_Pos);
	}
}
/*****************************************************************************************************/
void gpio_init( void )
{
	uint32_t err_code;
	//bsp_board_leds_init();
	NVIC_DisableIRQ(GPIOTE_IRQn);	
	NRF_GPIOTE-&amp;gt;EVENTS_PORT = 0;
    #if defined (NRF51822)
	#elif defined (NRF52832)
		// Disable NFC pins
    NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
    NRF_UICR-&amp;gt;NFCPINS = UICR_NFCPINS_PROTECT_Disabled &amp;lt;&amp;lt; UICR_CUSTOMER_CUSTOMER_Pos;
    NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren&amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
	#endif
	// Светодиод - LED
	nrf_gpio_cfg_output(LED_0); 
	// Кнопка - Button
	nrf_gpio_cfg_sense_input(BUTTON, GPIO_PIN_CNF_PULL_Disabled &amp;lt;&amp;lt; GPIO_PIN_CNF_PULL_Pos, NRF_GPIO_PIN_SENSE_LOW); 
	// Геркон - Gerkon
	nrf_gpio_cfg_sense_input(GERKON, GPIO_PIN_CNF_PULL_Disabled &amp;lt;&amp;lt; GPIO_PIN_CNF_PULL_Pos, NRF_GPIO_PIN_SENSE_LOW); 
	NRF_GPIOTE-&amp;gt;INTENSET = GPIOTE_INTENSET_PORT_Enabled &amp;lt;&amp;lt; GPIOTE_INTENSET_PORT_Pos;   
}&lt;/pre&gt;There are no serious difference between nrf51822 and nrf52832 mcu code. But when i&amp;nbsp; use nrf51 current consuption is 1.5 - 2 ua against 10 uA with nrf52.&lt;/p&gt;
&lt;p&gt;Also i noticed that in a low power mode ( __WFE(); instruction) HF generator stay active and sourced by RC gain. I thought it will inactive when LF (32768 crystal) using in LPM.&lt;/p&gt;
&lt;p&gt;I cant use power off, becouse i need gpio&amp;nbsp;(gerkon) interrupt on LOW and HIGH level both (switching between low and high).&lt;/p&gt;
&lt;p&gt;I measure current consumption with my measuring tool with 0.1 uA resolution in LPM mode only. In RX &amp;amp; TX&amp;nbsp; modes it&amp;nbsp; consumes 14 - 20 mA as it is in datasheet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 with LDO setup consum 10 uA</title><link>https://devzone.nordicsemi.com/thread/124974?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 12:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60d3f517-c122-4a29-adc7-b617677a30ab</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey Roman,&lt;/p&gt;
&lt;p&gt;The nRF52 series uses LDO in refresh mode in sleep/system OFF. I expect you to get 0.3µA in system off. How do you measure the current consumption? What else is on your board that can draw current?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>