<?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>How to delay power on/off (e.g，hold on 3 seconds)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58543/how-to-delay-power-on-off-e-g-hold-on-3-seconds</link><description>Hi all, 
 I&amp;#39;m developing a board based on nRF52832. 
 I want to implement delay power on and power off through holding a single power button for about 3 seconds. 
 Regarding hardware design, I will connect battery DC-out pin to a GPIO pin directly. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Mar 2020 09:01:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58543/how-to-delay-power-on-off-e-g-hold-on-3-seconds" /><item><title>RE: How to delay power on/off (e.g，hold on 3 seconds)</title><link>https://devzone.nordicsemi.com/thread/237338?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 09:01:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3803af-1d3e-4320-b222-ab04309e0e36</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;You&amp;#39;ll need to power the processor in order to perform this in software.&lt;/p&gt;
&lt;p&gt;If that is the case then you should have the processor control the power to the rest of the board using another GPIO line and suitable circuitry.&lt;/p&gt;
&lt;p&gt;Just run a timer, start it on your button pressed GPIO line transition and check its value on the button release transition if the timer has run for 3 seconds or more then switch the power to the rest of the board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>