<?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>nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95473/nrf52832-constantly-consuming-higher-current-of-3-4ma-after-reading-adc-value-using-using-saadc-in-blocking-mode</link><description>Hi, 
 
 I am developing my application on top of low power node example available nrf sdk for mesh v5.0.0. The idea behind the application is that after the node is provisioned and model publication is set, node should periodically measure battery voltage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jan 2023 21:52:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95473/nrf52832-constantly-consuming-higher-current-of-3-4ma-after-reading-adc-value-using-using-saadc-in-blocking-mode" /><item><title>RE: nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/thread/404422?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 21:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9b38170-db72-469e-9326-7ca83a8738d5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I noticed your calculation were likely using the FPU, so just wanted to make sure the problem was not related to this errata:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_87.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_87.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/thread/404306?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 12:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e906440c-5946-4233-ad9a-69d02551ecc0</guid><dc:creator>harid</dc:creator><description>&lt;p&gt;Yes, the nrf_pwr_mgmt_run() is called from the main() which implements PWR_MGMT_FPU_SLEEP_PREPARE(). May I know why does this impact current consumption of ADC peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/thread/403837?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 12:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae66a18-7023-4037-b173-d952d9a4665f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Maybe the SAADC is not the problem here, what does you sleep routine look like? Do you for instance include the&amp;nbsp;PWR_MGMT_FPU_SLEEP_PREPARE() before going to sleep?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/thread/403823?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 12:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ff9bdc9-d628-49d1-a7d8-2161ab5e2304</guid><dc:creator>harid</dc:creator><description>&lt;p&gt;But I am not enabling the EasyDMA in the first place. Then how is it possible for EasyDMA channel to be active? And I am using blocking mode to read adc value from saadc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/thread/403820?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 12:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a71968d-8d99-4020-a327-1aa0dbad5912</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You may find this example useful as refeence:&lt;br /&gt;&lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/nrfx_saadc_simple_low_power_app_timer_multichannel_oversample"&gt;https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/nrfx_saadc_simple_low_power_app_timer_multichannel_oversample&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The likely cause of increased current when using SAADC is if EasyDMA channel is active between SAADC and RAM. The SAADC peripheral keep easyDMA channel to RAM active (which consume current) until the SAADC peripheral is stopped or finished (endevent):&amp;nbsp;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#saadc_easydma"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;The EasyDMA will have finished accessing the RAM when the END or STOPPED event has been generated.&amp;quot;&amp;nbsp;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#saadc_easydma"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#saadc_easydma&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/thread/403775?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 09:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc8b434-ddd6-417c-82c5-7eae1c0f1166</guid><dc:creator>harid</dc:creator><description>&lt;p&gt;Hi Khawaja,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I tried enabling the recommended macro and also SAADC_CONFIG_LP_MODE. Enabling both of them doesn&amp;#39;t seem to be making a difference. Still I am seeing a constant 3.4ma current consumption after reading adc value once and deinitializing adc peripheral. Once deinitiliazed, the current consumption should drop down to 70ua right? Its not the case here. I am taking an average of 200 samples at a time to calculate battery percentage by measuring the battery voltage.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 constantly consuming higher current of 3.4ma after reading adc value using using saadc in blocking mode</title><link>https://devzone.nordicsemi.com/thread/403746?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 08:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9cf889b-c541-4573-b5f2-d8bb328b566f</guid><dc:creator>Khawaja</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you checked wether low power Saadc mode enabled in config or not? Macro for low power Saadc is&amp;nbsp;&lt;br /&gt;&lt;span&gt;NRFX_SAADC_CONFIG_LP_MODE &amp;nbsp;- Enabling low power mode&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The difference between the low-power mode and normal mode is that in low-power mode the START task is not triggered until the sample function is called, while in normal mode, START task is triggered when the buffer_convert function is called to setup the buffers. The SAADC peripheral support EasyDMA, allowing sampling of channels directly to RAM using PPI, without CPU intervention. When low-power mode is enabled, the CPU is required to trigger sampling, and it will only work with a buffer size of 1 sample. In case of high sample rate, there is little or no benefit from the low-power mode. The low-power mode is implemented exactly for the scenario that you describe.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope it helps.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>