<?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>current consumption about long press button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95985/current-consumption-about-long-press-button</link><description>Hi, 
 We use the nRF52810 to develop a HID controller, we use SDK 17.1.0 ,and the softdevice is S112 . 
 We develop based on the example of &amp;#39;ble_app_hids_keyboard&amp;#39; .everything is going ok .but when we test the power consumption ,we found when long press</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jan 2023 08:44:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95985/current-consumption-about-long-press-button" /><item><title>RE: current consumption about long press button</title><link>https://devzone.nordicsemi.com/thread/406174?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 08:44:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b657aa17-22be-4b3f-98c0-8b59a2dccccf</guid><dc:creator>hyman</dc:creator><description>&lt;p&gt;OK，Thank you very much .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: current consumption about long press button</title><link>https://devzone.nordicsemi.com/thread/406173?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 08:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8530e5-bcb2-44a2-bdf8-6da5af2eea7a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="hyman"]Is that mean that&amp;#39;s&amp;nbsp;&lt;span&gt;using internal 13K pull-resistor ?&lt;/span&gt;[/quote]
&lt;p&gt;Yes, that is correct.&lt;/p&gt;
[quote user="hyman"]We modify the&amp;nbsp;NRF_GPIO_PIN_PULLUP to&amp;nbsp;NRF_GPIO_PIN_NOPULL ,and then add an external pull-up resistor like 100k, right ?[/quote]
&lt;p&gt;Yes, that will reduce the active current when the pin is pressed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: current consumption about long press button</title><link>https://devzone.nordicsemi.com/thread/406168?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 08:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d14657be-d5eb-4e82-bfe9-cbb3ba43dda5</guid><dc:creator>hyman</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for your reply .&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The button GPIO config is as below :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const app_button_cfg_t app_buttons[BUTTONS_NUMBER] =
{
	#ifdef BSP_BUTTON_0
    {BSP_BUTTON_0, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_0

    #ifdef BSP_BUTTON_1
    {BSP_BUTTON_1, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_1

    #ifdef BSP_BUTTON_2
    {BSP_BUTTON_2, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_2

    #ifdef BSP_BUTTON_3
    {BSP_BUTTON_3, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_3

    #ifdef BSP_BUTTON_4
    {BSP_BUTTON_4, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_4

    #ifdef BSP_BUTTON_5
    {BSP_BUTTON_5, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_5

    #ifdef BSP_BUTTON_6
    {BSP_BUTTON_6, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_6

    #ifdef BSP_BUTTON_7
    {BSP_BUTTON_7, false, BUTTON_PULL, bsp_button_event_handler},
    #endif // BUTTON_7
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if pca10040.h&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BUTTON_PULL    NRF_GPIO_PIN_PULLUP&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Is that mean that&amp;#39;s&amp;nbsp;&lt;span&gt;using internal 13K pull-resistor ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/95985/current-consumption-about-long-press-button/406163"]To minimize this current, use an external pull resistor instead with a higher value.[/quote]
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; We modify the&amp;nbsp;NRF_GPIO_PIN_PULLUP to&amp;nbsp;NRF_GPIO_PIN_NOPULL ,and then add an external pull-up resistor like 100k, right ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks .&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: current consumption about long press button</title><link>https://devzone.nordicsemi.com/thread/406163?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 08:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95d0bf82-9a15-418f-a4c8-76e4fd2470cc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]but when we test the power consumption ,we found when long press the button ,the curren consumption is about 270uA @3V&amp;nbsp; in customer&amp;nbsp;PCB[/quote]
&lt;p&gt;Are you using internal pull-resistor in the GPIO PIN_CNF[] register?&lt;/p&gt;
&lt;p&gt;If yes, then it is expected to see such a current draw, as the internal pull resistor is in the 13k (nominal value).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To minimize this current, use an external pull resistor instead with a higher value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>