<?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>Issues with nRFX SAADC Driver when sampling through DPPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109249/issues-with-nrfx-saadc-driver-when-sampling-through-dppi</link><description>Hi, 
 I have run into a bit of an issue using the nrfx SAADC driver and was hoping to get some help. I am using SDK version 2.5.0 (nrfx version 3.0.0) with a nrf 5340dk. 
 
 Summary My application involves using the RTC through DPPI to trigger an SAADC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Mar 2024 17:16:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109249/issues-with-nrfx-saadc-driver-when-sampling-through-dppi" /><item><title>RE: Issues with nRFX SAADC Driver when sampling through DPPI</title><link>https://devzone.nordicsemi.com/thread/474431?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 17:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79790642-8bac-47ea-b03f-4c4ce1dc2d6d</guid><dc:creator>hotbeefcurry</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are going to pursue other methods.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with nRFX SAADC Driver when sampling through DPPI</title><link>https://devzone.nordicsemi.com/thread/474265?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 10:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:115b6fa4-d03c-4b6d-8a79-e30c5155cdd7</guid><dc:creator>Kenneth</dc:creator><description>[quote user="hotbeefcurry"]This behavior is possible on the 5340 as I have it working, but I cannot get it working with the stock driver.&amp;nbsp; Can you take a look at the SAADC driver file and let me know if this is even possible to do with the stock driver?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;In general I can say that it&amp;#39;s very little support for setting up ppi in zephyr, so I am not surprised if the &amp;quot;stock driver&amp;quot; does not support this out of the box. The suggested code by Jared should add extra current to call the the&amp;nbsp;&lt;span&gt;nrfx_saadc_mode_trigger() as you write, but other than that it should consume the normal 2-4 uA idle current between sampling when using k_timer()/k_sleep().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with nRFX SAADC Driver when sampling through DPPI</title><link>https://devzone.nordicsemi.com/thread/474148?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 20:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdeba1f6-bab9-4e26-afa5-9fa8b601f10a</guid><dc:creator>hotbeefcurry</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for the reply &amp;amp; t&lt;span&gt;hanks for the note about not needing to call stop.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I checked out the example you linked.&amp;nbsp; Unfortunately, they use a software timer to trigger a handler that calls&amp;nbsp;&lt;span&gt;nrfx_saadc_mode_trigger(void).&amp;nbsp; I have tested something similar to this in the past and it consumes significantly more power.&amp;nbsp; I understand I could simply use an RTC interrupt &amp;amp; callback to call&amp;nbsp;nrfx_saadc_mode_trigger(void), however this also consumes more power due to the CPU running the handler.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am hoping to start &amp;amp; sample the SAADC peripheral using the RTC &amp;amp; DPPI without CPU intervention until the SAADC sends the end event and triggers the interrupt.&lt;br /&gt;&lt;br /&gt;This behavior is possible on the 5340 as I have it working, but I cannot get it working with the stock driver.&amp;nbsp; Can you take a look at the SAADC driver file and let me know if this is even possible to do with the stock driver?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with nRFX SAADC Driver when sampling through DPPI</title><link>https://devzone.nordicsemi.com/thread/473983?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 22:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f652a64-8cd3-40c8-8ab4-35312f8659fb</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Even thought I would love to try this myself, I unfortunately don&amp;#39;t have time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Instead, and with the polling rate you are describing, I would have looked at the example Jared made here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92005/nrf5340-cpunet-accessing-saadc/386791"&gt;RE: nrf5340: cpunet accessing SAADC&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe it&amp;#39;s even possible to&amp;nbsp;develop on that example, such that instead of calling&amp;nbsp;nrfx_saadc_mode_trigger(), that you trigger it from a ppi channel. As you can see from the sample code, you don&amp;#39;t need to start or stop to achieve low power.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>