<?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>SAADC only fills sample buffer with one sample per channel on each trigger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40958/saadc-only-fills-sample-buffer-with-one-sample-per-channel-on-each-trigger</link><description>The documentation on the SAADC peripheral driver is unclear about how the samples are handled. When I read the docs I was under the impression that when providing a multiple of the number of sample channels to the ADC the ADC would trigger &amp;quot;automatically</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Nov 2018 16:31:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40958/saadc-only-fills-sample-buffer-with-one-sample-per-channel-on-each-trigger" /><item><title>RE: SAADC only fills sample buffer with one sample per channel on each trigger</title><link>https://devzone.nordicsemi.com/thread/159299?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 16:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbdc247e-010a-4072-9b78-504859055df3</guid><dc:creator>tommy.lane</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/40958/saadc-only-fills-sample-buffer-with-one-sample-per-channel-on-each-trigger/159297"]When the requested buffer is filled with samples, an event of type&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__saadc.html#gad82628a6672665db12638527013c7093"&gt;NRF_DRV_SAADC_EVT_DONE&lt;/a&gt;&amp;nbsp;is generated.[/quote]
&lt;p&gt;Looking at it now it&amp;#39;s obviously what it means. When I initially read this section the &amp;quot;[when filled with samples]&amp;quot; section seemed out of place, and unnecessary. If the goal of this sentence is to convey that each sample event only fills one sample location per channel then clearly stating &amp;quot;Each sampling event only fills a single array index per channel during the acquire event, w&lt;span&gt;hen the requested buffer is filled with samples, an event of type&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__saadc.html#gad82628a6672665db12638527013c7093"&gt;NRF_DRV_SAADC_EVT_DONE&lt;/a&gt;&lt;span&gt;&amp;nbsp;is generated.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Wording could use some work, but this is roughly how I feel it should read.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for getting back to me so quickly!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC only fills sample buffer with one sample per channel on each trigger</title><link>https://devzone.nordicsemi.com/thread/159297?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 16:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a67ae744-8b6b-4352-b2cb-8ecc5d8ecafb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you point to the part of documentation that confuse you? 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;SAADC peripheral documentation&lt;/a&gt; is quite clear on this:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span&gt;In scan mode, one SAMPLE task will trigger one conversion per enabled channel.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To me, this is also understandable from the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/hardware_driver_saadc.html?cp=4_0_0_2_0_12_1_1#saadc_nonblocking"&gt;SDK driver&amp;nbsp; doucmentation&lt;/a&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span&gt;To trigger sampling, call the function&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__saadc.html#gaf16a16c9de60276dd73cf1811c03ae73"&gt;nrf_drv_saadc_sample&lt;/a&gt;&amp;nbsp;or, through PPI, use the task SAMPLE from SAADC.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__saadc.html#gaf762606bdb8f02559c003b179b088f9d"&gt;nrf_drv_saadc_sample_task_get&lt;/a&gt;&amp;nbsp;can be used to get the task address. &lt;strong&gt;Single sampling triggers conversion on all initialized channels&lt;/strong&gt;. When the requested buffer is filled with samples, an event of type&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__drv__saadc.html#gad82628a6672665db12638527013c7093"&gt;NRF_DRV_SAADC_EVT_DONE&lt;/a&gt;&amp;nbsp;is generated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>