<?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>Internal ADC channel to measure VDD (i.e. VDD_nRF) without external components</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51006/internal-adc-channel-to-measure-vdd-i-e-vdd_nrf-without-external-components</link><description>Dear Nordic. I am working in the device that require the controller to measure its VDD line to ensure that the the device goes into sleeping mode (very low current and do no work) if the VDD_nRF is getting lower than a set voltage level and Keep waking</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Aug 2019 08:56:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51006/internal-adc-channel-to-measure-vdd-i-e-vdd_nrf-without-external-components" /><item><title>RE: Internal ADC channel to measure VDD (i.e. VDD_nRF) without external components</title><link>https://devzone.nordicsemi.com/thread/204243?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2019 08:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:034abbbc-d40b-4d72-834d-eb49721a869a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think your best option is to use the SAADC to sample VDD at a regular interval. The SAADC can use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=3_1_0_36_10_5#register.CH-0.PSELP"&gt;VDD as input directly&lt;/a&gt;, without any physical connections, and is has an &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=3_1_0_36_7#concept_kxz_4pp_qr"&gt;internal 0.6V reference&lt;/a&gt;. The drawback of this is that it has &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/saadc_low_power"&gt;fairly high current consumption&lt;/a&gt; (dependant on the sample rate), and you can&amp;#39;t put the device in system OFF sleep mode. You will need a timer to trigger the sampling, which is not available in System OFF mode, and the SAADC cannot be used as a wakeup source from System OFF.&lt;/p&gt;
&lt;p&gt;If you can provide a stable external reference, you can also use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/lpcomp.html?cp=3_1_0_38#concept_tdv_zkx_lr"&gt;LPCOMP — Low power comparator&lt;/a&gt; peripheral for this purpose (given that you can connect VDD to one of the analog inputs. The LPCOMP can generate events on UP, DOWN, and CROSS of a given level, and it can even be used to wake the chip from System OFF sleep mode.&lt;/p&gt;
&lt;p&gt;Another alternative is to use the COMP peripheral. This is similar to LPCOMP but can provide an internal reference as well. The drawback of this is the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/_tmp/graviton/autodita/CURRENT/parameters.i_comp.html?cp=3_0_0_4_1_0_1"&gt;high current consumption&lt;/a&gt; (note that this may even be higher when internal reference is used, &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/comp.html?cp=3_1_0_37_3_0#unique_1861016617"&gt;see I_INT_REF&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;If you would like a warning when the voltage drops below 1.7V, you can enable the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=3_1_0_17_3_0#unique_648169564"&gt;POFWARN&lt;/a&gt; in the POWER peripheral. Note that this does not give you any event when the voltage rises again.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>