<?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>Not getting data from adc in continuous mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57057/not-getting-data-from-adc-in-continuous-mode</link><description>I setup my adc in continuous mode with sampling rate set to 200ksps, when I trigger NRF_SAADC_TASK_START, I am not getting data; unless I trigger NRF_SAADC_TASK_SAMPLE and put a delay after. I am using SDK 16.3 
 
 Is there a way to setup a trigger for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Feb 2020 23:42:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57057/not-getting-data-from-adc-in-continuous-mode" /><item><title>RE: Not getting data from adc in continuous mode</title><link>https://devzone.nordicsemi.com/thread/232433?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 23:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e210b96-2a1b-4452-b5f2-6fb3d3fef5b8</guid><dc:creator>Karthikbss</dc:creator><description>&lt;p&gt;Thank you, I got the adc working with status interrupt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting data from adc in continuous mode</title><link>https://devzone.nordicsemi.com/thread/231543?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 07:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a38bd2fb-3ecb-4e17-a6b1-e20fe39f0316</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Karthikbss"] Is there a way to avoid having to sleep and check adc status for event done?[/quote]
&lt;p&gt;Yes, this is typically handled with interrupts. If you want to run some code when sampling has finished, you should enable an interrupt for that event, and process it in the interrupt/event handler. You can see from the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/saadc.html?cp=4_0_0_5_22_8_12#register.INTEN"&gt;documentation for the&amp;nbsp;SAADC INTEN register&lt;/a&gt;&amp;nbsp;that you can enable interrupts for the END event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting data from adc in continuous mode</title><link>https://devzone.nordicsemi.com/thread/231521?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 23:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c33b990d-969a-4b6b-9655-7cea31243c44</guid><dc:creator>Karthikbss</dc:creator><description>&lt;p&gt;My intention is to replace nrf_delay_ms call with a function that performs some task, that function could take&amp;nbsp; less than or greater than one milli second. Once done&amp;nbsp;is there a way to check if adc has completed its task of capturing samples [one set of 200 samples in my case]. Is there a way to avoid having to sleep and check adc status for event done?&lt;/p&gt;
&lt;p&gt;I tried to check on &amp;quot;NRF_SAADC_EVENT_END&amp;quot; but that did not work, system would wait for ever on that event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting data from adc in continuous mode</title><link>https://devzone.nordicsemi.com/thread/231386?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 11:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f5278b-d802-4f08-b915-35bdad053ec5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at&amp;nbsp;your code without the call to&amp;nbsp;nrf_delay_ms() you continue to stop sampling immediately after it has been started, so sampling will not have completed. Why are you stopping it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>