<?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>ON mode IDLE power &amp;gt;2mA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3348/on-mode-idle-power-2ma</link><description>2mA in ON mode (IDLE) far too much.
One timer should running to wake the device up after one minute, to take a measurement before going to sleep. 
 
 nRF51422_PS_v2.1 
 
 2.6 μA at 3 V ON mode, all blocks IDLE 
 
 How do I see what peripherals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Aug 2014 00:33:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3348/on-mode-idle-power-2ma" /><item><title>RE: ON mode IDLE power &gt;2mA</title><link>https://devzone.nordicsemi.com/thread/12208?ContentTypeID=1</link><pubDate>Mon, 11 Aug 2014 00:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fbcf513-97f7-4f06-923c-4f6102083e80</guid><dc:creator>tim</dc:creator><description>&lt;p&gt;Should I continue the question I have or open a new question.&lt;/p&gt;
&lt;p&gt;I am a little confused, because I am not answer my question.
I am further explaining it. And the comment field does not allow full formating&lt;/p&gt;
&lt;p&gt;I am using TWI sw master.
I am quite sure I have the TWI disabled.
keil shows the twi1 and twi2 enable = 0 and power = 0&lt;/p&gt;
&lt;p&gt;How large should the unused TWI time be, for TWI STOP to be beneficial?&lt;/p&gt;
&lt;p&gt;Are referring to
twi_master_transfer(address, &amp;amp;value,len, TWI_ISSUE_STOP)
or
NRF_TWI1-&amp;gt;TASKS_STOP (I assume this is only for twi_hw_master)&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I am using RTC1 to keep track of relative time. Absolute time is not required.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;time = APP_TIMER_MILLISEC(NRF_RTC1-&amp;gt;COUNTER, APP_TIMER_PRESCALER);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I am using timers as defined in app_timer.c
NRF_RTC1&lt;/p&gt;
&lt;p&gt;I have created disable enable functions.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void temp_disable(void)
{
    //not nice or polite, HARD DISABLE without checking
    //must remember to enable when needed
    NRF_TEMP-&amp;gt;POWER = 0;
}
void temp_enable(void)
{
    //must remember to enable when needed
    NRF_TEMP-&amp;gt;POWER = 1;
}

void gpiote_disable(void)
{
    //not nice or polite, HARD DISABLE without checking
    //must remember to enable when needed
    NRF_GPIOTE-&amp;gt;INTENSET = 0;
    NRF_GPIOTE-&amp;gt;POWER = 0;
}


    void twi_master_disable(void)
    {
        //not nice or polite, HARD DISABLE without checking
        //must remember to enable when needed
        NRF_TWI1-&amp;gt;ENABLE  = (TWI_ENABLE_ENABLE_Disabled &amp;lt;&amp;lt; TWI_ENABLE_ENABLE_Pos);
        NRF_TWI1-&amp;gt;POWER   = 0;
        NRF_TWI0-&amp;gt;ENABLE  = (TWI_ENABLE_ENABLE_Disabled &amp;lt;&amp;lt; TWI_ENABLE_ENABLE_Pos);
        NRF_TWI0-&amp;gt;POWER   = 0;
    }





    void adc_disable(void)
    {
        //not nice or polite, HARD DISABLE without checking
        //must remember to enable when needed
        NRF_ADC-&amp;gt;ENABLE  = (ADC_ENABLE_ENABLE_Disabled &amp;lt;&amp;lt; ADC_ENABLE_ENABLE_Pos);
        NRF_ADC-&amp;gt;POWER   = 0;
        NRF_ADC-&amp;gt;ENABLE  = (ADC_ENABLE_ENABLE_Disabled &amp;lt;&amp;lt; ADC_ENABLE_ENABLE_Pos);
        NRF_ADC-&amp;gt;POWER   = 0;
    }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ON mode IDLE power &gt;2mA</title><link>https://devzone.nordicsemi.com/thread/12207?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2014 12:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2ea1d74-ac76-4b24-bde5-1fe1e4209baf</guid><dc:creator>tim</dc:creator><description>&lt;p&gt;Working through this I &amp;quot;think&amp;quot; it is the wakeup timer that is requiring the 16MHz clock.&lt;/p&gt;
&lt;p&gt;How do I set up a wake up timer using the RTC which only requires the 32KHz?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ON mode IDLE power &gt;2mA</title><link>https://devzone.nordicsemi.com/thread/12206?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2014 12:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a424c278-4d29-43fc-aa46-7c799ebf0c39</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The nRF is going into sleep, but the 16M clock source is being kept alive as one of the peripherals that requires the clock is still running. You can see a complete list of the peripherals requiring the 16M clock in the chapter &amp;quot;8.3 Block resource requirements&amp;quot;.&lt;/p&gt;
&lt;p&gt;While debugging, you can see the state of all peripherals by accessing them from the tab &amp;quot;Peripherals&amp;quot;. Set a breakpoint right before going into sleep mode, and see which of the peripherals are still running, and may be causing the 0.7 mA current consumption.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ON mode IDLE power &gt;2mA</title><link>https://devzone.nordicsemi.com/thread/12205?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2014 05:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5face3d2-6d0f-4057-bcd5-530da356a2bd</guid><dc:creator>scytulip</dc:creator><description>&lt;p&gt;Have you tried setting -&amp;gt;POWER property, such as UART0-&amp;gt;POWER = 0; I think -&amp;gt;ENABLE is just turning on/off the block in software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>