<?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>DevAcademy Lesson 6 Exercise 3: How to properly stop Timer/PPI/ADC?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119106/devacademy-lesson-6-exercise-3-how-to-properly-stop-timer-ppi-adc</link><description>Hello, 
 I am currently working on the Exercise 3 – Interfacing with ADC using nrfx drivers and TIMER/PPI sample. I have it operating, however I am wondering what is the proper way to stop its operation? I have tried: 
 
 
 However it appears that there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Feb 2025 13:33:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119106/devacademy-lesson-6-exercise-3-how-to-properly-stop-timer-ppi-adc" /><item><title>RE: DevAcademy Lesson 6 Exercise 3: How to properly stop Timer/PPI/ADC?</title><link>https://devzone.nordicsemi.com/thread/523720?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 13:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cee5f8a-adfa-4af2-b9c5-28d5dc13dac5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When stopping SAADC sampling you need to first stop triggering sampling (by stopping the timer in your case), then stop any ongoing SAADC procedure, then wait for the end evente before&amp;nbsp; you continue to uninitialize the ADC. This is signalled by dhe drive rwith a&amp;nbsp;NRFX_SAADC_EVT_DONE (If you read the specification you will see the STOPPED event, but the driver translates this to a DONE event).&lt;/p&gt;
&lt;p&gt;Note that you do not need to consider if sampling is ongoing or not, as the event is always generated (see &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/saadc.html"&gt;product specification&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The ADC is stopped by triggering the STOP task. The STOP task will terminate an ongoing sampling. The ADC will generate a STOPPED event when it has stopped. If the ADC is already stopped when the STOP task is triggered, the STOPPED event will still be generated.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>