<?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>Multiple SAADC Channels at different intervals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25498/multiple-saadc-channels-at-different-intervals</link><description>Hello,
I&amp;#39;ve been reading over different examples and questions on the Nordic Developer Zone but still have some questions about multiple SAADC channels. 
 1 - If I initialized multiple SAADC channels it goes to scanning mode right? Does this mean they</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2017 15:51:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25498/multiple-saadc-channels-at-different-intervals" /><item><title>RE: Multiple SAADC Channels at different intervals</title><link>https://devzone.nordicsemi.com/thread/100516?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 15:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b8434c-32c8-41a9-83bd-58558f74faf6</guid><dc:creator>rms</dc:creator><description>&lt;p&gt;Thanks for the prompt response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple SAADC Channels at different intervals</title><link>https://devzone.nordicsemi.com/thread/100515?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 12:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a15d0d7c-4ab5-4abe-8951-54cbae9c331b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume you are talking about the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/hardware_driver_saadc.html?cp=4_0_0_2_11"&gt;SAADC driver in the SDK&lt;/a&gt;, since you are talking about blocking/non-blocking modes. In hardware, the SAADC is task/event driven.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yes, when multiple channels are enabled the SAADC will automatically enter &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_4_3#saadc_operationmodes_scan"&gt;scan mode&lt;/a&gt;. The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/group__nrf__drv__saadc.html#ga8ae9523c91a94d4f865125b189273f63"&gt;blocking function&lt;/a&gt; in the SAADC driver take the channel as parameter and sample this channel. All other channels will be disabled when this function is called.&lt;/li&gt;
&lt;li&gt;The SAADC peripheral will allways use EasyDMA when sampling. When the SAADC is enabled, the EasyDMA current of ~1.2 mA will be added. Using blocking functions for SAADC sampling might cause higher current, as the CPU is busy-looping while waiting for the sample to finish, contrary to having the possibility to put the CPU in sleep mode when waiting for the end event, when using non-blocking mode functions.&lt;/li&gt;
&lt;li&gt;If your sample rate is low, it makes sense to disable the SAADC peripheral between every sample to save power. This is independent on whether you use blocking or non-blocking setup.&lt;/li&gt;
&lt;li&gt;No, the SAADC peripheral can only sample one channel at a time. When the blocking function is called, it will disable all enabled channels before setting up the peripheral for sample of the requested channel. If non-blocking sampling is allready setup, a call to the blocking sample function will return with the error code &lt;code&gt;NRF_ERROR_BUSY&lt;/code&gt;, indicating that the driver is allready busy with other sampling.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you are doing regular sampling using the SAADC peripheral, it makes no sense to use blocking over non-blocking setup. This only makes sense if you just need a single sample. You can find an example of &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples/tree/master/saadc_low_power"&gt;low power SAADC on our GitHub&lt;/a&gt;. It you have multiple channels enabled, you might need to use &lt;a href="https://devzone.nordicsemi.com/question/160237/nrf52-best-practise-for-ultra-low-power-saadc-4-channel-conversion/?answer=164115#post-id-164115"&gt;this version&lt;/a&gt; to get it running with low power.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>