<?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>Minimize ADC Sampling power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81523/minimize-adc-sampling-power-consumption</link><description>I am developing my ADC sampling code for minimal power consumption. There is a timer with ppi module that generates interrupt for sampling. Please see the code below: 
 
 Can I use app_timer instead of NRF_DRV_TIMER_INSTANCE in this code to reduce overall</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Nov 2021 14:51:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81523/minimize-adc-sampling-power-consumption" /><item><title>RE: Minimize ADC Sampling power consumption</title><link>https://devzone.nordicsemi.com/thread/339060?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 14:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c538f17d-d9b8-4ad3-887a-a054483d43cc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;RTC timer compare register which decides what value the counter will generate a compare event is 8 ticks. This is also the sampling interval as the RTC handler will call &lt;span&gt;nrf_drv_saadc_sample(). The CC register ticks is in this example equal to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrfx__rtc.html#ga7b2cc7916d9bf6b1398ca6fcc3d56d4a"&gt;RTC_US_TO_TICKS&lt;/a&gt;&amp;nbsp;which multiples the first parameter with the second and divides it by 1000000U.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;RTC_US_TO_TICKS(&lt;span&gt;250*1000,&amp;nbsp;32) = 8 ticks.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Kaveh.M"]Also, how can I completely disable UART. Is this by commenting out the NRF_LOG() lines?&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;Yes that works. You should also comment out the call to&amp;nbsp;NRF_LOG_DEFAULT_BACKENDS_INIT() in that case.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimize ADC Sampling power consumption</title><link>https://devzone.nordicsemi.com/thread/338845?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 15:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfaa84a9-f7f8-412f-a498-e50170844755</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;In this&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/saadc_low_power"&gt;example&lt;/a&gt;&amp;nbsp;you mentioned, sampling period is 250ms? Can you explain how it is calculated.&lt;/p&gt;
&lt;p&gt;Also, how can I completely disable UART. Is this by commenting out the NRF_LOG() lines?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimize ADC Sampling power consumption</title><link>https://devzone.nordicsemi.com/thread/338117?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 10:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2beccf9e-5f11-4ab5-9afb-984354381e23</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;We have a low power SAADC example at our Github repo. You can find it &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/saadc_low_power"&gt;here&lt;/a&gt;. Steps that are implemented for low power in the example:&lt;/p&gt;
&lt;ul dir="auto"&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;Low Power -&amp;gt;&lt;/strong&gt;&lt;/em&gt;
&lt;ol dir="auto"&gt;
&lt;li&gt;&lt;em&gt;The low-power mode in the SAADC driver will trigger START task right before sampling, instead of when buffers are setup using nrf_drv_saadc_sample_convert(). This will enable EasyDMA only during sampling, but leave it disabled when not sampling. The EasyDMA consumes around 1.5mA when enabled.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Low power can only be obtained when UART is disabled. UART will add between 50-600uA current consumption, depending on TX/RX configuration.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Enable DCDC converter at startup with&amp;nbsp;&lt;code&gt;NRF_POWER-&amp;gt;DCDCEN = 1;&lt;/code&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Use RTC instead of TIMER periperal. That will save ~300uA.&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>