<?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>using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103492/using-c-ncs-v2-4-0-zephyr-samples-drivers-adc-on-nrf5340-do-i-have-to-uninit-the-saadc</link><description>i am using the zephyr samples driver for the adc. 
 
 
 
 
 there is a call to init the adc 
 
 
 but i do not see a call to uninit the saadc 
 
 i am using 
 
 
 nrf_regulators_system_off ( NRF_REGULATORS ); 
 
 to go to system off state and I want to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Oct 2023 14:46:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103492/using-c-ncs-v2-4-0-zephyr-samples-drivers-adc-on-nrf5340-do-i-have-to-uninit-the-saadc" /><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/452034?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 14:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0888589f-9c7b-4407-a957-60f2da5598bf</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;&lt;span&gt;my power profiler shows i am pulling 800 ua in the power off state..&amp;nbsp; this is due to other chips on my custom board and I will be getting a new board..&amp;nbsp; so I would like to close this case until i get a new board.&amp;nbsp; then i will open a new ticket.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/449300?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 08:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5534ce9-f0e8-403c-8142-9f1558c04dfc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Ok, remember to isolate the current so that whatever you measure is only the current drawn by the nRF5340,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/449268?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 03:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e61b3e5-5f00-4ab4-8f31-9480094d877c</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;i just got a PPk2 power profiler kit.&amp;nbsp; i wll have some hard numbers soon.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;phil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/446612?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 09:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26fbe2c1-9a5e-483d-8f94-40abba8a7d8e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Yes,&lt;/p&gt;
&lt;p&gt;In system off you&amp;#39;ll get into the deepest possible power saving mode of the nRF5340. System off is not the same as system on sleep (commonly referred to as IDLE). In System Off the nRF5340 has only a couple of wakeup source, the amount of current that is consumed depends on what wakeup source that is configured and if RAM is retained or not. I think you need to isolate the current that is used by the nRF5340 and measure it. That would tell us a lot about what state the chip is in.&lt;/p&gt;
&lt;p&gt;Also, see the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/pmu/doc/pmu.html?cp=4_0_0_3_1#unique_598157877"&gt;power section&lt;/a&gt; in the product spec.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/446506?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 16:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f74d8414-2391-44f1-8d01-7d4e8624cc7c</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;i have a custom board with some know current leakage but when I add things up i still see between 100-200 ua of unexplained current draw.&amp;nbsp; i am trying to track it down.&amp;nbsp; so if i go to system OFF on nrf5340 both the network core and the application core are not running&amp;nbsp; the processor is still alive because it can wake up.&amp;nbsp; and VDD is at 1.8 volts.&amp;nbsp; if i go to SYSTEM off and easy DMA or BLE was running you are saying that they will stop. is this correct ?&amp;nbsp; i want to rule out the processor as the source of my mystery current loss.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;phil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/445542?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 08:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a584e88-f27b-4c72-a7a8-a198494304ff</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Phil,&lt;/p&gt;
&lt;p&gt;If you go to system off then all peripherals will be disabled automatically including the EasyDMA. In the same screenshot from the product spec that you shared it says:&amp;nbsp;&lt;em&gt;System OFF is the deepest power-saving mode the system can enter. In this mode, the system&amp;#39;s core functionality is powered down and all ongoing tasks are terminated.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/445484?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 20:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e97536b-59bf-4876-8ea2-a188a1fbfe85</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;The last line in the document shown below talks about making sure easy DMA is off before going into system off mode.&lt;/p&gt;
&lt;p&gt;i am wondering why.&amp;nbsp; in system off move the HFclock will stop and that means easy DMA will stop.&amp;nbsp; I am not retaining any ram so i do not care if easy DMA stops in mid transfer.&lt;/p&gt;
&lt;p&gt;sorry to be so picky but my boss wants all the bases covered.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;phil&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1694465098899v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/445337?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 09:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e27a76d9-7c84-4879-bf0a-18c0f68b6e48</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you point me to the documentation that states this?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/445242?ContentTypeID=1</link><pubDate>Sat, 09 Sep 2023 16:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:603b717c-015a-42e1-9b98-33532e84e98d</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;i am not worried about consuming current.&amp;nbsp; my boss said he needed a mode to get the system off as soon as possible.&amp;nbsp; the documentation says to turn off easyDMA before i call&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;nrf_regulators_system_off&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;NRF_REGULATORS&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and i do not understand why.&amp;nbsp; if the HF clock is going to be shutdown why would i worry about easyDMA?&lt;/p&gt;
&lt;p&gt;i guess my fundamental question is what bad thing could happen if easy DMA is not shut down?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;phil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/444928?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 12:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc8857b-7da2-4a15-92b2-ba6c039cc889</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In system off, all peripherals will be off including the EasyDMA. If you&amp;#39;re worried about the nRF5340 still consuming current, then I would suggest to measure the current that is consumed by the nRF5340, that would tell us a lot.&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><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/444778?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 17:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf3a547-5977-4191-9605-141657dcbb14</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;we have a custom board and PPK2 says 800 ua.&amp;nbsp; Most of the current is due to external circuitry which we are addressing but i want to make sure since i am using zephyr ADC driver that i have the saadc turned off before i go to system off mode.&lt;/p&gt;
&lt;p&gt;in system off mode there are no clocks so it should be off but the manual says EasyDMA has to be off.&amp;nbsp; I was looking for a function to turn off the saadc and did not find it.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;for your help&lt;/p&gt;
&lt;p&gt;phil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using  C:\ncs\v2.4.0\zephyr\samples\drivers\adc on nrf5340.  do i have to uninit the saadc</title><link>https://devzone.nordicsemi.com/thread/444691?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 10:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f3aebf-001c-4632-ba57-74e5c0b223c2</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SAADC peripheral use EasyDMA so any driver that is implemented for this peripheral will therefore also use EasyDMA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What current do you measure at the moment?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>