<?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>When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89656/when-using-gpioe-interrupt-to-drive-mems-the-power-consumption-is-up-to-470ua</link><description>When I set the GPIOE pin to float, NRF_DRV_gPIote_IN_config_t config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(true); 
 The power difference between true and false is 10uA, but when I set the GPIOE pin as the drive pin of MEMS, the power consumption is as high</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jul 2022 06:53:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89656/when-using-gpioe-interrupt-to-drive-mems-the-power-consumption-is-up-to-470ua" /><item><title>RE: When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/thread/375931?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 06:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:397b96e2-7c69-4568-9b5a-b75099468102</guid><dc:creator>Zhang|</dc:creator><description>&lt;p&gt;&lt;span&gt;I&amp;#39;ve seen the solution in the manual.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/thread/375930?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 06:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cb6d3ec-2ab6-47ab-a34f-c62ace5ccd57</guid><dc:creator>Zhang|</dc:creator><description>&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_1" data-section="0" data-sentence="0" data-group="0-0"&gt;hi，&lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_1" data-section="1" data-sentence="0" data-group="1-0"&gt;The use of SPI may be the reason, but I have to use SPI in this project, so I plan to use &lt;span style="text-decoration:underline;"&gt;Port Event&lt;/span&gt; mode to control the interruption of GPIOE, and this method is feasible.&lt;/span&gt;&lt;span class="tgt color_text_1" data-section="1" data-sentence="1" data-group="1-1"&gt; As for the power consumption problem, I think I may have solved it for now. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="2"&gt;&lt;span class="tgt color_text_1" data-section="2" data-sentence="0" data-group="2-0"&gt;Thank you very much for your answer to my question. Finally, I would like to ask: is it inevitable that the power consumption of up to 400uA occurs in the configuration of GPIOE when SPI/TWI is running?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/thread/375693?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 08:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a6edb62-9882-41e1-b7cd-8a5770b91738</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The power consumption should not be 470 uA with this setup. The GPIO is configured as an input which means that it will not drive the external component. What happens if you remove this line? inConfig.pull = NRF_GPIO_PIN_PULLDOWN;&lt;/p&gt;
&lt;p&gt;Are you using any other peripherals like SPI or TWI? I&amp;#39;m thinking that the conditions for this errata are met if you have SPI/TWI running and then configure GPIOTE: &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/anomaly_832_89.html?cp=4_2_1_0_1_26"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/anomaly_832_89.html?cp=4_2_1_0_1_26&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/thread/375644?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 01:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb451204-22eb-4f11-87c9-cc0e209744a6</guid><dc:creator>Zhang|</dc:creator><description>&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_1" data-section="0" data-sentence="0" data-group="0-0"&gt;Thank you for your answer! &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="1"&gt;&lt;span class="tgt color_text_1" data-section="1" data-sentence="0" data-group="1-0"&gt;The reality is that the GPIOE pin is only initialized and does not trigger an interrupt.&lt;/span&gt;&lt;span class="tgt color_text_1" data-section="1" data-sentence="1" data-group="1-1"&gt; That is, when the MEMS does not output, the detected power consumption will be 470uA.&lt;/span&gt;&lt;span class="tgt color_text_1" data-section="1" data-sentence="2" data-group="1-2"&gt; And GPIOE&amp;#39;s three trigger modes have been tried, all are high power consumption. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="2"&gt;&lt;span class="tgt color_text_1" data-section="2" data-sentence="0" data-group="2-0"&gt;1, GPIOTE_CONFIG_IN_SENSE_LOTOHI (true) &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="3"&gt;&lt;span class="tgt color_text_1" data-section="3" data-sentence="0" data-group="3-0"&gt;2, GPIOTE_CONFIG_IN_SENSE_HITOLO (true) &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="4"&gt;&lt;span class="tgt color_text_1" data-section="4" data-sentence="0" data-group="4-0"&gt;3, GPIOTE_CONFIG_IN_SENSE_TOGGLE (true) &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_1 pjm-tgt un-step-trans" data-section="5"&gt;&lt;span class="tgt color_text_1" data-section="5" data-sentence="0" data-group="5-0"&gt;So I want to know whether the power consumption will increase due to the external drive.&lt;/span&gt;&lt;span class="tgt color_text_1" data-section="5" data-sentence="1" data-group="5-1"&gt; Or is there something wrong with my code?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void Mems_ActivePin_Enable(nrfx_gpiote_evt_handler_t memsActiveCB)
{
	ret_code_t errCode;
	if (!nrf_drv_gpiote_is_init())
    {
        errCode = nrf_drv_gpiote_init();
        APP_ERROR_CHECK(errCode);
    }
	
	nrf_drv_gpiote_in_config_t inConfig = GPIOTE_CONFIG_IN_SENSE_LOTOHI(true);
	inConfig.pull = NRF_GPIO_PIN_PULLDOWN;										
    
	errCode = nrf_drv_gpiote_in_init(INT1, &amp;amp;inConfig, memsActiveCB);
	APP_ERROR_CHECK(errCode);
	
	nrf_drv_gpiote_in_event_enable(INT1, true);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/thread/375570?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 12:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22d6b61-072d-4561-a761-c8acbc7aa066</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please check if my assumptions are correct:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You configure the GPIOTE IN EVENT on a pin (&lt;span&gt;GPIOTE_CONFIG_IN_SENSE_TOGGLE(true); )&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;When MEMS is connected the current consumption is 470uA&lt;/li&gt;
&lt;li&gt;When MEMS is not connected the current consumption is 10uA&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the MEMS output signal is not a defined 1 or 0, but floating in between, the current consumption will go up.&lt;/p&gt;
&lt;p&gt;If the MEMS output signal interrupts the nRF52 very fast, the current consumption will go up&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Can you check the signal between the nRF52 and the MEMS with a logic analyzer?&lt;/li&gt;
&lt;li&gt;What happens if you configure the line with a pullup resistor?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/thread/375534?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 11:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07abaf25-4980-48f1-8de4-8b5639cef8ec</guid><dc:creator>Zhang|</dc:creator><description>&lt;p&gt;&lt;span class="tgt color_text_1" data-section="0" data-sentence="0" data-group="0-0"&gt;Thank you for your answer！but it doesn&amp;#39;t add much to my question.&lt;/span&gt;&lt;span class="tgt color_text_1 highlight" data-section="0" data-sentence="1" data-group="0-1"&gt; I want to know why the external driver will increase the power consumption by 470ua when the GPIOE interrupt is set to Port Event mode, which should be about 10UA higher according to the manual.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When using GPIOE interrupt to drive MEMS, the power consumption is up to 470uA</title><link>https://devzone.nordicsemi.com/thread/375518?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 10:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9ac2e3c-9741-4a4e-b7c5-139956e12bcc</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, it&amp;#39;s not clear to me what the MEMS sensor is doing, or how it is connected. In general if you configure a pin as output and forcing it high, and then you see a current increase, the external component is powered through the output pin.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>