<?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>POFWARN Example ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2218/pofwarn-example</link><description>nRF51822 
 I&amp;#39;m interested in setting up the the POFCON to enable me to get a
POFWARN interrupt when the battery voltage drops below 2.7V. 
 The softdevice is enabled at the time of these calls. 
 The first two calls are fine - (pof_enable and pof_threshold</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Feb 2016 15:59:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2218/pofwarn-example" /><item><title>RE: POFWARN Example ?</title><link>https://devzone.nordicsemi.com/thread/9362?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2016 15:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c6e8ac-9e66-4397-8fcd-88cfe8ab6289</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;A POF example with softdevice for nRF51 SDK 8.1.0 is below. It is to be used with either S110 8.0.0 or S130 1.0.0&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_with_5F00_POF_5F00_warning.zip"&gt;ble_app_template_with_POF_warning.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: POFWARN Example ?</title><link>https://devzone.nordicsemi.com/thread/9361?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2014 02:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e72e10e-9772-4afa-98de-6750168a1af4</guid><dc:creator>Tim Clark</dc:creator><description>&lt;p&gt;Whoops - I keep forgetting that you&amp;#39;ve got to use the Event System when using the SoftDevice.&lt;/p&gt;
&lt;p&gt;Changed my code to register for Sys Events (glad that the error codes are clear - or I likely wouldn&amp;#39;t have found my way there) - and works perfectly !  2.69V and my RED LED starts blinkin&amp;#39; :-)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_power_pof_enable(POWER_POFCON_POF_Enabled);
APP_ERROR_CHECK(err_code);

err_code = sd_power_pof_threshold_set(POWER_POFCON_THRESHOLD_V27);
APP_ERROR_CHECK(err_code);
	
// Subscribe for Sys events.
err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
APP_ERROR_CHECK(err_code);


static void sys_evt_dispatch(uint32_t sys_evt)
{
    if (sys_evt == NRF_EVT_POWER_FAILURE_WARNING)
	{
		LEDState(RED_1SEC_BLINK);
	}
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>