<?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>NRF52810 SAADC buffer swap</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111630/nrf52810-saadc-buffer-swap</link><description>Hello. 
 I am developing in the following environment. 
 ・nrf52810 custom board 
 ・nRF5 SDK v17.1.0 
 I am running the SAADC Scan mode to collect data from four analog channels. 
 SAADC is running at 10msec intervals. 
 When I start acquiring data, p_event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2024 23:59:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111630/nrf52810-saadc-buffer-swap" /><item><title>RE: NRF52810 SAADC buffer swap</title><link>https://devzone.nordicsemi.com/thread/486534?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 23:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5de52734-4d35-46dd-8c14-45c457f26ab9</guid><dc:creator>Yuta_Sigma</dc:creator><description>&lt;p&gt;Hi Sigurd&lt;br /&gt;I appreciate your prompt reply.&lt;br /&gt;&lt;br /&gt;I fixed the problem you pointed out.&lt;br /&gt;It now works properly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The cause was that this location remained as it was in the sample program.&lt;br /&gt;Incidentally, the fact that the data was stored correctly four at a time from cycles 18 to 22 onwards only seemed that way, but does that mean that there could have been a shift at some point?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 SAADC buffer swap</title><link>https://devzone.nordicsemi.com/thread/486495?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 14:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f8b248-f9fd-4fd8-86bf-fe285a7d7ae6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I had a quick look at the code.&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;saadc_init(), I see you have:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
    // double buffering
    err_code = nrf_drv_saadc_buffer_convert(m_buffer_pool[0], 1);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_drv_saadc_buffer_convert(m_buffer_pool[1], 1);
    APP_ERROR_CHECK(err_code);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Try this instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
    // double buffering
    err_code = nrf_drv_saadc_buffer_convert(m_buffer_pool[0], SAMPLES_IN_BUFFER);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_drv_saadc_buffer_convert(m_buffer_pool[1], SAMPLES_IN_BUFFER);
    APP_ERROR_CHECK(err_code);
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>