<?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>How to run nrf52 SAADC continuously non-stop without interrupts?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19287/how-to-run-nrf52-saadc-continuously-non-stop-without-interrupts</link><description>Hi,
I need to monitor voltage very frequently, have access to the latest value and also to have interrupt on low limit.
But I do not want to have interrupt on EVT_DONE, like all SAADC samples have. Frequent interrupts may screw up timing of my other</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Sep 2017 11:47:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19287/how-to-run-nrf52-saadc-continuously-non-stop-without-interrupts" /><item><title>RE: How to run nrf52 SAADC continuously non-stop without interrupts?</title><link>https://devzone.nordicsemi.com/thread/74763?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2017 11:47:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a8d1892-24ea-41c7-9bd5-0fe1d67af082</guid><dc:creator>sunnyyangfine</dc:creator><description>&lt;p&gt;Your answer I always can not find the location, can not prompt an exact xx.c
     xx line position&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run nrf52 SAADC continuously non-stop without interrupts?</title><link>https://devzone.nordicsemi.com/thread/74761?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 12:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a31879-c3e5-4625-b4dd-36b07e1c7c64</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, your solution should work. You would not need the RTC then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run nrf52 SAADC continuously non-stop without interrupts?</title><link>https://devzone.nordicsemi.com/thread/74760?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 23:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3ea61bd-dc66-4000-bf5e-fa1642989ba3</guid><dc:creator>DL</dc:creator><description>&lt;p&gt;That sample has lines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/************************* STOP SAMPLING AT END EVENT (When buffer is full.) *************************/   
NRF_PPI-&amp;gt;CH[2].EEP = (uint32_t)&amp;amp;NRF_SAADC-&amp;gt;EVENTS_END;
NRF_PPI-&amp;gt;CH[2].TEP = (uint32_t)&amp;amp;NRF_SAADC-&amp;gt;TASKS_STOP;
NRF_PPI-&amp;gt;CHEN |= PPI_CHENSET_CH2_Enabled &amp;lt;&amp;lt; PPI_CHENSET_CH2_Pos;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But I need the opposite: run SAADC non-stop. Can I enter these lines:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_PPI-&amp;gt;CH[2].EEP = (uint32_t)&amp;amp;NRF_SAADC-&amp;gt;EVENTS_END;
NRF_PPI-&amp;gt;CH[2].TEP = (uint32_t)&amp;amp;NRF_SAADC-&amp;gt;TASKS_SAMPLE;
NRF_PPI-&amp;gt;FORK[2].TEP = (uint32_t)&amp;amp;NRF_SAADC-&amp;gt;TASKS_START;
NRF_PPI-&amp;gt;CHEN |= PPI_CHENSET_CH2_Enabled &amp;lt;&amp;lt; PPI_CHENSET_CH2_Pos;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Would this work? Then I would not need RTC, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run nrf52 SAADC continuously non-stop without interrupts?</title><link>https://devzone.nordicsemi.com/thread/74759?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 03:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a029c8a6-0e0b-43d0-8965-4dc078ed680b</guid><dc:creator>DL</dc:creator><description>&lt;p&gt;If I understand this sample correctly, RTC starts SSADC 3 times a second (NRF_RTC1-&amp;gt;CC[0] = 10000) and SSADC captures 10 samples and stops. But I need to run SSADC continuously, without stops (for the purpose of low limit detection). How to do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run nrf52 SAADC continuously non-stop without interrupts?</title><link>https://devzone.nordicsemi.com/thread/74762?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 10:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c72b722c-5f16-4dc7-8be4-5212cf8b09d8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;&lt;a href="https://github.com/Martinsbl/nrf52-saadc-continuous-mode-rtc-ppi-register-setup"&gt;This example&lt;/a&gt; might be what you are looking for. It use RTC and PPI to trigger the SAADC, and use double buffering to sample in one buffer while the other register is read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>