<?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>Triggering ADC from Timer Event &amp;amp; PPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62259/triggering-adc-from-timer-event-ppi</link><description>I&amp;#39;ve set up a timer which is firing the interrupt correctly. I then set up a second compare and linked it to the PPI to fire the ADC. The idea is to do these a few times per second, use the ADC interrupt to shift the ADC data pointer and then when the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Jun 2020 15:15:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62259/triggering-adc-from-timer-event-ppi" /><item><title>RE: Triggering ADC from Timer Event &amp; PPI</title><link>https://devzone.nordicsemi.com/thread/253637?ContentTypeID=1</link><pubDate>Sat, 06 Jun 2020 15:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fd80774-5403-44da-bdbf-607ce44bea1c</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Excellent, that could be it!&lt;br /&gt;&lt;br /&gt;I also messed up, I need to START and SAMPLE, so two PPI channels.&lt;br /&gt;&lt;br /&gt;I do like the auto buffer fill but query how useful RESULT.AMOUNT is. I was hoping I could use it in another interrupt to see which buffer segment holds the latest values, but according to the reference data it can only be queried after a adc DONE event. That would mean the ADC firing an interrupt and copying the RESULT.AMOUNT value into another variable. Or do I have that wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Triggering ADC from Timer Event &amp; PPI</title><link>https://devzone.nordicsemi.com/thread/253628?ContentTypeID=1</link><pubDate>Sat, 06 Jun 2020 10:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81ca46d7-74be-454c-878e-db5aa7e7c6fe</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;I am 99% sure you wrote the wrong addresses into the PPI.&lt;/p&gt;
&lt;p&gt;Correct addresses:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_PPI-&amp;gt;CH[CFG_PPI_TASKER_CHANNEL_ADC_START].EEP = (uint32_t)&amp;amp; CFG_TASKER_PIF_TIMER-&amp;gt;EVENTS_COMPARE[1]; // wire timer compare
NRF_PPI-&amp;gt;CH[CFG_PPI_TASKER_CHANNEL_ADC_START].TEP = (uint32_t)&amp;amp; NRF_SAADC-&amp;gt;TASKS_START; &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>