<?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>nRF52 Power-fail Comparator expected current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62378/nrf52-power-fail-comparator-expected-current-consumption</link><description>Our nRF52832-based board is powered by a coin cell battery, and spikes in current can cause the voltage to drop. This is okay early in the battery&amp;#39;s discharge curve, but as the battery ages, this gets dangerous and will eventually cause brown-outs. So</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jun 2020 09:35:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62378/nrf52-power-fail-comparator-expected-current-consumption" /><item><title>RE: nRF52 Power-fail Comparator expected current consumption</title><link>https://devzone.nordicsemi.com/thread/254645?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 09:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7fa0f95-7fce-4816-8288-11fbbdf4ac49</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;If your &amp;quot;risky events&amp;quot; don&amp;#39;t start/enable the HFCLK already, it should be fine using sd_power_mode_set() to do so as long as you don&amp;#39;t mind the additional current consumption. There shouldn&amp;#39;t be any other concerns regarding this approach, so feel free to do so, as I can see that you don&amp;#39;t have a good way to implement the low power comp.&lt;/p&gt;
&lt;p&gt;Best of luck and regards!&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Power-fail Comparator expected current consumption</title><link>https://devzone.nordicsemi.com/thread/254591?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 05:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766c9217-49f6-400f-8524-e1407b2ac53f</guid><dc:creator>Sydney</dc:creator><description>&lt;p&gt;After I posted this, I started coming to this realization. I think in all my test scenarios, HFCLK just happened to be running for other reasons, which made it look like the power-fail comparator was generating the warning event even though I thought my board was in idle. For example, one way I tested was by dialing down the voltage on my bench top power supply and verifying via GPIO that the event was being triggered. But I realized that HFCLK was probably enabling periodically for advertisements, which must&amp;#39;ve been giving the power-fail comparator an opportunity to generate the event. I&amp;#39;ve since confirmed that a more sudden power loss, like disconnecting power instead of turning the knob, does not generate the power-fail warning event.&lt;/p&gt;
&lt;p&gt;Because my potentially-risky high power events are relatively infrequent and short in duration, I can live with the added current required by keeping HFCLK active. So I think I just need a good way to enable HFCLK just before these risky events start and then disable it again after the risky event ends (typically 2-3 seconds later). It looks like I can do this with sd_power_mode_set() to switch between NRF_POWER_MODE_CONSTLAT and NRF_POWER_MODE_LOWPWR as needed. Besides the additional current, are there any concerns with this approach?&lt;/p&gt;
&lt;p&gt;I considered using the low power comparator, but I don&amp;#39;t have a good external voltage to use as a reference, and the internal references are all proportional to the input voltage, which is what I need to monitor.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Power-fail Comparator expected current consumption</title><link>https://devzone.nordicsemi.com/thread/254363?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 05:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8183e9d2-2396-4115-82e4-dcdf42438c04</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Even if you call these functions, they still just enable the power-fail comparator and it won&amp;#39;t &amp;quot;kick in&amp;quot; until the HFCLK is started by your application. This is mentioned in its electrical specification. See &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpower.html&amp;amp;&amp;amp;anchor=unique_805098187"&gt;footnote 8 here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;#39;d like to ensure a safe shutdown from IDLE mode when the HF clock is turned off, please check out the&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Flpcomp.html&amp;amp;cp=4_2_0_38&amp;amp;anchor=concept_tdv_zkx_lr"&gt; Low power comparator&lt;/a&gt; instead, as it consumes less power and can be used to compare the input voltage against a reference voltage like the power-fail comparator as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>