<?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>Nrf52832 Internal ADC is taking approx 35us. Need help to minimize it withing 10us</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91737/nrf52832-internal-adc-is-taking-approx-35us-need-help-to-minimize-it-withing-10us</link><description>Hello, 
 
 I am working with nRF5 SDK v17.1.0 and using nRF52832DK board. While working with SAADC module I found that nrfx_saadc_sample_convert() API is taking almost 35us (I have verified by driving GPIO low before this API call and high after this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Sep 2022 11:23:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91737/nrf52832-internal-adc-is-taking-approx-35us-need-help-to-minimize-it-withing-10us" /><item><title>RE: Nrf52832 Internal ADC is taking approx 35us. Need help to minimize it withing 10us</title><link>https://devzone.nordicsemi.com/thread/385707?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 11:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ebccf8d-d18b-4a1c-80e1-06c78e90ece0</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t an API for increasing the buffer size, instead you would have to increase the size of the&amp;nbsp;&lt;span&gt;nrf_saadc_value_t array&amp;nbsp;&lt;/span&gt;buffer that you pass to&amp;nbsp;nrf_drv_saadc_buffer_convert(). Increasing the buffer size means that&amp;nbsp;&lt;span&gt;nrf_drv_saadc_buffer_convert() which process the sampled data has to be called less often as it takes longer time for the buffer to fill with sampled data.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you use PPI + SAADC as in the SAADC example in the SDK then sampling is done automatically on a COMPARE event as long as the SAADC START task has been triggered( which is done automatically&amp;nbsp;in&amp;nbsp;nrf_drv_saadc_buffer_convert())&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 Internal ADC is taking approx 35us. Need help to minimize it withing 10us</title><link>https://devzone.nordicsemi.com/thread/385544?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 14:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c6f910e-4a0e-4a56-883a-ba6c78af688d</guid><dc:creator>SanketSkyline</dc:creator><description>&lt;p&gt;Hello Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As per your reply &amp;quot;&lt;span&gt;&lt;em&gt;you can decrease the amount of time that you need to call the conversion routine by increasing the buffer size and only processing the data when you need to.&lt;/em&gt; &amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Would you please help to share the API which will do these steps as you mentioned?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, let me know if&amp;nbsp;&lt;span&gt;nrfx_saadc_sample_convert() does not start the sampling then which API shall I use to start the sampling whenever it is desired ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sanket Chadawar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 Internal ADC is taking approx 35us. Need help to minimize it withing 10us</title><link>https://devzone.nordicsemi.com/thread/385459?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 09:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c79e51f7-ed74-471c-bd07-23b782c03a3c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Sanket,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfx_saadc_sample_convert() does not start the sampling, it will instead process the already sampled data from the buffer. Decreasing the acquisition&amp;nbsp;time will therefore not affect the conversion time. I don&amp;#39;t think it&amp;#39;s possible to change the conversion time. However, you can decrease the amount of time that you need to call the conversion routine by increasing the buffer size and only process the data when you need to.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 Internal ADC is taking approx 35us. Need help to minimize it withing 10us</title><link>https://devzone.nordicsemi.com/thread/385421?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 04:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54004b57-3be9-4f7d-9417-6f62492ae1db</guid><dc:creator>SanketSkyline</dc:creator><description>&lt;p&gt;Hello Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;I don&amp;#39;t think there is any way of decreasing this time actually. Are you trying to decrease the SAADC sampling time? &amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The API&amp;nbsp;nrfx_saadc_sample_convert() is taking approx 35us to give one ADC sample. I want to minimize this time period so that is why I tried changing the acquisition time but as per your reply, it seems that that will not optimize the time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible in any way to reduce&amp;nbsp;the time period required by&amp;nbsp;&lt;span&gt;nrfx_saadc_sample_convert()&amp;nbsp;&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Sanket Chadawar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52832 Internal ADC is taking approx 35us. Need help to minimize it withing 10us</title><link>https://devzone.nordicsemi.com/thread/385335?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 14:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20bfe479-3ff4-4968-b13f-f07ee9789292</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Decreasing the acquisition time wouldn&amp;#39;t affect the time it would take the CPU to retrieve the already sampled values from the EasyDMA buffers. I don&amp;#39;t think there is any way of decreasing this time actually. Are you trying to decrease the SAADC sampling time?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>