<?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>PPI ADC + Timer usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117633/ppi-adc-timer-usage</link><description>I reference the sample at https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-6-analog-to-digital-converter-adc/topic/exercise-3-interfacing-with-adc-using-nrfx-drivers-and-timer-ppi/ 
 My question is: 1. How to manually</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jan 2025 20:56:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117633/ppi-adc-timer-usage" /><item><title>RE: PPI ADC + Timer usage</title><link>https://devzone.nordicsemi.com/thread/517804?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 20:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8625982-4a68-442e-922c-5dbfec332945</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi hugh512,&lt;/p&gt;
&lt;p&gt;First, I want to make sure we are on the same page that the DevAcademy&amp;nbsp;exercise you linked described the steps to create a&amp;nbsp;TIMER, SAADC, and PPI setup that runs &lt;em&gt;automatically&lt;/em&gt; indefinitely, with only a manual trigger setup once at the beginning.&lt;/p&gt;
&lt;p&gt;Now regarding your requirement,&amp;nbsp;I see here that you want to use two analog inputs.&lt;/p&gt;
&lt;p&gt;Is it possible to instead scan both these inputs in&amp;nbsp;65 cycles, each cycle sample AIN1 once and then AIN2 once?&lt;br /&gt;The reason is because if you enabled more than one SAADC channel, the device enters Scan Mode, and each sample task will sequentially sample all enabled channels.&lt;/p&gt;
&lt;p&gt;If that is not possible, and you strictly need to sample AIN1 alone 65 times, before sampling AIN2 alone 65 other times, then you will have to reconfigure the entire setup manually.&lt;/p&gt;
&lt;p&gt;To reconfigure it, you don&amp;#39;t need to use the EGU. It&amp;#39;s best to just do it in the SAADC event handler. The reconfiguration should be reasonably short enough to do there.&lt;/p&gt;
&lt;p&gt;Does this answer your questions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI ADC + Timer usage</title><link>https://devzone.nordicsemi.com/thread/517050?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 15:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57fc7bd3-f566-46e3-80bf-eaf4984bd3fe</guid><dc:creator>hugh512</dc:creator><description>&lt;p&gt;Sorry, I didn&amp;#39;t describe my requirements clealy.&lt;br /&gt;My requirement is:&lt;/p&gt;
&lt;p&gt;|----------------------------cycle1-------------------------------------|&lt;span&gt;|----------------------------cycle2-------------------------------------|&lt;/span&gt;&lt;br /&gt;|3ms delay|AIN1 sample 65 times|AIN2 sample 65times|&amp;nbsp;&lt;span&gt;|3ms delay|AIN1 sample 65 times|AIN2 sample 65times|&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In each cycle:&lt;br /&gt;I want to use PPI to do ADC sampling, so I need to trigger sample manuall.&lt;br /&gt;I checked the specification, This is a module named &amp;quot;EGU&amp;quot;, I&amp;#39;m not sure if it can be used to trigger ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPI ADC + Timer usage</title><link>https://devzone.nordicsemi.com/thread/516712?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 21:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49cebeea-ea74-40de-b513-d15ee1d88aa8</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Were you able to see the output as per exercise? And now you want to make some modifications?&lt;/p&gt;
&lt;p&gt;Do you mean you want to trigger the timer once, or twice?&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;manually&amp;quot; trigger timer? Do you intent NOT using PPI?&lt;/p&gt;
&lt;p&gt;The exercise you have referred to uses the&amp;nbsp;&lt;span&gt;SAADC driver to measure voltage and uses a hardware TIMER to trigger sampling through DPPI/PPI, without any CPU involvement. Do you still want to use the PPI or Not?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;At the top, you can see the sampling interval is set as 50us. You can change that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the configure_timer function, timer channel0 is used for extended mode.&amp;nbsp;&lt;/span&gt;&lt;span&gt;You can use other channels like channel0 is used.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>