<?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>Purpose of RESULT.MAXCNT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40475/purpose-of-result-maxcnt</link><description>Hi 
 What is the role of RESULT.MAXCNT ? 
 As the scan mode is based on the number of channels with PSELP != 0 isn&amp;#39;t MAXCNT redundant ? 
 
 Also, If declaring the buffer as buffers[2][100*4] (for 4 channels scan set): 
 - Should the size parameter in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Nov 2018 15:13:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40475/purpose-of-result-maxcnt" /><item><title>RE: Purpose of RESULT.MAXCNT</title><link>https://devzone.nordicsemi.com/thread/157569?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 15:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9910a7fd-72c5-495d-9a27-446886a8e8b9</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For detail on maxcnt and scan mode check the &lt;a href="https://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; and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_5#saadc_easydma"&gt;EasyDMA &lt;/a&gt;chapters in the documentation. See &lt;span&gt;Figure 2. Example of RAM placement (even RESULT.MAXCNT), channels 1, 2 and 5 enabled&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Looking at the SAADC example in SDK 15.2 the size parameter should be set to the number of samples in the buffer. 400 in your case.&lt;/p&gt;
&lt;p&gt;The size of the Result buffer is specified in the RESULT.MAXCNT register and the ADC will generate an END event when it has filled up the Result buffer, see &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#saadc_easydma__fig"&gt;Figure 4&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>