<?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>Change VDDH POF threshold when softdevice is enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29469/change-vddh-pof-threshold-when-softdevice-is-enabled</link><description>I would like to measure the VDDH voltage (lithium ion battery) on a nrf52840 with the power fail comparator.
If the voltage drops below the threshold, I want to reduce the threshold until I know the voltage. 
 The SDK says that an NRF_ERROR_INVALID_STATE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Aug 2018 12:07:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29469/change-vddh-pof-threshold-when-softdevice-is-enabled" /><item><title>RE: Change VDDH POF threshold when softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/142598?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 12:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e57b12f-9513-4af0-a246-8b2c335f69e4</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;This should work with V6 softdevice, but I have not tested it to verify it. Use&amp;nbsp;sd_power_pof_threshold_set. Please open a separate case if you have issues with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change VDDH POF threshold when softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/140703?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 14:25:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81003712-e0aa-4bfd-8bcf-2bc7691f2141</guid><dc:creator>Elkana</dc:creator><description>&lt;p&gt;Do you have update on this?&lt;/p&gt;
&lt;p&gt;Is this updated in SDK 15.0.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change VDDH POF threshold when softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/117162?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 13:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f62cba9-1112-4b77-a197-eca4e58f8afd</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Looks like this is fixed already, meaning that I expect this to be working for VDDH in the next Softdevice release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change VDDH POF threshold when softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/117161?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 13:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc2f82c4-5246-4fd4-ab8f-08bd89e99639</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Unfortunately it looks like you are right. I guess they haven&amp;#39;t had time to add this for VDDH yet. Let me check internally if/when they plan on adding it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change VDDH POF threshold when softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/117160?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 12:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe5df5d-15b7-4240-9c70-d99943cbcb37</guid><dc:creator>Florian Zierer</dc:creator><description>&lt;p&gt;But why is in the nrf_drf_power_pof_init() the following comment&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;     /* Currently when SD is enabled - the configuration can be changed
     * in very limited range.
     * It is the SoftDevice limitation.
     */

#if NRF_POWER_HAS_VDDH
        if (p_config-&amp;gt;thrvddh != nrf_power_pofcon_vddh_get())
        {
            /* Cannot change THRVDDH with current SD API */
            return NRF_ERROR_INVALID_STATE;
        }
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I want to use it with the VDDH (it would be nrf_power_pofcon_vddh_set/get but it seems those equivalent functions are not yet implemented for the softdevice).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change VDDH POF threshold when softdevice is enabled</title><link>https://devzone.nordicsemi.com/thread/117159?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 11:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d14fc9d-2d2d-44b4-b436-63f89d8d8ffb</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;When &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#gac38acbdbcaf059d562e2c600b1acb059"&gt;sd_power_pof_enable&lt;/a&gt; is enabled, the softdevice will notify the application with a NRF_EVT_POWER_FAILURE_WARNING event when the power failure occurs. The treshold can be adjusted with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#ga10681c54678c912fb81aa20e889d4282"&gt;sd_power_pof_threshold_set&lt;/a&gt;. If you take a closer look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/power.html?cp=2_0_0_15_0_5#unique_1410226994"&gt;POF documentation&lt;/a&gt;. You can see that &lt;em&gt;When the supply voltage falls below the defined threshold, the power-fail comparator will generate an event (POFWARN) which can be used by an application to prepare for power failure. This event will also be generated if the supply voltage is already below the threshold at the time the power-fail comparator is enabled, or if the threshold is re-configured to a level above the supply voltage.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;There is only one event generating the POF warning, so the Softdevice should generate the event as described in the nRF52840 OPS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>