<?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>software TWI 1.3mA OFF MODE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3735/software-twi-1-3ma-off-mode</link><description>Using twi_sw_master have discovered that the nrf51422 E00 draws 1.3mA in off mode. 
 When the twi device is removed from the bus, the nrf51422 draws under 5uA in off mode. 
 I have created twi_hw_master.c correctly using SHORTS
 github.com/.../twi_hw_master</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Sep 2014 14:20:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3735/software-twi-1-3ma-off-mode" /><item><title>RE: software TWI 1.3mA OFF MODE</title><link>https://devzone.nordicsemi.com/thread/13551?ContentTypeID=1</link><pubDate>Sat, 20 Sep 2014 14:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91843329-768a-431e-acf6-949f79e58218</guid><dc:creator>tim</dc:creator><description>&lt;p&gt;There were a number of challenges, but the problem was an interrupt pin was being pulled low. 1.38mA is the maximum driving current of the hmc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: software TWI 1.3mA OFF MODE</title><link>https://devzone.nordicsemi.com/thread/13550?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2014 06:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5709d9d7-4e6b-416d-bbec-8ef2c4beadf4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please edit your question to include the information. &lt;a href="https://devzone.nordicsemi.com/blogs/5/how-should-i-use-comments/"&gt;Read this if your are uncertain of how comments work.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: software TWI 1.3mA OFF MODE</title><link>https://devzone.nordicsemi.com/thread/13549?ContentTypeID=1</link><pubDate>Mon, 08 Sep 2014 20:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6c8b8d-4491-4094-80ff-ca221529df48</guid><dc:creator>tim</dc:creator><description>&lt;p&gt;correction the system_off_mode_enter function works with soft device.
After releasing the hfclk I do not request it again and the result is less power consumption while bonded.&lt;/p&gt;
&lt;p&gt;The complete power consumption nrf51422 and mpu6500 in off state is about 20uA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: software TWI 1.3mA OFF MODE</title><link>https://devzone.nordicsemi.com/thread/13548?ContentTypeID=1</link><pubDate>Mon, 08 Sep 2014 19:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d2a415b-5f22-42b4-9c77-0c775b3b5191</guid><dc:creator>tim</dc:creator><description>&lt;ul&gt;
&lt;li&gt;I have tried twi_hw_master.c and twi_sw_master.c
with the following system off function.&lt;/li&gt;
&lt;li&gt;It still does not reduce the power below 1.3mA called from within on_ble_evt&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;see&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void on_ble_evt(ble_evt_t * p_ble_evt)
    {
    //........
        case BLE_GAP_EVT_TIMEOUT:
            if (p_ble_evt-&amp;gt;evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISEMENT)
            {
    // Go to system-off mode (this function will not return; wakeup will cause a reset)
                system_off_mode_enter();
            }
            break;
    //.....
    }
        
            void system_off_mode_enter(void)
            {
                uint32_t err_code;
                /*
                * OFF STATE
                */
                all_timers_stop();
           
                NRF_TWI1-&amp;gt;ENABLE  = (TWI_ENABLE_ENABLE_Disabled &amp;lt;&amp;lt; TWI_ENABLE_ENABLE_Pos);
                NRF_TWI1-&amp;gt;POWER   = 0;
                sd_clock_hfclk_release();
                nrf_delay_ms(1000);
                err_code = sd_power_system_off();
                APP_ERROR_CHECK(err_code);
            }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: software TWI 1.3mA OFF MODE</title><link>https://devzone.nordicsemi.com/thread/13547?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 06:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66889039-2294-4032-b38e-f4470a14081c</guid><dc:creator>tim</dc:creator><description>&lt;p&gt;Yes, I perform a hard power reset, with the jtag disconnected before taking current measurements. I use the same testing process with and without the twi device attached.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When the twi device is attached the off state current is 1.3mA, combined the twi device itself consuming under 10uA (I verified this by hacking the hardware)&lt;/li&gt;
&lt;li&gt;When the twi device is detached the off state current is under 5uA, approximate 3uA&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: software TWI 1.3mA OFF MODE</title><link>https://devzone.nordicsemi.com/thread/13546?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 05:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79ffc56f-39c6-45cf-b35f-d190e1240ffb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Did you do a full reset (removing and re-applying the voltage to the chip) to disable the debug interface? Before doing the current measurement? Please see &lt;a href="https://devzone.nordicsemi.com/question/69/why-does-my-nrf51822-consume-1-ma-in-sleep/"&gt;this question&lt;/a&gt; for more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>