<?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 oversampling sampling interval?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74870/saadc-oversampling-sampling-interval</link><description>Hello All, 
 Method 1: I am writing a test application to read the ADC data at a specific intervals(10 samples for every 5ms interval for every 50sec). I am using blocking mode here with oversampling disabled and using delays between samples. It works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 May 2021 07:23:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74870/saadc-oversampling-sampling-interval" /><item><title>RE: SAADC oversampling sampling interval?</title><link>https://devzone.nordicsemi.com/thread/309115?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 07:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:260b2427-ea64-4220-a5eb-531b9042ea26</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The sample time depends on the configured &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#concept_qh3_spp_qr"&gt;acquisition time&lt;/a&gt;, which can be set between 3 and 40 us. The minimal delay between two samples needs to be&amp;nbsp;&lt;span&gt;t&lt;/span&gt;&lt;sub&gt;ACQ&lt;/sub&gt;&lt;span&gt;+t&lt;/span&gt;&lt;sub&gt;CONV&lt;/sub&gt;.&amp;nbsp;&lt;span&gt;t&lt;/span&gt;&lt;sub&gt;CONV&lt;/sub&gt;&amp;nbsp;is given in the product specification, and is maximum 2 us.&lt;/p&gt;
&lt;p&gt;How to setup the sampling depends on your configuration and what source you use to trigger the sampling. If you want to capture 6 samples in 30 ms with 8x oversampling, the simplest solution would be to enable BURST and trigger the sample task every 5ms. Even with maximum acquisition time, you will not get near 5ms: (40us + 2us) * 2^3 = 42us * 8 = 336us.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC oversampling sampling interval?</title><link>https://devzone.nordicsemi.com/thread/309108?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 06:22:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:064db8ca-e94d-4e3f-b963-be1708a56045</guid><dc:creator>Tajpeer</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks for the information.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But still I am not clear how to configure the sample time for each sample manually.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My requirement is to sample 6 samples in a period of 30ms using oversampling.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC oversampling sampling interval?</title><link>https://devzone.nordicsemi.com/thread/308940?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 11:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a2844d-b636-4b1e-9ff8-e2bab766e58f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would recommend you to enable BURST when oversampling is enabled, as described in the&amp;nbsp;&lt;a title="Oversampling" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=4_2_0_36_4_2#saadc_operationmodes_oversample"&gt;Oversampling&lt;/a&gt;&amp;nbsp;chapter in the SAADC peripheral documentation. Then you only need to trigger the SAMPLE task once to get all samples required by oversampling to generate one result.&lt;/p&gt;
&lt;p&gt;The timing will depend on the configured acquisition time,&amp;nbsp;&lt;span&gt;&amp;lt;(t&lt;/span&gt;&lt;sub&gt;ACQ&lt;/sub&gt;&lt;span&gt;+t&lt;/span&gt;&lt;sub&gt;CONV&lt;/sub&gt;&lt;span&gt;)×2&lt;/span&gt;&lt;sup&gt;OVERSAMPLE&lt;/sup&gt;&amp;nbsp;. If you want to sample manually, the time between each SAMPLE needs to be at least&amp;nbsp;&lt;span&gt;t&lt;/span&gt;&lt;sub&gt;ACQ&lt;/sub&gt;&lt;span&gt;+t&lt;/span&gt;&lt;sub&gt;CONV&lt;/sub&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/structnrf__saadc__channel__config__t.html#a1302832da87878d08d264a9e92def254"&gt;Burst&lt;/a&gt;&amp;nbsp;is enabled in the channel config structure if you are using the SAADC driver.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>